@equinor/fusion
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -24,2 +24,3 @@ import { MutableRefObject } from 'react'; | ||
resourceCache: ResourceCache; | ||
serviceResolver: ServiceResolver; | ||
}; | ||
@@ -26,0 +27,0 @@ export declare type Refs = { |
@@ -54,2 +54,3 @@ import { createContext, useContext } from 'react'; | ||
resourceCache, | ||
serviceResolver, | ||
}, | ||
@@ -56,0 +57,0 @@ refs, |
@@ -5,7 +5,15 @@ import BaseApiClient from './BaseApiClient'; | ||
const url = this.resourceCollections.org.positions(projectId); | ||
return this.httpClient.getAsync(url); | ||
return this.httpClient.getAsync(url, { | ||
headers: { | ||
'api-version': '2.0', | ||
}, | ||
}); | ||
} | ||
async getPositionAsync(projectId, positionId) { | ||
const url = this.resourceCollections.org.position(projectId, positionId); | ||
return this.httpClient.getAsync(url); | ||
return this.httpClient.getAsync(url, { | ||
headers: { | ||
'api-version': '2.0', | ||
}, | ||
}); | ||
} | ||
@@ -12,0 +20,0 @@ async getJobDescriptionAsync(projectId, positionId) { |
@@ -25,2 +25,4 @@ export { IAuthContainer, default as AuthContainer } from './auth/AuthContainer'; | ||
export { default as PersonDetails, PersonBasePosition, PersonContract, PersonPosition, PersonProject, PersonRole, PersonRoleScope, PersonAccountType, PersonCompany, } from './http/apiClients/models/people/PersonDetails'; | ||
export { default as useApiClient } from './http/hooks/useApiClient'; | ||
export { default as useApiClients } from './http/hooks/useApiClients'; | ||
export { createPagination, applyPagination, usePagination, useAsyncPagination, Page, Pagination, PagedResult, PaginationRange, } from './utils/Pagination'; | ||
@@ -30,2 +32,5 @@ export { useSorting, applySorting, SortDirection, PropertyAccessor, PropertyAccessorFunction, } from './hooks/useSorting'; | ||
export { default as useDebouncedAbortable } from './hooks/useDebouncedAbortable'; | ||
export { default as useDebounce } from './hooks/useDebounce'; | ||
export { default as useEffectAsync } from './hooks/useEffectAsync'; | ||
export { default as useAsyncData } from './hooks/useAsyncData'; | ||
export { Day, Month, Calendar, CalendarDate, createCalendar, isSameDate } from './utils/Calendar'; | ||
@@ -32,0 +37,0 @@ export * from './intl/DateTime'; |
@@ -22,2 +22,4 @@ export { default as AuthContainer } from './auth/AuthContainer'; | ||
export { TaskTypes, TaskSourceSystems, } from './http/apiClients/models/tasks/Task'; | ||
export { default as useApiClient } from './http/hooks/useApiClient'; | ||
export { default as useApiClients } from './http/hooks/useApiClients'; | ||
export { createPagination, applyPagination, usePagination, useAsyncPagination, } from './utils/Pagination'; | ||
@@ -27,2 +29,5 @@ export { useSorting, applySorting, } from './hooks/useSorting'; | ||
export { default as useDebouncedAbortable } from './hooks/useDebouncedAbortable'; | ||
export { default as useDebounce } from './hooks/useDebounce'; | ||
export { default as useEffectAsync } from './hooks/useEffectAsync'; | ||
export { default as useAsyncData } from './hooks/useAsyncData'; | ||
export { createCalendar, isSameDate } from './utils/Calendar'; | ||
@@ -29,0 +34,0 @@ export * from './intl/DateTime'; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "0.3.6"; | ||
declare const _default: "0.3.7"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '0.3.6'; | ||
export default '0.3.7'; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
170060
4045