@studyportals/search-api-interface 2.4.2 → 2.4.4-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/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@studyportals/search-api-interface",
3
- "version": "2.4.2",
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": "^5.4.4",
30
- "@studyportals/search-filters": "^4.11.2"
31
- }
32
- }
1
+ {
2
+ "name": "@studyportals/search-api-interface",
3
+ "version": "2.4.4-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": "^5.4.4",
30
+ "@studyportals/search-filters": "^4.11.2"
31
+ }
32
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum TextSearchAlgorithmType {
2
2
  KEYWORD = "keyword",
3
+ HYBRID = "hybrid",
3
4
  SIMILARITY_SEARCH = "similarity"
4
5
  }
@@ -4,6 +4,7 @@ exports.TextSearchAlgorithmType = void 0;
4
4
  var TextSearchAlgorithmType;
5
5
  (function (TextSearchAlgorithmType) {
6
6
  TextSearchAlgorithmType["KEYWORD"] = "keyword";
7
+ TextSearchAlgorithmType["HYBRID"] = "hybrid";
7
8
  TextSearchAlgorithmType["SIMILARITY_SEARCH"] = "similarity";
8
9
  })(TextSearchAlgorithmType || (exports.TextSearchAlgorithmType = TextSearchAlgorithmType = {}));
9
10
  //# sourceMappingURL=TextSearchAlgorithmType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextSearchAlgorithmType.js","sourceRoot":"","sources":["../../src/TextSearchAlgorithmType.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAClC,8CAAiB,CAAA;IACjB,2DAA8B,CAAA;AAC/B,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
1
+ {"version":3,"file":"TextSearchAlgorithmType.js","sourceRoot":"","sources":["../../src/TextSearchAlgorithmType.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAClC,8CAAiB,CAAA;IACjB,4CAAe,CAAA;IACf,2DAA8B,CAAA;AAC/B,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC"}
@@ -10,5 +10,5 @@ export declare class SearchApiScholarshipClient extends SearchApiClientBase {
10
10
  private readonly scholarshipCardFactory;
11
11
  constructor(apiUriBase: string, requestFactory: ISuperAgentRequestFactory, requestSender: IRequestSender, portalMap?: PortalMap);
12
12
  searchCards(filters: IScholarshipSearchFilters, resultSize: number, resultOffset: number): Promise<IScholarshipSearchResponse<IScholarshipCard>>;
13
- count(): Promise<IScholarshipSearchCountResponse>;
13
+ count(filters: IScholarshipSearchFilters): Promise<IScholarshipSearchCountResponse>;
14
14
  }
@@ -27,9 +27,10 @@ class SearchApiScholarshipClient extends SearchApiClientBase_1.SearchApiClientBa
27
27
  return Object.assign(Object.assign({}, result), { scholarships: this.scholarshipCardFactory.fromDescriptions([...result.scholarships]) });
28
28
  });
29
29
  }
30
- count() {
30
+ count(filters) {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
- const request = this.requestFactory.get(this.constructUri("count"));
32
+ const request = this.requestFactory.get(this.constructUri("count"))
33
+ .query(Object.assign({}, filters));
33
34
  return yield this.requestSender.sendAndExtractBody(request);
34
35
  });
35
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SearchApiScholarshipsClient.js","sourceRoot":"","sources":["../../../src/scholarships/SearchApiScholarshipsClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gEAA6D;AAG7D,+DAAgH;AAIhH,MAAa,0BAA2B,SAAQ,yCAAmB;IAMlE,YAAmB,UAAkB,EAC9B,cAAyC,EACzC,aAA6B,EAC7B,SAAqB;QAE3B,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAElC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,aAA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