@studyportals/insight-composer-api-interface 1.0.0-beta.0 → 1.0.0-beta.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 +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/clients/insight-composer-api-client.d.ts +6 -0
- package/src/clients/insight-composer-api-client.js +7 -0
- package/src/clients/insight-composer-api-client.js.map +1 -0
- package/src/programmes/programmes-insights.interface.d.ts +1 -2
- package/src/insight-composer-api-client.d.ts +0 -6
- package/src/insight-composer-api-client.js +0 -7
- package/src/insight-composer-api-client.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsightComposerApiClient } from "./src/insight-composer-api-client";
|
|
1
|
+
import { InsightComposerApiClient } from "./src/clients/insight-composer-api-client";
|
|
2
2
|
import { IProgrammesInsightsInput } from "./src/programmes/programmes-insights-input.interface";
|
|
3
3
|
import { IProgrammesInsights } from "./src/programmes/programmes-insights.interface";
|
|
4
4
|
export { InsightComposerApiClient, IProgrammesInsightsInput, IProgrammesInsights };
|
package/index.js
CHANGED
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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAIrF,OAAO,EACN,wBAAwB,EAIxB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/insight-composer-api-interface",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"description": "Typescript library containing resources that facilitate integration with Insight Composer API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IProgrammesInsightsInput } from "../programmes/programmes-insights-input.interface";
|
|
2
|
+
import { RequestBase } from "../request-base";
|
|
3
|
+
import { IProgrammesInsights } from "../programmes/programmes-insights.interface";
|
|
4
|
+
export declare class InsightComposerApiClient extends RequestBase {
|
|
5
|
+
getProgrammesInsights(input: IProgrammesInsightsInput, apiKey: string): Promise<IProgrammesInsights>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RequestBase } from "../request-base";
|
|
2
|
+
export class InsightComposerApiClient extends RequestBase {
|
|
3
|
+
async getProgrammesInsights(input, apiKey) {
|
|
4
|
+
return (await this.getRequest(`programmes`, input, apiKey)).body;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=insight-composer-api-client.js.map
|
|
@@ -0,0 +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;AAG9C,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACxD,KAAK,CAAC,qBAAqB,CAAC,KAA+B,EAAE,MAAc;QAC1E,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAA2B,CAAA,CAAC,IAA2B,CAAC;IAClH,CAAC;CACD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IProgrammesInsightsInput } from "./programmes/programmes-insights-input.interface";
|
|
2
|
-
import { RequestBase } from "./request-base";
|
|
3
|
-
import { IProgrammesInsights } from "./programmes/programmes-insights.interface";
|
|
4
|
-
export declare class InsightComposerApiClient extends RequestBase {
|
|
5
|
-
getProgrammesInsights(input: IProgrammesInsightsInput): Promise<IProgrammesInsights>;
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RequestBase } from "./request-base";
|
|
2
|
-
export class InsightComposerApiClient extends RequestBase {
|
|
3
|
-
async getProgrammesInsights(input) {
|
|
4
|
-
return (await this.getRequest(`programmes`, input)).body;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=insight-composer-api-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insight-composer-api-client.js","sourceRoot":"","sources":["../../src/insight-composer-api-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACxD,KAAK,CAAC,qBAAqB,CAAC,KAA+B;QAC1D,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,KAAK,CAA2B,CAAA,CAAC,IAA2B,CAAC;IAC1G,CAAC;CACD"}
|