@studyportals/search-api-interface 3.7.1-22 → 3.7.1
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 +2 -2
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +32 -32
- package/src/organisations/IOrganisationSearchFilters.d.ts +0 -3
- package/src/organisations/IOrganisationSearchFilters.js +0 -2
- package/src/organisations/IOrganisationSearchFilters.js.map +1 -1
- package/src/organisations/OrganisationSearchFilters.d.ts +0 -3
- package/src/organisations/OrganisationSearchFilters.js +0 -4
- package/src/organisations/OrganisationSearchFilters.js.map +1 -1
- package/src/organisations/OrganisationSearchInput.d.ts +0 -3
- package/src/programmes/IProgrammeSearchFilters.d.ts +2 -0
- package/src/programmes/IProgrammeSearchFilters.js +1 -0
- package/src/programmes/IProgrammeSearchFilters.js.map +1 -1
- package/src/programmes/ProgrammeCardType.d.ts +4 -0
- package/src/programmes/ProgrammeCardType.js +6 -0
- package/src/programmes/ProgrammeCardType.js.map +1 -0
- package/src/programmes/ProgrammeSearchFilters.d.ts +2 -0
- package/src/programmes/ProgrammeSearchFilters.js +2 -0
- package/src/programmes/ProgrammeSearchFilters.js.map +1 -1
- package/src/programmes/ProgrammeSearchInput.d.ts +2 -0
- package/src/programmes/SearchApiProgrammeClient.d.ts +2 -1
- package/src/programmes/SearchApiProgrammeClient.js +15 -1
- package/src/programmes/SearchApiProgrammeClient.js.map +1 -1
- package/src/organisations/OrganisationTextSearchType.d.ts +0 -4
- package/src/organisations/OrganisationTextSearchType.js +0 -6
- package/src/organisations/OrganisationTextSearchType.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ import { CitySearchFilters } from "./src/cities/CitySearchFilters";
|
|
|
31
31
|
import { ICitySearchFilters } from "./src/cities/ICitySearchFilters";
|
|
32
32
|
import { ICitySearchResponse } from "./src/cities/ICitySearchResponse";
|
|
33
33
|
import { ICity } from "./src/cities/ICity";
|
|
34
|
-
import {
|
|
35
|
-
export { SearchApiOrganisationClient,
|
|
34
|
+
import { ProgrammeCardType } from "./src/programmes/ProgrammeCardType";
|
|
35
|
+
export { SearchApiOrganisationClient, IOrganisationSearchResponse, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchResponse, IProgrammeSearchFilters, ProgrammeSearchFilters, OrganisationSearchInput, ProgrammeSearchInput, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, ProgrammeSortType, ProgrammeCardType, FacetResponseType, FacetValues, TextSearchAlgorithmType, ProgrammeFilterType, ISuggestionResult, SearchApiScholarshipClient, IScholarshipSearchResponse, IScholarshipSearchFilters, ScholarshipSearchFilters, ScholarshipSearchInput, IScholarshipSearchCountResponse, ScholarshipFormat, ScholarshipType, SearchApiCityClient, ICitySearchResponse, ICitySearchFilters, CitySearchFilters, CitySearchInput, ICity };
|
package/index.js
CHANGED
|
@@ -17,6 +17,6 @@ import { ScholarshipType } from "./src/scholarships/ScholarshipTypeEnum";
|
|
|
17
17
|
import { SearchApiScholarshipClient } from "./src/scholarships/SearchApiScholarshipsClient";
|
|
18
18
|
import { SearchApiCityClient } from "./src/cities/SearchApiCityClient";
|
|
19
19
|
import { CitySearchFilters } from "./src/cities/CitySearchFilters";
|
|
20
|
-
import {
|
|
21
|
-
export { SearchApiOrganisationClient,
|
|
20
|
+
import { ProgrammeCardType } from "./src/programmes/ProgrammeCardType";
|
|
21
|
+
export { SearchApiOrganisationClient, IOrganisationSearchFilters, OrganisationSearchFilters, SearchApiProgrammeClient, IProgrammeSearchFilters, ProgrammeSearchFilters, IProgrammeResult, DegreeTypeEnum, DeliveryMethodEnum, HitsTotalRelation, ProgrammeSortType, ProgrammeCardType, TextSearchAlgorithmType, ProgrammeFilterType, SearchApiScholarshipClient, ScholarshipSearchFilters, ScholarshipFormat, ScholarshipType, SearchApiCityClient, CitySearchFilters };
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAI3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAGvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAInE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,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,EACvB,mBAAmB,EAInB,0BAA0B,EAG1B,wBAAwB,EAGxB,iBAAiB,EACjB,eAAe,EAEf,mBAAmB,EAGnB,iBAAiB,EAGjB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@studyportals/search-api-interface",
|
|
3
|
-
"version": "3.7.1
|
|
4
|
-
"description": "Typescript library containing resources that facilitate integration with SearchApi",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"compile": "rm -fR bin && npx tsc",
|
|
8
|
-
"deploy-patch": "npm version patch && npm run deploy",
|
|
9
|
-
"deploy-minor": "npm version minor && npm run deploy",
|
|
10
|
-
"deploy-major": "npm version major && npm run deploy",
|
|
11
|
-
"deploy-beta": "npm version prerelease && npm run prepare-deployment && npm publish ./bin --tag beta",
|
|
12
|
-
"deploy": "npm run prepare-deployment && npm publish ./bin",
|
|
13
|
-
"prepare-deployment": "npm run compile && cp package.json bin/package.json",
|
|
14
|
-
"lint": "eslint . --ext .ts",
|
|
15
|
-
"lint:fix": "eslint . --ext .ts --fix"
|
|
16
|
-
},
|
|
17
|
-
"author": "Seal Team Six",
|
|
18
|
-
"license": "BSD-3-Clause",
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@studyportals/code-style": "^1.7.0",
|
|
21
|
-
"@types/superagent": "^4.1.15",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
23
|
-
"@typescript-eslint/parser": "^5.27.0",
|
|
24
|
-
"eslint": "^8.17.0",
|
|
25
|
-
"typescript": "^5.5.4",
|
|
26
|
-
"typescript-transform-paths": "^3.4.6"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@studyportals/domain-client": "^7.6.
|
|
30
|
-
"@studyportals/search-filters": "^6.3.1"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@studyportals/search-api-interface",
|
|
3
|
+
"version": "3.7.1",
|
|
4
|
+
"description": "Typescript library containing resources that facilitate integration with SearchApi",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"compile": "rm -fR bin && npx tsc",
|
|
8
|
+
"deploy-patch": "npm version patch && npm run deploy",
|
|
9
|
+
"deploy-minor": "npm version minor && npm run deploy",
|
|
10
|
+
"deploy-major": "npm version major && npm run deploy",
|
|
11
|
+
"deploy-beta": "npm version prerelease && npm run prepare-deployment && npm publish ./bin --tag beta",
|
|
12
|
+
"deploy": "npm run prepare-deployment && npm publish ./bin",
|
|
13
|
+
"prepare-deployment": "npm run compile && cp package.json bin/package.json",
|
|
14
|
+
"lint": "eslint . --ext .ts",
|
|
15
|
+
"lint:fix": "eslint . --ext .ts --fix"
|
|
16
|
+
},
|
|
17
|
+
"author": "Seal Team Six",
|
|
18
|
+
"license": "BSD-3-Clause",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@studyportals/code-style": "^1.7.0",
|
|
21
|
+
"@types/superagent": "^4.1.15",
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
23
|
+
"@typescript-eslint/parser": "^5.27.0",
|
|
24
|
+
"eslint": "^8.17.0",
|
|
25
|
+
"typescript": "^5.5.4",
|
|
26
|
+
"typescript-transform-paths": "^3.4.6"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@studyportals/domain-client": "^7.6.2",
|
|
30
|
+
"@studyportals/search-filters": "^6.3.1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { DegreeTypeEnum } from "./DegreeTypeEnum";
|
|
2
2
|
import { DeliveryMethodEnum } from "./DeliveryMethodEnum";
|
|
3
|
-
import { OrganisationTextSearchType } from "./OrganisationTextSearchType";
|
|
4
3
|
export declare class IOrganisationSearchFilters {
|
|
5
4
|
readonly organisationId: string | undefined;
|
|
6
|
-
readonly organisationText: string | undefined;
|
|
7
|
-
readonly organisationTextSearchType: OrganisationTextSearchType | undefined;
|
|
8
5
|
readonly degree: DegreeTypeEnum | undefined;
|
|
9
6
|
readonly disciplines: string[] | undefined;
|
|
10
7
|
readonly deliveryMethods: DeliveryMethodEnum[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOrganisationSearchFilters.js","sourceRoot":"","sources":["../../../src/organisations/IOrganisationSearchFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IOrganisationSearchFilters.js","sourceRoot":"","sources":["../../../src/organisations/IOrganisationSearchFilters.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,0BAA0B;IAC7B,cAAc,CAAqB;IACnC,MAAM,CAA6B;IACnC,WAAW,CAAuB;IAClC,eAAe,CAAmC;IAClD,eAAe,CAAuB;IACtC,8BAA8B,CAAuB;IACrD,SAAS,CAAuB;IAChC,OAAO,CAAuB;IAC9B,OAAO,CAAuB;IAC9B,WAAW,CAAqB;IAChC,qBAAqB,CAAuB;IAC5C,UAAU,CAAsB;CACzC"}
|
|
@@ -2,7 +2,6 @@ import { DegreeTypeEnum } from "./DegreeTypeEnum";
|
|
|
2
2
|
import { DeliveryMethodEnum } from "./DeliveryMethodEnum";
|
|
3
3
|
import { OrganisationSearchInput } from "./OrganisationSearchInput";
|
|
4
4
|
import { IOrganisationSearchFilters } from "./IOrganisationSearchFilters";
|
|
5
|
-
import { OrganisationTextSearchType } from "./OrganisationTextSearchType";
|
|
6
5
|
export declare class OrganisationSearchFilters implements IOrganisationSearchFilters {
|
|
7
6
|
organisationId: string | undefined;
|
|
8
7
|
degree: DegreeTypeEnum | undefined;
|
|
@@ -16,8 +15,6 @@ export declare class OrganisationSearchFilters implements IOrganisationSearchFil
|
|
|
16
15
|
cityIdsOfMainLocation: string[] | undefined;
|
|
17
16
|
virtualPath: string | undefined;
|
|
18
17
|
showHidden: boolean | undefined;
|
|
19
|
-
organisationTextSearchType: OrganisationTextSearchType | undefined;
|
|
20
|
-
organisationText: string | undefined;
|
|
21
18
|
from(input: OrganisationSearchInput): OrganisationSearchFilters;
|
|
22
19
|
consideringId(id: string): OrganisationSearchFilters;
|
|
23
20
|
consideringDegree(degree: DegreeTypeEnum): OrganisationSearchFilters;
|
|
@@ -11,12 +11,8 @@ export class OrganisationSearchFilters {
|
|
|
11
11
|
cityIdsOfMainLocation;
|
|
12
12
|
virtualPath;
|
|
13
13
|
showHidden;
|
|
14
|
-
organisationTextSearchType;
|
|
15
|
-
organisationText;
|
|
16
14
|
from(input) {
|
|
17
15
|
this.organisationId = input.organisationId ? input.organisationId.toString() : undefined;
|
|
18
|
-
this.organisationText = input.organisationText;
|
|
19
|
-
this.organisationTextSearchType = input.organisationTextSearchType;
|
|
20
16
|
this.degree = input.degree;
|
|
21
17
|
this.deliveryMethods = input.deliveryMethods;
|
|
22
18
|
this.disciplines = this.numbersToStringsOrUndefined(input.disciplines);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganisationSearchFilters.js","sourceRoot":"","sources":["../../../src/organisations/OrganisationSearchFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OrganisationSearchFilters.js","sourceRoot":"","sources":["../../../src/organisations/OrganisationSearchFilters.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,yBAAyB;IAC9B,cAAc,CAAqB;IACnC,MAAM,CAA6B;IACnC,WAAW,CAAuB;IAClC,eAAe,CAAmC;IAClD,eAAe,CAAuB;IACtC,8BAA8B,CAAuB;IACrD,SAAS,CAAuB;IAChC,OAAO,CAAuB;IAC9B,OAAO,CAAuB;IAC9B,qBAAqB,CAAuB;IAC5C,WAAW,CAAqB;IAChC,UAAU,CAAsB;IAEhC,IAAI,CAAC,KAA8B;QACzC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QACzF,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CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,yCAAyC,CAAC,eAAyB;QACzE,IAAI,CAAC,8BAA8B,GAAG,eAAe,CAAC;QACtD,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,oBAAoB,CAAC,SAAmB;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,kBAAkB,CAAC,OAAiB;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,kBAAkB,CAAC,OAAiB;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,gCAAgC,CAAC,qBAA+B;QACtE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,sBAAsB,CAAC,WAAmB;QAChD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,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"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { DegreeTypeEnum } from "./DegreeTypeEnum";
|
|
2
2
|
import { DeliveryMethodEnum } from "./DeliveryMethodEnum";
|
|
3
|
-
import { OrganisationTextSearchType } from "./OrganisationTextSearchType";
|
|
4
3
|
export type OrganisationSearchInput = {
|
|
5
4
|
resultSize: number;
|
|
6
5
|
resultOffset: number;
|
|
7
6
|
organisationId?: number;
|
|
8
|
-
organisationText?: string;
|
|
9
|
-
organisationTextSearchType?: OrganisationTextSearchType;
|
|
10
7
|
disciplines?: number[];
|
|
11
8
|
countryIsoCodes?: string[];
|
|
12
9
|
countryIsoCodesOfMainLocations?: string[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, EducationLevelFilterOptionValue, EducationalFormFilterOptionValue, SpecialProgrammesFilterOptionValue, DurationFilterOptionValue, FormatFilterOptionValue, FacetOptionValue } from "@studyportals/search-filters/server-side";
|
|
2
2
|
import { ProgrammeSortType } from "./ProgrammeSortType";
|
|
3
3
|
import { TextSearchAlgorithmType } from "../TextSearchAlgorithmType";
|
|
4
|
+
import { ProgrammeCardType } from "./ProgrammeCardType";
|
|
4
5
|
export declare class IProgrammeSearchFilters {
|
|
5
6
|
readonly attendances?: AttendanceFilterOptionValue[];
|
|
6
7
|
readonly degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
@@ -23,6 +24,7 @@ export declare class IProgrammeSearchFilters {
|
|
|
23
24
|
readonly facets?: FacetOptionValue[];
|
|
24
25
|
readonly facetsDurations?: DurationFilterOptionValue[];
|
|
25
26
|
readonly campaignTypes?: string[];
|
|
27
|
+
readonly cardType?: ProgrammeCardType;
|
|
26
28
|
readonly textSearchAlgorithm?: TextSearchAlgorithmType;
|
|
27
29
|
readonly showHidden?: boolean;
|
|
28
30
|
}
|
|
@@ -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":"AAcA,MAAM,OAAO,uBAAuB;IAC1B,WAAW,CAAiC;IAC5C,WAAW,CAAiC;IAC5C,WAAW,CAAY;IACvB,SAAS,CAA+B;IACxC,iBAAiB,CAAqC;IACtD,gBAAgB,CAAsC;IAEtD,SAAS,CAA6B;IACtC,IAAI,CAAU;IAEd,OAAO,CAAY;IACnB,SAAS,CAAY;IACrB,eAAe,CAAY;IAC3B,eAAe,CAAY;IAE3B,iBAAiB,CAAwC;IAEzD,aAAa,CAAU;IACvB,aAAa,CAAU;IAEvB,qBAAqB,CAAU;IAE/B,MAAM,CAAoB;IAE1B,cAAc,CAAU;IACxB,MAAM,CAAsB;IAC5B,eAAe,CAA+B;IAC9C,aAAa,CAAY;IACzB,QAAQ,CAAoB;IAC5B,mBAAmB,CAA2B;IAC9C,UAAU,CAAW;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgrammeCardType.js","sourceRoot":"","sources":["../../../src/programmes/ProgrammeCardType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,8BAAS,CAAA;AACV,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B"}
|
|
@@ -3,6 +3,7 @@ import { ProgrammeSearchInput } from "./ProgrammeSearchInput";
|
|
|
3
3
|
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, DurationFilterOptionValue, EducationalFormFilterOptionValue, EducationLevelFilterOptionValue, FacetOptionValue, SpecialProgrammesFilterOptionValue, FormatFilterOptionValue } from "@studyportals/search-filters/server-side";
|
|
4
4
|
import { ProgrammeSortType } from "./ProgrammeSortType";
|
|
5
5
|
import { TextSearchAlgorithmType } from "../TextSearchAlgorithmType";
|
|
6
|
+
import { ProgrammeCardType } from "./ProgrammeCardType";
|
|
6
7
|
export declare class ProgrammeSearchFilters implements IProgrammeSearchFilters {
|
|
7
8
|
attendances?: AttendanceFilterOptionValue[];
|
|
8
9
|
degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
@@ -24,6 +25,7 @@ export declare class ProgrammeSearchFilters implements IProgrammeSearchFilters {
|
|
|
24
25
|
suggestionSize?: number;
|
|
25
26
|
facets?: FacetOptionValue[];
|
|
26
27
|
facetsDurations?: DurationFilterOptionValue[];
|
|
28
|
+
cardType?: ProgrammeCardType;
|
|
27
29
|
textSearchAlgorithm?: TextSearchAlgorithmType;
|
|
28
30
|
showHidden?: boolean;
|
|
29
31
|
campaignTypes?: string[];
|
|
@@ -20,6 +20,7 @@ export class ProgrammeSearchFilters {
|
|
|
20
20
|
suggestionSize;
|
|
21
21
|
facets;
|
|
22
22
|
facetsDurations;
|
|
23
|
+
cardType;
|
|
23
24
|
textSearchAlgorithm;
|
|
24
25
|
showHidden;
|
|
25
26
|
campaignTypes;
|
|
@@ -44,6 +45,7 @@ export class ProgrammeSearchFilters {
|
|
|
44
45
|
this.suggestionSize = input.suggestionSize;
|
|
45
46
|
this.facets = input.facets;
|
|
46
47
|
this.facetsDurations = input.facetsDurations;
|
|
48
|
+
this.cardType = input.cardType;
|
|
47
49
|
this.textSearchAlgorithm = input.textSearchAlgorithm;
|
|
48
50
|
this.showHidden = input.showHidden;
|
|
49
51
|
this.campaignTypes = input.campaignTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/ProgrammeSearchFilters.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgrammeSearchFilters.js","sourceRoot":"","sources":["../../../src/programmes/ProgrammeSearchFilters.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,MAAM,OAAO,sBAAsB;IAC3B,WAAW,CAAiC;IAC5C,WAAW,CAAiC;IAC5C,WAAW,CAAY;IACvB,SAAS,CAA+B;IACxC,iBAAiB,CAAqC;IACtD,gBAAgB,CAAsC;IAEtD,SAAS,CAA6B;IAEtC,IAAI,CAAU;IAEd,OAAO,CAAY;IACnB,SAAS,CAAY;IACrB,eAAe,CAAY;IAC3B,eAAe,CAAY;IAE3B,iBAAiB,CAAwC;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AG,KAAK,CAAC,qBAAqB,CAAC;QAEzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QAEzC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,iBAAiB,CAAC,OAAO,CAAC;QAExD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAE7C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;QAEzC,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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AttendanceFilterOptionValue, DegreeTypeFilterOptionValue, DurationFilterOptionValue, EducationLevelFilterOptionValue, EducationalFormFilterOptionValue, SpecialProgrammesFilterOptionValue, FormatFilterOptionValue, FacetOptionValue } from "@studyportals/search-filters/server-side";
|
|
2
2
|
import { ProgrammeSortType } from "./ProgrammeSortType";
|
|
3
3
|
import { TextSearchAlgorithmType } from "../TextSearchAlgorithmType";
|
|
4
|
+
import { ProgrammeCardType } from "./ProgrammeCardType";
|
|
4
5
|
export type ProgrammeSearchInput = {
|
|
5
6
|
attendances?: AttendanceFilterOptionValue[];
|
|
6
7
|
degreeTypes?: DegreeTypeFilterOptionValue[];
|
|
@@ -22,6 +23,7 @@ export type ProgrammeSearchInput = {
|
|
|
22
23
|
suggestionSize?: number;
|
|
23
24
|
facets?: FacetOptionValue[];
|
|
24
25
|
facetsDurations?: DurationFilterOptionValue[];
|
|
26
|
+
cardType?: ProgrammeCardType;
|
|
25
27
|
textSearchAlgorithm?: TextSearchAlgorithmType;
|
|
26
28
|
campaignTypes?: string[];
|
|
27
29
|
showHidden?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchApiClientBase } from "../SearchApiClientBase";
|
|
2
2
|
import { IRequestSender, ISuperAgentRequestFactory } from "@studyportals/mb-platform-http-requests";
|
|
3
|
-
import { IProgrammeCard, PortalMap } from "@studyportals/domain-client";
|
|
3
|
+
import { IProgrammeCard, PortalMap, ProgrammeCard } from "@studyportals/domain-client";
|
|
4
4
|
import { IProgrammeSearchResponse } from "./IProgrammeSearchResponse";
|
|
5
5
|
import { IProgrammeResult } from "./IProgrammeResult";
|
|
6
6
|
import { IProgrammeSearchFilters } from "./IProgrammeSearchFilters";
|
|
@@ -10,5 +10,6 @@ export declare class SearchApiProgrammeClient extends SearchApiClientBase {
|
|
|
10
10
|
private readonly programmeCardFactory;
|
|
11
11
|
constructor(apiUriBase: string, requestFactory: ISuperAgentRequestFactory, requestSender: IRequestSender, portalMap?: PortalMap);
|
|
12
12
|
searchCards(filters: IProgrammeSearchFilters, resultSize: number, resultOffset: number): Promise<IProgrammeSearchResponse<IProgrammeResult<IProgrammeCard>>>;
|
|
13
|
+
searchCardsV2(filters: IProgrammeSearchFilters, resultSize: number, resultOffset: number): Promise<IProgrammeSearchResponse<IProgrammeResult<ProgrammeCard>>>;
|
|
13
14
|
searchIds(filters: any, resultSize: number, resultOffset: number): Promise<IProgrammeSearchResponse<string>>;
|
|
14
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchApiClientBase } from "../SearchApiClientBase";
|
|
2
|
-
import { ProgrammeCardClient } from "@studyportals/domain-client";
|
|
2
|
+
import { ProgrammeCard, ProgrammeCardClient } from "@studyportals/domain-client";
|
|
3
3
|
export class SearchApiProgrammeClient extends SearchApiClientBase {
|
|
4
4
|
requestFactory;
|
|
5
5
|
requestSender;
|
|
@@ -24,6 +24,20 @@ export class SearchApiProgrammeClient extends SearchApiClientBase {
|
|
|
24
24
|
facets: result.facets ?? []
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
+
async searchCardsV2(filters, resultSize, resultOffset) {
|
|
28
|
+
const request = this.requestFactory.get(this.constructUri("search"))
|
|
29
|
+
.query({ ...filters, resultSize, resultOffset });
|
|
30
|
+
const result = await this.requestSender.sendAndExtractBody(request);
|
|
31
|
+
const programmeResults = result.programmes.map(result => ({
|
|
32
|
+
card: ProgrammeCard.fromJSON(result.card),
|
|
33
|
+
is_premium: result.is_premium
|
|
34
|
+
}));
|
|
35
|
+
return {
|
|
36
|
+
...result,
|
|
37
|
+
programmes: programmeResults,
|
|
38
|
+
facets: result.facets ?? []
|
|
39
|
+
};
|
|
40
|
+
}
|
|
27
41
|
async searchIds(filters, resultSize, resultOffset) {
|
|
28
42
|
const request = this.requestFactory.get(this.constructUri("search/ids"))
|
|
29
43
|
.query({ ...filters, resultSize, resultOffset });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchApiProgrammeClient.js","sourceRoot":"","sources":["../../../src/programmes/SearchApiProgrammeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"SearchApiProgrammeClient.js","sourceRoot":"","sources":["../../../src/programmes/SearchApiProgrammeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAA6B,aAAa,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAM5G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AAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;aAClE,KAAK,CAAC,EAAC,GAAG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAC,CAAC,CAAC;QAEhD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAA4D,OAAO,CAAC,CAAC;QAC/H,MAAM,gBAAgB,GAA+C,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACrG,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;YACzC,UAAU,EAAE,MAAM,CAAC,UAAU;SAC7B,CAAC,CAAC,CAAC;QAEJ,OAAO;YACN,GAAG,MAAM;YACT,UAAU,EAAE,gBAAgB;YAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;SAC3B,CAAA;IACF,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,OAAY,EAAE,UAAkB,EAAE,YAAoB;QAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;aACtE,KAAK,CAAC,EAAC,GAAG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAC,CAAC,CAAC;QAEhD,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAmC,OAAO,CAAC,CAAC;IAC/F,CAAC;CACD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export var OrganisationTextSearchType;
|
|
2
|
-
(function (OrganisationTextSearchType) {
|
|
3
|
-
OrganisationTextSearchType["FULL_SEARCH"] = "full_search";
|
|
4
|
-
OrganisationTextSearchType["ORGANISATION_NAME"] = "organisation_name";
|
|
5
|
-
})(OrganisationTextSearchType || (OrganisationTextSearchType = {}));
|
|
6
|
-
//# sourceMappingURL=OrganisationTextSearchType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrganisationTextSearchType.js","sourceRoot":"","sources":["../../../src/organisations/OrganisationTextSearchType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,yDAA2B,CAAA;IAC3B,qEAAuC,CAAA;AACxC,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC"}
|