@inploi/plugin-job-search 0.0.4 → 0.0.6
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.
- package/cdn/index.js +7 -7
- package/dist/job-search.api.d.ts +14 -12
- package/dist/job-search.d.ts +21 -2
- package/dist/job-search.schemas.d.ts +10 -8
- package/dist/plugin-job-search.cjs +416 -206
- package/dist/plugin-job-search.js +416 -206
- package/package.json +3 -3
package/dist/job-search.api.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
8
8
|
company_logo: import("valibot").StringSchema<string>;
|
|
9
9
|
employment_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"FULL_TIME", "FULL_TIME">, import("valibot").LiteralSchema<"PART_TIME", "PART_TIME">, import("valibot").LiteralSchema<"TEMPORARY", "TEMPORARY">, import("valibot").LiteralSchema<"CONTRACTOR", "CONTRACTOR">, import("valibot").LiteralSchema<"INTERN", "INTERN">, import("valibot").LiteralSchema<"VOLUNTEER", "VOLUNTEER">, import("valibot").LiteralSchema<"OTHER", "OTHER">], "FULL_TIME" | "PART_TIME" | "TEMPORARY" | "CONTRACTOR" | "INTERN" | "VOLUNTEER" | "OTHER">;
|
|
10
10
|
location_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"LOCATION", "LOCATION">, import("valibot").LiteralSchema<"REMOTE", "REMOTE">, import("valibot").LiteralSchema<"HYBRID", "HYBRID">], "LOCATION" | "REMOTE" | "HYBRID">;
|
|
11
|
-
pay_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"
|
|
11
|
+
pay_type: 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">;
|
|
12
12
|
pay_currency: import("valibot").StringSchema<string>;
|
|
13
13
|
pay_mask: import("valibot").BooleanSchema<boolean>;
|
|
14
14
|
pay_display: import("valibot").BooleanSchema<boolean>;
|
|
15
|
-
pay: import("valibot").StringSchema<string>;
|
|
15
|
+
pay: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
16
16
|
pay_min: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
17
17
|
pay_max: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
18
18
|
description: import("valibot").StringSchema<string>;
|
|
@@ -26,9 +26,11 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
26
26
|
}>;
|
|
27
27
|
contract_type: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
28
28
|
created_at: import("valibot").StringSchema<string>;
|
|
29
|
-
custom_data: import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").AnySchema<any>, {
|
|
29
|
+
custom_data: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").AnySchema<any>, {
|
|
30
30
|
[x: string]: any;
|
|
31
|
-
}
|
|
31
|
+
}>, undefined, {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
} | null>;
|
|
32
34
|
}, undefined, {
|
|
33
35
|
title: string;
|
|
34
36
|
id: number;
|
|
@@ -36,11 +38,11 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
36
38
|
company_logo: string;
|
|
37
39
|
employment_type: "FULL_TIME" | "PART_TIME" | "TEMPORARY" | "CONTRACTOR" | "INTERN" | "VOLUNTEER" | "OTHER";
|
|
38
40
|
location_type: "LOCATION" | "REMOTE" | "HYBRID";
|
|
39
|
-
pay_type: "
|
|
41
|
+
pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY";
|
|
40
42
|
pay_currency: string;
|
|
41
43
|
pay_mask: boolean;
|
|
42
44
|
pay_display: boolean;
|
|
43
|
-
pay: string;
|
|
45
|
+
pay: string | null;
|
|
44
46
|
pay_min: string | null;
|
|
45
47
|
pay_max: string | null;
|
|
46
48
|
description: string;
|
|
@@ -52,7 +54,7 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
52
54
|
created_at: string;
|
|
53
55
|
custom_data: {
|
|
54
56
|
[x: string]: any;
|
|
55
|
-
};
|
|
57
|
+
} | null;
|
|
56
58
|
}>, {
|
|
57
59
|
id: number;
|
|
58
60
|
isNew: boolean;
|
|
@@ -73,7 +75,7 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
73
75
|
relativePostedDate: string;
|
|
74
76
|
customData: {
|
|
75
77
|
[x: string]: any;
|
|
76
|
-
};
|
|
78
|
+
} | null;
|
|
77
79
|
}>, {
|
|
78
80
|
id: number;
|
|
79
81
|
isNew: boolean;
|
|
@@ -94,7 +96,7 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
94
96
|
relativePostedDate: string;
|
|
95
97
|
customData: {
|
|
96
98
|
[x: string]: any;
|
|
97
|
-
};
|
|
99
|
+
} | null;
|
|
98
100
|
}[]>;
|
|
99
101
|
available_properties: import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").ArraySchema<import("valibot").StringSchema<string>, string[]>, {
|
|
100
102
|
[x: string]: string[];
|
|
@@ -120,7 +122,7 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
120
122
|
relativePostedDate: string;
|
|
121
123
|
customData: {
|
|
122
124
|
[x: string]: any;
|
|
123
|
-
};
|
|
125
|
+
} | null;
|
|
124
126
|
}[];
|
|
125
127
|
available_properties: {
|
|
126
128
|
[x: string]: string[];
|
|
@@ -159,7 +161,7 @@ export declare const JobSearchResponseSchema: import("valibot").ObjectSchema<{
|
|
|
159
161
|
relativePostedDate: string;
|
|
160
162
|
customData: {
|
|
161
163
|
[x: string]: any;
|
|
162
|
-
};
|
|
164
|
+
} | null;
|
|
163
165
|
}[];
|
|
164
166
|
available_properties: {
|
|
165
167
|
[x: string]: string[];
|
|
@@ -199,7 +201,7 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
|
|
|
199
201
|
relativePostedDate: string;
|
|
200
202
|
customData: {
|
|
201
203
|
[x: string]: any;
|
|
202
|
-
};
|
|
204
|
+
} | null;
|
|
203
205
|
}[];
|
|
204
206
|
available_properties: {
|
|
205
207
|
[x: string]: string[];
|
package/dist/job-search.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconName } from './components/icon.tsx';
|
|
1
2
|
type FontSettings = {
|
|
2
3
|
font_family: string;
|
|
3
4
|
weight: 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
|
@@ -10,12 +11,31 @@ declare const textStyles: {
|
|
|
10
11
|
readonly job_heading: "job_heading";
|
|
11
12
|
};
|
|
12
13
|
type TextStyle = keyof typeof textStyles;
|
|
14
|
+
export declare const FILTER_KEYS: readonly ["company_id", "company_name", "industry", "employment_type", "location_type", "pay_type", "pay_currency", "pay_mask", "pay", "pay_min", "pay_max", "title", "category", "skills", "address_1", "address_2", "town", "city", "postcode", "country", "contract_type", "pay_display"];
|
|
15
|
+
export type FilterKey = (typeof FILTER_KEYS)[number] | (string & {});
|
|
13
16
|
export type FilterProperty = {
|
|
14
|
-
key:
|
|
17
|
+
key: FilterKey;
|
|
18
|
+
/** The label to display for the property.
|
|
19
|
+
* Represents a humanly readable name for the property.
|
|
20
|
+
*/
|
|
15
21
|
label: string;
|
|
22
|
+
/** Override the default icon.
|
|
23
|
+
* Icons are already suggested for each property, but you can override them.
|
|
24
|
+
*/
|
|
25
|
+
icon?: IconName;
|
|
26
|
+
/** Hides the property from the UI
|
|
27
|
+
* You can use this property to hard-code searches without allowing the user to modify or view them.
|
|
28
|
+
*/
|
|
16
29
|
hidden?: boolean;
|
|
30
|
+
/** The initial value for the filter. */
|
|
17
31
|
value?: string;
|
|
32
|
+
/** Whether users can search from the available results.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
18
35
|
searchable?: boolean;
|
|
36
|
+
/** Whether users can select one or multiple values.
|
|
37
|
+
* @default `'one'`
|
|
38
|
+
*/
|
|
19
39
|
select: 'one' | 'many';
|
|
20
40
|
};
|
|
21
41
|
export type JobSearchPluginParams = {
|
|
@@ -36,7 +56,6 @@ export type JobSearchPluginParams = {
|
|
|
36
56
|
properties: FilterProperty[];
|
|
37
57
|
};
|
|
38
58
|
export declare const createJobSearchDomManager: () => {
|
|
39
|
-
addStyle: (css: string, id: string) => void;
|
|
40
59
|
getRenderTargetElement: () => Element;
|
|
41
60
|
};
|
|
42
61
|
export type ChatbotDomManager = ReturnType<typeof createJobSearchDomManager>;
|
|
@@ -21,11 +21,11 @@ export declare const JobSchema: import("valibot").SchemaWithTransform<import("va
|
|
|
21
21
|
company_logo: import("valibot").StringSchema<string>;
|
|
22
22
|
employment_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"FULL_TIME", "FULL_TIME">, import("valibot").LiteralSchema<"PART_TIME", "PART_TIME">, import("valibot").LiteralSchema<"TEMPORARY", "TEMPORARY">, import("valibot").LiteralSchema<"CONTRACTOR", "CONTRACTOR">, import("valibot").LiteralSchema<"INTERN", "INTERN">, import("valibot").LiteralSchema<"VOLUNTEER", "VOLUNTEER">, import("valibot").LiteralSchema<"OTHER", "OTHER">], "FULL_TIME" | "PART_TIME" | "TEMPORARY" | "CONTRACTOR" | "INTERN" | "VOLUNTEER" | "OTHER">;
|
|
23
23
|
location_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"LOCATION", "LOCATION">, import("valibot").LiteralSchema<"REMOTE", "REMOTE">, import("valibot").LiteralSchema<"HYBRID", "HYBRID">], "LOCATION" | "REMOTE" | "HYBRID">;
|
|
24
|
-
pay_type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"
|
|
24
|
+
pay_type: 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">;
|
|
25
25
|
pay_currency: import("valibot").StringSchema<string>;
|
|
26
26
|
pay_mask: import("valibot").BooleanSchema<boolean>;
|
|
27
27
|
pay_display: import("valibot").BooleanSchema<boolean>;
|
|
28
|
-
pay: import("valibot").StringSchema<string>;
|
|
28
|
+
pay: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
29
29
|
pay_min: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
30
30
|
pay_max: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
31
31
|
description: import("valibot").StringSchema<string>;
|
|
@@ -39,9 +39,11 @@ export declare const JobSchema: import("valibot").SchemaWithTransform<import("va
|
|
|
39
39
|
}>;
|
|
40
40
|
contract_type: import("valibot").NullableSchema<import("valibot").StringSchema<string>, undefined, string | null>;
|
|
41
41
|
created_at: import("valibot").StringSchema<string>;
|
|
42
|
-
custom_data: import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").AnySchema<any>, {
|
|
42
|
+
custom_data: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").StringSchema<string>, import("valibot").AnySchema<any>, {
|
|
43
43
|
[x: string]: any;
|
|
44
|
-
}
|
|
44
|
+
}>, undefined, {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
} | null>;
|
|
45
47
|
}, undefined, {
|
|
46
48
|
title: string;
|
|
47
49
|
id: number;
|
|
@@ -49,11 +51,11 @@ export declare const JobSchema: import("valibot").SchemaWithTransform<import("va
|
|
|
49
51
|
company_logo: string;
|
|
50
52
|
employment_type: "FULL_TIME" | "PART_TIME" | "TEMPORARY" | "CONTRACTOR" | "INTERN" | "VOLUNTEER" | "OTHER";
|
|
51
53
|
location_type: "LOCATION" | "REMOTE" | "HYBRID";
|
|
52
|
-
pay_type: "
|
|
54
|
+
pay_type: "ANNUALLY" | "HOURLY" | "MONTHLY" | "WEEKLY" | "DAILY";
|
|
53
55
|
pay_currency: string;
|
|
54
56
|
pay_mask: boolean;
|
|
55
57
|
pay_display: boolean;
|
|
56
|
-
pay: string;
|
|
58
|
+
pay: string | null;
|
|
57
59
|
pay_min: string | null;
|
|
58
60
|
pay_max: string | null;
|
|
59
61
|
description: string;
|
|
@@ -65,7 +67,7 @@ export declare const JobSchema: import("valibot").SchemaWithTransform<import("va
|
|
|
65
67
|
created_at: string;
|
|
66
68
|
custom_data: {
|
|
67
69
|
[x: string]: any;
|
|
68
|
-
};
|
|
70
|
+
} | null;
|
|
69
71
|
}>, {
|
|
70
72
|
id: number;
|
|
71
73
|
isNew: boolean;
|
|
@@ -86,6 +88,6 @@ export declare const JobSchema: import("valibot").SchemaWithTransform<import("va
|
|
|
86
88
|
relativePostedDate: string;
|
|
87
89
|
customData: {
|
|
88
90
|
[x: string]: any;
|
|
89
|
-
};
|
|
91
|
+
} | null;
|
|
90
92
|
}>;
|
|
91
93
|
export type JobSchema = Output<typeof JobSchema>;
|