@inploi/plugin-job-search 3.0.4 → 3.1.0

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.
@@ -1,4 +1,5 @@
1
1
  import { InferOutput } from 'valibot';
2
+ import { TFunction } from './lib/i18n';
2
3
 
3
4
  export declare const AvailablePropertiesSchema: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').ArraySchema<import('valibot').ObjectSchema<{
4
5
  readonly label: import('valibot').SchemaWithPipe<readonly [import('valibot').UnknownSchema, import('valibot').TransformAction<any, string>, import('valibot').StringSchema<undefined>]>;
@@ -46,66 +47,7 @@ export declare const JobPayloadSchema: import('valibot').ObjectSchema<{
46
47
  }, undefined>, undefined>, undefined>;
47
48
  }, undefined>;
48
49
  export type JobPayloadSchema = InferOutput<typeof JobPayloadSchema>;
49
- export declare const getJobSchema: (t: import('@inploi/i18n/translation').TFn<{
50
- readonly type_to_search_jobs: "Type to search jobs";
51
- readonly type_to_search: "Type to search";
52
- readonly jobs_found: {
53
- readonly one: "{{count}} job found";
54
- readonly other: "{{count}} jobs found";
55
- };
56
- readonly no_jobs_found: "No jobs found";
57
- readonly no_jobs_found_description: "We could not find any jobs matching your filtering criteria.";
58
- readonly jobs_loading_error: "We’re having trouble loading available jobs.";
59
- readonly filters_loading_error: "We’re having trouble loading available filters.";
60
- readonly no_filter_options_available: "No filter options available.";
61
- readonly clear: "Clear";
62
- readonly selected: "selected";
63
- readonly done: "Done";
64
- readonly close: "Close";
65
- readonly new: "NEW";
66
- readonly posted: "Posted";
67
- readonly retry: "Retry";
68
- readonly widget_unavailable: "Sorry, this widget is unavailable at the moment.";
69
- readonly load_more_count: "Load {{count}} more";
70
- readonly of_remaining_count: "of {{count}} remaining";
71
- readonly today: "today";
72
- readonly over_30_days_ago: "over 30 days ago";
73
- readonly in_over_30_days: "in over 30 days";
74
- readonly up_to: "Up to";
75
- readonly from: "From";
76
- readonly invalid_salary: "Invalid salary";
77
- readonly competitive: "Competitive";
78
- readonly natural_language_input: "Type anything";
79
- readonly great_match: "Great match";
80
- readonly advanced_mode: "Filters";
81
- readonly simple_mode: "Hide filters";
82
- readonly ai_disclaimer: "Results may not be perfect. AI-powered search can occasionally suggest unrelated content.";
83
- readonly geo_error_timeout: "Timed out. Please type your location manually.";
84
- readonly geo_error_permission_denied: "Please allow location access to use this feature.";
85
- readonly geo_error_position_unavailable: "Could not locate you. Please type your location manually.";
86
- readonly geo_my_location: "My location";
87
- readonly geo_locating: "Locating you...";
88
- readonly geo_search_placeholder: "Search for a location";
89
- readonly geo_clear_search: "Clear location search";
90
- readonly location_provided: "Provided location";
91
- readonly search_label: "What";
92
- readonly geo_label: "Where";
93
- readonly geo_range_label: "Within";
94
- readonly geo_suggestions_error: "Could not get the suggested locations.";
95
- readonly feedback: "How was your search experience?";
96
- readonly list: "List";
97
- readonly map: "Map";
98
- readonly loading_jobs: "Loading jobs…";
99
- readonly map_jobs_error: "We’re having trouble loading jobs in the area";
100
- readonly map_has_more_title: "Not showing all the jobs in this area";
101
- readonly map_has_more_description: "Zoom in to refine your search further";
102
- readonly map_jobs_showing: {
103
- readonly one: "Showing {{count}} job";
104
- readonly other: "Showing {{count}} jobs";
105
- };
106
- readonly page: "Page";
107
- readonly reset: "Reset";
108
- }>) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
50
+ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
109
51
  readonly id: import('valibot').NumberSchema<undefined>;
110
52
  readonly company_name: import('valibot').StringSchema<undefined>;
111
53
  readonly company_logo: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
@@ -1,35 +1,35 @@
1
1
  /** Simple object pattern matching. A smaller, shittier version of ts-pattern */
2
2
  export declare const match: <M extends object>(subject: M) => {
3
- with: <const P extends Partial<M>, Fn extends (pattern: M & P extends infer T ? { [k in keyof T]: (M & P)[k]; } : never) => any>(pattern: P, fn: Fn) => {
4
- with: <const P_1 extends Partial<Exclude<M, P>>, Fn_1 extends (pattern: Exclude<M, P> & P_1 extends infer T_1 ? { [k_1 in keyof T_1]: (Exclude<M, P> & P_1)[k_1]; } : never) => any>(pattern: P_1, fn: Fn_1) => {
5
- with: <const P_2 extends Partial<Exclude<Exclude<M, P>, P_1>>, Fn_2 extends (pattern: Exclude<Exclude<M, P>, P_1> & P_2 extends infer T_2 ? { [k_2 in keyof T_2]: (Exclude<Exclude<M, P>, P_1> & P_2)[k_2]; } : never) => any>(pattern: P_2, fn: Fn_2) => {
6
- with: <const P_3 extends Partial<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>>, Fn_3 extends (pattern: Exclude<Exclude<Exclude<M, P>, P_1>, P_2> & P_3 extends infer T_3 ? { [k_3 in keyof T_3]: (Exclude<Exclude<Exclude<M, P>, P_1>, P_2> & P_3)[k_3]; } : never) => any>(pattern: P_3, fn: Fn_3) => {
7
- with: <const P_4 extends Partial<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>>, Fn_4 extends (pattern: Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3> & P_4 extends infer T_4 ? { [k_4 in keyof T_4]: (Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3> & P_4)[k_4]; } : never) => any>(pattern: P_4, fn: Fn_4) => {
8
- with: <const P_5 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>>, Fn_5 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4> & P_5 extends infer T_5 ? { [k_5 in keyof T_5]: (Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4> & P_5)[k_5]; } : never) => any>(pattern: P_5, fn: Fn_5) => {
9
- with: <const P_6 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>>, Fn_6 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5> & P_6 extends infer T_6 ? { [k_6 in keyof T_6]: (Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5> & P_6)[k_6]; } : never) => any>(pattern: P_6, fn: Fn_6) => {
10
- with: <const P_7 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>>, Fn_7 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6> & P_7 extends infer T_7 ? { [k_7 in keyof T_7]: (Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6> & P_7)[k_7]; } : never) => any>(pattern: P_7, fn: Fn_7) => {
11
- with: <const P_8 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>>, Fn_8 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7> & P_8 extends infer T_8 ? { [k_8 in keyof T_8]: (Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7> & P_8)[k_8]; } : never) => any>(pattern: P_8, fn: Fn_8) => {
12
- with: <const P_9 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>>, Fn_9 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8> & P_9 extends infer T_9 ? { [k_9 in keyof T_9]: (Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8> & P_9)[k_9]; } : never) => any>(pattern: P_9, fn: Fn_9) => {
13
- with: <const P_10 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9>>, Fn_10 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9> & P_10 extends infer T_10 ? { [k_10 in keyof T_10]: (Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9> & P_10)[k_10]; } : never) => any>(pattern: P_10, fn: Fn_10) => any;
3
+ with: <const P extends Partial<M>, Fn extends (pattern: M & P extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P, fn: Fn) => {
4
+ with: <const P_1 extends Partial<Exclude<M, P>>, Fn_1 extends (pattern: Exclude<M, P> & P_1 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_1, fn: Fn_1) => {
5
+ with: <const P_2 extends Partial<Exclude<Exclude<M, P>, P_1>>, Fn_2 extends (pattern: Exclude<Exclude<M, P>, P_1> & P_2 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_2, fn: Fn_2) => {
6
+ with: <const P_3 extends Partial<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>>, Fn_3 extends (pattern: Exclude<Exclude<Exclude<M, P>, P_1>, P_2> & P_3 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_3, fn: Fn_3) => {
7
+ with: <const P_4 extends Partial<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>>, Fn_4 extends (pattern: Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3> & P_4 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_4, fn: Fn_4) => {
8
+ with: <const P_5 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>>, Fn_5 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4> & P_5 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_5, fn: Fn_5) => {
9
+ with: <const P_6 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>>, Fn_6 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5> & P_6 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_6, fn: Fn_6) => {
10
+ with: <const P_7 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>>, Fn_7 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6> & P_7 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_7, fn: Fn_7) => {
11
+ with: <const P_8 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>>, Fn_8 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7> & P_8 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_8, fn: Fn_8) => {
12
+ with: <const P_9 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>>, Fn_9 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8> & P_9 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_9, fn: Fn_9) => {
13
+ with: <const P_10 extends Partial<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9>>, Fn_10 extends (pattern: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9> & P_10 extends infer T ? { [k in keyof T]: T[k]; } : never) => any>(pattern: P_10, fn: Fn_10) => /*elided*/ any;
14
14
  otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>, P_9>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<Fn_7> | ReturnType<Fn_8> | ReturnType<Fn_9> | ReturnType<O>;
15
15
  };
16
- otherwise: <O_1 extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>) => any = () => never>(fallback?: O_1 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<Fn_7> | ReturnType<Fn_8> | ReturnType<O_1>;
16
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>, P_8>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<Fn_7> | ReturnType<Fn_8> | ReturnType<O>;
17
17
  };
18
- otherwise: <O_2 extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>) => any = () => never>(fallback?: O_2 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<Fn_7> | ReturnType<O_2>;
18
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>, P_7>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<Fn_7> | ReturnType<O>;
19
19
  };
20
- otherwise: <O_3 extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>) => any = () => never>(fallback?: O_3 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<O_3>;
20
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>, P_6>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<Fn_6> | ReturnType<O>;
21
21
  };
22
- otherwise: <O_4 extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>) => any = () => never>(fallback?: O_4 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<O_4>;
22
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>, P_5>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<Fn_5> | ReturnType<O>;
23
23
  };
24
- otherwise: <O_5 extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>) => any = () => never>(fallback?: O_5 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<O_5>;
24
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>, P_4>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<Fn_4> | ReturnType<O>;
25
25
  };
26
- otherwise: <O_6 extends (subject: Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>) => any = () => never>(fallback?: O_6 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<O_6>;
26
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<Exclude<M, P>, P_1>, P_2>, P_3>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<Fn_3> | ReturnType<O>;
27
27
  };
28
- otherwise: <O_7 extends (subject: Exclude<Exclude<Exclude<M, P>, P_1>, P_2>) => any = () => never>(fallback?: O_7 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<O_7>;
28
+ otherwise: <O extends (subject: Exclude<Exclude<Exclude<M, P>, P_1>, P_2>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<Fn_2> | ReturnType<O>;
29
29
  };
30
- otherwise: <O_8 extends (subject: Exclude<Exclude<M, P>, P_1>) => any = () => never>(fallback?: O_8 | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<O_8>;
30
+ otherwise: <O extends (subject: Exclude<Exclude<M, P>, P_1>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<Fn_1> | ReturnType<O>;
31
31
  };
32
- otherwise: <O_9 extends (subject: Exclude<M, P>) => any = () => never>(fallback?: O_9 | undefined) => ReturnType<Fn> | ReturnType<O_9>;
32
+ otherwise: <O extends (subject: Exclude<M, P>) => any = () => never>(fallback?: O | undefined) => ReturnType<Fn> | ReturnType<O>;
33
33
  };
34
- otherwise: <O_10 extends (subject: M) => any = () => never>(fallback?: O_10 | undefined) => ReturnType<O_10>;
34
+ otherwise: <O extends (subject: M) => any = () => never>(fallback?: O | undefined) => ReturnType<O>;
35
35
  };
@@ -1,7 +1,4 @@
1
+ import { GetAvailableFiltersResponse } from '../job-search.api';
1
2
  import { FilterProperty } from '..';
2
3
 
3
- export declare const sortResults: <T extends {
4
- label: string;
5
- value: string;
6
- jobs: number;
7
- }[]>(results: T, sort?: FilterProperty['sortSuggestions']) => T[number][];
4
+ export declare const sortResults: <T extends GetAvailableFiltersResponse[string]>(results: T, sort?: FilterProperty["sortSuggestions"]) => T[number][];
@@ -4,12 +4,12 @@ import { FilterProperty, JobSearchPluginParams } from '..';
4
4
 
5
5
  /** Reads from search params provided and adds to list of filters. */
6
6
  export declare const getStatefulPropertiesFromSearchParams: (properties: FilterProperty[], searchParams: URLSearchParams) => FilterProperty[];
7
- export declare const getModeFromSearchParams: (searchParams: URLSearchParams) => JobSearchState['mode'];
8
- export declare const getViewFromSearchParams: (searchParams: URLSearchParams) => JobSearchState['view'];
7
+ export declare const getModeFromSearchParams: (searchParams: URLSearchParams) => JobSearchState["mode"];
8
+ export declare const getViewFromSearchParams: (searchParams: URLSearchParams) => JobSearchState["view"];
9
9
  /** Returns a function that can be used to get the initial state of the widget from the search params. */
10
10
  export declare const getWidgetStateFromSearchParams: ({ searchParams }: {
11
11
  searchParams: URLSearchParams;
12
- }) => JobSearchPluginParams['initialState'];
12
+ }) => JobSearchPluginParams["initialState"];
13
13
  /** Modifies the searchParams instance in place to reflect the current state of the widget. */
14
14
  export declare const setWidgetStateToSearchParams: (partialState: Partial<JobSearchState>, searchParams: URLSearchParams) => void;
15
15
  export declare const getGeolocationFromSearchParams: (searchParams: URLSearchParams) => GeoSearchFilter | undefined;