@studyportals/sp-lord-business-interface
Advanced tools
Comparing version 0.0.1-7 to 0.0.1-8
{ | ||
"name": "@studyportals/sp-lord-business-interface", | ||
"version": "0.0.1-7", | ||
"version": "0.0.1-8", | ||
"description": "Typescript library containing resources that facilitate integration with Lord Business.", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
import { IRequestSender, ISuperAgentRequestFactory } from "@studyportals/mb-platform-http-requests"; | ||
import { Transition } from "../"; | ||
import { PresentationEnrolment } from "./PresentationEnrolment"; | ||
export declare class LordBusinessClient { | ||
@@ -10,4 +11,5 @@ private superAgentRequestFactory; | ||
describeFulfillmentProcessForUser(email: string): Promise<Transition[]>; | ||
retrieveAllEnrolments(): Promise<PresentationEnrolment[]>; | ||
private createGetRequest; | ||
private buildUrl; | ||
} |
@@ -28,2 +28,9 @@ "use strict"; | ||
} | ||
retrieveAllEnrolments() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const request = this.createGetRequest("/enrolments"); | ||
const result = yield this.requestSender.sendAndExtractBody(request); | ||
return result.enrolments; | ||
}); | ||
} | ||
createGetRequest(relative = "") { | ||
@@ -30,0 +37,0 @@ return this.superAgentRequestFactory.get(this.buildUrl(relative)); |
Sorry, the diff of this file is not supported yet
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
26481
43
359