@inploi/plugin-job-search 9.0.0 → 9.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.
Files changed (98) hide show
  1. package/README.md +5 -0
  2. package/cdn/index.js +16 -18
  3. package/cdn/style.css +1 -1
  4. package/dist/index.cjs +1 -2
  5. package/dist/index.d.cts +977 -0
  6. package/dist/index.d.ts +977 -2
  7. package/dist/index.js +147 -175
  8. package/dist/{job-search-eb64050e.js → job-search-C39oHZb7.js} +1804 -1959
  9. package/dist/job-search-C9kyIrbM.cjs +60 -0
  10. package/dist/map-B3T2x-f7.cjs +1 -0
  11. package/dist/map-DVf9u_B8.js +286 -0
  12. package/dist/{map-attribution-96798686.js → map-attribution-By9wrlPf.js} +7 -14
  13. package/dist/mapbox-gl-BvQCqDX3.cjs +3073 -0
  14. package/dist/{mapbox-gl-0f446975.js → mapbox-gl-D9aqTRUT.js} +13146 -16312
  15. package/dist/style.css +1 -1
  16. package/dist/utils.cjs +1 -1
  17. package/dist/utils.d.cts +622 -0
  18. package/dist/utils.d.ts +622 -3
  19. package/dist/utils.js +11 -12
  20. package/package.json +25 -15
  21. package/dist/components/button.d.ts +0 -60
  22. package/dist/components/combobox.d.ts +0 -27
  23. package/dist/components/error-boundary.d.ts +0 -23
  24. package/dist/components/filter-content.active.d.ts +0 -246
  25. package/dist/components/filter-section.d.ts +0 -18
  26. package/dist/components/filter.d.ts +0 -24
  27. package/dist/components/geo-search.d.ts +0 -37
  28. package/dist/components/geo-search.geocode.d.ts +0 -34
  29. package/dist/components/geo-search.geocode.test.d.ts +0 -1
  30. package/dist/components/geo-search.locate-button.d.ts +0 -8
  31. package/dist/components/geo-search.location-input.d.ts +0 -12
  32. package/dist/components/geo-search.location-input.test.d.ts +0 -1
  33. package/dist/components/geo-search.utils.d.ts +0 -19
  34. package/dist/components/geo-search.utils.test.d.ts +0 -1
  35. package/dist/components/icon.d.ts +0 -33
  36. package/dist/components/job-card.d.ts +0 -17
  37. package/dist/components/job-search.alerts.test.d.ts +0 -1
  38. package/dist/components/job-search.d.ts +0 -56
  39. package/dist/components/keyword-search.d.ts +0 -6
  40. package/dist/components/map.attribution.test.d.ts +0 -1
  41. package/dist/components/map.d.ts +0 -12
  42. package/dist/components/map.imports.test.d.ts +0 -1
  43. package/dist/components/map.mapbox.d.ts +0 -11
  44. package/dist/components/map.maplibre.d.ts +0 -12
  45. package/dist/components/map.test.d.ts +0 -1
  46. package/dist/components/map.types.d.ts +0 -46
  47. package/dist/components/natural-language-section.d.ts +0 -9
  48. package/dist/components/palette-debugger.d.ts +0 -1
  49. package/dist/components/result-order.d.ts +0 -6
  50. package/dist/components/results-list.d.ts +0 -26
  51. package/dist/components/results-map.d.ts +0 -22
  52. package/dist/components/results.d.ts +0 -28
  53. package/dist/components/roving-text.d.ts +0 -6
  54. package/dist/components/skeleton-text.d.ts +0 -3
  55. package/dist/components/tag.d.ts +0 -60
  56. package/dist/components/view-switch.d.ts +0 -64
  57. package/dist/index.cdn.d.ts +0 -9
  58. package/dist/index.dev.d.ts +0 -1
  59. package/dist/job-search-941c04d7.cjs +0 -60
  60. package/dist/job-search.api.d.ts +0 -682
  61. package/dist/job-search.api.test.d.ts +0 -1
  62. package/dist/job-search.api.typetest.d.ts +0 -1
  63. package/dist/job-search.constants.d.ts +0 -7
  64. package/dist/job-search.d.ts +0 -296
  65. package/dist/job-search.schemas.d.ts +0 -183
  66. package/dist/lib/cache-key.d.ts +0 -7
  67. package/dist/lib/cache-key.test.d.ts +0 -1
  68. package/dist/lib/countries.d.ts +0 -4
  69. package/dist/lib/countries.test.d.ts +0 -1
  70. package/dist/lib/currency.test.d.ts +0 -1
  71. package/dist/lib/deep-set.d.ts +0 -8
  72. package/dist/lib/deep-set.test.d.ts +0 -1
  73. package/dist/lib/distance.d.ts +0 -11
  74. package/dist/lib/distance.test.d.ts +0 -1
  75. package/dist/lib/hooks.d.ts +0 -8
  76. package/dist/lib/i18n.d.ts +0 -587
  77. package/dist/lib/map-attribution.d.ts +0 -8
  78. package/dist/lib/map-library-cdn.test.d.ts +0 -1
  79. package/dist/lib/map-style.d.ts +0 -8
  80. package/dist/lib/map-style.test.d.ts +0 -1
  81. package/dist/lib/match.d.ts +0 -35
  82. package/dist/lib/match.test.d.ts +0 -1
  83. package/dist/lib/sort.d.ts +0 -4
  84. package/dist/lib/sort.test.d.ts +0 -1
  85. package/dist/lib/type-utils.d.ts +0 -56
  86. package/dist/lib/utils.d.ts +0 -16
  87. package/dist/lib/utils.test.d.ts +0 -1
  88. package/dist/map-00ee82df.js +0 -300
  89. package/dist/map-109de8da.cjs +0 -2
  90. package/dist/mapbox-gl-11152b6e.cjs +0 -3073
  91. package/dist/mocks/browser.d.ts +0 -1
  92. package/dist/mocks/handlers.d.ts +0 -26
  93. package/dist/style/theme.d.ts +0 -7
  94. package/dist/style/theme.utils.d.ts +0 -6
  95. package/dist/style/tokens.d.ts +0 -148
  96. /package/dist/{common.geo-transport-CJGUJXTA-aba25ae8.cjs → common.geo-transport-CJGUJXTA-BmDm5A18.cjs} +0 -0
  97. /package/dist/{common.geo-transport-CJGUJXTA-e1f9b82a.js → common.geo-transport-CJGUJXTA-H3__EeqQ.js} +0 -0
  98. /package/dist/{map-attribution-0b24769c.cjs → map-attribution-DyuZ3dMC.cjs} +0 -0
@@ -1,682 +0,0 @@
1
- import { InploiRpcClient } from '@inploi/sdk';
2
- import { SWRResponse } from 'swr';
3
- import { InferInput, InferOutput } from 'valibot';
4
- import { GeoBounds } from './components/geo-search';
5
- import { JobSearchState } from './components/job-search';
6
- import { TFunction } from './lib/i18n';
7
-
8
- declare const getJobSearchResponseSchema: (t: TFunction, locale: string | string[] | undefined) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
9
- readonly data: import('valibot').ArraySchema<import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
10
- readonly id: import('valibot').NumberSchema<undefined>;
11
- readonly company_name: import('valibot').StringSchema<undefined>;
12
- readonly company_logo: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
13
- readonly employment_type: import('valibot').StringSchema<undefined>;
14
- readonly location_type: import('valibot').PicklistSchema<readonly ["LOCATION", "REMOTE", "HYBRID"], undefined>;
15
- 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>;
16
- readonly pay_currency: import('valibot').StringSchema<undefined>;
17
- readonly pay_mask: import('valibot').BooleanSchema<undefined>;
18
- readonly pay_display: import('valibot').BooleanSchema<undefined>;
19
- readonly pay: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
20
- readonly pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
21
- readonly pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
22
- readonly title: import('valibot').StringSchema<undefined>;
23
- readonly contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
24
- readonly created_at: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
25
- readonly custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').AnySchema, import('valibot').AnySchema, undefined>, undefined>;
26
- readonly href: import('valibot').StringSchema<undefined>;
27
- readonly industry: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
28
- readonly category: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
29
- readonly skills: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
30
- readonly town: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
31
- readonly city: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
32
- readonly country: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
33
- readonly vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
34
- readonly coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
35
- readonly lat: import('valibot').NumberSchema<undefined>;
36
- readonly lng: import('valibot').NumberSchema<undefined>;
37
- }, undefined>, undefined>, undefined>;
38
- readonly distance_meters: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').NumberSchema<undefined>, import('valibot').SchemaWithPipe<readonly [import('valibot').StringSchema<undefined>, import('valibot').DecimalAction<string, undefined>, import('valibot').TransformAction<any, number>]>], undefined>, undefined>, null>;
39
- readonly locale: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
40
- }, undefined>, import('valibot').TransformAction<{
41
- id: number;
42
- company_name: string;
43
- company_logo: string | null;
44
- employment_type: string;
45
- location_type: "LOCATION" | "REMOTE" | "HYBRID";
46
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
47
- pay_currency: string;
48
- pay_mask: boolean;
49
- pay_display: boolean;
50
- pay: string | null;
51
- pay_min: string | null;
52
- pay_max: string | null;
53
- title: string;
54
- contract_type: string | null;
55
- created_at: string | null;
56
- custom_data: {
57
- [x: string]: any;
58
- } | null;
59
- href: string;
60
- industry: string | null;
61
- category: string | null;
62
- skills: string | null;
63
- town: string | null;
64
- city: string | null;
65
- country: string | null;
66
- vector_distance: string | null;
67
- coordinates?: {
68
- lat: number;
69
- lng: number;
70
- } | null | undefined;
71
- distance_meters: number | null;
72
- locale?: string | null | undefined;
73
- }, {
74
- id: number;
75
- createdAt: string | null;
76
- company: {
77
- name: string;
78
- logo: string | null;
79
- };
80
- pay: string | null;
81
- title: string;
82
- contractType: string | null;
83
- href: string;
84
- relativePostedDate: string;
85
- customData: {
86
- [x: string]: any;
87
- } | null;
88
- raw: {
89
- location_type: string;
90
- employment_type: string;
91
- id: number;
92
- company_name: string;
93
- company_logo: string | null;
94
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
95
- pay_currency: string;
96
- pay_mask: boolean;
97
- pay_display: boolean;
98
- pay: string | null;
99
- pay_min: string | null;
100
- pay_max: string | null;
101
- title: string;
102
- contract_type: string | null;
103
- created_at: string | null;
104
- custom_data: {
105
- [x: string]: any;
106
- } | null;
107
- href: string;
108
- industry: string | null;
109
- category: string | null;
110
- skills: string | null;
111
- town: string | null;
112
- city: string | null;
113
- country: string | null;
114
- vector_distance: string | null;
115
- coordinates?: {
116
- lat: number;
117
- lng: number;
118
- } | null | undefined;
119
- distance_meters: number | null;
120
- locale?: string | null | undefined;
121
- };
122
- distanceMeters: number | null;
123
- match: string | null;
124
- }>]>, undefined>;
125
- readonly pagination: import('valibot').ObjectSchema<{
126
- readonly total: import('valibot').NumberSchema<undefined>;
127
- readonly current_page: import('valibot').NumberSchema<undefined>;
128
- readonly per_page: import('valibot').NumberSchema<undefined>;
129
- readonly last_page: import('valibot').NumberSchema<undefined>;
130
- }, undefined>;
131
- }, undefined>, import('valibot').TransformAction<{
132
- data: {
133
- id: number;
134
- createdAt: string | null;
135
- company: {
136
- name: string;
137
- logo: string | null;
138
- };
139
- pay: string | null;
140
- title: string;
141
- contractType: string | null;
142
- href: string;
143
- relativePostedDate: string;
144
- customData: {
145
- [x: string]: any;
146
- } | null;
147
- raw: {
148
- location_type: string;
149
- employment_type: string;
150
- id: number;
151
- company_name: string;
152
- company_logo: string | null;
153
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
154
- pay_currency: string;
155
- pay_mask: boolean;
156
- pay_display: boolean;
157
- pay: string | null;
158
- pay_min: string | null;
159
- pay_max: string | null;
160
- title: string;
161
- contract_type: string | null;
162
- created_at: string | null;
163
- custom_data: {
164
- [x: string]: any;
165
- } | null;
166
- href: string;
167
- industry: string | null;
168
- category: string | null;
169
- skills: string | null;
170
- town: string | null;
171
- city: string | null;
172
- country: string | null;
173
- vector_distance: string | null;
174
- coordinates?: {
175
- lat: number;
176
- lng: number;
177
- } | null | undefined;
178
- distance_meters: number | null;
179
- locale?: string | null | undefined;
180
- };
181
- distanceMeters: number | null;
182
- match: string | null;
183
- }[];
184
- pagination: {
185
- total: number;
186
- current_page: number;
187
- per_page: number;
188
- last_page: number;
189
- };
190
- }, {
191
- pagination: {
192
- total: number;
193
- current_page: number;
194
- per_page: number;
195
- last_page: number;
196
- };
197
- results: {
198
- id: number;
199
- createdAt: string | null;
200
- company: {
201
- name: string;
202
- logo: string | null;
203
- };
204
- pay: string | null;
205
- title: string;
206
- contractType: string | null;
207
- href: string;
208
- relativePostedDate: string;
209
- customData: {
210
- [x: string]: any;
211
- } | null;
212
- raw: {
213
- location_type: string;
214
- employment_type: string;
215
- id: number;
216
- company_name: string;
217
- company_logo: string | null;
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
- title: string;
226
- contract_type: string | null;
227
- created_at: string | null;
228
- custom_data: {
229
- [x: string]: any;
230
- } | null;
231
- href: string;
232
- industry: string | null;
233
- category: string | null;
234
- skills: string | null;
235
- town: string | null;
236
- city: string | null;
237
- country: string | null;
238
- vector_distance: string | null;
239
- coordinates?: {
240
- lat: number;
241
- lng: number;
242
- } | null | undefined;
243
- distance_meters: number | null;
244
- locale?: string | null | undefined;
245
- };
246
- distanceMeters: number | null;
247
- match: string | null;
248
- }[];
249
- }>]>;
250
- export type JobSearchResponsePayloadInput = InferInput<ReturnType<typeof getJobSearchResponseSchema>>;
251
- export type JobSearchResponsePayloadOutput = InferOutput<ReturnType<typeof getJobSearchResponseSchema>>;
252
- export declare const getFilterValue: (filterValue: string | string[] | undefined) => string | string[] | null;
253
- type GeoSearchApiParams = {
254
- lat?: number;
255
- lng?: number;
256
- radius?: number;
257
- type?: 'provided' | 'ip';
258
- } | GeoBounds;
259
- export type FiltersPayload = Record<string, string | string[] | GeoSearchApiParams | null | undefined>;
260
- export declare const filtersToPayload: (state: JobSearchState) => FiltersPayload;
261
- export declare const getAvailableFilters: ({ rpcClient, state, t, signal, locale, fallbackLocale, }: {
262
- rpcClient: InploiRpcClient;
263
- signal?: AbortSignal;
264
- state: JobSearchState;
265
- t: TFunction;
266
- locale: string | undefined;
267
- fallbackLocale: string | undefined;
268
- }) => Promise<{
269
- [x: string]: {
270
- label: string;
271
- value: string;
272
- jobs: number;
273
- }[];
274
- }>;
275
- export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
276
- export declare const getJobSearchResults: ({ rpcClient, signal, state, page, t, prioritySegment, locale, fallbackLocale, }: {
277
- rpcClient: InploiRpcClient;
278
- signal?: AbortSignal;
279
- state: JobSearchState;
280
- page?: number;
281
- t: TFunction;
282
- prioritySegment: string | undefined;
283
- locale: string | undefined;
284
- fallbackLocale: string | undefined;
285
- }) => Promise<{
286
- pagination: {
287
- total: number;
288
- current_page: number;
289
- per_page: number;
290
- last_page: number;
291
- };
292
- results: {
293
- id: number;
294
- createdAt: string | null;
295
- company: {
296
- name: string;
297
- logo: string | null;
298
- };
299
- pay: string | null;
300
- title: string;
301
- contractType: string | null;
302
- href: string;
303
- relativePostedDate: string;
304
- customData: {
305
- [x: string]: any;
306
- } | null;
307
- raw: {
308
- location_type: string;
309
- employment_type: string;
310
- id: number;
311
- company_name: string;
312
- company_logo: string | null;
313
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
314
- pay_currency: string;
315
- pay_mask: boolean;
316
- pay_display: boolean;
317
- pay: string | null;
318
- pay_min: string | null;
319
- pay_max: string | null;
320
- title: string;
321
- contract_type: string | null;
322
- created_at: string | null;
323
- custom_data: {
324
- [x: string]: any;
325
- } | null;
326
- href: string;
327
- industry: string | null;
328
- category: string | null;
329
- skills: string | null;
330
- town: string | null;
331
- city: string | null;
332
- country: string | null;
333
- vector_distance: string | null;
334
- coordinates?: {
335
- lat: number;
336
- lng: number;
337
- } | null | undefined;
338
- distance_meters: number | null;
339
- locale?: string | null | undefined;
340
- };
341
- distanceMeters: number | null;
342
- match: string | null;
343
- }[];
344
- }>;
345
- export type GetJobSearchResponse = Awaited<ReturnType<typeof getJobSearchResults>>;
346
- declare const getJobSearchMapSchema: (t: TFunction, locale: string | string[] | undefined) => import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
347
- readonly data: import('valibot').ArraySchema<import('valibot').SchemaWithPipe<readonly [import('valibot').ObjectSchema<{
348
- readonly id: import('valibot').NumberSchema<undefined>;
349
- readonly company_name: import('valibot').StringSchema<undefined>;
350
- readonly company_logo: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
351
- readonly employment_type: import('valibot').StringSchema<undefined>;
352
- readonly location_type: import('valibot').PicklistSchema<readonly ["LOCATION", "REMOTE", "HYBRID"], undefined>;
353
- 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>;
354
- readonly pay_currency: import('valibot').StringSchema<undefined>;
355
- readonly pay_mask: import('valibot').BooleanSchema<undefined>;
356
- readonly pay_display: import('valibot').BooleanSchema<undefined>;
357
- readonly pay: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
358
- readonly pay_min: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
359
- readonly pay_max: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
360
- readonly title: import('valibot').StringSchema<undefined>;
361
- readonly contract_type: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
362
- readonly created_at: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
363
- readonly custom_data: import('valibot').NullableSchema<import('valibot').RecordSchema<import('valibot').AnySchema, import('valibot').AnySchema, undefined>, undefined>;
364
- readonly href: import('valibot').StringSchema<undefined>;
365
- readonly industry: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
366
- readonly category: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
367
- readonly skills: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
368
- readonly town: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
369
- readonly city: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
370
- readonly country: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
371
- readonly vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, null>;
372
- readonly coordinates: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').ObjectSchema<{
373
- readonly lat: import('valibot').NumberSchema<undefined>;
374
- readonly lng: import('valibot').NumberSchema<undefined>;
375
- }, undefined>, undefined>, undefined>;
376
- readonly distance_meters: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').UnionSchema<[import('valibot').NumberSchema<undefined>, import('valibot').SchemaWithPipe<readonly [import('valibot').StringSchema<undefined>, import('valibot').DecimalAction<string, undefined>, import('valibot').TransformAction<any, number>]>], undefined>, undefined>, null>;
377
- readonly locale: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>, undefined>;
378
- }, undefined>, import('valibot').TransformAction<{
379
- id: number;
380
- company_name: string;
381
- company_logo: string | null;
382
- employment_type: string;
383
- location_type: "LOCATION" | "REMOTE" | "HYBRID";
384
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
385
- pay_currency: string;
386
- pay_mask: boolean;
387
- pay_display: boolean;
388
- pay: string | null;
389
- pay_min: string | null;
390
- pay_max: string | null;
391
- title: string;
392
- contract_type: string | null;
393
- created_at: string | null;
394
- custom_data: {
395
- [x: string]: any;
396
- } | null;
397
- href: string;
398
- industry: string | null;
399
- category: string | null;
400
- skills: string | null;
401
- town: string | null;
402
- city: string | null;
403
- country: string | null;
404
- vector_distance: string | null;
405
- coordinates?: {
406
- lat: number;
407
- lng: number;
408
- } | null | undefined;
409
- distance_meters: number | null;
410
- locale?: string | null | undefined;
411
- }, {
412
- id: number;
413
- createdAt: string | null;
414
- company: {
415
- name: string;
416
- logo: string | null;
417
- };
418
- pay: string | null;
419
- title: string;
420
- contractType: string | null;
421
- href: string;
422
- relativePostedDate: string;
423
- customData: {
424
- [x: string]: any;
425
- } | null;
426
- raw: {
427
- location_type: string;
428
- employment_type: string;
429
- id: number;
430
- company_name: string;
431
- company_logo: string | null;
432
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
433
- pay_currency: string;
434
- pay_mask: boolean;
435
- pay_display: boolean;
436
- pay: string | null;
437
- pay_min: string | null;
438
- pay_max: string | null;
439
- title: string;
440
- contract_type: string | null;
441
- created_at: string | null;
442
- custom_data: {
443
- [x: string]: any;
444
- } | null;
445
- href: string;
446
- industry: string | null;
447
- category: string | null;
448
- skills: string | null;
449
- town: string | null;
450
- city: string | null;
451
- country: string | null;
452
- vector_distance: string | null;
453
- coordinates?: {
454
- lat: number;
455
- lng: number;
456
- } | null | undefined;
457
- distance_meters: number | null;
458
- locale?: string | null | undefined;
459
- };
460
- distanceMeters: number | null;
461
- match: string | null;
462
- }>]>, undefined>;
463
- readonly pagination: import('valibot').ObjectSchema<{
464
- readonly has_more: import('valibot').BooleanSchema<undefined>;
465
- }, undefined>;
466
- }, undefined>, import('valibot').TransformAction<{
467
- data: {
468
- id: number;
469
- createdAt: string | null;
470
- company: {
471
- name: string;
472
- logo: string | null;
473
- };
474
- pay: string | null;
475
- title: string;
476
- contractType: string | null;
477
- href: string;
478
- relativePostedDate: string;
479
- customData: {
480
- [x: string]: any;
481
- } | null;
482
- raw: {
483
- location_type: string;
484
- employment_type: string;
485
- id: number;
486
- company_name: string;
487
- company_logo: string | null;
488
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
489
- pay_currency: string;
490
- pay_mask: boolean;
491
- pay_display: boolean;
492
- pay: string | null;
493
- pay_min: string | null;
494
- pay_max: string | null;
495
- title: string;
496
- contract_type: string | null;
497
- created_at: string | null;
498
- custom_data: {
499
- [x: string]: any;
500
- } | null;
501
- href: string;
502
- industry: string | null;
503
- category: string | null;
504
- skills: string | null;
505
- town: string | null;
506
- city: string | null;
507
- country: string | null;
508
- vector_distance: string | null;
509
- coordinates?: {
510
- lat: number;
511
- lng: number;
512
- } | null | undefined;
513
- distance_meters: number | null;
514
- locale?: string | null | undefined;
515
- };
516
- distanceMeters: number | null;
517
- match: string | null;
518
- }[];
519
- pagination: {
520
- has_more: boolean;
521
- };
522
- }, {
523
- results: {
524
- id: number;
525
- createdAt: string | null;
526
- company: {
527
- name: string;
528
- logo: string | null;
529
- };
530
- pay: string | null;
531
- title: string;
532
- contractType: string | null;
533
- href: string;
534
- relativePostedDate: string;
535
- customData: {
536
- [x: string]: any;
537
- } | null;
538
- raw: {
539
- location_type: string;
540
- employment_type: string;
541
- id: number;
542
- company_name: string;
543
- company_logo: string | null;
544
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
545
- pay_currency: string;
546
- pay_mask: boolean;
547
- pay_display: boolean;
548
- pay: string | null;
549
- pay_min: string | null;
550
- pay_max: string | null;
551
- title: string;
552
- contract_type: string | null;
553
- created_at: string | null;
554
- custom_data: {
555
- [x: string]: any;
556
- } | null;
557
- href: string;
558
- industry: string | null;
559
- category: string | null;
560
- skills: string | null;
561
- town: string | null;
562
- city: string | null;
563
- country: string | null;
564
- vector_distance: string | null;
565
- coordinates?: {
566
- lat: number;
567
- lng: number;
568
- } | null | undefined;
569
- distance_meters: number | null;
570
- locale?: string | null | undefined;
571
- };
572
- distanceMeters: number | null;
573
- match: string | null;
574
- }[];
575
- pagination: {
576
- has_more: boolean;
577
- };
578
- }>]>;
579
- export type JobSearchMapPayloadInput = InferInput<ReturnType<typeof getJobSearchMapSchema>>;
580
- export type JobSearchMapPayloadOutput = InferOutput<ReturnType<typeof getJobSearchMapSchema>>;
581
- export declare const getJobSearchMapResults: ({ rpcClient, signal, state, t, prioritySegment, locale, fallbackLocale, }: {
582
- rpcClient: InploiRpcClient;
583
- signal?: AbortSignal;
584
- state: JobSearchState;
585
- t: TFunction;
586
- prioritySegment: string | undefined;
587
- locale: string | undefined;
588
- fallbackLocale: string | undefined;
589
- }) => Promise<{
590
- results: {
591
- id: number;
592
- createdAt: string | null;
593
- company: {
594
- name: string;
595
- logo: string | null;
596
- };
597
- pay: string | null;
598
- title: string;
599
- contractType: string | null;
600
- href: string;
601
- relativePostedDate: string;
602
- customData: {
603
- [x: string]: any;
604
- } | null;
605
- raw: {
606
- location_type: string;
607
- employment_type: string;
608
- id: number;
609
- company_name: string;
610
- company_logo: string | null;
611
- pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY" | null;
612
- pay_currency: string;
613
- pay_mask: boolean;
614
- pay_display: boolean;
615
- pay: string | null;
616
- pay_min: string | null;
617
- pay_max: string | null;
618
- title: string;
619
- contract_type: string | null;
620
- created_at: string | null;
621
- custom_data: {
622
- [x: string]: any;
623
- } | null;
624
- href: string;
625
- industry: string | null;
626
- category: string | null;
627
- skills: string | null;
628
- town: string | null;
629
- city: string | null;
630
- country: string | null;
631
- vector_distance: string | null;
632
- coordinates?: {
633
- lat: number;
634
- lng: number;
635
- } | null | undefined;
636
- distance_meters: number | null;
637
- locale?: string | null | undefined;
638
- };
639
- distanceMeters: number | null;
640
- match: string | null;
641
- }[];
642
- pagination: {
643
- has_more: boolean;
644
- };
645
- }>;
646
- export type GetJobSearchMapResponse = Awaited<ReturnType<typeof getJobSearchMapResults>>;
647
- export type QueryState<T> = {
648
- queryState: 'idle';
649
- data?: never;
650
- error?: never;
651
- swr: SWRResponse<T>;
652
- } | {
653
- queryState: 'error';
654
- data?: never;
655
- error: unknown;
656
- swr: SWRResponse<T>;
657
- } | {
658
- queryState: 'loading';
659
- data?: never;
660
- error?: never;
661
- swr: SWRResponse<T>;
662
- } | {
663
- queryState: 'revalidating';
664
- data: T;
665
- error?: never;
666
- swr: SWRResponse<T>;
667
- } | {
668
- queryState: 'loaded';
669
- data: T;
670
- error?: never;
671
- swr: SWRResponse<T>;
672
- };
673
- /** Binds together state to data, fixing useSWR’s type-safety */
674
- export declare const getQueryState: <T>(swr: SWRResponse<T>) => QueryState<T>;
675
- export declare const SWR_SETTINGS: {
676
- readonly keepPreviousData: true;
677
- readonly revalidateOnFocus: false;
678
- readonly revalidateOnReconnect: false;
679
- readonly revalidateIfStale: false;
680
- readonly revalidateFirstPage: false;
681
- };
682
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};