@studyportals/sp-lurch-interface 2.15.0 → 3.0.0-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 +21 -21
- package/index.js +16 -33
- package/index.js.map +1 -1
- package/package.json +23 -21
- package/src/entities/organisation/i-organisation.interface.d.ts +5 -5
- package/src/entities/organisation/i-organisation.interface.js +1 -2
- package/src/entities/organisation/organisation-dto.class.d.ts +7 -7
- package/src/entities/organisation/organisation-dto.class.js +7 -11
- package/src/entities/organisation/organisation-dto.class.js.map +1 -1
- package/src/entities/organisation/organisations-dto.d.ts +6 -6
- package/src/entities/organisation/organisations-dto.js +6 -10
- package/src/entities/organisation/organisations-dto.js.map +1 -1
- package/src/input-batches/input-batch-dto.class.d.ts +15 -15
- package/src/input-batches/input-batch-dto.class.js +15 -19
- package/src/input-batches/input-batch-dto.class.js.map +1 -1
- package/src/input-batches/input-batch-status.d.ts +5 -5
- package/src/input-batches/input-batch-status.js +6 -9
- package/src/input-batches/input-batch-status.js.map +1 -1
- package/src/input-batches/interfaces/i-input-batch.interface.d.ts +13 -13
- package/src/input-batches/interfaces/i-input-batch.interface.js +1 -2
- package/src/intakes/intake-dto.class.d.ts +14 -14
- package/src/intakes/intake-dto.class.js +13 -17
- package/src/intakes/intake-dto.class.js.map +1 -1
- package/src/intakes/intake-stage-type.d.ts +6 -6
- package/src/intakes/intake-stage-type.js +7 -10
- package/src/intakes/intake-stage-type.js.map +1 -1
- package/src/intakes/interfaces/i-intake.interface.d.ts +12 -12
- package/src/intakes/interfaces/i-intake.interface.js +1 -2
- package/src/intakes/interfaces/i-match.interface.d.ts +4 -4
- package/src/intakes/interfaces/i-match.interface.js +1 -2
- package/src/intakes/match-dto.class.d.ts +6 -6
- package/src/intakes/match-dto.class.js +6 -10
- package/src/intakes/match-dto.class.js.map +1 -1
- package/src/lurch-client.d.ts +19 -19
- package/src/lurch-client.js +72 -76
- package/src/lurch-client.js.map +1 -1
- package/src/results/discard-input-batch-result.class.d.ts +6 -6
- package/src/results/discard-input-batch-result.class.js +12 -16
- package/src/results/discard-input-batch-result.class.js.map +1 -1
- package/src/results/microsite-student-profile-result.class.d.ts +8 -8
- package/src/results/microsite-student-profile-result.class.js +14 -18
- package/src/results/microsite-student-profile-result.class.js.map +1 -1
- package/src/results/retrieve-input-batch-result.class.d.ts +8 -8
- package/src/results/retrieve-input-batch-result.class.js +14 -18
- package/src/results/retrieve-input-batch-result.class.js.map +1 -1
- package/src/results/retrieve-input-batches-result.class.d.ts +8 -8
- package/src/results/retrieve-input-batches-result.class.js +14 -18
- package/src/results/retrieve-input-batches-result.class.js.map +1 -1
- package/src/results/retrieve-intake-result.class.d.ts +8 -8
- package/src/results/retrieve-intake-result.class.js +14 -18
- package/src/results/retrieve-intake-result.class.js.map +1 -1
- package/src/results/retrieve-intakes-result.class.d.ts +8 -8
- package/src/results/retrieve-intakes-result.class.js +14 -18
- package/src/results/retrieve-intakes-result.class.js.map +1 -1
- package/src/results/retrieve-organisations-result.class.d.ts +9 -9
- package/src/results/retrieve-organisations-result.class.js +16 -20
- package/src/results/retrieve-organisations-result.class.js.map +1 -1
- package/src/results/submit-matches-result.class.d.ts +6 -6
- package/src/results/submit-matches-result.class.js +12 -16
- package/src/results/submit-matches-result.class.js.map +1 -1
- package/src/student-profile/interfaces/I-microsite-student-profile.interface.d.ts +9 -9
- package/src/student-profile/interfaces/I-microsite-student-profile.interface.js +1 -2
- package/tests-u/entities/organisations/organisation-dto.test.d.ts +1 -1
- package/tests-u/entities/organisations/organisation-dto.test.js +59 -61
- package/tests-u/entities/organisations/organisation-dto.test.js.map +1 -1
- package/tests-u/input-batches/input-batch-dto.test.d.ts +1 -1
- package/tests-u/input-batches/input-batch-dto.test.js +147 -149
- package/tests-u/input-batches/input-batch-dto.test.js.map +1 -1
- package/tests-u/input-batches/input-batch-status.test.d.ts +1 -1
- package/tests-u/input-batches/input-batch-status.test.js +44 -46
- package/tests-u/input-batches/input-batch-status.test.js.map +1 -1
- package/tests-u/intakes/intake-dto.test.d.ts +1 -1
- package/tests-u/intakes/intake-dto.test.js +125 -127
- package/tests-u/intakes/intake-dto.test.js.map +1 -1
- package/tests-u/intakes/intake-stage-type.test.d.ts +1 -1
- package/tests-u/intakes/intake-stage-type.test.js +53 -55
- package/tests-u/intakes/intake-stage-type.test.js.map +1 -1
- package/tests-u/intakes/match-dto.test.d.ts +1 -1
- package/tests-u/intakes/match-dto.test.js +48 -50
- package/tests-u/intakes/match-dto.test.js.map +1 -1
- package/tests-u/lurch-client.test.d.ts +1 -1
- package/tests-u/lurch-client.test.js +302 -302
- package/tests-u/lurch-client.test.js.map +1 -1
- package/tests-u/results/discard-input-batch-result.test.d.ts +1 -1
- package/tests-u/results/discard-input-batch-result.test.js +37 -39
- package/tests-u/results/discard-input-batch-result.test.js.map +1 -1
- package/tests-u/results/retrieve-input-batch-result.test.d.ts +1 -1
- package/tests-u/results/retrieve-input-batch-result.test.js +48 -50
- package/tests-u/results/retrieve-input-batch-result.test.js.map +1 -1
- package/tests-u/results/retrieve-input-batches-result.test.d.ts +1 -1
- package/tests-u/results/retrieve-input-batches-result.test.js +48 -50
- package/tests-u/results/retrieve-input-batches-result.test.js.map +1 -1
- package/tests-u/results/retrieve-intake-result.test.d.ts +1 -1
- package/tests-u/results/retrieve-intake-result.test.js +48 -50
- package/tests-u/results/retrieve-intake-result.test.js.map +1 -1
- package/tests-u/results/retrieve-intakes-result.test.d.ts +1 -1
- package/tests-u/results/retrieve-intakes-result.test.js +48 -50
- package/tests-u/results/retrieve-intakes-result.test.js.map +1 -1
- package/tests-u/results/retrieve-organisation-result.test.d.ts +1 -1
- package/tests-u/results/retrieve-organisation-result.test.js +50 -52
- package/tests-u/results/retrieve-organisation-result.test.js.map +1 -1
- package/tests-u/results/submit-matches-result.test.d.ts +1 -1
- package/tests-u/results/submit-matches-result.test.js +28 -30
- package/tests-u/results/submit-matches-result.test.js.map +1 -1
- package/src/entities/organisation/main-organisations-dto.d.ts +0 -6
- package/src/entities/organisation/main-organisations-dto.js +0 -11
- package/src/entities/organisation/main-organisations-dto.js.map +0 -1
- package/src/results/retrieve-main-organisations-result.class.d.ts +0 -9
- package/src/results/retrieve-main-organisations-result.class.js +0 -21
- package/src/results/retrieve-main-organisations-result.class.js.map +0 -1
- package/src/student-profile/interfaces/I-student-profile.interface.d.ts +0 -9
- package/src/student-profile/interfaces/I-student-profile.interface.js +0 -3
- package/src/student-profile/interfaces/I-student-profile.interface.js.map +0 -1
- package/tests-u/results/retrieve-main-organisation-result.test.d.ts +0 -1
- package/tests-u/results/retrieve-main-organisation-result.test.js +0 -53
- package/tests-u/results/retrieve-main-organisation-result.test.js.map +0 -1
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
__metadata("design:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
__metadata("design:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
__metadata("design:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
RetrieveIntakesResultTest
|
|
49
|
-
mocha_typescript_1.suite
|
|
50
|
-
], RetrieveIntakesResultTest);
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { assert } from "chai";
|
|
11
|
+
import { suite, test } from "@testdeck/mocha";
|
|
12
|
+
import { RetrieveIntakesResult } from "../../src/results/retrieve-intakes-result.class";
|
|
13
|
+
let RetrieveIntakesResultTest = class RetrieveIntakesResultTest {
|
|
14
|
+
constructor__TypeGuardInitialized() {
|
|
15
|
+
const testInstance = new RetrieveIntakesResult([]);
|
|
16
|
+
assert.isTrue(testInstance.__retrieve_intakes_result__);
|
|
17
|
+
}
|
|
18
|
+
serialization__TypeGuardSerialized() {
|
|
19
|
+
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakesResult([])));
|
|
20
|
+
assert.isTrue(deserialization.__retrieve_intakes_result__);
|
|
21
|
+
}
|
|
22
|
+
serialization__IntakesSerialized() {
|
|
23
|
+
const value = "SomeValue";
|
|
24
|
+
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakesResult(value)));
|
|
25
|
+
assert.equal(deserialization.intakes, value);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
test,
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", []),
|
|
32
|
+
__metadata("design:returntype", void 0)
|
|
33
|
+
], RetrieveIntakesResultTest.prototype, "constructor__TypeGuardInitialized", null);
|
|
34
|
+
__decorate([
|
|
35
|
+
test,
|
|
36
|
+
__metadata("design:type", Function),
|
|
37
|
+
__metadata("design:paramtypes", []),
|
|
38
|
+
__metadata("design:returntype", void 0)
|
|
39
|
+
], RetrieveIntakesResultTest.prototype, "serialization__TypeGuardSerialized", null);
|
|
40
|
+
__decorate([
|
|
41
|
+
test,
|
|
42
|
+
__metadata("design:type", Function),
|
|
43
|
+
__metadata("design:paramtypes", []),
|
|
44
|
+
__metadata("design:returntype", void 0)
|
|
45
|
+
], RetrieveIntakesResultTest.prototype, "serialization__IntakesSerialized", null);
|
|
46
|
+
RetrieveIntakesResultTest = __decorate([
|
|
47
|
+
suite
|
|
48
|
+
], RetrieveIntakesResultTest);
|
|
51
49
|
//# sourceMappingURL=retrieve-intakes-result.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-intakes-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/retrieve-intakes-result.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-intakes-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/retrieve-intakes-result.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAIxF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAEvB,iCAAiC;QACvC,MAAM,YAAY,GAAG,IAAI,qBAAqB,CAAC,EAAE,CAAC,CAAC;QAEnD,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IACzD,CAAC;IAGM,kCAAkC;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAElF,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,2BAA2B,CAAC,CAAC;IAC5D,CAAC;IAGM,gCAAgC;QACtC,MAAM,KAAK,GAAG,WAAkB,CAAC;QACjC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAErF,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;CACD,CAAA;AApBO;IADN,IAAI;;;;kFAKJ;AAGM;IADN,IAAI;;;;mFAKJ;AAGM;IADN,IAAI;;;;iFAMJ;AArBI,yBAAyB;IAD9B,KAAK;GACA,yBAAyB,CAsB9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,53 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
__metadata("design:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
__metadata("design:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
__metadata("design:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
RetrieveOrganisationsResultTest
|
|
51
|
-
mocha_typescript_1.suite
|
|
52
|
-
], RetrieveOrganisationsResultTest);
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { assert } from "chai";
|
|
11
|
+
import { suite, test } from "@testdeck/mocha";
|
|
12
|
+
import { RetrieveOrganisationsResult } from "../../src/results/retrieve-organisations-result.class";
|
|
13
|
+
let RetrieveOrganisationsResultTest = class RetrieveOrganisationsResultTest {
|
|
14
|
+
constructor__TypeGuardInitialized() {
|
|
15
|
+
const testInstance = new RetrieveOrganisationsResult([], 0);
|
|
16
|
+
assert.isTrue(testInstance.__retrieve_organisation_result__);
|
|
17
|
+
}
|
|
18
|
+
serialization__TypeGuardSerialized() {
|
|
19
|
+
const deserialization = JSON.parse(JSON.stringify(new RetrieveOrganisationsResult([], 0)));
|
|
20
|
+
assert.isTrue(deserialization.__retrieve_organisation_result__);
|
|
21
|
+
}
|
|
22
|
+
serialization__OrganisationsSerialized() {
|
|
23
|
+
const value = "SomeValue";
|
|
24
|
+
const userId = 1;
|
|
25
|
+
const deserialization = JSON.parse(JSON.stringify(new RetrieveOrganisationsResult(value, userId)));
|
|
26
|
+
assert.equal(deserialization.organisations, value);
|
|
27
|
+
assert.equal(deserialization.userId, userId);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
test,
|
|
32
|
+
__metadata("design:type", Function),
|
|
33
|
+
__metadata("design:paramtypes", []),
|
|
34
|
+
__metadata("design:returntype", void 0)
|
|
35
|
+
], RetrieveOrganisationsResultTest.prototype, "constructor__TypeGuardInitialized", null);
|
|
36
|
+
__decorate([
|
|
37
|
+
test,
|
|
38
|
+
__metadata("design:type", Function),
|
|
39
|
+
__metadata("design:paramtypes", []),
|
|
40
|
+
__metadata("design:returntype", void 0)
|
|
41
|
+
], RetrieveOrganisationsResultTest.prototype, "serialization__TypeGuardSerialized", null);
|
|
42
|
+
__decorate([
|
|
43
|
+
test,
|
|
44
|
+
__metadata("design:type", Function),
|
|
45
|
+
__metadata("design:paramtypes", []),
|
|
46
|
+
__metadata("design:returntype", void 0)
|
|
47
|
+
], RetrieveOrganisationsResultTest.prototype, "serialization__OrganisationsSerialized", null);
|
|
48
|
+
RetrieveOrganisationsResultTest = __decorate([
|
|
49
|
+
suite
|
|
50
|
+
], RetrieveOrganisationsResultTest);
|
|
53
51
|
//# sourceMappingURL=retrieve-organisation-result.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-organisation-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/retrieve-organisation-result.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-organisation-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/retrieve-organisation-result.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAIpG,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAE7B,iCAAiC;QACvC,MAAM,YAAY,GAAG,IAAI,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAE5D,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,gCAAgC,CAAC,CAAC;IAC9D,CAAC;IAGM,kCAAkC;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAE3F,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC;IACjE,CAAC;IAGM,sCAAsC;QAC5C,MAAM,KAAK,GAAG,WAAkB,CAAC;QACjC,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,2BAA2B,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QAEnG,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACnD,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;CACD,CAAA;AAtBO;IADN,IAAI;;;;wFAKJ;AAGM;IADN,IAAI;;;;yFAKJ;AAGM;IADN,IAAI;;;;6FAQJ;AAvBI,+BAA+B;IADpC,KAAK;GACA,+BAA+B,CAwBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
__metadata("design:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
SubmitMatchesResultTest
|
|
29
|
-
mocha_typescript_1.suite
|
|
30
|
-
], SubmitMatchesResultTest);
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { assert } from "chai";
|
|
11
|
+
import { suite, test } from "@testdeck/mocha";
|
|
12
|
+
import { SubmitMatchesResult } from "../../src/results/submit-matches-result.class";
|
|
13
|
+
let SubmitMatchesResultTest = class SubmitMatchesResultTest {
|
|
14
|
+
serialization__ConfirmedMatchesCountSerialized() {
|
|
15
|
+
const value = "SomeValue";
|
|
16
|
+
const deserialization = JSON.parse(JSON.stringify(new SubmitMatchesResult(value)));
|
|
17
|
+
assert.equal(deserialization.confirmedMatchesCount, value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
test,
|
|
22
|
+
__metadata("design:type", Function),
|
|
23
|
+
__metadata("design:paramtypes", []),
|
|
24
|
+
__metadata("design:returntype", void 0)
|
|
25
|
+
], SubmitMatchesResultTest.prototype, "serialization__ConfirmedMatchesCountSerialized", null);
|
|
26
|
+
SubmitMatchesResultTest = __decorate([
|
|
27
|
+
suite
|
|
28
|
+
], SubmitMatchesResultTest);
|
|
31
29
|
//# sourceMappingURL=submit-matches-result.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-matches-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/submit-matches-result.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit-matches-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/submit-matches-result.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAIpF,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAErB,8CAA8C;QACpD,MAAM,KAAK,GAAG,WAAkB,CAAC;QACjC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEnF,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;CACD,CAAA;AANO;IADN,IAAI;;;;6FAMJ;AAPI,uBAAuB;IAD5B,KAAK;GACA,uBAAuB,CAQ5B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MainOrganisationsDto = void 0;
|
|
4
|
-
class MainOrganisationsDto {
|
|
5
|
-
constructor(userId, organisations) {
|
|
6
|
-
this.userId = userId;
|
|
7
|
-
this.organisations = organisations;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.MainOrganisationsDto = MainOrganisationsDto;
|
|
11
|
-
//# sourceMappingURL=main-organisations-dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main-organisations-dto.js","sourceRoot":"","sources":["../../../../src/entities/organisation/main-organisations-dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;IAChC,YACiB,MAAc,EACd,aAA8B;QAD9B,WAAM,GAAN,MAAM,CAAQ;QACd,kBAAa,GAAb,aAAa,CAAiB;IAC3C,CAAC;CACL;AALD,oDAKC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
|
|
2
|
-
import { IOrganisation } from "../entities/organisation/i-organisation.interface";
|
|
3
|
-
export declare class RetrieveMainOrganisationsResult extends SuccessResult {
|
|
4
|
-
readonly organisations: IOrganisation[];
|
|
5
|
-
readonly userId: number;
|
|
6
|
-
readonly __retrieve_main_organisation_result__: true;
|
|
7
|
-
constructor(organisations: IOrganisation[], userId: number);
|
|
8
|
-
protected toJSON(): object;
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RetrieveMainOrganisationsResult = void 0;
|
|
4
|
-
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
|
|
5
|
-
class RetrieveMainOrganisationsResult extends sp_r2d2_interface_1.SuccessResult {
|
|
6
|
-
constructor(organisations, userId) {
|
|
7
|
-
super();
|
|
8
|
-
this.organisations = organisations;
|
|
9
|
-
this.userId = userId;
|
|
10
|
-
this.__retrieve_main_organisation_result__ = true;
|
|
11
|
-
}
|
|
12
|
-
toJSON() {
|
|
13
|
-
const obj = super.toJSON();
|
|
14
|
-
obj["__retrieve_main_organisation_result__"] = this.__retrieve_main_organisation_result__;
|
|
15
|
-
obj["organisations"] = this.organisations;
|
|
16
|
-
obj["userId"] = this.userId;
|
|
17
|
-
return obj;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.RetrieveMainOrganisationsResult = RetrieveMainOrganisationsResult;
|
|
21
|
-
//# sourceMappingURL=retrieve-main-organisations-result.class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-main-organisations-result.class.js","sourceRoot":"","sources":["../../../src/results/retrieve-main-organisations-result.class.ts"],"names":[],"mappings":";;;AAAA,uEAAgE;AAIhE,MAAa,+BAAgC,SAAQ,iCAAa;IAIjE,YACiB,aAA8B,EAC9B,MAAc;QAE9B,KAAK,EAAE,CAAC;QAHQ,kBAAa,GAAb,aAAa,CAAiB;QAC9B,WAAM,GAAN,MAAM,CAAQ;QALf,0CAAqC,GAAS,IAAI,CAAC;IAQnE,CAAC;IAGS,MAAM;QACf,MAAM,GAAG,GAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;QAEhC,GAAG,CAAC,uCAAuC,CAAC,GAAG,IAAI,CAAC,qCAAqC,CAAC;QAC1F,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;QAC1C,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE5B,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AArBD,0EAqBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"I-student-profile.interface.js","sourceRoot":"","sources":["../../../../src/student-profile/interfaces/I-student-profile.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const chai_1 = require("chai");
|
|
13
|
-
const mocha_typescript_1 = require("mocha-typescript");
|
|
14
|
-
const retrieve_main_organisations_result_class_1 = require("../../src/results/retrieve-main-organisations-result.class");
|
|
15
|
-
let RetrieveMainOrganisationsResultTest = class RetrieveMainOrganisationsResultTest {
|
|
16
|
-
constructor__TypeGuardInitialized() {
|
|
17
|
-
const testInstance = new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([], 0);
|
|
18
|
-
chai_1.assert.isTrue(testInstance.__retrieve_main_organisation_result__);
|
|
19
|
-
}
|
|
20
|
-
serialization__TypeGuardSerialized() {
|
|
21
|
-
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([], 0)));
|
|
22
|
-
chai_1.assert.isTrue(deserialization.__retrieve_main_organisation_result__);
|
|
23
|
-
}
|
|
24
|
-
serialization__OrganisationsSerialized() {
|
|
25
|
-
const value = "SomeValue";
|
|
26
|
-
const userId = 1;
|
|
27
|
-
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult(value, userId)));
|
|
28
|
-
chai_1.assert.equal(deserialization.organisations, value);
|
|
29
|
-
chai_1.assert.equal(deserialization.userId, userId);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
__decorate([
|
|
33
|
-
mocha_typescript_1.test,
|
|
34
|
-
__metadata("design:type", Function),
|
|
35
|
-
__metadata("design:paramtypes", []),
|
|
36
|
-
__metadata("design:returntype", void 0)
|
|
37
|
-
], RetrieveMainOrganisationsResultTest.prototype, "constructor__TypeGuardInitialized", null);
|
|
38
|
-
__decorate([
|
|
39
|
-
mocha_typescript_1.test,
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", []),
|
|
42
|
-
__metadata("design:returntype", void 0)
|
|
43
|
-
], RetrieveMainOrganisationsResultTest.prototype, "serialization__TypeGuardSerialized", null);
|
|
44
|
-
__decorate([
|
|
45
|
-
mocha_typescript_1.test,
|
|
46
|
-
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", []),
|
|
48
|
-
__metadata("design:returntype", void 0)
|
|
49
|
-
], RetrieveMainOrganisationsResultTest.prototype, "serialization__OrganisationsSerialized", null);
|
|
50
|
-
RetrieveMainOrganisationsResultTest = __decorate([
|
|
51
|
-
mocha_typescript_1.suite
|
|
52
|
-
], RetrieveMainOrganisationsResultTest);
|
|
53
|
-
//# sourceMappingURL=retrieve-main-organisation-result.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-main-organisation-result.test.js","sourceRoot":"","sources":["../../../tests-u/results/retrieve-main-organisation-result.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+BAA8B;AAC9B,uDAA+C;AAE/C,yHAA6G;AAI7G,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAEjC,iCAAiC;QACvC,MAAM,YAAY,GAAG,IAAI,0EAA+B,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAEhE,aAAM,CAAC,MAAM,CAAC,YAAY,CAAC,qCAAqC,CAAC,CAAC;IACnE,CAAC;IAGM,kCAAkC;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,0EAA+B,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAE/F,aAAM,CAAC,MAAM,CAAC,eAAe,CAAC,qCAAqC,CAAC,CAAC;IACtE,CAAC;IAGM,sCAAsC;QAC5C,MAAM,KAAK,GAAG,WAAkB,CAAC;QACjC,MAAM,MAAM,GAAG,CAAC,CAAC;QACjB,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,0EAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QAEvG,aAAM,CAAC,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACnD,aAAM,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;CACD,CAAA;AAtBA;IADC,uBAAI;;;;4FAKJ;AAGD;IADC,uBAAI;;;;6FAKJ;AAGD;IADC,uBAAI;;;;iGAQJ;AAvBI,mCAAmC;IADxC,wBAAK;GACA,mCAAmC,CAwBxC"}
|