@masterteam/users-groups 0.0.45 → 0.0.47
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": "@masterteam/users-groups",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/users-groups",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"tailwindcss": "^4.2.2",
|
|
21
21
|
"tailwindcss-primeui": "^0.6.1",
|
|
22
22
|
"@ngxs/store": "^20.1.0",
|
|
23
|
-
"@masterteam/
|
|
23
|
+
"@masterteam/forms": "^0.0.173",
|
|
24
24
|
"@masterteam/icons": "^0.0.17",
|
|
25
|
-
"@masterteam/
|
|
25
|
+
"@masterteam/components": "^0.0.347"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import * as _masterteam_users_groups from '@masterteam/users-groups';
|
|
5
6
|
import { TranslocoService } from '@jsverse/transloco';
|
|
6
7
|
import { PageHeaderTab } from '@masterteam/components/page-header';
|
|
@@ -334,8 +335,13 @@ declare class UpdateUser {
|
|
|
334
335
|
}
|
|
335
336
|
declare class DeleteUser {
|
|
336
337
|
userName: string | number;
|
|
338
|
+
acknowledgeRemainingWork: boolean;
|
|
337
339
|
static readonly type = "[UsersGroups] Delete User";
|
|
338
|
-
|
|
340
|
+
/**
|
|
341
|
+
* `acknowledgeRemainingWork`: remove the person although they still hold
|
|
342
|
+
* work in the application (the Replace by "Remove anyway" path).
|
|
343
|
+
*/
|
|
344
|
+
constructor(userName: string | number, acknowledgeRemainingWork?: boolean);
|
|
339
345
|
}
|
|
340
346
|
declare class LinkUserToApplication {
|
|
341
347
|
userName: string | number;
|
|
@@ -426,7 +432,7 @@ declare class UsersGroupsFacade {
|
|
|
426
432
|
addUserToGroup(id: string, groupId: string): rxjs.Observable<void>;
|
|
427
433
|
deleteUserFromGroup(payload: any): rxjs.Observable<void>;
|
|
428
434
|
updateUser(id: string | undefined, changes: Partial<User>): rxjs.Observable<void>;
|
|
429
|
-
deleteUser(userName: string | number): rxjs.Observable<void>;
|
|
435
|
+
deleteUser(userName: string | number, acknowledgeRemainingWork?: boolean): rxjs.Observable<void>;
|
|
430
436
|
linkUserToApplication(userName: string | number): rxjs.Observable<void>;
|
|
431
437
|
getUserSummary(userName: string): rxjs.Observable<void>;
|
|
432
438
|
getGroupSummary(groupId: string | number): rxjs.Observable<void>;
|
|
@@ -473,7 +479,7 @@ declare class UsersGroupsState extends CrudStateBase<any, UsersGroupsStateModel,
|
|
|
473
479
|
createUser(ctx: StateContext<UsersGroupsStateModel>, { payload }: CreateUser): rxjs.Observable<Response<User>>;
|
|
474
480
|
addUserToGroup(ctx: StateContext<UsersGroupsStateModel>, { payload }: AddUserToGroup): rxjs.Observable<Response<any>>;
|
|
475
481
|
updateUser(ctx: StateContext<UsersGroupsStateModel>, { changes, id }: UpdateUser): rxjs.Observable<Response<User>>;
|
|
476
|
-
deleteUser(ctx: StateContext<UsersGroupsStateModel>, { userName }: DeleteUser): rxjs.Observable<Response<void>>;
|
|
482
|
+
deleteUser(ctx: StateContext<UsersGroupsStateModel>, { userName, acknowledgeRemainingWork }: DeleteUser): rxjs.Observable<Response<void>>;
|
|
477
483
|
linkUserToApplication(ctx: StateContext<UsersGroupsStateModel>, { userName }: LinkUserToApplication): rxjs.Observable<Response<User | null>>;
|
|
478
484
|
getUserSummary(ctx: StateContext<UsersGroupsStateModel>, { userName }: GetUserSummary): rxjs.Observable<Response<UserSummary>>;
|
|
479
485
|
getGroupSummary(ctx: StateContext<UsersGroupsStateModel>, { groupId }: GetGroupSummary): rxjs.Observable<Response<GroupAccessSummary>>;
|
|
@@ -493,15 +499,26 @@ declare class UsersGroups implements OnInit {
|
|
|
493
499
|
protected readonly facade: UsersGroupsFacade;
|
|
494
500
|
private readonly route;
|
|
495
501
|
private readonly router;
|
|
502
|
+
private readonly destroyRef;
|
|
496
503
|
protected readonly translocoService: TranslocoService;
|
|
497
504
|
selectedTab: _angular_core.WritableSignal<string>;
|
|
498
|
-
|
|
505
|
+
/** Replacements get their own tab where this backend runs them. */
|
|
506
|
+
private readonly replacementsAvailable;
|
|
507
|
+
readonly tabsList: _angular_core.Signal<PageHeaderTab[]>;
|
|
508
|
+
/**
|
|
509
|
+
* `mt-tabs` falls back to its first option when the active value is not
|
|
510
|
+
* one of its options, and keeps that choice when the option appears later.
|
|
511
|
+
* The Replacements tab arrives once the backend answers, so hold the value
|
|
512
|
+
* back until its tab exists; the change then re-selects it.
|
|
513
|
+
*/
|
|
514
|
+
readonly activeTab: _angular_core.Signal<string | undefined>;
|
|
499
515
|
breadcrumbItems: {
|
|
500
516
|
label?: string;
|
|
501
517
|
routerLink?: string;
|
|
502
518
|
icon?: string;
|
|
503
519
|
}[];
|
|
504
520
|
ngOnInit(): void;
|
|
521
|
+
private syncTab;
|
|
505
522
|
goBack(): void;
|
|
506
523
|
onTabChange(event: any): void;
|
|
507
524
|
getUsers(): void;
|
|
@@ -517,6 +534,24 @@ declare class Users implements OnInit {
|
|
|
517
534
|
private readonly toast;
|
|
518
535
|
readonly modal: ModalService;
|
|
519
536
|
private readonly translocoService;
|
|
537
|
+
private readonly replacementApi;
|
|
538
|
+
private readonly confirmation;
|
|
539
|
+
private readonly router;
|
|
540
|
+
private readonly route;
|
|
541
|
+
private readonly destroyRef;
|
|
542
|
+
private readonly replacementText;
|
|
543
|
+
/**
|
|
544
|
+
* Whether this backend runs replacements (`UserReplacementService.available`);
|
|
545
|
+
* false until known, and when the route is missing or refused (no
|
|
546
|
+
* CONTROL_PANEL, delegation): Replace by stays hidden. Where it runs, the
|
|
547
|
+
* backend also protects removal, so the trash action checks what the person
|
|
548
|
+
* still holds first (guide §9d). A start refused by the backend's switches
|
|
549
|
+
* comes back as the dialog's error.
|
|
550
|
+
*/
|
|
551
|
+
readonly canReplace: _angular_core.WritableSignal<boolean>;
|
|
552
|
+
checkingWorkRowIds: _angular_core.WritableSignal<string[]>;
|
|
553
|
+
/** Person being replaced → their open replacement (`operationId`). */
|
|
554
|
+
readonly activeReplacements: _angular_core.WritableSignal<ReadonlyMap<string, string>>;
|
|
520
555
|
users: _angular_core.Signal<User[]>;
|
|
521
556
|
tabs: _angular_core.Signal<{
|
|
522
557
|
label: string;
|
|
@@ -534,10 +569,17 @@ declare class Users implements OnInit {
|
|
|
534
569
|
private allUsers;
|
|
535
570
|
activeUsers: _angular_core.Signal<User[]>;
|
|
536
571
|
ngOnInit(): void;
|
|
572
|
+
/** Who is already being replaced, so their row opens that instead. */
|
|
573
|
+
private loadActiveReplacements;
|
|
574
|
+
openReplaceDialog(user: User): void;
|
|
575
|
+
private openReplacement;
|
|
576
|
+
/** Guide §9d: remaining work decides between delete, Replace by, and no delete. */
|
|
577
|
+
removeWithRemainingWorkCheck(user: User): void;
|
|
578
|
+
private confirmPlainRemoval;
|
|
537
579
|
unlockUser(user: User): void;
|
|
538
580
|
isLinkedToCurrentApplication(user: any): boolean;
|
|
539
581
|
linkUserToApplication(user: any): void;
|
|
540
|
-
unlinkUserFromApplication(user: any): void;
|
|
582
|
+
unlinkUserFromApplication(user: any, acknowledgeRemainingWork?: boolean): void;
|
|
541
583
|
addUserDialog(user?: any | null): void;
|
|
542
584
|
addResetPasswordDialog(user: any): void;
|
|
543
585
|
openAccessSummary(user: any): void;
|
|
@@ -628,5 +670,296 @@ declare class GroupForm implements OnInit {
|
|
|
628
670
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GroupForm, "mt-group-form", never, { "groupForEdit": { "alias": "groupForEdit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
629
671
|
}
|
|
630
672
|
|
|
631
|
-
|
|
632
|
-
|
|
673
|
+
/**
|
|
674
|
+
* "Replace by" (user replacement) contract, as the backend serves it under
|
|
675
|
+
* `api/identity/users/replacement`. Source: Pplus5.BE
|
|
676
|
+
* `Docs/User-Replacement/Simple-Replacement-Flow.md` and
|
|
677
|
+
* `Application.Abstractions/UserReplacement/UserReplacementOperationContracts.cs`.
|
|
678
|
+
*
|
|
679
|
+
* One confirmation starts a replacement; the server finds the work and hands
|
|
680
|
+
* it over in the background. Screens start, list, watch, show results and
|
|
681
|
+
* cancel. They never search for or list the person's places themselves: the
|
|
682
|
+
* discovery, capabilities and successor-check routes were removed. Enums come
|
|
683
|
+
* back as text.
|
|
684
|
+
*/
|
|
685
|
+
declare const USER_REPLACEMENT_OPERATION_CONTRACT = "user-replacement-operation-v1";
|
|
686
|
+
/** The one confirmation. Always application-wide and transfer-only. */
|
|
687
|
+
interface StartReplacementRequest {
|
|
688
|
+
sourceUserId: string;
|
|
689
|
+
defaultSuccessorUserId: string;
|
|
690
|
+
/** Plain text, 3–1000 characters, kept in the audit trail. */
|
|
691
|
+
reason: string;
|
|
692
|
+
}
|
|
693
|
+
type ReplacementStatus =
|
|
694
|
+
/** Processing: screens show a generic message, never counts or places. */
|
|
695
|
+
'Preparing'
|
|
696
|
+
/** The server is handing the work over. */
|
|
697
|
+
| 'Running' | 'Completed'
|
|
698
|
+
/** Finished, but some places could not be read. */
|
|
699
|
+
| 'CompletedWithWarnings'
|
|
700
|
+
/** Some work, or something the handover needs, waits for an admin. */
|
|
701
|
+
| 'ManualActionRequired'
|
|
702
|
+
/** Stopped (e.g. the starting admin lost access); never resumes by itself. */
|
|
703
|
+
| 'Paused' | 'Cancelled' | 'Expired'
|
|
704
|
+
/** Started under the old review flow and never confirmed: close and restart. */
|
|
705
|
+
| 'AwaitingRestart';
|
|
706
|
+
interface ReplacementSummary {
|
|
707
|
+
contractVersion: string;
|
|
708
|
+
operationId: string;
|
|
709
|
+
sourceUserId: string;
|
|
710
|
+
defaultSuccessorUserId: string;
|
|
711
|
+
status: ReplacementStatus | string;
|
|
712
|
+
createdAtUtc: string;
|
|
713
|
+
updatedAtUtc: string | null;
|
|
714
|
+
scannedScopeCount: number;
|
|
715
|
+
blockedScopeCount: number;
|
|
716
|
+
itemCount: number;
|
|
717
|
+
/** Items not handed over (or decided) yet. */
|
|
718
|
+
pendingItemCount: number;
|
|
719
|
+
itemsByResult: Record<string, number>;
|
|
720
|
+
canCancel: boolean;
|
|
721
|
+
/** Limits of the search, plus why a stopped replacement stopped. */
|
|
722
|
+
warningCodes: string[];
|
|
723
|
+
/** Always false: the search covers what the starting admin can see. */
|
|
724
|
+
coverageComplete: boolean;
|
|
725
|
+
}
|
|
726
|
+
type ItemDecision = 'Transfer' | 'Preserve' | 'Revoke' | 'Recalculate' | 'ManualReview';
|
|
727
|
+
type ItemResult = 'Applied' | 'AlreadySatisfied' | 'Preserved' | 'RequiresManualAction' | 'Conflict' | 'NotChecked';
|
|
728
|
+
interface ReplacementItem {
|
|
729
|
+
itemId: number;
|
|
730
|
+
store: string;
|
|
731
|
+
scope: string;
|
|
732
|
+
scopeId: number;
|
|
733
|
+
recordId: string;
|
|
734
|
+
field: string;
|
|
735
|
+
match: string;
|
|
736
|
+
decision: ItemDecision | string;
|
|
737
|
+
reason: string;
|
|
738
|
+
/** Null: not processed yet. */
|
|
739
|
+
resultStatus: ItemResult | string | null;
|
|
740
|
+
resultCode: string | null;
|
|
741
|
+
/** Names and ids for people (backend 2026-11-23); absent on older backends. */
|
|
742
|
+
display?: ReplacementItemDisplay | null;
|
|
743
|
+
}
|
|
744
|
+
type ReplacementPlaceKind = 'LevelRecord' | 'ModuleRecord' | 'Request' | 'Escalation' | 'Unknown';
|
|
745
|
+
type ReplacementSubjectKind = 'Field' | 'TeamRole' | 'ApprovalStep' | 'RequestCustody' | 'EscalationStep' | 'Task' | 'EntityList';
|
|
746
|
+
/**
|
|
747
|
+
* What a result is about, read by the backend when the results are listed,
|
|
748
|
+
* under the signed-in admin's access and in the request language. A record the
|
|
749
|
+
* admin cannot open has `placeVisible: false` and no `recordName` (nor a task
|
|
750
|
+
* name in `subject`). Names are today's names.
|
|
751
|
+
*/
|
|
752
|
+
interface ReplacementItemDisplay {
|
|
753
|
+
placeKind: ReplacementPlaceKind | string;
|
|
754
|
+
placeVisible: boolean;
|
|
755
|
+
recordName: string | null;
|
|
756
|
+
workspaceName: string | null;
|
|
757
|
+
levelName: string | null;
|
|
758
|
+
moduleName: string | null;
|
|
759
|
+
/** Request type of an approval or request, e.g. "Update project". */
|
|
760
|
+
processName: string | null;
|
|
761
|
+
subjectKind: ReplacementSubjectKind | string | null;
|
|
762
|
+
/** Field label, team role, step, task (visible only) or list name. */
|
|
763
|
+
subject: string | null;
|
|
764
|
+
templateId: number | null;
|
|
765
|
+
levelId: number | null;
|
|
766
|
+
levelDataId: number | null;
|
|
767
|
+
moduleId: number | null;
|
|
768
|
+
moduleDataId: number | null;
|
|
769
|
+
requestId: number | null;
|
|
770
|
+
escalationInstanceId: number | null;
|
|
771
|
+
scheduleItemId: number | null;
|
|
772
|
+
}
|
|
773
|
+
/** `nextAfterItemId` null is the last page. */
|
|
774
|
+
interface ReplacementResultsPage {
|
|
775
|
+
operationId: string;
|
|
776
|
+
status: ReplacementStatus | string;
|
|
777
|
+
items: ReplacementItem[];
|
|
778
|
+
nextAfterItemId: number | null;
|
|
779
|
+
}
|
|
780
|
+
interface RemainingWork {
|
|
781
|
+
userId: string;
|
|
782
|
+
handoverInProgress: boolean;
|
|
783
|
+
operationId: string | null;
|
|
784
|
+
teamRoles: number;
|
|
785
|
+
pendingSteps: number;
|
|
786
|
+
openRequests: number;
|
|
787
|
+
escalationSteps: number;
|
|
788
|
+
scheduleAssignments: number;
|
|
789
|
+
total: number;
|
|
790
|
+
safeToRemove: boolean;
|
|
791
|
+
}
|
|
792
|
+
type ReplacementListFilter = 'All' | 'Active' | 'History';
|
|
793
|
+
interface ReplacementListRequest {
|
|
794
|
+
filter: ReplacementListFilter;
|
|
795
|
+
/** The previous page's `nextAfterOperationId`. Keep the filters unchanged. */
|
|
796
|
+
afterOperationId?: string | null;
|
|
797
|
+
sourceUserId?: string | null;
|
|
798
|
+
pageSize?: number;
|
|
799
|
+
}
|
|
800
|
+
/** Newest first; `nextAfterOperationId` null is the last page. */
|
|
801
|
+
interface ReplacementsPage {
|
|
802
|
+
items: ReplacementSummary[];
|
|
803
|
+
nextAfterOperationId: string | null;
|
|
804
|
+
}
|
|
805
|
+
/** The server is working on these: the screens poll them. */
|
|
806
|
+
declare const ACTIVE_STATUSES: readonly string[];
|
|
807
|
+
/** Finished on its own. */
|
|
808
|
+
declare const FINISHED_STATUSES: readonly string[];
|
|
809
|
+
/** Nothing else will happen. */
|
|
810
|
+
declare const CLOSED_STATUSES: readonly string[];
|
|
811
|
+
/** Results that an admin has to finish by hand. */
|
|
812
|
+
declare const MANUAL_RESULTS: readonly string[];
|
|
813
|
+
/** The number of items an admin has to finish by hand. */
|
|
814
|
+
declare function manualCountOf(summary: ReplacementSummary): number;
|
|
815
|
+
/**
|
|
816
|
+
* Why a replacement stopped: the backend adds the stop code to
|
|
817
|
+
* `warningCodes` (a `UserReplacement_*` failure key, or
|
|
818
|
+
* `CollectorAuthorizationUnavailable`).
|
|
819
|
+
*/
|
|
820
|
+
declare function stopCodeOf(summary: ReplacementSummary): string | null;
|
|
821
|
+
/**
|
|
822
|
+
* The text key of the Stop / Close confirmation. Nothing moves while the
|
|
823
|
+
* server is still finding work, so stopping then changes nothing.
|
|
824
|
+
*/
|
|
825
|
+
declare function cancelConfirmKey(status: string): string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* The backend returns stable codes (failure keys, reasons, results, stores)
|
|
829
|
+
* and never translated text. Known codes are translated; an unknown one is
|
|
830
|
+
* shown as it is, never hidden.
|
|
831
|
+
*/
|
|
832
|
+
declare class ReplacementText {
|
|
833
|
+
private readonly transloco;
|
|
834
|
+
constructor(transloco: TranslocoService);
|
|
835
|
+
t(key: string, params?: Record<string, unknown>): string;
|
|
836
|
+
/** Translation of `<group>.<code>`, or `fallback` when it has none. */
|
|
837
|
+
code(group: string, code: string | null | undefined, fallback?: string): string;
|
|
838
|
+
/** A failure key from the envelope's `message`, or the generic text. */
|
|
839
|
+
error(key: string | null | undefined): string;
|
|
840
|
+
/** `property-values` → the translated label, else "Property values". */
|
|
841
|
+
store(id: string): string;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
interface ReplacementRow {
|
|
845
|
+
operationId: string;
|
|
846
|
+
sourceName: string;
|
|
847
|
+
sourceInitials: string;
|
|
848
|
+
successorName: string;
|
|
849
|
+
status: string;
|
|
850
|
+
statusLabel: string;
|
|
851
|
+
statusClass: string;
|
|
852
|
+
detail: string;
|
|
853
|
+
createdAt: string | null;
|
|
854
|
+
replacement: ReplacementSummary;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Every replacement in this application, open ones first by default: the way
|
|
858
|
+
* back to one after its drawer was closed, and where an abandoned one is
|
|
859
|
+
* closed. The only row action besides Open comes from `canCancel`.
|
|
860
|
+
*
|
|
861
|
+
* One replacement opens in a drawer over the list. Its id lives in the URL
|
|
862
|
+
* (`?id=`), so a refresh or a link from the Users page opens it again.
|
|
863
|
+
*/
|
|
864
|
+
declare class UserReplacements implements OnInit {
|
|
865
|
+
private readonly api;
|
|
866
|
+
private readonly facade;
|
|
867
|
+
private readonly router;
|
|
868
|
+
private readonly route;
|
|
869
|
+
private readonly confirmation;
|
|
870
|
+
private readonly modal;
|
|
871
|
+
private readonly toast;
|
|
872
|
+
private readonly transloco;
|
|
873
|
+
private readonly destroyRef;
|
|
874
|
+
readonly text: ReplacementText;
|
|
875
|
+
/** The drawer now open, and the replacement it shows. */
|
|
876
|
+
private drawer;
|
|
877
|
+
readonly personCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
878
|
+
readonly statusCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
879
|
+
readonly startedCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
880
|
+
private readonly users;
|
|
881
|
+
private readonly language;
|
|
882
|
+
/** Bumped on every reload so an older page arriving late is dropped. */
|
|
883
|
+
private request;
|
|
884
|
+
/**
|
|
885
|
+
* All by default: most replacements finish within seconds, so "Open" alone
|
|
886
|
+
* would look empty right after one is started.
|
|
887
|
+
*/
|
|
888
|
+
readonly filter: _angular_core.WritableSignal<ReplacementListFilter>;
|
|
889
|
+
readonly replacements: _angular_core.WritableSignal<ReplacementSummary[]>;
|
|
890
|
+
readonly nextCursor: _angular_core.WritableSignal<string | null>;
|
|
891
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
892
|
+
readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
893
|
+
readonly error: _angular_core.WritableSignal<string | null>;
|
|
894
|
+
readonly workingIds: _angular_core.WritableSignal<string[]>;
|
|
895
|
+
readonly tabs: _angular_core.Signal<{
|
|
896
|
+
label: string;
|
|
897
|
+
value: string;
|
|
898
|
+
}[]>;
|
|
899
|
+
readonly rows: _angular_core.Signal<ReplacementRow[]>;
|
|
900
|
+
readonly columns: _angular_core.Signal<ColumnDef[]>;
|
|
901
|
+
readonly rowActions: _angular_core.Signal<TableAction[]>;
|
|
902
|
+
readonly emptyTitle: _angular_core.Signal<string>;
|
|
903
|
+
readonly emptyDescription: _angular_core.Signal<string>;
|
|
904
|
+
ngOnInit(): void;
|
|
905
|
+
setFilter(filter: ReplacementListFilter | string): void;
|
|
906
|
+
reload(): Promise<void>;
|
|
907
|
+
loadMore(): Promise<void>;
|
|
908
|
+
/** Open a replacement in the drawer, through the URL. */
|
|
909
|
+
open(operationId: string): void;
|
|
910
|
+
private syncDrawer;
|
|
911
|
+
/** Close the drawer without touching the URL (the caller owns it). */
|
|
912
|
+
private dismissDrawer;
|
|
913
|
+
private close;
|
|
914
|
+
private doClose;
|
|
915
|
+
private refreshActive;
|
|
916
|
+
private replace;
|
|
917
|
+
private detailOf;
|
|
918
|
+
private nameOf;
|
|
919
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserReplacements, never>;
|
|
920
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserReplacements, "mt-user-replacements", never, {}, {}, never, never, true, never>;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* HTTP calls of the Replace by flow. The flow's state is page-local (one
|
|
925
|
+
* replacement on one screen, the list on another), so the screens keep it in
|
|
926
|
+
* signals instead of the shared users-groups store.
|
|
927
|
+
*
|
|
928
|
+
* One confirmation (`start`) is all a screen sends: the server finds the work
|
|
929
|
+
* and hands it over in the background. The old preview routes (collect,
|
|
930
|
+
* accept, execute, takeover), the capabilities list and the successor check
|
|
931
|
+
* are gone and must not be called.
|
|
932
|
+
*/
|
|
933
|
+
declare class UserReplacementService {
|
|
934
|
+
private readonly http;
|
|
935
|
+
private available$;
|
|
936
|
+
/**
|
|
937
|
+
* Whether this backend runs replacements: one small read of the list, once
|
|
938
|
+
* per session. False when the route is missing (an older backend) or
|
|
939
|
+
* refused (no CONTROL_PANEL, a delegation session): the screens then hide
|
|
940
|
+
* the feature. A failure is not cached, so a later screen asks again.
|
|
941
|
+
*/
|
|
942
|
+
available(): Observable<boolean>;
|
|
943
|
+
/**
|
|
944
|
+
* The one confirmation: authorizes the background handover. Success means
|
|
945
|
+
* it was recorded, not that anything moved yet.
|
|
946
|
+
*/
|
|
947
|
+
start(request: StartReplacementRequest): Observable<ReplacementSummary>;
|
|
948
|
+
/** Current and past replacements of this application, newest first. */
|
|
949
|
+
list(request: ReplacementListRequest): Observable<ReplacementsPage>;
|
|
950
|
+
get(operationId: string): Observable<ReplacementSummary>;
|
|
951
|
+
/** One page of items with their results; page size 1–200. */
|
|
952
|
+
results(operationId: string, afterItemId: number, pageSize?: number): Observable<ReplacementResultsPage>;
|
|
953
|
+
/**
|
|
954
|
+
* Stop or close. What was handed over stays handed over. A 409
|
|
955
|
+
* `UserReplacement_ProcessingBusy` means it did NOT stop: the server was
|
|
956
|
+
* in the middle of a step; refresh and let the admin try again.
|
|
957
|
+
*/
|
|
958
|
+
cancel(operationId: string): Observable<ReplacementSummary>;
|
|
959
|
+
remainingWork(userId: string): Observable<RemainingWork>;
|
|
960
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserReplacementService, never>;
|
|
961
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<UserReplacementService>;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export { ACTIVE_STATUSES, AddUserToGroup, CLOSED_STATUSES, ClearSelectedGroup, CreateGroup, CreateUser, DeleteGroup, DeleteUser, DeleteUserFromGroup, FINISHED_STATUSES, GetGroup, GetGroupSummary, GetGroups, GetUser, GetUserLockStatuses, GetUserSummary, GetUsers, GroupForm, Groups, LinkUserToApplication, MANUAL_RESULTS, ResetUserPassword, USER_REPLACEMENT_OPERATION_CONTRACT, UnlockUser, UpdateGroup, UpdateUser, UserForm, UserReplacementService, UserReplacements, Users, UsersGroups, UsersGroupsActionKey, UsersGroupsFacade, UsersGroupsState, cancelConfirmKey, manualCountOf, stopCodeOf };
|
|
965
|
+
export type { Accessibility, ApiDateValue, Group, GroupAccessSummary, IdentityPrincipalRuntimeImpact, IdentityPrincipalUsage, IdentityPrincipalUsageSummary, IdentityPrincipalUsageWarning, ItemDecision, ItemResult, Permission, PermissionScope, RemainingWork, ReplacementItem, ReplacementItemDisplay, ReplacementListFilter, ReplacementListRequest, ReplacementPlaceKind, ReplacementResultsPage, ReplacementStatus, ReplacementSubjectKind, ReplacementSummary, ReplacementsPage, ResetUserPasswordPayload, Role, RoleLevelDataAssignment, RoleScope, RoleScopeLevel, RoleScopeModule, StartReplacementRequest, TranslatedField, User, UserLockStatus, UserReference, UserSummary, UserUnlockResponse, UsersGroupsStateModel };
|