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
  };
@@ -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: 'auth',
7
- REGISTER: 'auth/register',
6
+ BASE: "auth",
7
+ REGISTER: "auth/register",
8
8
  },
9
9
  CAMPAIGNS: {
10
- BASE: 'campaigns',
10
+ BASE: "campaigns",
11
11
  BY_ID: (id) => `campaigns/${id}`,
12
12
  JOBS: {
13
- BASE: (campaignId) => `campaigns/${campaignId}/jobs`,
13
+ BASE: (campaignId) => `campaigns/${campaignId}/leads`,
14
14
  BY_ID: (campaignId, jobId) => `campaigns/${campaignId}/jobs/${jobId}`,
15
- SUITABILITY_SCORES: (campaignId) => `campaigns/${campaignId}/jobs/suitability-scores`,
16
- SYNC: (campaignId) => `campaigns/${campaignId}/jobs/sync`,
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: 'jobs',
38
- IMPORT: 'jobs/import',
39
- FILTER_OPTIONS: 'jobs/filter-options',
40
- TOTAL_JOBS: 'jobs/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: 'jobs/search',
41
+ SEARCH: "jobs/search",
43
42
  },
44
43
  USERS: {
45
- BASE: 'users',
44
+ BASE: "users",
46
45
  BY_ID: (id) => `users/${id}`,
47
46
  },
48
47
  AI_CONFIG: {
49
- BASE: 'ai-config',
48
+ BASE: "ai-config",
50
49
  },
51
50
  COOKIES: {
52
- BASE: 'cookies',
53
- SCRAPE: 'cookies/scrape-cookies',
51
+ BASE: "cookies",
52
+ SCRAPE: "cookies/scrape-cookies",
54
53
  },
55
54
  SCRAPING: {
56
- BASE: 'scraping',
57
- START_SCRAPING: 'scraping/start',
55
+ BASE: "scraping",
56
+ START_SCRAPING: "scraping/start",
58
57
  },
59
58
  };
60
59
  // Helper function to build route with parameters
@@ -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 JobResponse extends z.infer<typeof jobResponseSchema> {
22
+ export interface LeadResponse extends z.infer<typeof jobResponseSchema> {
23
23
  leads: Lead[];
24
24
  }
25
25
  export type JobWithSavedSearch = Lead & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.9",
4
+ "version": "1.0.11",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",