@inploi/plugin-job-search 0.23.7 → 0.25.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.
Files changed (47) hide show
  1. package/cdn/index.js +17 -17
  2. package/cdn/style.css +1 -1
  3. package/dist/components/button.d.ts +1 -1
  4. package/dist/components/combobox.d.ts +25 -0
  5. package/dist/components/filter-content.active.d.ts +174 -1
  6. package/dist/components/filter-section.d.ts +3 -2
  7. package/dist/components/filter.d.ts +57 -0
  8. package/dist/components/geo-search.d.ts +22 -0
  9. package/dist/components/geo-search.locate-button.d.ts +8 -0
  10. package/dist/components/geo-search.location-input.d.ts +10 -0
  11. package/dist/components/geo-search.utils.d.ts +7 -0
  12. package/dist/components/icon.d.ts +3 -0
  13. package/dist/components/job-search.d.ts +21 -1
  14. package/dist/components/keyword-search.d.ts +3 -2
  15. package/dist/components/mode-switch.d.ts +9 -0
  16. package/dist/components/natural-language-section.d.ts +9 -0
  17. package/dist/components/results-section.d.ts +4 -3
  18. package/dist/components/roving-text.d.ts +6 -0
  19. package/dist/components/tag.d.ts +1 -1
  20. package/dist/index.cjs +4 -20
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1239 -4600
  23. package/dist/job-search.api-4bfb3842.js +3874 -0
  24. package/dist/job-search.api-e3e2ae41.cjs +17 -0
  25. package/dist/job-search.api.d.ts +47 -26
  26. package/dist/job-search.d.ts +18 -3
  27. package/dist/job-search.schemas.d.ts +16 -10
  28. package/dist/lib/cache-key.d.ts +2 -3
  29. package/dist/lib/currency.d.ts +1 -1
  30. package/dist/lib/datetime.d.ts +1 -1
  31. package/dist/lib/type-utils.d.ts +1 -0
  32. package/dist/lib/utils.d.ts +3 -0
  33. package/dist/plugin-job-alerts-7fc7b0f9.cjs +1050 -0
  34. package/dist/{plugin-job-alerts-6f8dbd69.js → plugin-job-alerts-a5cbb5be.js} +1777 -1812
  35. package/dist/style/tokens.d.ts +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/utils.cjs +1 -1
  38. package/dist/utils.d.ts +1 -1
  39. package/dist/utils.js +5 -15
  40. package/package.json +11 -8
  41. package/dist/datetime-3eccae90.cjs +0 -1
  42. package/dist/datetime-796d4b37.js +0 -32
  43. package/dist/job-search.state.d.ts +0 -3
  44. package/dist/lib/translation.d.ts +0 -44
  45. package/dist/lib/translation.terms.d.ts +0 -216
  46. package/dist/lib/translation.test.d.ts +0 -1
  47. package/dist/plugin-job-alerts-4b46b097.cjs +0 -1050
@@ -1,22 +1,22 @@
1
1
  import { Output } from 'valibot';
2
- import { TFunction } from './lib/translation.terms';
2
+ import { TFunction } from './lib/i18n';
3
3
 
4
4
  export declare const AvailablePropertiesSchema: import('valibot').RecordSchema<import('valibot').StringSchema<string>, import('valibot').ArraySchema<import('valibot').ObjectSchema<{
5
5
  label: import('valibot').StringSchema<string>;
6
6
  value: import('valibot').StringSchema<string>;
7
7
  jobs: import('valibot').NumberSchema<number>;
8
8
  }, undefined, {
9
- label: string;
10
9
  value: string;
10
+ label: string;
11
11
  jobs: number;
12
12
  }>, {
13
- label: string;
14
13
  value: string;
14
+ label: string;
15
15
  jobs: number;
16
16
  }[]>, {
17
17
  [x: string]: {
18
- label: string;
19
18
  value: string;
19
+ label: string;
20
20
  jobs: number;
21
21
  }[];
22
22
  }>;
@@ -63,7 +63,10 @@ export declare const JobPayloadSchema: import('valibot').ObjectSchema<{
63
63
  town: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
64
64
  city: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
65
65
  country: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
66
+ vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>, undefined, string | null | undefined>;
66
67
  }, undefined, {
68
+ title: string;
69
+ href: string;
67
70
  id: number;
68
71
  company_name: string;
69
72
  employment_type: string;
@@ -76,13 +79,11 @@ export declare const JobPayloadSchema: import('valibot').ObjectSchema<{
76
79
  pay_min: string | null;
77
80
  pay_max: string | null;
78
81
  description: string;
79
- title: string;
80
82
  contract_type: string | null;
81
83
  created_at: string | null;
82
84
  custom_data: {
83
85
  [x: string]: any;
84
86
  } | null;
85
- href: string;
86
87
  industry: string | null;
87
88
  category: string | null;
88
89
  city: string | null;
@@ -90,6 +91,7 @@ export declare const JobPayloadSchema: import('valibot').ObjectSchema<{
90
91
  company_logo?: string | undefined;
91
92
  skills?: string | undefined;
92
93
  town?: string | undefined;
94
+ vector_distance?: string | null | undefined;
93
95
  }>;
94
96
  export type JobPayloadSchema = Output<typeof JobPayloadSchema>;
95
97
  export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
@@ -121,7 +123,10 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
121
123
  town: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
122
124
  city: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
123
125
  country: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
126
+ vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>, undefined, string | null | undefined>;
124
127
  }, undefined, {
128
+ title: string;
129
+ href: string;
125
130
  id: number;
126
131
  company_name: string;
127
132
  employment_type: string;
@@ -134,13 +139,11 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
134
139
  pay_min: string | null;
135
140
  pay_max: string | null;
136
141
  description: string;
137
- title: string;
138
142
  contract_type: string | null;
139
143
  created_at: string | null;
140
144
  custom_data: {
141
145
  [x: string]: any;
142
146
  } | null;
143
- href: string;
144
147
  industry: string | null;
145
148
  category: string | null;
146
149
  city: string | null;
@@ -148,6 +151,7 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
148
151
  company_logo?: string | undefined;
149
152
  skills?: string | undefined;
150
153
  town?: string | undefined;
154
+ vector_distance?: string | null | undefined;
151
155
  }>, {
152
156
  id: number;
153
157
  createdAt: string | null;
@@ -167,6 +171,8 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
167
171
  [x: string]: any;
168
172
  } | null;
169
173
  raw: {
174
+ title: string;
175
+ href: string;
170
176
  id: number;
171
177
  company_name: string;
172
178
  employment_type: string;
@@ -179,13 +185,11 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
179
185
  pay_min: string | null;
180
186
  pay_max: string | null;
181
187
  description: string;
182
- title: string;
183
188
  contract_type: string | null;
184
189
  created_at: string | null;
185
190
  custom_data: {
186
191
  [x: string]: any;
187
192
  } | null;
188
- href: string;
189
193
  industry: string | null;
190
194
  category: string | null;
191
195
  city: string | null;
@@ -193,6 +197,8 @@ export declare const getJobSchema: (t: TFunction) => import('valibot').SchemaWit
193
197
  company_logo?: string | undefined;
194
198
  skills?: string | undefined;
195
199
  town?: string | undefined;
200
+ vector_distance?: string | null | undefined;
196
201
  };
202
+ match: string | null;
197
203
  }>;
198
204
  export type JobSchema = Output<ReturnType<typeof getJobSchema>>;
@@ -1,7 +1,6 @@
1
- import { FilterValue } from '../components/filter';
1
+ import { JobSearchState } from '../components/job-search';
2
2
 
3
3
  export declare const cacheKey: (value: {
4
- filter: Record<string, FilterValue | undefined>;
4
+ state: JobSearchState;
5
5
  baseKey: string;
6
- keyword: string | undefined;
7
6
  }) => string;
@@ -1,5 +1,5 @@
1
1
  import { JobPayloadSchema } from '../job-search.schemas';
2
- import { TFunction } from './translation.terms';
2
+ import { TFunction } from './i18n';
3
3
 
4
4
  export declare const getSalaryAsText: (params: {
5
5
  salary: Pick<JobPayloadSchema, 'pay' | 'pay_min' | 'pay_mask' | 'pay_max' | 'pay_type' | 'pay_currency' | 'pay_display'>;
@@ -1,4 +1,4 @@
1
- import { TFunction } from './translation.terms';
1
+ import { TFunction } from './i18n';
2
2
 
3
3
  type Params = {
4
4
  from?: Date;
@@ -20,6 +20,7 @@ export type Select<T, U extends T> = U;
20
20
  export type Maybe<T> = T | null | undefined;
21
21
  export type PartialReadonly<T> = T | Readonly<T>;
22
22
  export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
23
+ export type DistributiveOmit<T, U> = T extends any ? Pick<T, Exclude<keyof T, U>> : never;
23
24
  export type Jsonify<T> = IsAny<T> extends true ? any : T extends ({
24
25
  toJSON(): infer U;
25
26
  }) ? U extends JsonValue ? U : unknown : T extends JsonPrimitive ? T : T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends Promise<unknown> ? EmptyObject : T extends Map<unknown, unknown> ? EmptyObject : T extends Set<unknown> ? EmptyObject : T extends TypedArray ? Record<string, number> : T extends NotJson ? never : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [NeverToNull<Jsonify<F>>, ...Jsonify<R>] : T extends readonly unknown[] ? NeverToNull<Jsonify<T[number]>>[] : T extends Record<keyof unknown, unknown> ? JsonifyObject<T> : unknown extends T ? unknown : never;
@@ -1,4 +1,7 @@
1
+ import { GeoSearchFilter } from '../components/geo-search';
1
2
  import { FilterProperty } from '..';
2
3
 
3
4
  /** Reads from search params provided and adds to list of filters. */
4
5
  export declare const getStatefulPropertiesFromSearchParams: (properties: FilterProperty[], searchParams: URLSearchParams) => FilterProperty[];
6
+ export declare const getGeolocationFromSearchParams: (searchParams: URLSearchParams) => GeoSearchFilter;
7
+ export declare const useDebouncedValue: <T>(value: T, timeout?: number) => T;