@equinor/fusion
Advanced tools
Comparing version 2.4.16 to 2.4.17
import { HttpResponse } from '../HttpClient'; | ||
import BaseApiClient from './BaseApiClient'; | ||
import { PimsTask, ProcosysTask } from './models/fusionTasks'; | ||
import { PimsTask, ProCoSysTask } from './models/fusionTasks'; | ||
export default class FusionTasksClient extends BaseApiClient { | ||
protected getBaseUrl(): string; | ||
getPimsTasksAsync(personId: string, sourceSystem: string): Promise<HttpResponse<PimsTask[]>>; | ||
getProcosysTasksAsync(personId: string): Promise<HttpResponse<ProcosysTask[]>>; | ||
getPimsTasksAsync(personId: string): Promise<HttpResponse<PimsTask[]>>; | ||
getProcosysTasksAsync(personId: string): Promise<HttpResponse<ProCoSysTask[]>>; | ||
} |
@@ -6,4 +6,4 @@ import BaseApiClient from './BaseApiClient'; | ||
} | ||
async getPimsTasksAsync(personId, sourceSystem) { | ||
const url = this.resourceCollections.fusionTasks.pimsTasks(personId, sourceSystem); | ||
async getPimsTasksAsync(personId) { | ||
const url = this.resourceCollections.fusionTasks.pimsTasks(personId); | ||
return await this.httpClient.getAsync(url); | ||
@@ -10,0 +10,0 @@ } |
export { PimsTask } from './PimsTask'; | ||
export { ProcosysTask } from './ProcosysTask'; | ||
export { ProCoSysTask } from './ProCoSysTaskItem'; |
@@ -9,2 +9,3 @@ export declare type PimsTask = { | ||
daysOverdue: number; | ||
taskTypeKey: string; | ||
}; |
@@ -5,4 +5,4 @@ import BaseResourceCollection from './BaseResourceCollection'; | ||
personTasks(personId: string): string; | ||
pimsTasks(personId: string, taskType: string): string; | ||
pimsTasks(personId: string): string; | ||
procosysTasks(personId: string): string; | ||
} |
@@ -10,4 +10,4 @@ import BaseResourceCollection from './BaseResourceCollection'; | ||
} | ||
pimsTasks(personId, taskType) { | ||
return combineUrls(this.personTasks(personId), 'pims', taskType); | ||
pimsTasks(personId) { | ||
return combineUrls(this.personTasks(personId), 'pims'); | ||
} | ||
@@ -14,0 +14,0 @@ procosysTasks(personId) { |
@@ -34,3 +34,3 @@ export { IAuthContainer, FusionAuthLoginError, default as AuthContainer, } from './auth/AuthContainer'; | ||
export { default as NotificationCard, NotificationCardApplication, PersonNotification, } from './http/apiClients/models/NotificationCard/NotificationCard'; | ||
export { PimsTask, ProcosysTask } from './http/apiClients/models/fusionTasks'; | ||
export { PimsTask, ProCoSysTask } from './http/apiClients/models/fusionTasks'; | ||
export { default as useApiClient } from './http/hooks/useApiClient'; | ||
@@ -37,0 +37,0 @@ export { default as useApiClients } from './http/hooks/useApiClients'; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "2.4.16"; | ||
declare const _default: "2.4.17"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '2.4.16'; | ||
export default '2.4.17'; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "2.4.16", | ||
"version": "2.4.17", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8163
346398