@hmcts/rpx-xui-common-lib 3.2.16 → 3.2.17-pofcc-156

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/index.d.ts CHANGED
@@ -296,6 +296,7 @@ declare enum PersonRole {
296
296
  LEGAL_OPERATIONS = "Legal Ops",
297
297
  ADMIN = "Admin",
298
298
  CTSC = "CTSC",
299
+ ENFORCEMENT = "Enforcement",
299
300
  ALL = "All"
300
301
  }
301
302
  declare enum RoleCategory {
@@ -305,8 +306,16 @@ declare enum RoleCategory {
305
306
  CTSC = "CTSC",
306
307
  PROFESSIONAL = "PROFESSIONAL",
307
308
  CITIZEN = "CITIZEN",
309
+ ENFORCEMENT = "ENFORCEMENT",
308
310
  ALL = "ALL"
309
311
  }
312
+ declare function getRoleCategoryTitle(roleCategory: RoleCategory): string;
313
+ declare function getRoleCategoryForWorkAllocation(personRole: PersonRole): RoleCategory | null;
314
+ declare function getRoleCategory(personRole: PersonRole): RoleCategory;
315
+ declare function getPersonRole(roleCategories: string[]): PersonRole;
316
+ declare function getPersonRoleForAllocateRole(roleCategory: RoleCategory): PersonRole | null;
317
+ declare function getPersonRoleForTaskAssignment(roleCategory: RoleCategory): PersonRole;
318
+ declare function getPersonRoleForWorkAllocation(roleCategory: RoleCategory): PersonRole;
310
319
 
311
320
  type FilterFieldType = 'group-title' | 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'find-work-type' | 'checkbox-large' | 'find-service' | 'text-input' | 'email-input' | 'group-select' | 'nested-checkbox' | 'find-task-name';
312
321
  type FilterPersistence = 'local' | 'session' | 'memory';
@@ -1524,7 +1533,9 @@ declare class FindAPersonService {
1524
1533
  mapCaseworkers(caseworkers: Caseworker[], roleCategory: RoleCategory): Person[];
1525
1534
  searchInCaseworkers(caseworkers: Caseworker[], searchOptions: SearchOptions): Person[];
1526
1535
  searchJudicial(value: string, serviceId: string): Observable<JudicialUserModel[]>;
1527
- private setDomain;
1536
+ findByPersonRole(searchTerm: string, personRole: PersonRole, selectedPersons: Person[], services: string, userIncluded?: boolean, assignedUser?: string | string[]): Observable<Person[]>;
1537
+ private findJudicialOrCTSCPeople;
1538
+ private findCaseworkersOrAdminsOrCtsc;
1528
1539
  static ɵfac: i0.ɵɵFactoryDeclaration<FindAPersonService, never>;
1529
1540
  static ɵprov: i0.ɵɵInjectableDeclaration<FindAPersonService>;
1530
1541
  }
@@ -2079,5 +2090,5 @@ declare function radioGroupValidator(): ValidatorFn;
2079
2090
  declare const windowToken: InjectionToken<unknown>;
2080
2091
  declare function windowProvider(): Window & typeof globalThis;
2081
2092
 
2082
- export { AccessibilityComponent, AddressMessageEnum, AddressModel, AddressOption, AddressService, AnonymousFeatureUser, BadgeColour, BookingCheckType, COMMON_COMPONENTS, CapitalizePipe, CheckboxListComponent, ContactDetailsComponent, CookieBannerComponent, CookieService, DateBadgeColour, DueDateComponent, ExuiCommonLibModule, ExuiPageWrapperComponent, FeatureToggleDirective, FeatureToggleGuard, FeatureToggleService, FilterService, FindLocationComponent, FindPersonComponent, FindServiceComponent, FindTaskNameComponent, FindWorkTypeComponent, GOV_UI_COMPONENTS, GenericFilterComponent, GoogleAnalyticsService, GoogleTagManagerService, GovUiService, GovUkCheckboxComponent, GovUkCheckboxesComponent, GovUkDateComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, GovUkFileUploadComponent, GovUkFormGroupWrapperComponent, GovUkInputComponent, GovUkLabelComponent, GovUkRadioComponent, GovUkRadiosComponent, GovUkSelectComponent, GovUkTextareaComponent, GovukTableColumnConfig, GovukTableComponent, HasLoadingState, HmctsBannerComponent, HmctsErrorSummaryComponent, HmctsIdentityBarComponent, HmctsMainWrapperComponent, HmctsPaginationComponent, HmctsPrimaryNavigationComponent, HmctsSessionDialogComponent, HmctsSubNavigationComponent, InviteUserFormComponent, InviteUserPermissionComponent, LaunchDarklyService, LetContext, LetDirective, LoadingService, LoadingSpinnerComponent, LocationService, LoggedInFeatureUser, ManageSessionServices, PaginationComponent, PersonRole, RadioFilterFieldConfig, RefDataService, RemoveHostDirective, RoleCategory, RoleGuard, RoleMatching, RoleService, SECONDS_IN_A_DAY, SearchJudicialsComponent, SearchLocationComponent, SearchServiceComponent, SearchVenueComponent, SearchWorkTypeComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseComponent, ShareCaseConfirmComponent, SharedCaseErrorMessages, TabComponent, TaskService, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, TimeoutNotificationsService, UserDetailsComponent, UserListComponent, UserSelectComponent, WriteAddressFieldComponent, WriteAddressInputsComponent, checkboxesBeCheckedValidator, dateValidator, radioGroupValidator, windowProvider, windowToken };
2093
+ export { AccessibilityComponent, AddressMessageEnum, AddressModel, AddressOption, AddressService, AnonymousFeatureUser, BadgeColour, BookingCheckType, COMMON_COMPONENTS, CapitalizePipe, CheckboxListComponent, ContactDetailsComponent, CookieBannerComponent, CookieService, DateBadgeColour, DueDateComponent, ExuiCommonLibModule, ExuiPageWrapperComponent, FeatureToggleDirective, FeatureToggleGuard, FeatureToggleService, FilterService, FindLocationComponent, FindPersonComponent, FindServiceComponent, FindTaskNameComponent, FindWorkTypeComponent, GOV_UI_COMPONENTS, GenericFilterComponent, GoogleAnalyticsService, GoogleTagManagerService, GovUiService, GovUkCheckboxComponent, GovUkCheckboxesComponent, GovUkDateComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, GovUkFileUploadComponent, GovUkFormGroupWrapperComponent, GovUkInputComponent, GovUkLabelComponent, GovUkRadioComponent, GovUkRadiosComponent, GovUkSelectComponent, GovUkTextareaComponent, GovukTableColumnConfig, GovukTableComponent, HasLoadingState, HmctsBannerComponent, HmctsErrorSummaryComponent, HmctsIdentityBarComponent, HmctsMainWrapperComponent, HmctsPaginationComponent, HmctsPrimaryNavigationComponent, HmctsSessionDialogComponent, HmctsSubNavigationComponent, InviteUserFormComponent, InviteUserPermissionComponent, LaunchDarklyService, LetContext, LetDirective, LoadingService, LoadingSpinnerComponent, LocationService, LoggedInFeatureUser, ManageSessionServices, PaginationComponent, PersonRole, RadioFilterFieldConfig, RefDataService, RemoveHostDirective, RoleCategory, RoleGuard, RoleMatching, RoleService, SECONDS_IN_A_DAY, SearchJudicialsComponent, SearchLocationComponent, SearchServiceComponent, SearchVenueComponent, SearchWorkTypeComponent, SelectedCaseComponent, SelectedCaseConfirmComponent, SelectedCaseListComponent, ServiceMessageComponent, ServiceMessagesComponent, ShareCaseComponent, ShareCaseConfirmComponent, SharedCaseErrorMessages, TabComponent, TaskService, TcConfirmComponent, TcDisplayHtmlComponent, TcDisplayPlainComponent, TermsAndConditionsComponent, TimeoutNotificationsService, UserDetailsComponent, UserListComponent, UserSelectComponent, WriteAddressFieldComponent, WriteAddressInputsComponent, checkboxesBeCheckedValidator, dateValidator, getPersonRole, getPersonRoleForAllocateRole, getPersonRoleForTaskAssignment, getPersonRoleForWorkAllocation, getRoleCategory, getRoleCategoryForWorkAllocation, getRoleCategoryTitle, radioGroupValidator, windowProvider, windowToken };
2083
2094
  export type { Caseworker, CaseworkersByService, CheckboxesModel, ContactDetailsDataModel, ErrorMessagesModel, FeatureUser, FilterConfig, FilterConfigOption, FilterError, FilterFieldConfig, FilterFieldOption, FilterFieldType, FilterPersistence, FilterSetting, GovUiConfigModel, GroupOptions, HmctsErrorMessage, IdleConfigModel, JudicialUserModel, LocationByEPIMMSModel, LocationModel, LocationsByService, Pagination, Person, RefDataHMCTSService, RefDataRegion, Role, Roles, SearchOptions, SharedCase, SubNavigation, TCDocument, TabItem, TimeoutNotificationConfig, User, UserAccessType, UserDetails, WorkType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "3.2.16",
3
+ "version": "3.2.17-pofcc-156",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.18",
6
6
  "@angular/cdk": "16.2.0",