@inploi/plugin-job-search 2.1.1 → 3.0.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.
@@ -1,6 +1,6 @@
1
- import { ApiClient, Logger } from '@inploi/sdk';
1
+ import { InploiRpcClient } from '@inploi/sdk';
2
2
  import { SWRResponse } from 'swr';
3
- import { Input, Output } from 'valibot';
3
+ import { InferInput, InferOutput } from 'valibot';
4
4
  import { GeoBounds } from './components/geo-search';
5
5
  import { JobSearchState } from './components/job-search';
6
6
  import { TFunction } from './lib/i18n';
@@ -64,53 +64,41 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
64
64
  };
65
65
  readonly page: "Page";
66
66
  readonly reset: "Reset";
67
- }>) => import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
68
- data: import('valibot').ArraySchema<import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
69
- id: import('valibot').NumberSchema<number>;
70
- company_name: import('valibot').StringSchema<string>;
71
- company_logo: import('valibot').NullableSchema<import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>, undefined, string | undefined>;
72
- employment_type: import('valibot').StringSchema<string>;
73
- location_type: import('valibot').UnionSchema<[import('valibot').LiteralSchema<"LOCATION", "LOCATION">, import('valibot').LiteralSchema<"REMOTE", "REMOTE">, import('valibot').LiteralSchema<"HYBRID", "HYBRID">], "LOCATION" | "REMOTE" | "HYBRID">;
74
- pay_type: import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').LiteralSchema<"ANNUALLY", "ANNUALLY">, import('valibot').LiteralSchema<"HOURLY", "HOURLY">, import('valibot').LiteralSchema<"MONTHLY", "MONTHLY">, import('valibot').LiteralSchema<"WEEKLY", "WEEKLY">, import('valibot').LiteralSchema<"DAILY", "DAILY">], "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY">, undefined, "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null>;
75
- pay_currency: import('valibot').StringSchema<string>;
76
- pay_mask: import('valibot').BooleanSchema<boolean>;
77
- pay_display: import('valibot').BooleanSchema<boolean>;
78
- pay: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
79
- pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
80
- pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
81
- description: import('valibot').StringSchema<string>;
82
- title: import('valibot').StringSchema<string>;
83
- contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
84
- created_at: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
85
- custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').StringSchema<string>, import('valibot').AnySchema<any>, {
86
- [x: string]: any;
87
- }>, undefined, {
88
- [x: string]: any;
89
- } | null>;
90
- href: import('valibot').StringSchema<string>;
91
- industry: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
92
- category: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
93
- skills: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
94
- town: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
95
- city: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
96
- country: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
97
- vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>, undefined, string | null | undefined>;
98
- coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
99
- lat: import('valibot').NumberSchema<number>;
100
- lng: import('valibot').NumberSchema<number>;
101
- }, undefined, {
102
- lat: number;
103
- lng: number;
104
- }>, undefined, {
105
- lat: number;
106
- lng: number;
107
- } | null>, undefined, {
108
- lat: number;
109
- lng: number;
110
- } | null | undefined>;
111
- }, undefined, {
67
+ }>) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
68
+ readonly data: import('valibot').ArraySchema<import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
69
+ readonly id: import('valibot').NumberSchema<undefined>;
70
+ readonly company_name: import('valibot').StringSchema<undefined>;
71
+ readonly company_logo: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
72
+ readonly employment_type: import('valibot').StringSchema<undefined>;
73
+ readonly location_type: import('valibot').UnionSchema<[import('valibot').LiteralSchema<"LOCATION", undefined>, import('valibot').LiteralSchema<"REMOTE", undefined>, import('valibot').LiteralSchema<"HYBRID", undefined>], undefined>;
74
+ readonly pay_type: import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').LiteralSchema<"ANNUALLY", undefined>, import('valibot').LiteralSchema<"HOURLY", undefined>, import('valibot').LiteralSchema<"MONTHLY", undefined>, import('valibot').LiteralSchema<"WEEKLY", undefined>, import('valibot').LiteralSchema<"DAILY", undefined>], undefined>, undefined>;
75
+ readonly pay_currency: import('valibot').StringSchema<undefined>;
76
+ readonly pay_mask: import('valibot').BooleanSchema<undefined>;
77
+ readonly pay_display: import('valibot').BooleanSchema<undefined>;
78
+ readonly pay: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
79
+ readonly pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
80
+ readonly pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
81
+ readonly description: import('valibot').StringSchema<undefined>;
82
+ readonly title: import('valibot').StringSchema<undefined>;
83
+ readonly contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
84
+ readonly created_at: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
85
+ readonly custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').AnySchema, import('valibot').AnySchema, undefined>, undefined>;
86
+ readonly href: import('valibot').StringSchema<undefined>;
87
+ readonly industry: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
88
+ readonly category: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
89
+ readonly skills: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
90
+ readonly town: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
91
+ readonly city: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
92
+ readonly country: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
93
+ readonly vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
94
+ readonly coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
95
+ readonly lat: import('valibot').NumberSchema<undefined>;
96
+ readonly lng: import('valibot').NumberSchema<undefined>;
97
+ }, undefined>, undefined>, undefined>;
98
+ }, undefined>, import('valibot').TransformAction<{
112
99
  id: number;
113
100
  company_name: string;
101
+ company_logo: string | null;
114
102
  employment_type: string;
115
103
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
116
104
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -130,17 +118,16 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
130
118
  href: string;
131
119
  industry: string | null;
132
120
  category: string | null;
121
+ skills: string | null;
122
+ town: string | null;
133
123
  city: string | null;
134
124
  country: string | null;
135
- company_logo?: string | undefined;
136
- skills?: string | undefined;
137
- town?: string | undefined;
138
- vector_distance?: string | null | undefined;
125
+ vector_distance: string | null;
139
126
  coordinates?: {
140
127
  lat: number;
141
128
  lng: number;
142
129
  } | null | undefined;
143
- }>, {
130
+ }, {
144
131
  id: number;
145
132
  createdAt: string | null;
146
133
  company: {
@@ -161,6 +148,7 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
161
148
  raw: {
162
149
  id: number;
163
150
  company_name: string;
151
+ company_logo: string | null;
164
152
  employment_type: string;
165
153
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
166
154
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -180,83 +168,25 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
180
168
  href: string;
181
169
  industry: string | null;
182
170
  category: string | null;
171
+ skills: string | null;
172
+ town: string | null;
183
173
  city: string | null;
184
174
  country: string | null;
185
- company_logo?: string | undefined;
186
- skills?: string | undefined;
187
- town?: string | undefined;
188
- vector_distance?: string | null | undefined;
175
+ vector_distance: string | null;
189
176
  coordinates?: {
190
177
  lat: number;
191
178
  lng: number;
192
179
  } | null | undefined;
193
180
  };
194
181
  match: string | null;
195
- }>, {
196
- id: number;
197
- createdAt: string | null;
198
- company: {
199
- name: string;
200
- logo: string | null;
201
- };
202
- employmentType: string;
203
- locationType: "LOCATION" | "REMOTE" | "HYBRID";
204
- pay: string | null;
205
- description: string;
206
- title: string;
207
- contractType: string | null;
208
- href: string;
209
- relativePostedDate: string;
210
- customData: {
211
- [x: string]: any;
212
- } | null;
213
- raw: {
214
- id: number;
215
- company_name: string;
216
- employment_type: string;
217
- location_type: "LOCATION" | "REMOTE" | "HYBRID";
218
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
219
- pay_currency: string;
220
- pay_mask: boolean;
221
- pay_display: boolean;
222
- pay: string | null;
223
- pay_min: string | null;
224
- pay_max: string | null;
225
- description: string;
226
- title: string;
227
- contract_type: string | null;
228
- created_at: string | null;
229
- custom_data: {
230
- [x: string]: any;
231
- } | null;
232
- href: string;
233
- industry: string | null;
234
- category: string | null;
235
- city: string | null;
236
- country: string | null;
237
- company_logo?: string | undefined;
238
- skills?: string | undefined;
239
- town?: string | undefined;
240
- vector_distance?: string | null | undefined;
241
- coordinates?: {
242
- lat: number;
243
- lng: number;
244
- } | null | undefined;
245
- };
246
- match: string | null;
247
- }[]>;
248
- pagination: import('valibot').ObjectSchema<{
249
- total: import('valibot').NumberSchema<number>;
250
- current_page: import('valibot').NumberSchema<number>;
251
- per_page: import('valibot').NumberSchema<number>;
252
- last_page: import('valibot').NumberSchema<number>;
253
- }, undefined, {
254
- total: number;
255
- current_page: number;
256
- per_page: number;
257
- last_page: number;
258
- }>;
259
- }, undefined, {
182
+ }>]>, undefined>;
183
+ readonly pagination: import('valibot').ObjectSchema<{
184
+ readonly total: import('valibot').NumberSchema<undefined>;
185
+ readonly current_page: import('valibot').NumberSchema<undefined>;
186
+ readonly per_page: import('valibot').NumberSchema<undefined>;
187
+ readonly last_page: import('valibot').NumberSchema<undefined>;
188
+ }, undefined>;
189
+ }, undefined>, import('valibot').TransformAction<{
260
190
  data: {
261
191
  id: number;
262
192
  createdAt: string | null;
@@ -278,6 +208,7 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
278
208
  raw: {
279
209
  id: number;
280
210
  company_name: string;
211
+ company_logo: string | null;
281
212
  employment_type: string;
282
213
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
283
214
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -297,12 +228,11 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
297
228
  href: string;
298
229
  industry: string | null;
299
230
  category: string | null;
231
+ skills: string | null;
232
+ town: string | null;
300
233
  city: string | null;
301
234
  country: string | null;
302
- company_logo?: string | undefined;
303
- skills?: string | undefined;
304
- town?: string | undefined;
305
- vector_distance?: string | null | undefined;
235
+ vector_distance: string | null;
306
236
  coordinates?: {
307
237
  lat: number;
308
238
  lng: number;
@@ -316,7 +246,7 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
316
246
  per_page: number;
317
247
  last_page: number;
318
248
  };
319
- }>, {
249
+ }, {
320
250
  pagination: {
321
251
  total: number;
322
252
  current_page: number;
@@ -344,6 +274,7 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
344
274
  raw: {
345
275
  id: number;
346
276
  company_name: string;
277
+ company_logo: string | null;
347
278
  employment_type: string;
348
279
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
349
280
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -363,12 +294,11 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
363
294
  href: string;
364
295
  industry: string | null;
365
296
  category: string | null;
297
+ skills: string | null;
298
+ town: string | null;
366
299
  city: string | null;
367
300
  country: string | null;
368
- company_logo?: string | undefined;
369
- skills?: string | undefined;
370
- town?: string | undefined;
371
- vector_distance?: string | null | undefined;
301
+ vector_distance: string | null;
372
302
  coordinates?: {
373
303
  lat: number;
374
304
  lng: number;
@@ -376,9 +306,9 @@ declare const getJobSearchResponseSchema: (t: import('@inploi/i18n/translation')
376
306
  };
377
307
  match: string | null;
378
308
  }[];
379
- }>;
380
- export type JobSearchResponsePayloadInput = Input<ReturnType<typeof getJobSearchResponseSchema>>;
381
- export type JobSearchResponsePayloadOutput = Output<ReturnType<typeof getJobSearchResponseSchema>>;
309
+ }>]>;
310
+ export type JobSearchResponsePayloadInput = InferInput<ReturnType<typeof getJobSearchResponseSchema>>;
311
+ export type JobSearchResponsePayloadOutput = InferOutput<ReturnType<typeof getJobSearchResponseSchema>>;
382
312
  export declare const getFilterValue: (filterValue: string | string[] | undefined) => string | string[] | null;
383
313
  type GeoSearchApiParams = {
384
314
  lat?: number;
@@ -386,10 +316,10 @@ type GeoSearchApiParams = {
386
316
  radius?: number;
387
317
  type?: 'provided' | 'ip';
388
318
  } | GeoBounds;
389
- export declare const filtersToPayload: (state: JobSearchState) => Record<string, string | string[] | GeoSearchApiParams | null | undefined>;
390
- export declare const getAvailableFilters: ({ apiClient, state, logger, signal, }: {
391
- apiClient: ApiClient;
392
- logger: Logger;
319
+ export type FiltersPayload = Record<string, string | string[] | GeoSearchApiParams | null | undefined>;
320
+ export declare const filtersToPayload: (state: JobSearchState) => FiltersPayload;
321
+ export declare const getAvailableFilters: ({ rpcClient, state, signal, }: {
322
+ rpcClient: InploiRpcClient;
393
323
  signal?: AbortSignal;
394
324
  state: JobSearchState;
395
325
  }) => Promise<{
@@ -400,9 +330,8 @@ export declare const getAvailableFilters: ({ apiClient, state, logger, signal, }
400
330
  }[];
401
331
  }>;
402
332
  export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
403
- export declare const getJobSearchResults: ({ apiClient, logger, signal, state, page, t, }: {
404
- apiClient: ApiClient;
405
- logger: Logger;
333
+ export declare const getJobSearchResults: ({ rpcClient, signal, state, page, t, }: {
334
+ rpcClient: InploiRpcClient;
406
335
  signal?: AbortSignal;
407
336
  state: JobSearchState;
408
337
  page?: number;
@@ -435,6 +364,7 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, state, p
435
364
  raw: {
436
365
  id: number;
437
366
  company_name: string;
367
+ company_logo: string | null;
438
368
  employment_type: string;
439
369
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
440
370
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -454,12 +384,11 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, state, p
454
384
  href: string;
455
385
  industry: string | null;
456
386
  category: string | null;
387
+ skills: string | null;
388
+ town: string | null;
457
389
  city: string | null;
458
390
  country: string | null;
459
- company_logo?: string | undefined;
460
- skills?: string | undefined;
461
- town?: string | undefined;
462
- vector_distance?: string | null | undefined;
391
+ vector_distance: string | null;
463
392
  coordinates?: {
464
393
  lat: number;
465
394
  lng: number;
@@ -528,53 +457,41 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
528
457
  };
529
458
  readonly page: "Page";
530
459
  readonly reset: "Reset";
531
- }>) => import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
532
- data: import('valibot').ArraySchema<import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
533
- id: import('valibot').NumberSchema<number>;
534
- company_name: import('valibot').StringSchema<string>;
535
- company_logo: import('valibot').NullableSchema<import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>, undefined, string | undefined>;
536
- employment_type: import('valibot').StringSchema<string>;
537
- location_type: import('valibot').UnionSchema<[import('valibot').LiteralSchema<"LOCATION", "LOCATION">, import('valibot').LiteralSchema<"REMOTE", "REMOTE">, import('valibot').LiteralSchema<"HYBRID", "HYBRID">], "LOCATION" | "REMOTE" | "HYBRID">;
538
- pay_type: import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').LiteralSchema<"ANNUALLY", "ANNUALLY">, import('valibot').LiteralSchema<"HOURLY", "HOURLY">, import('valibot').LiteralSchema<"MONTHLY", "MONTHLY">, import('valibot').LiteralSchema<"WEEKLY", "WEEKLY">, import('valibot').LiteralSchema<"DAILY", "DAILY">], "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY">, undefined, "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null>;
539
- pay_currency: import('valibot').StringSchema<string>;
540
- pay_mask: import('valibot').BooleanSchema<boolean>;
541
- pay_display: import('valibot').BooleanSchema<boolean>;
542
- pay: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
543
- pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
544
- pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
545
- description: import('valibot').StringSchema<string>;
546
- title: import('valibot').StringSchema<string>;
547
- contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
548
- created_at: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
549
- custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').StringSchema<string>, import('valibot').AnySchema<any>, {
550
- [x: string]: any;
551
- }>, undefined, {
552
- [x: string]: any;
553
- } | null>;
554
- href: import('valibot').StringSchema<string>;
555
- industry: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
556
- category: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
557
- skills: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
558
- town: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
559
- city: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
560
- country: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
561
- vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>, undefined, string | null | undefined>;
562
- coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
563
- lat: import('valibot').NumberSchema<number>;
564
- lng: import('valibot').NumberSchema<number>;
565
- }, undefined, {
566
- lat: number;
567
- lng: number;
568
- }>, undefined, {
569
- lat: number;
570
- lng: number;
571
- } | null>, undefined, {
572
- lat: number;
573
- lng: number;
574
- } | null | undefined>;
575
- }, undefined, {
460
+ }>) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
461
+ readonly data: import('valibot').ArraySchema<import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
462
+ readonly id: import('valibot').NumberSchema<undefined>;
463
+ readonly company_name: import('valibot').StringSchema<undefined>;
464
+ readonly company_logo: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
465
+ readonly employment_type: import('valibot').StringSchema<undefined>;
466
+ readonly location_type: import('valibot').UnionSchema<[import('valibot').LiteralSchema<"LOCATION", undefined>, import('valibot').LiteralSchema<"REMOTE", undefined>, import('valibot').LiteralSchema<"HYBRID", undefined>], undefined>;
467
+ readonly pay_type: import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').LiteralSchema<"ANNUALLY", undefined>, import('valibot').LiteralSchema<"HOURLY", undefined>, import('valibot').LiteralSchema<"MONTHLY", undefined>, import('valibot').LiteralSchema<"WEEKLY", undefined>, import('valibot').LiteralSchema<"DAILY", undefined>], undefined>, undefined>;
468
+ readonly pay_currency: import('valibot').StringSchema<undefined>;
469
+ readonly pay_mask: import('valibot').BooleanSchema<undefined>;
470
+ readonly pay_display: import('valibot').BooleanSchema<undefined>;
471
+ readonly pay: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
472
+ readonly pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
473
+ readonly pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
474
+ readonly description: import('valibot').StringSchema<undefined>;
475
+ readonly title: import('valibot').StringSchema<undefined>;
476
+ readonly contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
477
+ readonly created_at: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
478
+ readonly custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').AnySchema, import('valibot').AnySchema, undefined>, undefined>;
479
+ readonly href: import('valibot').StringSchema<undefined>;
480
+ readonly industry: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
481
+ readonly category: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
482
+ readonly skills: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
483
+ readonly town: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
484
+ readonly city: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
485
+ readonly country: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
486
+ readonly vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
487
+ readonly coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
488
+ readonly lat: import('valibot').NumberSchema<undefined>;
489
+ readonly lng: import('valibot').NumberSchema<undefined>;
490
+ }, undefined>, undefined>, undefined>;
491
+ }, undefined>, import('valibot').TransformAction<{
576
492
  id: number;
577
493
  company_name: string;
494
+ company_logo: string | null;
578
495
  employment_type: string;
579
496
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
580
497
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -594,69 +511,16 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
594
511
  href: string;
595
512
  industry: string | null;
596
513
  category: string | null;
514
+ skills: string | null;
515
+ town: string | null;
597
516
  city: string | null;
598
517
  country: string | null;
599
- company_logo?: string | undefined;
600
- skills?: string | undefined;
601
- town?: string | undefined;
602
- vector_distance?: string | null | undefined;
518
+ vector_distance: string | null;
603
519
  coordinates?: {
604
520
  lat: number;
605
521
  lng: number;
606
522
  } | null | undefined;
607
- }>, {
608
- id: number;
609
- createdAt: string | null;
610
- company: {
611
- name: string;
612
- logo: string | null;
613
- };
614
- employmentType: string;
615
- locationType: "LOCATION" | "REMOTE" | "HYBRID";
616
- pay: string | null;
617
- description: string;
618
- title: string;
619
- contractType: string | null;
620
- href: string;
621
- relativePostedDate: string;
622
- customData: {
623
- [x: string]: any;
624
- } | null;
625
- raw: {
626
- id: number;
627
- company_name: string;
628
- employment_type: string;
629
- location_type: "LOCATION" | "REMOTE" | "HYBRID";
630
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
631
- pay_currency: string;
632
- pay_mask: boolean;
633
- pay_display: boolean;
634
- pay: string | null;
635
- pay_min: string | null;
636
- pay_max: string | null;
637
- description: string;
638
- title: string;
639
- contract_type: string | null;
640
- created_at: string | null;
641
- custom_data: {
642
- [x: string]: any;
643
- } | null;
644
- href: string;
645
- industry: string | null;
646
- category: string | null;
647
- city: string | null;
648
- country: string | null;
649
- company_logo?: string | undefined;
650
- skills?: string | undefined;
651
- town?: string | undefined;
652
- vector_distance?: string | null | undefined;
653
- coordinates?: {
654
- lat: number;
655
- lng: number;
656
- } | null | undefined;
657
- };
658
- match: string | null;
659
- }>, {
523
+ }, {
660
524
  id: number;
661
525
  createdAt: string | null;
662
526
  company: {
@@ -677,6 +541,7 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
677
541
  raw: {
678
542
  id: number;
679
543
  company_name: string;
544
+ company_logo: string | null;
680
545
  employment_type: string;
681
546
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
682
547
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -696,25 +561,22 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
696
561
  href: string;
697
562
  industry: string | null;
698
563
  category: string | null;
564
+ skills: string | null;
565
+ town: string | null;
699
566
  city: string | null;
700
567
  country: string | null;
701
- company_logo?: string | undefined;
702
- skills?: string | undefined;
703
- town?: string | undefined;
704
- vector_distance?: string | null | undefined;
568
+ vector_distance: string | null;
705
569
  coordinates?: {
706
570
  lat: number;
707
571
  lng: number;
708
572
  } | null | undefined;
709
573
  };
710
574
  match: string | null;
711
- }[]>;
712
- pagination: import('valibot').ObjectSchema<{
713
- has_more: import('valibot').BooleanSchema<boolean>;
714
- }, undefined, {
715
- has_more: boolean;
716
- }>;
717
- }, undefined, {
575
+ }>]>, undefined>;
576
+ readonly pagination: import('valibot').ObjectSchema<{
577
+ readonly has_more: import('valibot').BooleanSchema<undefined>;
578
+ }, undefined>;
579
+ }, undefined>, import('valibot').TransformAction<{
718
580
  data: {
719
581
  id: number;
720
582
  createdAt: string | null;
@@ -736,6 +598,7 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
736
598
  raw: {
737
599
  id: number;
738
600
  company_name: string;
601
+ company_logo: string | null;
739
602
  employment_type: string;
740
603
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
741
604
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -755,12 +618,11 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
755
618
  href: string;
756
619
  industry: string | null;
757
620
  category: string | null;
621
+ skills: string | null;
622
+ town: string | null;
758
623
  city: string | null;
759
624
  country: string | null;
760
- company_logo?: string | undefined;
761
- skills?: string | undefined;
762
- town?: string | undefined;
763
- vector_distance?: string | null | undefined;
625
+ vector_distance: string | null;
764
626
  coordinates?: {
765
627
  lat: number;
766
628
  lng: number;
@@ -771,7 +633,7 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
771
633
  pagination: {
772
634
  has_more: boolean;
773
635
  };
774
- }>, {
636
+ }, {
775
637
  results: {
776
638
  id: number;
777
639
  createdAt: string | null;
@@ -793,6 +655,7 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
793
655
  raw: {
794
656
  id: number;
795
657
  company_name: string;
658
+ company_logo: string | null;
796
659
  employment_type: string;
797
660
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
798
661
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -812,12 +675,11 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
812
675
  href: string;
813
676
  industry: string | null;
814
677
  category: string | null;
678
+ skills: string | null;
679
+ town: string | null;
815
680
  city: string | null;
816
681
  country: string | null;
817
- company_logo?: string | undefined;
818
- skills?: string | undefined;
819
- town?: string | undefined;
820
- vector_distance?: string | null | undefined;
682
+ vector_distance: string | null;
821
683
  coordinates?: {
822
684
  lat: number;
823
685
  lng: number;
@@ -828,12 +690,11 @@ declare const getJobSearchMapSchema: (t: import('@inploi/i18n/translation').TFn<
828
690
  pagination: {
829
691
  has_more: boolean;
830
692
  };
831
- }>;
832
- export type JobSearchMapPayloadInput = Input<ReturnType<typeof getJobSearchMapSchema>>;
833
- export type JobSearchMapPayloadOutput = Output<ReturnType<typeof getJobSearchMapSchema>>;
834
- export declare const getJobSearchMapResults: ({ apiClient, logger, signal, state, t, }: {
835
- apiClient: ApiClient;
836
- logger: Logger;
693
+ }>]>;
694
+ export type JobSearchMapPayloadInput = InferInput<ReturnType<typeof getJobSearchMapSchema>>;
695
+ export type JobSearchMapPayloadOutput = InferOutput<ReturnType<typeof getJobSearchMapSchema>>;
696
+ export declare const getJobSearchMapResults: ({ rpcClient, signal, state, t, }: {
697
+ rpcClient: InploiRpcClient;
837
698
  signal?: AbortSignal;
838
699
  state: JobSearchState;
839
700
  t: TFunction;
@@ -859,6 +720,7 @@ export declare const getJobSearchMapResults: ({ apiClient, logger, signal, state
859
720
  raw: {
860
721
  id: number;
861
722
  company_name: string;
723
+ company_logo: string | null;
862
724
  employment_type: string;
863
725
  location_type: "LOCATION" | "REMOTE" | "HYBRID";
864
726
  pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
@@ -878,12 +740,11 @@ export declare const getJobSearchMapResults: ({ apiClient, logger, signal, state
878
740
  href: string;
879
741
  industry: string | null;
880
742
  category: string | null;
743
+ skills: string | null;
744
+ town: string | null;
881
745
  city: string | null;
882
746
  country: string | null;
883
- company_logo?: string | undefined;
884
- skills?: string | undefined;
885
- town?: string | undefined;
886
- vector_distance?: string | null | undefined;
747
+ vector_distance: string | null;
887
748
  coordinates?: {
888
749
  lat: number;
889
750
  lng: number;