lancer-shared 1.0.9 → 1.0.11
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.
|
@@ -9,7 +9,6 @@ export declare const ROUTES: {
|
|
|
9
9
|
readonly JOBS: {
|
|
10
10
|
readonly BASE: (campaignId: string) => string;
|
|
11
11
|
readonly BY_ID: (campaignId: string, jobId: string) => string;
|
|
12
|
-
readonly SUITABILITY_SCORES: (campaignId: string) => string;
|
|
13
12
|
readonly SYNC: (campaignId: string) => string;
|
|
14
13
|
readonly NOTES: (campaignId: string, jobId: string, noteId: string) => string;
|
|
15
14
|
};
|
package/dist/constants/routes.js
CHANGED
|
@@ -3,18 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildRoute = exports.ROUTES = void 0;
|
|
4
4
|
exports.ROUTES = {
|
|
5
5
|
AUTH: {
|
|
6
|
-
BASE:
|
|
7
|
-
REGISTER:
|
|
6
|
+
BASE: "auth",
|
|
7
|
+
REGISTER: "auth/register",
|
|
8
8
|
},
|
|
9
9
|
CAMPAIGNS: {
|
|
10
|
-
BASE:
|
|
10
|
+
BASE: "campaigns",
|
|
11
11
|
BY_ID: (id) => `campaigns/${id}`,
|
|
12
12
|
JOBS: {
|
|
13
|
-
BASE: (campaignId) => `campaigns/${campaignId}/
|
|
13
|
+
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
14
14
|
BY_ID: (campaignId, jobId) => `campaigns/${campaignId}/jobs/${jobId}`,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
NOTES: (campaignId, jobId, noteId) => `campaigns/${campaignId}/jobs/${jobId}/notes/${noteId}`,
|
|
15
|
+
SYNC: (campaignId) => `campaigns/${campaignId}/leads/sync`,
|
|
16
|
+
NOTES: (campaignId, jobId, noteId) => `campaigns/${campaignId}/leads/${jobId}/notes/${noteId}`,
|
|
18
17
|
},
|
|
19
18
|
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
20
19
|
INTEGRATIONS: {
|
|
@@ -34,27 +33,27 @@ exports.ROUTES = {
|
|
|
34
33
|
},
|
|
35
34
|
},
|
|
36
35
|
JOBS: {
|
|
37
|
-
BASE:
|
|
38
|
-
IMPORT:
|
|
39
|
-
FILTER_OPTIONS:
|
|
40
|
-
TOTAL_JOBS:
|
|
36
|
+
BASE: "jobs",
|
|
37
|
+
IMPORT: "jobs/import",
|
|
38
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
39
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
41
40
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
42
|
-
SEARCH:
|
|
41
|
+
SEARCH: "jobs/search",
|
|
43
42
|
},
|
|
44
43
|
USERS: {
|
|
45
|
-
BASE:
|
|
44
|
+
BASE: "users",
|
|
46
45
|
BY_ID: (id) => `users/${id}`,
|
|
47
46
|
},
|
|
48
47
|
AI_CONFIG: {
|
|
49
|
-
BASE:
|
|
48
|
+
BASE: "ai-config",
|
|
50
49
|
},
|
|
51
50
|
COOKIES: {
|
|
52
|
-
BASE:
|
|
53
|
-
SCRAPE:
|
|
51
|
+
BASE: "cookies",
|
|
52
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
54
53
|
},
|
|
55
54
|
SCRAPING: {
|
|
56
|
-
BASE:
|
|
57
|
-
START_SCRAPING:
|
|
55
|
+
BASE: "scraping",
|
|
56
|
+
START_SCRAPING: "scraping/start",
|
|
58
57
|
},
|
|
59
58
|
};
|
|
60
59
|
// Helper function to build route with parameters
|
package/dist/types/job/job.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface Lead extends z.infer<typeof leadSchema> {
|
|
|
19
19
|
questionAnswerPairs: QuestionAnswerPair[] | null;
|
|
20
20
|
status: JobStatus;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface LeadResponse extends z.infer<typeof jobResponseSchema> {
|
|
23
23
|
leads: Lead[];
|
|
24
24
|
}
|
|
25
25
|
export type JobWithSavedSearch = Lead & {
|