@inceptionbg/main 2.0.256 → 2.0.257

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { ISimpleObjectWithCode, ISimpleObject, ISelectData, ToastPosition, IBooleanObject, IAnyObject, ITableFilterItem } from '@inceptionbg/iui';
1
+ import { ISimpleObjectWithCode, ISimpleObject, ISelectData, ToastPosition, IBooleanObject, IAnyObject, IPagination, ITableFilterItem } from '@inceptionbg/iui';
2
2
  import * as react from 'react';
3
3
  import { ReactElement, FC, ReactNode, Dispatch, SetStateAction } from 'react';
4
4
  import { AxiosResponse } from 'axios';
@@ -9,6 +9,7 @@ import * as reactQuery from '@tanstack/react-query';
9
9
  export { reactQuery as ReactQuery };
10
10
  export { keepPreviousData, useMutation, useQuery } from '@tanstack/react-query';
11
11
  import * as react_jsx_runtime from 'react/jsx-runtime';
12
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
12
13
 
13
14
  interface IPlace {
14
15
  uuid: string;
@@ -1274,6 +1275,22 @@ interface IConditionIndexData {
1274
1275
  value?: string;
1275
1276
  }
1276
1277
 
1278
+ interface IAttachmentType {
1279
+ uuid: string;
1280
+ identifier: string;
1281
+ name: string;
1282
+ documentType?: string;
1283
+ organization?: Partial<IOrganization>;
1284
+ subsystem?: string;
1285
+ createdBy?: string;
1286
+ }
1287
+ type AttachmentTypeFetchOption = 'ORGANIZATION' | 'CREATED_BY';
1288
+ interface IAttachmentTypeFolder {
1289
+ uuid: string;
1290
+ name?: string;
1291
+ empty: boolean;
1292
+ }
1293
+
1277
1294
  type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG' | 'TEST_MSP';
1278
1295
  type IRequiredServiceApi = 'auth' | 'idm' | 'registration';
1279
1296
  type IOptionalServiceApi = 'codebook' | 'auditLog' | 'notifications' | 'indexData' | 'reportTemplates' | 'procurement' | 'archive' | 'invoice' | 'delivery' | 'edms' | 'rif' | 'cashRegister' | 'jisuszProxy' | 'fosterCare' | 'article' | 'approval' | 'messenger' | 'veosp' | 'fixedAssets' | 'dispatchAdvice' | 'organization';
@@ -2277,6 +2294,31 @@ declare const useFiscalYearStatus: () => {
2277
2294
  year: number;
2278
2295
  };
2279
2296
 
2297
+ declare const getAttachmentTypeListParams: (folder: IAttachmentTypeFolder) => {
2298
+ attachmentTypeEmpty: boolean;
2299
+ attachmentTypeUuid?: undefined;
2300
+ } | {
2301
+ attachmentTypeUuid: string;
2302
+ attachmentTypeEmpty?: undefined;
2303
+ };
2304
+ declare const useAttachmentTypeFolders: ({ identifier }: {
2305
+ identifier?: string | undefined;
2306
+ }) => {
2307
+ folders: IAttachmentTypeFolder[];
2308
+ isLoading: boolean;
2309
+ isError: boolean;
2310
+ };
2311
+
2312
+ declare const useGetAttachmentTypesByIdentifier: ({ pagination, identifier, userHasAccess, fetchOptions, }: {
2313
+ pagination: IPagination;
2314
+ identifier?: string | undefined;
2315
+ userHasAccess?: boolean | undefined;
2316
+ fetchOptions?: AttachmentTypeFetchOption[] | undefined;
2317
+ }) => _tanstack_react_query_build_legacy_types.DefinedUseQueryResult<{
2318
+ attachmentTypes: IAttachmentType[];
2319
+ totalRows: number;
2320
+ }, Error>;
2321
+
2280
2322
  declare const LastArticlesWidget: FC;
2281
2323
 
2282
2324
  declare const ArticlePage: FC;
@@ -2285,4 +2327,4 @@ declare const ArticlesPage: FC;
2285
2327
 
2286
2328
  declare const buildIndexFilterItem: (index: Partial<IIndexData>, search: any, setSearch: (s: any) => void, t: (k: string) => string, type: 'document' | 'case' | 'contract') => ITableFilterItem;
2287
2329
 
2288
- export { AppWrapper, ApprovalStatus, ArticlePage, ArticlesPage, AxiosTokenHandler, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemDialog, DeleteItemsDialog, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FiscalYearLockManager, 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, ISubsystem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LastArticlesWidget, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, OrganizationStatus, OrganizationStatuses, PartnerGroupType, ReactQueryProvider, RolePrivilegeGroup, RolesWithPrivileges, Router, SelectOrgPage, Sidebar, SubSystems, UserFetchOption, UserOrgContext, UserOrgProvider, buildIndexFilterItem, clearToken, decodeToken, envVars, getUser, i18nMainCyrilic, i18nMainLatin, i18nMainME_Latin, login, logout, modules, setBusinessYearContext, useBusinessYearContext, useFiscalYearStatus, useModules, useUserAndOrg };
2330
+ export { AppWrapper, ApprovalStatus, ArticlePage, ArticlesPage, AttachmentTypeFetchOption, AxiosTokenHandler, BusinessYearChooser, BusinessYearPage, BusinessYearProvider, Constraints, DeleteItemDialog, DeleteItemsDialog, DocumentApprovalFetchOption, DocumentFetchOption, DocumentFileFetchOptions, DocumentIndicies, DocumentSendFetchOption, DocumentStatuses, ErrorContext, FiscalYearLockManager, Header, IApproval, IApprovalSearch, IApprovalStep, IApprovalStepSearch, IAttachmentType, IAttachmentTypeFolder, 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, ISubsystem, IToken, IUploadDocumentType, IUseMutationData, IUser, IUserSettings, IVoteSearch, IndexDataSearch, LastArticlesWidget, LoginPage, MainPageWrapper, ModuleIds, NoAccessInfo, NoMatchPage, OrganizationStatus, OrganizationStatuses, PartnerGroupType, ReactQueryProvider, RolePrivilegeGroup, RolesWithPrivileges, Router, SelectOrgPage, Sidebar, SubSystems, UserFetchOption, UserOrgContext, UserOrgProvider, buildIndexFilterItem, clearToken, decodeToken, envVars, getAttachmentTypeListParams, getUser, i18nMainCyrilic, i18nMainLatin, i18nMainME_Latin, login, logout, modules, setBusinessYearContext, useAttachmentTypeFolders, useBusinessYearContext, useFiscalYearStatus, useGetAttachmentTypesByIdentifier, useModules, useUserAndOrg };