@hmcts/ccd-case-ui-toolkit 7.3.74-user-by-idam-rework → 7.3.75-inconsistent-validation-error-message

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
@@ -4185,16 +4185,20 @@ interface Caseworker {
4185
4185
  idamId: string;
4186
4186
  email: string;
4187
4187
  location: Location;
4188
- roleCategories: string[];
4188
+ roleCategory: string;
4189
4189
  service?: string;
4190
4190
  }
4191
+ interface CaseworkersByService {
4192
+ service: string;
4193
+ caseworkers: Caseworker[];
4194
+ }
4191
4195
 
4192
4196
  declare class CaseworkerService {
4193
4197
  private readonly http;
4194
4198
  private readonly appConfig;
4195
4199
  private readonly errorService;
4196
4200
  constructor(http: HttpService, appConfig: AbstractAppConfig, errorService: HttpErrorService);
4197
- getUserByIdamId(idamId: string): Observable<Caseworker>;
4201
+ getCaseworkers(serviceId: any): Observable<CaseworkersByService[]>;
4198
4202
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseworkerService, never>;
4199
4203
  static ɵprov: i0.ɵɵInjectableDeclaration<CaseworkerService>;
4200
4204
  }
@@ -6663,8 +6667,8 @@ declare class CaseAccessUtils {
6663
6667
  static readonly CTSC_ROLE = "ctsc";
6664
6668
  static readonly CTSC_ROLE_CATEGORY = "CTSC";
6665
6669
  static readonly CTSC_ROLE_NAME = "ctsc";
6666
- getMappedRoleCategories(roles?: string[]): RoleCategory[];
6667
- roleHasKeyword(keyword: string, roleWords: string[]): boolean;
6670
+ getMappedRoleCategory(roles?: string[], roleCategories?: string[]): RoleCategory;
6671
+ roleOrCategoryExists(roleKeyword: string, roleCategory: string, roleKeywords: string[], roleCategories: string[]): boolean;
6668
6672
  getAMRoleName(accessType: string, aMRole: RoleCategory): string;
6669
6673
  getAMPayload(assignerId: string, actorId: string, roleName: string, roleCategory: RoleCategory, grantType: RoleGrantTypeCategory, caseId: string, details: ChallengedAccessRequest | SpecificAccessRequest, beginTime?: Date, endTime?: Date, isNew?: boolean): RoleRequestPayload;
6670
6674
  }