@studyportals/sp-lurch-interface 3.1.0 → 3.1.3-0

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 CHANGED
@@ -18,4 +18,8 @@ import { MicrositeStudentProfileResult } from './src/results/microsite-student-p
18
18
  import { RetrieveOrganisationsResult } from './src/results/retrieve-organisations-result.class';
19
19
  import { IOrganisation } from './src/entities/organisation/i-organisation.interface';
20
20
  import { OrganisationDto } from './src/entities/organisation/organisation-dto.class';
21
- export { IIntake, IMatch, IInputBatch, IntakeDto, MatchDto, OrganisationDto, IOrganisation, InputBatchDto, SubmitMatchesResult, DiscardInputBatchresult, RetrieveIntakesResult, RetrieveIntakeResult, RetrieveInputBatchResult, RetrieveInputBatchesResult, InputBatchStatus, IntakeStageType, LurchClient, IMicrositeStudentProfile, MicrositeStudentProfileResult, RetrieveOrganisationsResult };
21
+ import { ISurveyQuestion } from './src/survey/interfaces/i-survey-question.interface';
22
+ import { ISurveyQuestionOption } from './src/survey/interfaces/i-survey-question-option.interface';
23
+ import { SurveyAnswerType } from './src/survey/enums/survey-answer-type.enum';
24
+ import { RetrieveSurveyQuestionsResult } from './src/results/retrieve-survey-questions-result.class';
25
+ export { IIntake, IMatch, IInputBatch, IntakeDto, MatchDto, OrganisationDto, IOrganisation, InputBatchDto, SubmitMatchesResult, DiscardInputBatchresult, RetrieveIntakesResult, RetrieveIntakeResult, RetrieveInputBatchResult, RetrieveInputBatchesResult, InputBatchStatus, IntakeStageType, LurchClient, IMicrositeStudentProfile, MicrositeStudentProfileResult, RetrieveOrganisationsResult, RetrieveSurveyQuestionsResult, ISurveyQuestion, ISurveyQuestionOption, SurveyAnswerType };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RetrieveOrganisationsResult = exports.MicrositeStudentProfileResult = exports.LurchClient = exports.IntakeStageType = exports.InputBatchStatus = exports.RetrieveInputBatchesResult = exports.RetrieveInputBatchResult = exports.RetrieveIntakeResult = exports.RetrieveIntakesResult = exports.DiscardInputBatchresult = exports.SubmitMatchesResult = exports.InputBatchDto = exports.OrganisationDto = exports.MatchDto = exports.IntakeDto = void 0;
3
+ exports.SurveyAnswerType = exports.RetrieveSurveyQuestionsResult = exports.RetrieveOrganisationsResult = exports.MicrositeStudentProfileResult = exports.LurchClient = exports.IntakeStageType = exports.InputBatchStatus = exports.RetrieveInputBatchesResult = exports.RetrieveInputBatchResult = exports.RetrieveIntakeResult = exports.RetrieveIntakesResult = exports.DiscardInputBatchresult = exports.SubmitMatchesResult = exports.InputBatchDto = exports.OrganisationDto = exports.MatchDto = exports.IntakeDto = void 0;
4
4
  const input_batch_dto_class_1 = require("./src/input-batches/input-batch-dto.class");
5
5
  Object.defineProperty(exports, "InputBatchDto", { enumerable: true, get: function () { return input_batch_dto_class_1.InputBatchDto; } });
6
6
  const input_batch_status_1 = require("./src/input-batches/input-batch-status");
@@ -31,4 +31,8 @@ const retrieve_organisations_result_class_1 = require("./src/results/retrieve-or
31
31
  Object.defineProperty(exports, "RetrieveOrganisationsResult", { enumerable: true, get: function () { return retrieve_organisations_result_class_1.RetrieveOrganisationsResult; } });
32
32
  const organisation_dto_class_1 = require("./src/entities/organisation/organisation-dto.class");
33
33
  Object.defineProperty(exports, "OrganisationDto", { enumerable: true, get: function () { return organisation_dto_class_1.OrganisationDto; } });
34
+ const survey_answer_type_enum_1 = require("./src/survey/enums/survey-answer-type.enum");
35
+ Object.defineProperty(exports, "SurveyAnswerType", { enumerable: true, get: function () { return survey_answer_type_enum_1.SurveyAnswerType; } });
36
+ const retrieve_survey_questions_result_class_1 = require("./src/results/retrieve-survey-questions-result.class");
37
+ Object.defineProperty(exports, "RetrieveSurveyQuestionsResult", { enumerable: true, get: function () { return retrieve_survey_questions_result_class_1.RetrieveSurveyQuestionsResult; } });
34
38
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
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3BQ,mDAAoB,OA2BR;AA1BrB,+FAAoF;AAyBnF,sGAzBQ,qDAAqB,OAyBR;AAxBtB,2FAAgF;AAsB/E,oGAtBQ,iDAAmB,OAsBR;AArBpB,qGAAyF;AAsBxF,wGAtBQ,0DAAuB,OAsBR;AArBxB,qDAAgD;AA4B/C,4FA5BQ,0BAAW,OA4BR;AA1BZ,iHAAqG;AA4BpG,8GA5BQ,sEAA6B,OA4BR;AA3B9B,2GAAgG;AA4B/F,4GA5BQ,iEAA2B,OA4BR;AA1B5B,+FAAqF;AAYpF,gGAZQ,wCAAe,OAYR;AAThB,wFAA8E;AA2B7E,iGA3BQ,0CAAgB,OA2BR;AA1BjB,iHAAqG;AAuBpG,8GAvBQ,sEAA6B,OAuBR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/sp-lurch-interface",
3
- "version": "3.1.0",
3
+ "version": "3.1.3-0",
4
4
  "description": "Contains Data Transfer Objects required or provided by Lurch through its interface.",
5
5
  "scripts": {
6
6
  "test": "npm run test-u-o",
@@ -25,11 +25,12 @@
25
25
  "@types/superagent": "^8.1.7",
26
26
  "chai": "^4.4.1",
27
27
  "mocha": "^10.6.0",
28
+ "mocha-typescript": "^1.1.17",
28
29
  "nyc": "^17.0.0",
29
30
  "ts-node": "^10.9.2",
30
31
  "tslint": "^6.1.3",
31
32
  "typemoq": "^2.1.0",
32
- "typescript": "^5.5.3"
33
+ "typescript": "^5.8.2"
33
34
  },
34
35
  "dependencies": {
35
36
  "@studyportals/mb-platform-http-requests": "^2.7.0",
@@ -38,7 +39,7 @@
38
39
  "superagent": "^9.0.2"
39
40
  },
40
41
  "engines": {
41
- "npm": ">=10.0.0 <11.0.0",
42
- "node": ">=20.0.0 <21.0.0"
42
+ "node": "20.x",
43
+ "npm": "10.x"
43
44
  }
44
45
  }
@@ -2,6 +2,7 @@ import { IRequestSender, ISuperAgentRequestFactory } from "@studyportals/mb-plat
2
2
  import { IInputBatch } from "./input-batches/interfaces/i-input-batch.interface";
3
3
  import { IntakeStageType } from "./intakes/intake-stage-type";
4
4
  import { OrganisationsDto } from "./entities/organisation/organisations-dto";
5
+ import { ISurveyQuestion } from "./survey/interfaces/i-survey-question.interface";
5
6
  export declare class LurchClient {
6
7
  private superAgentRequestFactory;
7
8
  private requestSender;
@@ -13,6 +14,9 @@ export declare class LurchClient {
13
14
  discardInputBatch(inputBatchIdentity: string): Promise<void>;
14
15
  submitEnrollments(organisationId: string, representativeId: string, intakeStage: IntakeStageType, intakeMonth: number, intakeYear: number, inputs: string): Promise<number>;
15
16
  retrieveOrganisationsFromUser(): Promise<OrganisationsDto>;
17
+ retrieveSurvey(): Promise<ISurveyQuestion[]>;
18
+ retrieveSurveyResult<TSurveyResult = unknown>(): Promise<TSurveyResult>;
19
+ submitSurvey<TSubmitSurveyRequest extends object>(payload: TSubmitSurveyRequest): Promise<void>;
16
20
  private createGetRequest;
17
21
  private createPostRequest;
18
22
  private buildUrl;
@@ -27,7 +27,7 @@ class LurchClient {
27
27
  await this.requestSender.send(request);
28
28
  }
29
29
  async submitEnrollments(organisationId, representativeId, intakeStage, intakeMonth, intakeYear, inputs) {
30
- const request = this.createPostRequest('submit-enrollments');
30
+ const request = this.createPostRequest('/submit-enrollments');
31
31
  request.send({
32
32
  organisationId,
33
33
  representativeId,
@@ -44,6 +44,22 @@ class LurchClient {
44
44
  const result = await this.requestSender.sendAndExtractBody(request);
45
45
  return new organisations_dto_1.OrganisationsDto(result.userId, result.organisations);
46
46
  }
47
+ async retrieveSurvey() {
48
+ const request = this.createGetRequest("/survey");
49
+ const result = await this.requestSender.sendAndExtractBody(request);
50
+ return result.questions;
51
+ }
52
+ // TODO: TSurveyResult is a placeholder type. Once we have the actual survey result structure defined, we should replace this with a more specific type.
53
+ async retrieveSurveyResult() {
54
+ const request = this.createGetRequest("/survey/result");
55
+ return this.requestSender.sendAndExtractBody(request);
56
+ }
57
+ // TODO: TSubmitSurveyRequest is a placeholder type. Once we have the actual survey submission payload structure defined, we should replace this with a more specific type.
58
+ async submitSurvey(payload) {
59
+ const request = this.createPostRequest("/survey");
60
+ request.send(payload);
61
+ await this.requestSender.send(request);
62
+ }
47
63
  createGetRequest(relative = '') {
48
64
  return this.superAgentRequestFactory.get(this.buildUrl(relative));
49
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lurch-client.js","sourceRoot":"","sources":["../../src/lurch-client.ts"],"names":[],"mappings":";;;AASA,iFAA6E;AAG7E,MAAa,WAAW;IAGvB,IAAc,OAAO;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,YACS,wBAAmD,EACnD,aAA6B,EACrC,UAAkB,EAAE;QAFZ,6BAAwB,GAAxB,wBAAwB,CAA2B;QACnD,kBAAa,GAAb,aAAa,CAAgB;QAGrC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,uBAAuB;QACnC,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;QACxD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAA6B,OAAO,CAAC,CAAC;QAEhG,OAAO,MAAM,CAAC,YAAY,CAAC;IAC5B,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,kBAA0B;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;QAC/D,OAAO,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;QAErC,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,kBAA0B;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;QAC/D,OAAO,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;QAErC,MAAM,IA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O,gBAAgB,CAAC,WAAmB,EAAE;QAC7C,OAAO,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnE,CAAC;IAEO,iBAAiB,CAAC,WAAmB,EAAE;QAC9C,OAAO,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpE,CAAC;IAEO,QAAQ,CAAC,QAAgB;QAChC,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,QAAQ,EAAE,CAAC;IACrC,CAAC;CACD;AA9FD,kCA8FC"}
@@ -0,0 +1,8 @@
1
+ import { SuccessResult } from "@studyportals/sp-r2d2-interface";
2
+ import { ISurveyQuestion } from "../survey/interfaces/i-survey-question.interface";
3
+ export declare class RetrieveSurveyQuestionsResult extends SuccessResult {
4
+ readonly questions: ISurveyQuestion[];
5
+ readonly __retrieve_survey_questions_result__: true;
6
+ constructor(questions: ISurveyQuestion[]);
7
+ protected toJSON(): object;
8
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetrieveSurveyQuestionsResult = void 0;
4
+ const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
5
+ class RetrieveSurveyQuestionsResult extends sp_r2d2_interface_1.SuccessResult {
6
+ constructor(questions) {
7
+ super();
8
+ this.questions = questions;
9
+ this.__retrieve_survey_questions_result__ = true;
10
+ }
11
+ toJSON() {
12
+ const obj = super.toJSON();
13
+ obj["__retrieve_survey_questions_result__"] = this.__retrieve_survey_questions_result__;
14
+ obj["questions"] = this.questions;
15
+ return obj;
16
+ }
17
+ }
18
+ exports.RetrieveSurveyQuestionsResult = RetrieveSurveyQuestionsResult;
19
+ //# sourceMappingURL=retrieve-survey-questions-result.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve-survey-questions-result.class.js","sourceRoot":"","sources":["../../../src/results/retrieve-survey-questions-result.class.ts"],"names":[],"mappings":";;;AAAA,uEAAgE;AAGhE,MAAa,6BAA8B,SAAQ,iCAAa;IAG/D,YAAmC,SAA4B;QAC9D,KAAK,EAAE,CAAC;QAD0B,cAAS,GAAT,SAAS,CAAmB;QAF/C,yCAAoC,GAAS,IAAI,CAAC;IAIlE,CAAC;IAES,MAAM;QACf,MAAM,GAAG,GAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;QAEhC,GAAG,CAAC,sCAAsC,CAAC,GAAG,IAAI,CAAC,oCAAoC,CAAC;QACxF,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QAElC,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAfD,sEAeC"}
@@ -0,0 +1,7 @@
1
+ export declare enum SurveyAnswerType {
2
+ SingleSelect = "single_select",
3
+ MultiSelect = "multi_select",
4
+ Number = "number",
5
+ Text = "text",
6
+ Boolean = "boolean"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SurveyAnswerType = void 0;
4
+ var SurveyAnswerType;
5
+ (function (SurveyAnswerType) {
6
+ SurveyAnswerType["SingleSelect"] = "single_select";
7
+ SurveyAnswerType["MultiSelect"] = "multi_select";
8
+ SurveyAnswerType["Number"] = "number";
9
+ SurveyAnswerType["Text"] = "text";
10
+ SurveyAnswerType["Boolean"] = "boolean";
11
+ })(SurveyAnswerType || (exports.SurveyAnswerType = SurveyAnswerType = {}));
12
+ //# sourceMappingURL=survey-answer-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-type.enum.js","sourceRoot":"","sources":["../../../../src/survey/enums/survey-answer-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,kDAA8B,CAAA;IAC9B,gDAA4B,CAAA;IAC5B,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;AACpB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
@@ -0,0 +1,6 @@
1
+ export interface ISurveyQuestionOption {
2
+ optionId: string;
3
+ questionId: string;
4
+ label: string;
5
+ isActive: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-survey-question-option.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-survey-question-option.interface.js","sourceRoot":"","sources":["../../../../src/survey/interfaces/i-survey-question-option.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { SurveyAnswerType } from "../enums/survey-answer-type.enum";
2
+ import { ISurveyQuestionOption } from "./i-survey-question-option.interface";
3
+ export interface ISurveyQuestion {
4
+ questionId: string;
5
+ surveyVersion: number;
6
+ displayOrder: number;
7
+ label: string;
8
+ resultLabel: string;
9
+ answerType: SurveyAnswerType;
10
+ isRequired: boolean;
11
+ isActive: boolean;
12
+ options: ISurveyQuestionOption[];
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-survey-question.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-survey-question.interface.js","sourceRoot":"","sources":["../../../../src/survey/interfaces/i-survey-question.interface.ts"],"names":[],"mappings":""}