@inploi/plugin-job-search 8.2.0 → 8.4.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.
@@ -273,6 +273,8 @@ export declare const getAvailableFilters: ({ rpcClient, state, t, signal, locale
273
273
  }[];
274
274
  }>;
275
275
  export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
276
+ /** The countries the company's live jobs give, as their feeds spell them. */
277
+ export declare const getJobCountries: (rpcClient: InploiRpcClient) => Promise<string[]>;
276
278
  export declare const getJobSearchResults: ({ rpcClient, signal, state, page, t, prioritySegment, locale, fallbackLocale, }: {
277
279
  rpcClient: InploiRpcClient;
278
280
  signal?: AbortSignal;
@@ -166,7 +166,7 @@ export interface JobSearchPluginParams {
166
166
  plugin: ReturnType<typeof jobAlertsPlugin> | Promise<{
167
167
  jobAlertsPlugin: typeof jobAlertsPlugin;
168
168
  }>;
169
- params: Pick<JobAlertsPluginParams, 'config'>;
169
+ params: Pick<JobAlertsPluginParams, 'config' | 'terms'>;
170
170
  };
171
171
  /** Provide a plugin instance to enable feedback. */
172
172
  feedback?: {
@@ -0,0 +1,8 @@
1
+ /** Where location search looks when a hub's jobs name no country it can read. */
2
+ export declare const DEFAULT_SEARCH_COUNTRIES: string[];
3
+ /**
4
+ * The countries a hub's location search covers, as the geocoder's ISO codes, read from the free text its live
5
+ * jobs give as their country ("United Kingdom", "England", "GB", "Republic of Ireland"). Values that name no
6
+ * country are left out; when none is left, the search covers the United Kingdom.
7
+ */
8
+ export declare const searchCountries: (jobCountries: string[]) => string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -2,9 +2,10 @@ export type DistanceUnit = 'miles' | 'km';
2
2
  export declare const milesToMeters: (miles: number) => number;
3
3
  export declare const kmToMeters: (km: number) => number;
4
4
  /**
5
- * Formats a distance already expressed in `unit`, e.g. `20 mi`, `2.5 km` or, on a German page, `2,5 km`.
5
+ * Formats a distance already expressed in `unit`, e.g. `20 mi`, `2.5 km` or, on a German page, `2,5 km`,
6
+ * to at most `maximumFractionDigits` decimals.
6
7
  * The page's language wins over `locale`: the widget's `i18n.locale` chooses which jobs are shown, while the
7
8
  * number sits in text written in the page's language (PROD-7117).
8
9
  */
9
- export declare const createDistanceFormatter: (locale: string | undefined, unit: DistanceUnit) => Intl.NumberFormat;
10
+ export declare const createDistanceFormatter: (locale: string | undefined, unit: DistanceUnit, maximumFractionDigits?: number) => Intl.NumberFormat;
10
11
  export declare const formatDistanceMeters: (meters: number, unit: DistanceUnit, locale: string | undefined) => string;