@studyportals/insight-composer-api-interface 1.3.0-st6.0 → 1.3.0-st6.2
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/index.d.ts +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/clients/insight-composer-api-client.d.ts +3 -0
- package/src/clients/insight-composer-api-client.js +5 -0
- package/src/clients/insight-composer-api-client.js.map +1 -1
- package/src/organisations/organisations-insights-input.interface.d.ts +1 -0
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InsightComposerApiClient } from "./src/clients/insight-composer-api-client";
|
|
2
|
+
import { IOrganisationsInsightsInput } from "./src/organisations/organisations-insights-input.interface";
|
|
3
|
+
import { IOrganisationsInsights } from "./src/organisations/organisations-insights.interface";
|
|
2
4
|
import { IProgrammesInsightsInput } from "./src/programmes/programmes-insights-input.interface";
|
|
3
5
|
import { IProgrammesInsights } from "./src/programmes/programmes-insights.interface";
|
|
4
|
-
export { InsightComposerApiClient, IProgrammesInsightsInput, IProgrammesInsights };
|
|
6
|
+
export { InsightComposerApiClient, IProgrammesInsightsInput, IProgrammesInsights, IOrganisationsInsightsInput, IOrganisationsInsights };
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAMrF,OAAO,EACN,wBAAwB,EAOxB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { IProgrammesInsightsInput } from "../programmes/programmes-insights-input.interface";
|
|
2
2
|
import { RequestBase } from "../request-base";
|
|
3
3
|
import { IProgrammesInsights } from "../programmes/programmes-insights.interface";
|
|
4
|
+
import { IOrganisationsInsightsInput } from "../organisations/organisations-insights-input.interface";
|
|
5
|
+
import { IOrganisationsInsights } from "../organisations/organisations-insights.interface";
|
|
4
6
|
export declare class InsightComposerApiClient extends RequestBase {
|
|
5
7
|
getProgrammesInsights(input: IProgrammesInsightsInput, apiKey: string): Promise<IProgrammesInsights>;
|
|
8
|
+
getOrganisationsInsights(input: IOrganisationsInsightsInput, apiKey: string): Promise<IOrganisationsInsights>;
|
|
6
9
|
}
|
|
@@ -5,5 +5,10 @@ export class InsightComposerApiClient extends RequestBase {
|
|
|
5
5
|
const body = result.body;
|
|
6
6
|
return body.insights;
|
|
7
7
|
}
|
|
8
|
+
async getOrganisationsInsights(input, apiKey) {
|
|
9
|
+
const result = await this.getRequest(`organisations`, input, apiKey);
|
|
10
|
+
const body = result.body;
|
|
11
|
+
return body.insights;
|
|
12
|
+
}
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=insight-composer-api-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insight-composer-api-client.js","sourceRoot":"","sources":["../../../src/clients/insight-composer-api-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"insight-composer-api-client.js","sourceRoot":"","sources":["../../../src/clients/insight-composer-api-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK9C,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACxD,KAAK,CAAC,qBAAqB,CAAC,KAA+B,EAAE,MAAc;QAC1E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAA0B,CAAC;QAC3F,MAAM,IAAI,GAAG,MAAM,CAAC,IAAqD,CAAC;QAC1E,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,KAAkC,EAAE,MAAc;QAChF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,KAAK,EAAE,MAAM,CAA0B,CAAC;QAC9F,MAAM,IAAI,GAAG,MAAM,CAAC,IAAwD,CAAC;QAC7E,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD"}
|