lancer-shared 1.0.8 → 1.0.10

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.
@@ -679,7 +679,7 @@ export declare const jobListItemSchema: z.ZodObject<{
679
679
  jobUrl: string | null;
680
680
  }>;
681
681
  export declare const jobResponseSchema: z.ZodObject<{
682
- jobs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
682
+ leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
683
683
  id: z.ZodNullable<z.ZodString>;
684
684
  createdAt: z.ZodNullable<z.ZodNumber>;
685
685
  title: z.ZodNullable<z.ZodString>;
@@ -1006,7 +1006,7 @@ export declare const jobResponseSchema: z.ZodObject<{
1006
1006
  hasMore: z.ZodBoolean;
1007
1007
  jobCounts: z.ZodNullable<z.ZodNumber>;
1008
1008
  }, "strip", z.ZodTypeAny, {
1009
- jobs: {
1009
+ leads: {
1010
1010
  id: string | null;
1011
1011
  title: string | null;
1012
1012
  metadata: {
@@ -1086,7 +1086,7 @@ export declare const jobResponseSchema: z.ZodObject<{
1086
1086
  hasMore: boolean;
1087
1087
  jobCounts: number | null;
1088
1088
  }, {
1089
- jobs: {
1089
+ leads: {
1090
1090
  id: string | null;
1091
1091
  title: string | null;
1092
1092
  metadata: {
@@ -84,7 +84,7 @@ exports.jobListItemSchema = zod_1.z.object({
84
84
  datetime: zod_1.z.string().nullable(),
85
85
  });
86
86
  exports.jobResponseSchema = zod_1.z.object({
87
- jobs: zod_1.z.array(exports.leadSchema),
87
+ leads: zod_1.z.array(exports.leadSchema),
88
88
  nextCursor: zod_1.z.string().nullable(),
89
89
  hasMore: zod_1.z.boolean(),
90
90
  jobCounts: zod_1.z.number().nullable(),
@@ -233,6 +233,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
233
233
  }>, "many">;
234
234
  cookies: z.ZodArray<z.ZodAny, "many">;
235
235
  }, "strip", z.ZodTypeAny, {
236
+ cookies: any[];
236
237
  jobs: {
237
238
  id: string | null;
238
239
  title: string | null;
@@ -286,8 +287,8 @@ export declare const scrapeResultSchema: z.ZodObject<{
286
287
  } | null;
287
288
  processed: boolean | null;
288
289
  }[];
289
- cookies: any[];
290
290
  }, {
291
+ cookies: any[];
291
292
  jobs: {
292
293
  id: string | null;
293
294
  title: string | null;
@@ -341,5 +342,4 @@ export declare const scrapeResultSchema: z.ZodObject<{
341
342
  } | null;
342
343
  processed: boolean | null;
343
344
  }[];
344
- cookies: any[];
345
345
  }>;
@@ -19,8 +19,8 @@ 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> {
23
- jobs: Lead[];
22
+ export interface LeadResponse extends z.infer<typeof jobResponseSchema> {
23
+ leads: Lead[];
24
24
  }
25
25
  export type JobWithSavedSearch = Lead & {
26
26
  savedSearch?: SavedSearch | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.8",
4
+ "version": "1.0.10",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",