@inceptionbg/main 2.0.85 → 2.0.87
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/dist/index.d.ts +10 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/global.d.ts +0 -7
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,12 @@ type IModule = {
|
|
|
44
44
|
hidden?: boolean;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
+
interface IModuleIdsObj {
|
|
48
|
+
availableModules: IModuleId[];
|
|
49
|
+
userModules: IModuleId[];
|
|
50
|
+
organizationModules: IModuleId[];
|
|
51
|
+
activeModules: IModuleId[];
|
|
52
|
+
}
|
|
47
53
|
|
|
48
54
|
interface IRole {
|
|
49
55
|
uuid: string;
|
|
@@ -1402,13 +1408,15 @@ interface IUserOrgContext {
|
|
|
1402
1408
|
changeOrganization: (orgUuid: string, callback?: () => void) => void;
|
|
1403
1409
|
orgSettings: IOrganizationSettings;
|
|
1404
1410
|
updateOrgSettings: (data: IOrganizationSettings) => void;
|
|
1405
|
-
moduleIds:
|
|
1411
|
+
moduleIds: IModuleIdsObj;
|
|
1406
1412
|
}
|
|
1407
1413
|
declare const UserOrgContext: react.Context<IUserOrgContext>;
|
|
1408
1414
|
interface IProps {
|
|
1409
1415
|
children: ReactNode;
|
|
1410
1416
|
}
|
|
1411
1417
|
declare const UserOrgProvider: ({ children }: IProps) => react_jsx_runtime.JSX.Element;
|
|
1418
|
+
declare const useUserAndOrg: () => IUserOrgContext;
|
|
1419
|
+
declare const useModules: () => IModuleIdsObj;
|
|
1412
1420
|
|
|
1413
1421
|
interface Props$9 {
|
|
1414
1422
|
routes: IRoute[];
|
|
@@ -1487,4 +1495,4 @@ interface Props {
|
|
|
1487
1495
|
}
|
|
1488
1496
|
declare const DeleteItemDialog: FC<Props>;
|
|
1489
1497
|
|
|
1490
|
-
export { AppWrapper, ApprovalStatus, AxiosTokenHandler, Constraints, DeleteItemDialog, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRole, IRolePrivilege, IRoute, IServiceApi, ISidebarItem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, OrganizationStatus, OrganizationStatuses, PartnerGroupType, ReactQueryProvider, RolePrivilegeGroup, RolesWithPrivileges, Router, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, envVars, getUser, login, logout, modules };
|
|
1498
|
+
export { AppWrapper, ApprovalStatus, AxiosTokenHandler, Constraints, DeleteItemDialog, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IBankAccount, IBankAccountSearch, ICondition, IConditionIndexData, IConstraint, IContactPerson, ICountry, IDocument, IDocumentAny, IDocumentApproval, IDocumentApprovalStep, IDocumentApprovalVote, IDocumentFile, IDocumentFileParams, IDocumentIndex, IDocumentSearch, IDocumentSend, IDocumentSendSearch, IDocumentType, IEnv, IFile, IFileSignData, IFileType, IFileUpload, IInvoice, IInvoiceItem, ILatestApprovalProcess, IModule, IModuleId, IMunicipality, INote, INoteSearch, IOrganization, IOrganizationFetchOption, IOrganizationSearch, IOrganizationSettings, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, IPhaseGroup, IPhaseGroupSearch, IPlace, IRole, IRolePrivilege, IRoute, IServiceApi, ISidebarItem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, OrganizationStatus, OrganizationStatuses, PartnerGroupType, ReactQueryProvider, RolePrivilegeGroup, RolesWithPrivileges, Router, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider, decodeToken, envVars, getUser, login, logout, modules, useModules, useUserAndOrg };
|