@studyportals/search-api-interface 1.2.2-0 → 1.2.2-4
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/package.json +5 -3
- package/src/programmes/IProgrammeSearchFilters.d.ts +9 -10
- package/src/programmes/IProgrammeSearchFilters.js.map +1 -1
- package/src/programmes/ProgrammeSearchFilters.d.ts +9 -10
- package/src/programmes/ProgrammeSearchFilters.js +0 -35
- package/src/programmes/ProgrammeSearchFilters.js.map +1 -1
- package/src/programmes/ProgrammeSearchInput.d.ts +9 -10
- package/src/programmes/TuitionFeeFilterValueDTO.d.ts +4 -0
- package/src/programmes/TuitionFeeFilterValueDTO.js +3 -0
- package/src/programmes/TuitionFeeFilterValueDTO.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studyportals/search-api-interface",
|
|
3
|
-
"version": "1.2.2-
|
|
3
|
+
"version": "1.2.2-4",
|
|
4
4
|
"description": "Typescript library containing resources that facilitate integration with SearchApi",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,10 @@
|
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
23
23
|
"@typescript-eslint/parser": "^5.27.0",
|
|
24
24
|
"eslint": "^8.17.0",
|
|
25
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^5.5.4",
|
|
26
26
|
"typescript-transform-paths": "^3.4.6"
|
|
27
27
|
},
|
|
28
|
-
"dependencies": {
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@studyportals/search-filters": "4.3.1-5"
|
|
30
|
+
}
|
|
29
31
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, DurationFilterOptionValue, EducationLevelFilterOptionValue, EducationalFormFilterOptionValue, SpecialProgrammesFilterOptionValue } from "@studyportals/search-filters/server";
|
|
2
|
+
import { TuitionFeeFilterValueDTO } from "./TuitionFeeFilterValueDTO";
|
|
1
3
|
export declare class IProgrammeSearchFilters {
|
|
2
|
-
readonly attendances?:
|
|
3
|
-
readonly degreeTypes?:
|
|
4
|
+
readonly attendances?: AttendanceFilterOptionValue[];
|
|
5
|
+
readonly degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
4
6
|
readonly disciplines?: string[];
|
|
5
|
-
readonly durations?:
|
|
6
|
-
readonly educationalLevels?:
|
|
7
|
-
readonly educationalForms?:
|
|
7
|
+
readonly durations?: DurationFilterOptionValue[];
|
|
8
|
+
readonly educationalLevels?: EducationLevelFilterOptionValue[];
|
|
9
|
+
readonly educationalForms?: EducationalFormFilterOptionValue[];
|
|
8
10
|
readonly keyword?: string;
|
|
9
11
|
readonly areaIds?: string[];
|
|
10
12
|
readonly regionIds?: string[];
|
|
11
13
|
readonly countryIsoCodes?: string[];
|
|
12
14
|
readonly organisationId?: string;
|
|
13
|
-
readonly specialProgrammes?:
|
|
14
|
-
readonly tuitionFee?:
|
|
15
|
-
min: number;
|
|
16
|
-
max: number;
|
|
17
|
-
};
|
|
15
|
+
readonly specialProgrammes?: SpecialProgrammesFilterOptionValue[];
|
|
16
|
+
readonly tuitionFee?: TuitionFeeFilterValueDTO;
|
|
18
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/IProgrammeSearchFilters.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/IProgrammeSearchFilters.ts"],"names":[],"mappings":";;;AAWA,MAAa,uBAAuB;CAgBnC;AAhBD,0DAgBC"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { IProgrammeSearchFilters } from "./IProgrammeSearchFilters";
|
|
2
2
|
import { ProgrammeSearchInput } from "./ProgrammeSearchInput";
|
|
3
|
+
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, DurationFilterOptionValue, EducationLevelFilterOptionValue, EducationalFormFilterOptionValue, SpecialProgrammesFilterOptionValue } from "@studyportals/search-filters/server";
|
|
4
|
+
import { TuitionFeeFilterValueDTO } from "./TuitionFeeFilterValueDTO";
|
|
3
5
|
export declare class ProgrammeSearchFilters implements IProgrammeSearchFilters {
|
|
4
|
-
attendances?:
|
|
5
|
-
degreeTypes?:
|
|
6
|
+
attendances?: AttendanceFilterOptionValue[];
|
|
7
|
+
degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
6
8
|
disciplines?: string[];
|
|
7
|
-
durations?:
|
|
8
|
-
educationalLevels?:
|
|
9
|
-
educationalForms?:
|
|
9
|
+
durations?: DurationFilterOptionValue[];
|
|
10
|
+
educationalLevels?: EducationLevelFilterOptionValue[];
|
|
11
|
+
educationalForms?: EducationalFormFilterOptionValue[];
|
|
10
12
|
keyword?: string;
|
|
11
13
|
areaIds?: string[];
|
|
12
14
|
regionIds?: string[];
|
|
13
15
|
countryIsoCodes?: string[];
|
|
14
16
|
organisationId?: string;
|
|
15
|
-
specialProgrammes?:
|
|
16
|
-
tuitionFee?:
|
|
17
|
-
min: number;
|
|
18
|
-
max: number;
|
|
19
|
-
};
|
|
17
|
+
specialProgrammes?: SpecialProgrammesFilterOptionValue[];
|
|
18
|
+
tuitionFee?: TuitionFeeFilterValueDTO;
|
|
20
19
|
from(input: ProgrammeSearchInput): IProgrammeSearchFilters;
|
|
21
20
|
private numbersToStringsOrUndefined;
|
|
22
21
|
}
|
|
@@ -18,41 +18,6 @@ class ProgrammeSearchFilters {
|
|
|
18
18
|
this.tuitionFee = input.tuitionFee;
|
|
19
19
|
return this;
|
|
20
20
|
}
|
|
21
|
-
/*
|
|
22
|
-
public consideringId(id: string): OrganisationSearchFilters {
|
|
23
|
-
this.organisationId = id;
|
|
24
|
-
return this;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public consideringDegree(degree: DegreeTypeEnum): OrganisationSearchFilters {
|
|
28
|
-
this.degree = degree;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
public consideringDisciplines(disciplines: string[]): OrganisationSearchFilters {
|
|
33
|
-
this.disciplines = disciplines;
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
public consideringDeliveryMethods(deliveryMethods: DeliveryMethodEnum[]): OrganisationSearchFilters {
|
|
38
|
-
this.deliveryMethods = deliveryMethods;
|
|
39
|
-
return this;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public consideringCountryIsoCodes(countryIsoCodes: string[]): OrganisationSearchFilters {
|
|
43
|
-
this.countryIsoCodes = countryIsoCodes;
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public consideringRegionIds(regionIds: string[]): OrganisationSearchFilters {
|
|
48
|
-
this.regionIds = regionIds;
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
public consideringAreaIds(areaIds: string[]): OrganisationSearchFilters {
|
|
53
|
-
this.areaIds = areaIds;
|
|
54
|
-
return this;
|
|
55
|
-
}*/
|
|
56
21
|
numbersToStringsOrUndefined(values) {
|
|
57
22
|
if (values === undefined)
|
|
58
23
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/ProgrammeSearchFilters.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/ProgrammeSearchFilters.ts"],"names":[],"mappings":";;;AAcA,MAAa,sBAAsB;IAiB3B,IAAI,CAAC,KAA2B;QACtC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACvE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAE7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAE7C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QACzF,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAEhD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;QAEnC,OAAO,IAAI,CAAC;IACb,CAAC;IAEO,2BAA2B,CAAC,MAA4B;QAC/D,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO;QACjC,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC;CACD;AA1CD,wDA0CC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
+
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, DurationFilterOptionValue, EducationLevelFilterOptionValue, EducationalFormFilterOptionValue, SpecialProgrammesFilterOptionValue } from "@studyportals/search-filters/server";
|
|
2
|
+
import { TuitionFeeFilterValueDTO } from "./TuitionFeeFilterValueDTO";
|
|
1
3
|
export type ProgrammeSearchInput = {
|
|
2
4
|
resultSize: number;
|
|
3
5
|
resultOffset: number;
|
|
4
|
-
attendances
|
|
5
|
-
degreeTypes
|
|
6
|
+
attendances?: AttendanceFilterOptionValue[];
|
|
7
|
+
degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
6
8
|
disciplines?: number[];
|
|
7
|
-
durations
|
|
8
|
-
educationalLevels
|
|
9
|
-
educationalForms
|
|
9
|
+
durations?: DurationFilterOptionValue[];
|
|
10
|
+
educationalLevels?: EducationLevelFilterOptionValue[];
|
|
11
|
+
educationalForms?: EducationalFormFilterOptionValue[];
|
|
10
12
|
keyword: string;
|
|
11
13
|
areaIds?: number[];
|
|
12
14
|
regionIds?: number[];
|
|
13
15
|
countryIsoCodes?: string[];
|
|
14
16
|
organisationId?: number;
|
|
15
|
-
specialProgrammes
|
|
16
|
-
tuitionFee
|
|
17
|
-
min: number;
|
|
18
|
-
max: number;
|
|
19
|
-
};
|
|
17
|
+
specialProgrammes?: SpecialProgrammesFilterOptionValue[];
|
|
18
|
+
tuitionFee?: TuitionFeeFilterValueDTO;
|
|
20
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TuitionFeeFilterValueDTO.js","sourceRoot":"","sources":["../../../src/programmes/TuitionFeeFilterValueDTO.ts"],"names":[],"mappings":""}
|