@studyportals/search-api-interface 3.1.3 → 3.1.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
CHANGED
|
@@ -2,13 +2,13 @@ import { CitySearchInput } from "./CitySearchInput";
|
|
|
2
2
|
import { ICitySearchFilters } from "./ICitySearchFilters";
|
|
3
3
|
export declare class CitySearchFilters implements ICitySearchFilters {
|
|
4
4
|
id?: string;
|
|
5
|
-
|
|
5
|
+
nameSearchTerm?: string;
|
|
6
6
|
virtualPath?: string;
|
|
7
7
|
areaIds?: string[];
|
|
8
8
|
countryIsoCodes?: string[];
|
|
9
9
|
from(input: CitySearchInput): CitySearchFilters;
|
|
10
10
|
consideringId(id: string): CitySearchFilters;
|
|
11
|
-
|
|
11
|
+
consideringNameSearchTerm(searchTerm: string): CitySearchFilters;
|
|
12
12
|
consideringVirtualPath(virtualPath: string): CitySearchFilters;
|
|
13
13
|
consideringAreaIds(areaIds: string[]): CitySearchFilters;
|
|
14
14
|
consideringCountryIsoCodes(countryIsoCodes: string[]): CitySearchFilters;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export class CitySearchFilters {
|
|
2
2
|
id;
|
|
3
|
-
|
|
3
|
+
nameSearchTerm;
|
|
4
4
|
virtualPath;
|
|
5
5
|
areaIds;
|
|
6
6
|
countryIsoCodes;
|
|
7
7
|
from(input) {
|
|
8
8
|
this.id = input.id?.toString();
|
|
9
|
-
this.
|
|
9
|
+
this.nameSearchTerm = input.nameSearchTerm;
|
|
10
10
|
this.virtualPath = input.virtualPath;
|
|
11
11
|
this.areaIds = this.numbersToStringsOrUndefined(input.areaIds);
|
|
12
12
|
this.countryIsoCodes = input.countryIsoCodes;
|
|
@@ -16,8 +16,8 @@ export class CitySearchFilters {
|
|
|
16
16
|
this.id = id;
|
|
17
17
|
return this;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
this.
|
|
19
|
+
consideringNameSearchTerm(searchTerm) {
|
|
20
|
+
this.nameSearchTerm = searchTerm;
|
|
21
21
|
return this;
|
|
22
22
|
}
|
|
23
23
|
consideringVirtualPath(virtualPath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitySearchFilters.js","sourceRoot":"","sources":["../../../src/cities/CitySearchFilters.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACtB,EAAE,CAAU;IACZ,
|
|
1
|
+
{"version":3,"file":"CitySearchFilters.js","sourceRoot":"","sources":["../../../src/cities/CitySearchFilters.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACtB,EAAE,CAAU;IACZ,cAAc,CAAU;IACxB,WAAW,CAAU;IACrB,OAAO,CAAY;IACnB,eAAe,CAAY;IAE3B,IAAI,CAAC,KAAsB;QACjC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,aAAa,CAAC,EAAU;QAC9B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,yBAAyB,CAAC,UAAkB;QAClD,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC;QACjC,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,sBAAsB,CAAC,WAAmB;QAChD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,kBAAkB,CAAC,OAAiB;QAC1C,IAAI,CAAC,OAAO,GAAG,OA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