@gen-epix/ui 1.4.0 → 1.5.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +146 -87
  2. package/dist/index.js +86728 -87745
  3. package/package.json +60 -59
package/dist/index.d.ts CHANGED
@@ -756,7 +756,7 @@ export declare class AuthorizationManager {
756
756
  set apiPermissions(permissions: ApiPermission[]);
757
757
  get apiPermissions(): ApiPermission[];
758
758
  static get instance(): AuthorizationManager;
759
- doesUserHavePermissionForRoute(route: MyNonIndexRouteObject, orAnyOfItsSubRoutes?: boolean): boolean;
759
+ doesUserHavePermissionForRoute(route: MyNonIndexRouteObject): boolean;
760
760
  hasRole(role: Role): boolean;
761
761
  isRoot(): boolean;
762
762
  doesUserHavePermission(permissions: ApiPermission[]): boolean;
@@ -3582,12 +3582,6 @@ export declare interface CaseSetRights {
3582
3582
  * @interface CaseSetStat
3583
3583
  */
3584
3584
  export declare interface CaseSetStat {
3585
- /**
3586
- * The unique identifier for the obj.
3587
- * @type {string}
3588
- * @memberof CaseSetStat
3589
- */
3590
- 'id'?: string | null;
3591
3585
  /**
3592
3586
  * The ID of the case set.
3593
3587
  * @type {string}
@@ -4210,12 +4204,6 @@ export declare interface CaseTypeShareAbac {
4210
4204
  * @interface CaseTypeStat
4211
4205
  */
4212
4206
  export declare interface CaseTypeStat {
4213
- /**
4214
- * The unique identifier for the obj.
4215
- * @type {string}
4216
- * @memberof CaseTypeStat
4217
- */
4218
- 'id'?: string | null;
4219
4207
  /**
4220
4208
  * The ID of the case type.
4221
4209
  * @type {string}
@@ -4440,84 +4428,84 @@ export declare const colTypePresentationValues: Record<ColType, string>;
4440
4428
  * @ {string}
4441
4429
  */
4442
4430
  export declare const CommandName: {
4443
- readonly CaseDataCollectionLinkCrudCommand: "CaseDataCollectionLinkCrudCommand";
4431
+ readonly ConceptCrudCommand: "ConceptCrudCommand";
4432
+ readonly UserInvitationCrudCommand: "UserInvitationCrudCommand";
4433
+ readonly RegionSetCrudCommand: "RegionSetCrudCommand";
4434
+ readonly CaseTypeColSetMemberCrudCommand: "CaseTypeColSetMemberCrudCommand";
4435
+ readonly SubjectCrudCommand: "SubjectCrudCommand";
4436
+ readonly CasesCreateCommand: "CasesCreateCommand";
4437
+ readonly ConceptSetMemberCrudCommand: "ConceptSetMemberCrudCommand";
4438
+ readonly RetrieveCaseTypeStatsCommand: "RetrieveCaseTypeStatsCommand";
4439
+ readonly CaseTypeColSetCrudCommand: "CaseTypeColSetCrudCommand";
4440
+ readonly CaseSetMemberCrudCommand: "CaseSetMemberCrudCommand";
4444
4441
  readonly ConceptSetCrudCommand: "ConceptSetCrudCommand";
4445
- readonly ConceptSetConceptUpdateAssociationCommand: "ConceptSetConceptUpdateAssociationCommand";
4446
- readonly SiteCrudCommand: "SiteCrudCommand";
4447
- readonly UserCrudCommand: "UserCrudCommand";
4448
- readonly EtiologyCrudCommand: "EtiologyCrudCommand";
4442
+ readonly CaseCrudCommand: "CaseCrudCommand";
4449
4443
  readonly RetrieveContainingRegionCommand: "RetrieveContainingRegionCommand";
4450
- readonly RegionRelationCrudCommand: "RegionRelationCrudCommand";
4444
+ readonly TreeAlgorithmClassCrudCommand: "TreeAlgorithmClassCrudCommand";
4451
4445
  readonly DiseaseCrudCommand: "DiseaseCrudCommand";
4452
- readonly RetrieveCaseTypeStatsCommand: "RetrieveCaseTypeStatsCommand";
4453
- readonly DimCrudCommand: "DimCrudCommand";
4454
- readonly CaseTypeCrudCommand: "CaseTypeCrudCommand";
4455
- readonly RetrievePhylogeneticTreeBySequencesCommand: "RetrievePhylogeneticTreeBySequencesCommand";
4456
- readonly DataCollectionSetMemberCrudCommand: "DataCollectionSetMemberCrudCommand";
4457
- readonly UserInvitationCrudCommand: "UserInvitationCrudCommand";
4458
- readonly OrganizationAdminPolicyCrudCommand: "OrganizationAdminPolicyCrudCommand";
4459
- readonly RegionCrudCommand: "RegionCrudCommand";
4446
+ readonly RetrieveCompleteCaseTypeCommand: "RetrieveCompleteCaseTypeCommand";
4460
4447
  readonly DataCollectionSetDataCollectionUpdateAssociationCommand: "DataCollectionSetDataCollectionUpdateAssociationCommand";
4448
+ readonly RegionCrudCommand: "RegionCrudCommand";
4449
+ readonly UserCrudCommand: "UserCrudCommand";
4450
+ readonly CaseSetCategoryCrudCommand: "CaseSetCategoryCrudCommand";
4451
+ readonly OrganizationSetOrganizationUpdateAssociationCommand: "OrganizationSetOrganizationUpdateAssociationCommand";
4461
4452
  readonly DataCollectionCrudCommand: "DataCollectionCrudCommand";
4453
+ readonly RetrieveOrganizationContactCommand: "RetrieveOrganizationContactCommand";
4454
+ readonly CaseTypeCrudCommand: "CaseTypeCrudCommand";
4455
+ readonly CaseTypeColCrudCommand: "CaseTypeColCrudCommand";
4456
+ readonly DimCrudCommand: "DimCrudCommand";
4462
4457
  readonly GeneticDistanceProtocolCrudCommand: "GeneticDistanceProtocolCrudCommand";
4463
- readonly CaseSetCreateCommand: "CaseSetCreateCommand";
4464
- readonly TreeAlgorithmClassCrudCommand: "TreeAlgorithmClassCrudCommand";
4465
- readonly CaseCrudCommand: "CaseCrudCommand";
4466
- readonly SubjectIdentifierCrudCommand: "SubjectIdentifierCrudCommand";
4467
4458
  readonly RetrieveCaseSetStatsCommand: "RetrieveCaseSetStatsCommand";
4468
- readonly RetrieveOrganizationAdminNameEmailsCommand: "RetrieveOrganizationAdminNameEmailsCommand";
4459
+ readonly TreeAlgorithmCrudCommand: "TreeAlgorithmCrudCommand";
4460
+ readonly CaseSetCrudCommand: "CaseSetCrudCommand";
4461
+ readonly UpdateUserOwnOrganizationCommand: "UpdateUserOwnOrganizationCommand";
4462
+ readonly ColCrudCommand: "ColCrudCommand";
4463
+ readonly CaseTypeColSetCaseTypeColUpdateAssociationCommand: "CaseTypeColSetCaseTypeColUpdateAssociationCommand";
4464
+ readonly UserShareCasePolicyCrudCommand: "UserShareCasePolicyCrudCommand";
4465
+ readonly OutageCrudCommand: "OutageCrudCommand";
4466
+ readonly DiseaseEtiologicalAgentUpdateAssociationCommand: "DiseaseEtiologicalAgentUpdateAssociationCommand";
4467
+ readonly RetrieveOwnPermissionsCommand: "RetrieveOwnPermissionsCommand";
4468
+ readonly CaseSetCreateCommand: "CaseSetCreateCommand";
4469
4469
  readonly UserAccessCasePolicyCrudCommand: "UserAccessCasePolicyCrudCommand";
4470
- readonly OrganizationSetMemberCrudCommand: "OrganizationSetMemberCrudCommand";
4470
+ readonly OrganizationAdminPolicyCrudCommand: "OrganizationAdminPolicyCrudCommand";
4471
+ readonly OrganizationSetCrudCommand: "OrganizationSetCrudCommand";
4472
+ readonly CaseTypeSetCaseTypeUpdateAssociationCommand: "CaseTypeSetCaseTypeUpdateAssociationCommand";
4473
+ readonly ConceptSetConceptUpdateAssociationCommand: "ConceptSetConceptUpdateAssociationCommand";
4474
+ readonly RetrievePhylogeneticTreeBySequencesCommand: "RetrievePhylogeneticTreeBySequencesCommand";
4475
+ readonly RetrieveCasesByIdCommand: "RetrieveCasesByIdCommand";
4476
+ readonly EtiologyCrudCommand: "EtiologyCrudCommand";
4471
4477
  readonly RetrieveOutagesCommand: "RetrieveOutagesCommand";
4478
+ readonly InviteUserCommand: "InviteUserCommand";
4479
+ readonly RetrieveOrganizationAdminNameEmailsCommand: "RetrieveOrganizationAdminNameEmailsCommand";
4480
+ readonly CaseSetDataCollectionLinkCrudCommand: "CaseSetDataCollectionLinkCrudCommand";
4481
+ readonly EtiologicalAgentCrudCommand: "EtiologicalAgentCrudCommand";
4482
+ readonly CaseTypeSetMemberCrudCommand: "CaseTypeSetMemberCrudCommand";
4472
4483
  readonly RegisterInvitedUserCommand: "RegisterInvitedUserCommand";
4473
- readonly CaseTypeColSetCrudCommand: "CaseTypeColSetCrudCommand";
4474
- readonly UpdateUserOwnOrganizationCommand: "UpdateUserOwnOrganizationCommand";
4475
- readonly RetrieveCaseSetRightsCommand: "RetrieveCaseSetRightsCommand";
4484
+ readonly CaseTypeSetCrudCommand: "CaseTypeSetCrudCommand";
4485
+ readonly ContactCrudCommand: "ContactCrudCommand";
4476
4486
  readonly OrganizationCrudCommand: "OrganizationCrudCommand";
4477
- readonly CaseSetCrudCommand: "CaseSetCrudCommand";
4487
+ readonly RetrieveCaseSetRightsCommand: "RetrieveCaseSetRightsCommand";
4488
+ readonly CaseTypeSetCategoryCrudCommand: "CaseTypeSetCategoryCrudCommand";
4489
+ readonly RetrievePhylogeneticTreeByCasesCommand: "RetrievePhylogeneticTreeByCasesCommand";
4490
+ readonly SiteCrudCommand: "SiteCrudCommand";
4491
+ readonly GetIdentityProvidersCommand: "GetIdentityProvidersCommand";
4492
+ readonly RetrieveAlleleProfileCommand: "RetrieveAlleleProfileCommand";
4493
+ readonly DataCollectionSetCrudCommand: "DataCollectionSetCrudCommand";
4494
+ readonly RetrieveGeneticSequenceByCaseCommand: "RetrieveGeneticSequenceByCaseCommand";
4495
+ readonly DataCollectionSetMemberCrudCommand: "DataCollectionSetMemberCrudCommand";
4496
+ readonly UpdateUserCommand: "UpdateUserCommand";
4478
4497
  readonly RetrieveGeneticSequenceByIdCommand: "RetrieveGeneticSequenceByIdCommand";
4479
- readonly CaseTypeSetMemberCrudCommand: "CaseTypeSetMemberCrudCommand";
4480
- readonly ConceptSetMemberCrudCommand: "ConceptSetMemberCrudCommand";
4481
- readonly CaseSetDataCollectionLinkCrudCommand: "CaseSetDataCollectionLinkCrudCommand";
4482
- readonly RegionSetCrudCommand: "RegionSetCrudCommand";
4483
- readonly ContactCrudCommand: "ContactCrudCommand";
4498
+ readonly RegionRelationCrudCommand: "RegionRelationCrudCommand";
4484
4499
  readonly RetrieveCasesByQueryCommand: "RetrieveCasesByQueryCommand";
4485
- readonly DiseaseEtiologicalAgentUpdateAssociationCommand: "DiseaseEtiologicalAgentUpdateAssociationCommand";
4486
- readonly UserShareCasePolicyCrudCommand: "UserShareCasePolicyCrudCommand";
4487
- readonly CaseSetCategoryCrudCommand: "CaseSetCategoryCrudCommand";
4500
+ readonly CaseDataCollectionLinkCrudCommand: "CaseDataCollectionLinkCrudCommand";
4501
+ readonly RetrieveCaseRightsCommand: "RetrieveCaseRightsCommand";
4488
4502
  readonly OrganizationAccessCasePolicyCrudCommand: "OrganizationAccessCasePolicyCrudCommand";
4489
- readonly CaseSetMemberCrudCommand: "CaseSetMemberCrudCommand";
4490
- readonly RetrieveGeneticSequenceByCaseCommand: "RetrieveGeneticSequenceByCaseCommand";
4491
- readonly RetrieveOrganizationContactCommand: "RetrieveOrganizationContactCommand";
4492
- readonly GetIdentityProvidersCommand: "GetIdentityProvidersCommand";
4493
4503
  readonly CaseSetStatusCrudCommand: "CaseSetStatusCrudCommand";
4494
- readonly EtiologicalAgentCrudCommand: "EtiologicalAgentCrudCommand";
4495
- readonly IdentifierIssuerCrudCommand: "IdentifierIssuerCrudCommand";
4496
- readonly CaseTypeColSetMemberCrudCommand: "CaseTypeColSetMemberCrudCommand";
4497
- readonly UpdateUserCommand: "UpdateUserCommand";
4498
- readonly CaseTypeSetCrudCommand: "CaseTypeSetCrudCommand";
4499
- readonly RetrieveOwnPermissionsCommand: "RetrieveOwnPermissionsCommand";
4500
- readonly OrganizationSetOrganizationUpdateAssociationCommand: "OrganizationSetOrganizationUpdateAssociationCommand";
4501
- readonly RetrieveAlleleProfileCommand: "RetrieveAlleleProfileCommand";
4502
- readonly CaseTypeColCrudCommand: "CaseTypeColCrudCommand";
4503
- readonly CaseTypeColSetCaseTypeColUpdateAssociationCommand: "CaseTypeColSetCaseTypeColUpdateAssociationCommand";
4504
- readonly InviteUserCommand: "InviteUserCommand";
4505
- readonly OrganizationSetCrudCommand: "OrganizationSetCrudCommand";
4506
- readonly RetrievePhylogeneticTreeByCasesCommand: "RetrievePhylogeneticTreeByCasesCommand";
4507
- readonly RegionSetShapeCrudCommand: "RegionSetShapeCrudCommand";
4508
- readonly ColCrudCommand: "ColCrudCommand";
4509
- readonly CasesCreateCommand: "CasesCreateCommand";
4510
- readonly TreeAlgorithmCrudCommand: "TreeAlgorithmCrudCommand";
4511
- readonly RetrieveCaseRightsCommand: "RetrieveCaseRightsCommand";
4512
- readonly OutageCrudCommand: "OutageCrudCommand";
4513
- readonly RetrieveCasesByIdCommand: "RetrieveCasesByIdCommand";
4514
- readonly ConceptCrudCommand: "ConceptCrudCommand";
4515
- readonly RetrieveCompleteCaseTypeCommand: "RetrieveCompleteCaseTypeCommand";
4516
4504
  readonly OrganizationShareCasePolicyCrudCommand: "OrganizationShareCasePolicyCrudCommand";
4517
- readonly SubjectCrudCommand: "SubjectCrudCommand";
4518
- readonly CaseTypeSetCategoryCrudCommand: "CaseTypeSetCategoryCrudCommand";
4519
- readonly CaseTypeSetCaseTypeUpdateAssociationCommand: "CaseTypeSetCaseTypeUpdateAssociationCommand";
4520
- readonly DataCollectionSetCrudCommand: "DataCollectionSetCrudCommand";
4505
+ readonly OrganizationSetMemberCrudCommand: "OrganizationSetMemberCrudCommand";
4506
+ readonly SubjectIdentifierCrudCommand: "SubjectIdentifierCrudCommand";
4507
+ readonly RegionSetShapeCrudCommand: "RegionSetShapeCrudCommand";
4508
+ readonly IdentifierIssuerCrudCommand: "IdentifierIssuerCrudCommand";
4521
4509
  };
4522
4510
 
4523
4511
  export declare type CommandName = typeof CommandName[keyof typeof CommandName];
@@ -5005,7 +4993,7 @@ export declare class Configuration {
5005
4993
  * Gen-EpiX
5006
4994
  * Gen-EpiX is platform for visualizing and analyzing genomic epidemiology data. It has fine-grained access controls for collaboration between multiple organizations.
5007
4995
  *
5008
- * The version of the OpenAPI document: 0.1.7
4996
+ * The version of the OpenAPI document: 5.0.0
5009
4997
  * Contact: ids-bioinformatics@rivm.nl
5010
4998
  *
5011
4999
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5167,15 +5155,17 @@ export declare interface CreateCasesRequestBody {
5167
5155
 
5168
5156
  export declare const createdAtMetaDataKey: unique symbol;
5169
5157
 
5170
- export declare const createEpiStore: (kwArgs: CreateEpiStoreKwArgs) => Omit<StoreApi<EpiStore>, "persist"> & {
5158
+ export declare const createEpiStore: (kwArgs: CreateEpiStoreKwArgs) => Omit<StoreApi<EpiStore>, "setState" | "persist"> & {
5159
+ setState(partial: EpiStore | Partial<EpiStore> | ((state: EpiStore) => EpiStore | Partial<EpiStore>), replace?: false): unknown;
5160
+ setState(state: EpiStore | ((state: EpiStore) => EpiStore), replace: true): unknown;
5171
5161
  persist: {
5172
- setOptions: (options: Partial<PersistOptions<EpiStore, EpiStore>>) => void;
5162
+ setOptions: (options: Partial<PersistOptions<EpiStore, EpiStore, unknown>>) => void;
5173
5163
  clearStorage: () => void;
5174
5164
  rehydrate: () => Promise<void> | void;
5175
5165
  hasHydrated: () => boolean;
5176
5166
  onHydrate: (fn: (state: EpiStore) => void) => () => void;
5177
5167
  onFinishHydration: (fn: (state: EpiStore) => void) => () => void;
5178
- getOptions: () => Partial<PersistOptions<EpiStore, EpiStore>>;
5168
+ getOptions: () => Partial<PersistOptions<EpiStore, EpiStore, unknown>>;
5179
5169
  };
5180
5170
  };
5181
5171
 
@@ -5189,15 +5179,17 @@ export declare type CreateEpiStoreKwArgs = CreateTableStoreKwArgs<Case> & {
5189
5179
  caseSetId: string;
5190
5180
  };
5191
5181
 
5192
- export declare const createTableStore: <TData>(kwArgs: CreateTableStoreKwArgs<TData>) => Omit<StoreApi<TableStore<TData>>, "persist"> & {
5182
+ export declare const createTableStore: <TData>(kwArgs: CreateTableStoreKwArgs<TData>) => Omit<StoreApi<TableStore<TData>>, "setState" | "persist"> & {
5183
+ setState(partial: TableStore<TData> | Partial<TableStore<TData>> | ((state: TableStore<TData>) => TableStore<TData> | Partial<TableStore<TData>>), replace?: false): unknown;
5184
+ setState(state: TableStore<TData> | ((state: TableStore<TData>) => TableStore<TData>), replace: true): unknown;
5193
5185
  persist: {
5194
- setOptions: (options: Partial<PersistOptions<TableStore<TData>, TableStore<TData>>>) => void;
5186
+ setOptions: (options: Partial<PersistOptions<TableStore<TData>, TableStore<TData>, unknown>>) => void;
5195
5187
  clearStorage: () => void;
5196
5188
  rehydrate: () => Promise<void> | void;
5197
5189
  hasHydrated: () => boolean;
5198
5190
  onHydrate: (fn: (state: TableStore<TData>) => void) => () => void;
5199
5191
  onFinishHydration: (fn: (state: TableStore<TData>) => void) => () => void;
5200
- getOptions: () => Partial<PersistOptions<TableStore<TData>, TableStore<TData>>>;
5192
+ getOptions: () => Partial<PersistOptions<TableStore<TData>, TableStore<TData>, unknown>>;
5201
5193
  };
5202
5194
  };
5203
5195
 
@@ -7381,7 +7373,10 @@ export declare class HighlightingManager extends SubscribableAbstract<Highlighti
7381
7373
 
7382
7374
  export declare const HomePage: () => JSX.Element;
7383
7375
 
7384
- export declare const HomePageTrends: () => JSX.Element;
7376
+ export declare const HomePageTrends: {
7377
+ (props: object): JSX.Element;
7378
+ displayName: string;
7379
+ };
7385
7380
 
7386
7381
  /**
7387
7382
  *
@@ -9556,6 +9551,32 @@ export declare class OrganizationApi extends BaseAPI {
9556
9551
  * @memberof OrganizationApi
9557
9552
  */
9558
9553
  organizationSetsPutSome(organizationSet: Array<OrganizationSet>, options?: RawAxiosRequestConfig): Promise<AxiosResponse<OrganizationSet[], any>>;
9554
+ /**
9555
+ * Represents an organization.
9556
+ * @summary Organizations
9557
+ * @param {*} [options] Override http request option.
9558
+ * @throws {RequiredError}
9559
+ * @memberof OrganizationApi
9560
+ */
9561
+ organizationsDeleteAll(options?: RawAxiosRequestConfig): Promise<AxiosResponse<any, any>>;
9562
+ /**
9563
+ * Represents an organization.
9564
+ * @summary Organizations
9565
+ * @param {any} objectId
9566
+ * @param {*} [options] Override http request option.
9567
+ * @throws {RequiredError}
9568
+ * @memberof OrganizationApi
9569
+ */
9570
+ organizationsDeleteOne(objectId: any, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any>>;
9571
+ /**
9572
+ * Represents an organization.
9573
+ * @summary Organizations
9574
+ * @param {string} ids
9575
+ * @param {*} [options] Override http request option.
9576
+ * @throws {RequiredError}
9577
+ * @memberof OrganizationApi
9578
+ */
9579
+ organizationsDeleteSome(ids: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string[], any>>;
9559
9580
  /**
9560
9581
  * Represents an organization.
9561
9582
  * @summary Organizations
@@ -9885,6 +9906,32 @@ export declare class OrganizationApi extends BaseAPI {
9885
9906
  * @memberof OrganizationApi
9886
9907
  */
9887
9908
  userRegistrationsPostOne(token: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<User, any>>;
9909
+ /**
9910
+ *
9911
+ * @summary Users
9912
+ * @param {*} [options] Override http request option.
9913
+ * @throws {RequiredError}
9914
+ * @memberof OrganizationApi
9915
+ */
9916
+ usersDeleteAll(options?: RawAxiosRequestConfig): Promise<AxiosResponse<any, any>>;
9917
+ /**
9918
+ *
9919
+ * @summary Users
9920
+ * @param {any} objectId
9921
+ * @param {*} [options] Override http request option.
9922
+ * @throws {RequiredError}
9923
+ * @memberof OrganizationApi
9924
+ */
9925
+ usersDeleteOne(objectId: any, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any>>;
9926
+ /**
9927
+ *
9928
+ * @summary Users
9929
+ * @param {string} ids
9930
+ * @param {*} [options] Override http request option.
9931
+ * @throws {RequiredError}
9932
+ * @memberof OrganizationApi
9933
+ */
9934
+ usersDeleteSome(ids: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string[], any>>;
9888
9935
  /**
9889
9936
  *
9890
9937
  * @summary Users
@@ -10849,7 +10896,7 @@ export declare const Role: {
10849
10896
  readonly ROOT: "ROOT";
10850
10897
  readonly APP_ADMIN: "APP_ADMIN";
10851
10898
  readonly ORG_ADMIN: "ORG_ADMIN";
10852
- readonly METADATA_ADMIN: "METADATA_ADMIN";
10899
+ readonly REFDATA_ADMIN: "REFDATA_ADMIN";
10853
10900
  readonly ORG_USER: "ORG_USER";
10854
10901
  readonly GUEST: "GUEST";
10855
10902
  readonly ROLE1: "ROLE1";
@@ -13521,15 +13568,17 @@ export declare const useRoleOptionsQuery: () => UseOptions<string>;
13521
13568
 
13522
13569
  export declare type UserProfileStore = UserProfileStoreState & UserProfileStoreActions;
13523
13570
 
13524
- export declare const userProfileStore: Omit<StoreApi<UserProfileStore>, "persist"> & {
13571
+ export declare const userProfileStore: Omit<StoreApi<UserProfileStore>, "setState" | "persist"> & {
13572
+ setState(partial: UserProfileStore | Partial<UserProfileStore> | ((state: UserProfileStore) => UserProfileStore | Partial<UserProfileStore>), replace?: false): unknown;
13573
+ setState(state: UserProfileStore | ((state: UserProfileStore) => UserProfileStore), replace: true): unknown;
13525
13574
  persist: {
13526
- setOptions: (options: Partial<PersistOptions<UserProfileStore, unknown>>) => void;
13575
+ setOptions: (options: Partial<PersistOptions<UserProfileStore, unknown, unknown>>) => void;
13527
13576
  clearStorage: () => void;
13528
13577
  rehydrate: () => Promise<void> | void;
13529
13578
  hasHydrated: () => boolean;
13530
13579
  onHydrate: (fn: (state: UserProfileStore) => void) => () => void;
13531
13580
  onFinishHydration: (fn: (state: UserProfileStore) => void) => () => void;
13532
- getOptions: () => Partial<PersistOptions<UserProfileStore, unknown>>;
13581
+ getOptions: () => Partial<PersistOptions<UserProfileStore, unknown, unknown>>;
13533
13582
  };
13534
13583
  };
13535
13584
 
@@ -13830,4 +13879,14 @@ export declare const withEpiStore: <P extends WithEpiStoreProps>(WrappedComponen
13830
13879
 
13831
13880
  export declare type WithEpiStoreProps = EpiStoreLoaderProps;
13832
13881
 
13882
+ export declare const withPermissions: <TProps extends object>(Component: ComponentType<TProps>, options: WithPermissionsOptions) => {
13883
+ (props: TProps): JSX.Element;
13884
+ displayName: string;
13885
+ };
13886
+
13887
+ export declare interface WithPermissionsOptions {
13888
+ readonly requiredPermissions: ApiPermission[];
13889
+ readonly fallback?: ComponentType | null;
13890
+ }
13891
+
13833
13892
  export { }