diff --git a/famis_client.ts b/famis_client.ts index d7b0fc3..bd35b26 100644 --- a/famis_client.ts +++ b/famis_client.ts @@ -1084,9 +1084,9 @@ export class FamisClient { } async getInstallationConfigurations(context: QueryContext): Promise { - const url = context.buildApiUrl('installationconfigurations'); - const resp = await this.http.get(url); - return resp.data; + const url = context.buildUrl('installationconfigurations'); + const resp = await this.http.get>(url); + return resp.data.value ?? []; } //#region Logbook diff --git a/model/request_context.ts b/model/request_context.ts index 40a22d3..6fab641 100644 --- a/model/request_context.ts +++ b/model/request_context.ts @@ -110,4 +110,4 @@ export function buildEntityUrl(entity: string): string { return `${basePath}/${entity}`; } -export const basePath = 'MobileWebServices/apis/360facility/v1'; \ No newline at end of file +export const basePath = 'MobileWebServices/apis/360facility/v1'; diff --git a/package.json b/package.json index 1623a8e..297c769 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "facility360", - "version": "1.0.10", + "version": "1.0.11", "description": "A Node based 360Facility client SDK", "main": "dist/index.js", "scripts": {