lancer-shared 1.0.27 → 1.0.28
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/dist/schemas/job/job.d.ts +16 -16
- package/dist/schemas/job/pipeline-job.d.ts +3 -9
- package/dist/schemas/job/pipeline-job.js +0 -1
- package/dist/schemas/lead/lead.d.ts +14 -0
- package/dist/schemas/lead/lead.js +2 -0
- package/dist/schemas/scraper/scrape-result.d.ts +5 -0
- package/package.json +1 -1
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
|
@@ -44,9 +44,9 @@ export declare const clientInfoSchema: z.ZodObject<{
|
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
country: string | null;
|
|
46
46
|
region: string | null;
|
|
47
|
+
rating: number | null;
|
|
47
48
|
isPaymentVerified: boolean | null;
|
|
48
49
|
numberOfReviews: number | null;
|
|
49
|
-
rating: number | null;
|
|
50
50
|
jobsPosted: number | null;
|
|
51
51
|
totalSpent: number | null;
|
|
52
52
|
numberOfHires: number | null;
|
|
@@ -60,9 +60,9 @@ export declare const clientInfoSchema: z.ZodObject<{
|
|
|
60
60
|
}, {
|
|
61
61
|
country: string | null;
|
|
62
62
|
region: string | null;
|
|
63
|
+
rating: number | null;
|
|
63
64
|
isPaymentVerified: boolean | null;
|
|
64
65
|
numberOfReviews: number | null;
|
|
65
|
-
rating: number | null;
|
|
66
66
|
jobsPosted: number | null;
|
|
67
67
|
totalSpent: number | null;
|
|
68
68
|
numberOfHires: number | null;
|
|
@@ -187,9 +187,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
country: string | null;
|
|
189
189
|
region: string | null;
|
|
190
|
+
rating: number | null;
|
|
190
191
|
isPaymentVerified: boolean | null;
|
|
191
192
|
numberOfReviews: number | null;
|
|
192
|
-
rating: number | null;
|
|
193
193
|
jobsPosted: number | null;
|
|
194
194
|
totalSpent: number | null;
|
|
195
195
|
numberOfHires: number | null;
|
|
@@ -203,9 +203,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
203
203
|
}, {
|
|
204
204
|
country: string | null;
|
|
205
205
|
region: string | null;
|
|
206
|
+
rating: number | null;
|
|
206
207
|
isPaymentVerified: boolean | null;
|
|
207
208
|
numberOfReviews: number | null;
|
|
208
|
-
rating: number | null;
|
|
209
209
|
jobsPosted: number | null;
|
|
210
210
|
totalSpent: number | null;
|
|
211
211
|
numberOfHires: number | null;
|
|
@@ -267,9 +267,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
267
267
|
clientInfo: {
|
|
268
268
|
country: string | null;
|
|
269
269
|
region: string | null;
|
|
270
|
+
rating: number | null;
|
|
270
271
|
isPaymentVerified: boolean | null;
|
|
271
272
|
numberOfReviews: number | null;
|
|
272
|
-
rating: number | null;
|
|
273
273
|
jobsPosted: number | null;
|
|
274
274
|
totalSpent: number | null;
|
|
275
275
|
numberOfHires: number | null;
|
|
@@ -319,9 +319,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
319
319
|
clientInfo: {
|
|
320
320
|
country: string | null;
|
|
321
321
|
region: string | null;
|
|
322
|
+
rating: number | null;
|
|
322
323
|
isPaymentVerified: boolean | null;
|
|
323
324
|
numberOfReviews: number | null;
|
|
324
|
-
rating: number | null;
|
|
325
325
|
jobsPosted: number | null;
|
|
326
326
|
totalSpent: number | null;
|
|
327
327
|
numberOfHires: number | null;
|
|
@@ -418,9 +418,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
418
418
|
}, "strip", z.ZodTypeAny, {
|
|
419
419
|
country: string | null;
|
|
420
420
|
region: string | null;
|
|
421
|
+
rating: number | null;
|
|
421
422
|
isPaymentVerified: boolean | null;
|
|
422
423
|
numberOfReviews: number | null;
|
|
423
|
-
rating: number | null;
|
|
424
424
|
jobsPosted: number | null;
|
|
425
425
|
totalSpent: number | null;
|
|
426
426
|
numberOfHires: number | null;
|
|
@@ -434,9 +434,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
434
434
|
}, {
|
|
435
435
|
country: string | null;
|
|
436
436
|
region: string | null;
|
|
437
|
+
rating: number | null;
|
|
437
438
|
isPaymentVerified: boolean | null;
|
|
438
439
|
numberOfReviews: number | null;
|
|
439
|
-
rating: number | null;
|
|
440
440
|
jobsPosted: number | null;
|
|
441
441
|
totalSpent: number | null;
|
|
442
442
|
numberOfHires: number | null;
|
|
@@ -550,9 +550,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
550
|
clientInfo: {
|
|
551
551
|
country: string | null;
|
|
552
552
|
region: string | null;
|
|
553
|
+
rating: number | null;
|
|
553
554
|
isPaymentVerified: boolean | null;
|
|
554
555
|
numberOfReviews: number | null;
|
|
555
|
-
rating: number | null;
|
|
556
556
|
jobsPosted: number | null;
|
|
557
557
|
totalSpent: number | null;
|
|
558
558
|
numberOfHires: number | null;
|
|
@@ -624,9 +624,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
624
624
|
clientInfo: {
|
|
625
625
|
country: string | null;
|
|
626
626
|
region: string | null;
|
|
627
|
+
rating: number | null;
|
|
627
628
|
isPaymentVerified: boolean | null;
|
|
628
629
|
numberOfReviews: number | null;
|
|
629
|
-
rating: number | null;
|
|
630
630
|
jobsPosted: number | null;
|
|
631
631
|
totalSpent: number | null;
|
|
632
632
|
numberOfHires: number | null;
|
|
@@ -752,9 +752,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
752
752
|
}, "strip", z.ZodTypeAny, {
|
|
753
753
|
country: string | null;
|
|
754
754
|
region: string | null;
|
|
755
|
+
rating: number | null;
|
|
755
756
|
isPaymentVerified: boolean | null;
|
|
756
757
|
numberOfReviews: number | null;
|
|
757
|
-
rating: number | null;
|
|
758
758
|
jobsPosted: number | null;
|
|
759
759
|
totalSpent: number | null;
|
|
760
760
|
numberOfHires: number | null;
|
|
@@ -768,9 +768,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
768
768
|
}, {
|
|
769
769
|
country: string | null;
|
|
770
770
|
region: string | null;
|
|
771
|
+
rating: number | null;
|
|
771
772
|
isPaymentVerified: boolean | null;
|
|
772
773
|
numberOfReviews: number | null;
|
|
773
|
-
rating: number | null;
|
|
774
774
|
jobsPosted: number | null;
|
|
775
775
|
totalSpent: number | null;
|
|
776
776
|
numberOfHires: number | null;
|
|
@@ -884,9 +884,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
884
884
|
clientInfo: {
|
|
885
885
|
country: string | null;
|
|
886
886
|
region: string | null;
|
|
887
|
+
rating: number | null;
|
|
887
888
|
isPaymentVerified: boolean | null;
|
|
888
889
|
numberOfReviews: number | null;
|
|
889
|
-
rating: number | null;
|
|
890
890
|
jobsPosted: number | null;
|
|
891
891
|
totalSpent: number | null;
|
|
892
892
|
numberOfHires: number | null;
|
|
@@ -958,9 +958,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
958
958
|
clientInfo: {
|
|
959
959
|
country: string | null;
|
|
960
960
|
region: string | null;
|
|
961
|
+
rating: number | null;
|
|
961
962
|
isPaymentVerified: boolean | null;
|
|
962
963
|
numberOfReviews: number | null;
|
|
963
|
-
rating: number | null;
|
|
964
964
|
jobsPosted: number | null;
|
|
965
965
|
totalSpent: number | null;
|
|
966
966
|
numberOfHires: number | null;
|
|
@@ -1037,9 +1037,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1037
1037
|
clientInfo: {
|
|
1038
1038
|
country: string | null;
|
|
1039
1039
|
region: string | null;
|
|
1040
|
+
rating: number | null;
|
|
1040
1041
|
isPaymentVerified: boolean | null;
|
|
1041
1042
|
numberOfReviews: number | null;
|
|
1042
|
-
rating: number | null;
|
|
1043
1043
|
jobsPosted: number | null;
|
|
1044
1044
|
totalSpent: number | null;
|
|
1045
1045
|
numberOfHires: number | null;
|
|
@@ -1116,9 +1116,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1116
1116
|
clientInfo: {
|
|
1117
1117
|
country: string | null;
|
|
1118
1118
|
region: string | null;
|
|
1119
|
+
rating: number | null;
|
|
1119
1120
|
isPaymentVerified: boolean | null;
|
|
1120
1121
|
numberOfReviews: number | null;
|
|
1121
|
-
rating: number | null;
|
|
1122
1122
|
jobsPosted: number | null;
|
|
1123
1123
|
totalSpent: number | null;
|
|
1124
1124
|
numberOfHires: number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
3
|
id: z.ZodNullable<z.ZodString>;
|
|
4
4
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -222,7 +222,7 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
222
222
|
biddingAmount: z.ZodOptional<z.ZodNumber>;
|
|
223
223
|
boosted: z.ZodOptional<z.ZodBoolean>;
|
|
224
224
|
boostingAmount: z.ZodOptional<z.ZodNumber>;
|
|
225
|
-
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "
|
|
225
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
226
226
|
title: string | null;
|
|
227
227
|
metadata: {
|
|
228
228
|
hourlyRate: {
|
|
@@ -233,7 +233,6 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
233
233
|
};
|
|
234
234
|
description: string | null;
|
|
235
235
|
jobId: string;
|
|
236
|
-
questions: string[] | null;
|
|
237
236
|
clientInfo: {
|
|
238
237
|
country: string | null;
|
|
239
238
|
};
|
|
@@ -257,7 +256,6 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
257
256
|
};
|
|
258
257
|
description: string | null;
|
|
259
258
|
jobId: string;
|
|
260
|
-
questions: string[] | null;
|
|
261
259
|
clientInfo: {
|
|
262
260
|
country: string | null;
|
|
263
261
|
};
|
|
@@ -495,7 +493,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
495
493
|
biddingAmount: z.ZodOptional<z.ZodNumber>;
|
|
496
494
|
boosted: z.ZodOptional<z.ZodBoolean>;
|
|
497
495
|
boostingAmount: z.ZodOptional<z.ZodNumber>;
|
|
498
|
-
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "
|
|
496
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
499
497
|
title: string | null;
|
|
500
498
|
metadata: {
|
|
501
499
|
hourlyRate: {
|
|
@@ -506,7 +504,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
506
504
|
};
|
|
507
505
|
description: string | null;
|
|
508
506
|
jobId: string;
|
|
509
|
-
questions: string[] | null;
|
|
510
507
|
clientInfo: {
|
|
511
508
|
country: string | null;
|
|
512
509
|
};
|
|
@@ -530,7 +527,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
530
527
|
};
|
|
531
528
|
description: string | null;
|
|
532
529
|
jobId: string;
|
|
533
|
-
questions: string[] | null;
|
|
534
530
|
clientInfo: {
|
|
535
531
|
country: string | null;
|
|
536
532
|
};
|
|
@@ -559,7 +555,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
559
555
|
};
|
|
560
556
|
description: string | null;
|
|
561
557
|
jobId: string;
|
|
562
|
-
questions: string[] | null;
|
|
563
558
|
clientInfo: {
|
|
564
559
|
country: string | null;
|
|
565
560
|
};
|
|
@@ -588,7 +583,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
588
583
|
};
|
|
589
584
|
description: string | null;
|
|
590
585
|
jobId: string;
|
|
591
|
-
questions: string[] | null;
|
|
592
586
|
clientInfo: {
|
|
593
587
|
country: string | null;
|
|
594
588
|
};
|
|
@@ -33,7 +33,6 @@ exports.jobPipelineDetailsSchema = job_details_1.jobDetailsSchema
|
|
|
33
33
|
biddingAmount: true,
|
|
34
34
|
boostingAmount: true,
|
|
35
35
|
boosted: true,
|
|
36
|
-
questions: true,
|
|
37
36
|
});
|
|
38
37
|
exports.jobPipelineResponseSchema = zod_1.z.object({
|
|
39
38
|
jobs: zod_1.z.array(exports.jobPipelineDetailsSchema),
|
|
@@ -237,6 +237,7 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
237
237
|
jobSuccessScore: string | null;
|
|
238
238
|
}>>;
|
|
239
239
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
240
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
240
241
|
}, "strip", z.ZodTypeAny, {
|
|
241
242
|
id: string | null;
|
|
242
243
|
title: string | null;
|
|
@@ -289,6 +290,7 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
289
290
|
jobSuccessScore: string | null;
|
|
290
291
|
} | null;
|
|
291
292
|
processed: boolean | null;
|
|
293
|
+
isFeatured: boolean | null;
|
|
292
294
|
}, {
|
|
293
295
|
id: string | null;
|
|
294
296
|
title: string | null;
|
|
@@ -341,6 +343,7 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
341
343
|
jobSuccessScore: string | null;
|
|
342
344
|
} | null;
|
|
343
345
|
processed: boolean | null;
|
|
346
|
+
isFeatured: boolean | null;
|
|
344
347
|
}>;
|
|
345
348
|
export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
346
349
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -468,6 +471,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
468
471
|
jobSuccessScore: string | null;
|
|
469
472
|
}>>;
|
|
470
473
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
474
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
471
475
|
}, {
|
|
472
476
|
jobId: z.ZodString;
|
|
473
477
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -575,6 +579,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
575
579
|
jobSuccessScore: string | null;
|
|
576
580
|
} | null;
|
|
577
581
|
processed: boolean | null;
|
|
582
|
+
isFeatured: boolean | null;
|
|
578
583
|
suitabilityRating: number | null;
|
|
579
584
|
suitabilityReason: string | null;
|
|
580
585
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -652,6 +657,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
652
657
|
jobSuccessScore: string | null;
|
|
653
658
|
} | null;
|
|
654
659
|
processed: boolean | null;
|
|
660
|
+
isFeatured: boolean | null;
|
|
655
661
|
suitabilityRating: number | null;
|
|
656
662
|
suitabilityReason: string | null;
|
|
657
663
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -675,14 +681,17 @@ export declare const jobListItemSchema: z.ZodObject<{
|
|
|
675
681
|
title: z.ZodNullable<z.ZodString>;
|
|
676
682
|
jobUrl: z.ZodNullable<z.ZodString>;
|
|
677
683
|
datetime: z.ZodNullable<z.ZodString>;
|
|
684
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
678
685
|
}, "strip", z.ZodTypeAny, {
|
|
679
686
|
title: string | null;
|
|
680
687
|
datetime: string | null;
|
|
681
688
|
jobUrl: string | null;
|
|
689
|
+
isFeatured: boolean | null;
|
|
682
690
|
}, {
|
|
683
691
|
title: string | null;
|
|
684
692
|
datetime: string | null;
|
|
685
693
|
jobUrl: string | null;
|
|
694
|
+
isFeatured: boolean | null;
|
|
686
695
|
}>;
|
|
687
696
|
export declare const leadResponseSchema: z.ZodObject<{
|
|
688
697
|
leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -811,6 +820,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
811
820
|
jobSuccessScore: string | null;
|
|
812
821
|
}>>;
|
|
813
822
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
823
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
814
824
|
}, {
|
|
815
825
|
jobId: z.ZodString;
|
|
816
826
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -918,6 +928,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
918
928
|
jobSuccessScore: string | null;
|
|
919
929
|
} | null;
|
|
920
930
|
processed: boolean | null;
|
|
931
|
+
isFeatured: boolean | null;
|
|
921
932
|
suitabilityRating: number | null;
|
|
922
933
|
suitabilityReason: string | null;
|
|
923
934
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -995,6 +1006,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
995
1006
|
jobSuccessScore: string | null;
|
|
996
1007
|
} | null;
|
|
997
1008
|
processed: boolean | null;
|
|
1009
|
+
isFeatured: boolean | null;
|
|
998
1010
|
suitabilityRating: number | null;
|
|
999
1011
|
suitabilityReason: string | null;
|
|
1000
1012
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1077,6 +1089,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1077
1089
|
jobSuccessScore: string | null;
|
|
1078
1090
|
} | null;
|
|
1079
1091
|
processed: boolean | null;
|
|
1092
|
+
isFeatured: boolean | null;
|
|
1080
1093
|
suitabilityRating: number | null;
|
|
1081
1094
|
suitabilityReason: string | null;
|
|
1082
1095
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1159,6 +1172,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1159
1172
|
jobSuccessScore: string | null;
|
|
1160
1173
|
} | null;
|
|
1161
1174
|
processed: boolean | null;
|
|
1175
|
+
isFeatured: boolean | null;
|
|
1162
1176
|
suitabilityRating: number | null;
|
|
1163
1177
|
suitabilityReason: string | null;
|
|
1164
1178
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -63,6 +63,7 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
63
63
|
clientInfo: exports.clientInfoSchema.nullable(),
|
|
64
64
|
vendorQualifications: exports.vendorQualificationSchema.nullable(),
|
|
65
65
|
processed: (0, zod_1.boolean)().nullable(),
|
|
66
|
+
isFeatured: (0, zod_1.boolean)().nullable(),
|
|
66
67
|
});
|
|
67
68
|
exports.leadSchema = exports.upworkJobSchema.extend({
|
|
68
69
|
jobId: zod_1.z.string(),
|
|
@@ -84,6 +85,7 @@ exports.jobListItemSchema = zod_1.z.object({
|
|
|
84
85
|
title: zod_1.z.string().nullable(),
|
|
85
86
|
jobUrl: zod_1.z.string().nullable(),
|
|
86
87
|
datetime: zod_1.z.string().nullable(),
|
|
88
|
+
isFeatured: zod_1.z.boolean().nullable(),
|
|
87
89
|
});
|
|
88
90
|
exports.leadResponseSchema = zod_1.z.object({
|
|
89
91
|
leads: zod_1.z.array(exports.leadSchema),
|
|
@@ -126,6 +126,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
126
126
|
jobSuccessScore: string | null;
|
|
127
127
|
}>>;
|
|
128
128
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
129
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
129
130
|
}, "strip", z.ZodTypeAny, {
|
|
130
131
|
id: string | null;
|
|
131
132
|
title: string | null;
|
|
@@ -178,6 +179,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
178
179
|
jobSuccessScore: string | null;
|
|
179
180
|
} | null;
|
|
180
181
|
processed: boolean | null;
|
|
182
|
+
isFeatured: boolean | null;
|
|
181
183
|
}, {
|
|
182
184
|
id: string | null;
|
|
183
185
|
title: string | null;
|
|
@@ -230,6 +232,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
230
232
|
jobSuccessScore: string | null;
|
|
231
233
|
} | null;
|
|
232
234
|
processed: boolean | null;
|
|
235
|
+
isFeatured: boolean | null;
|
|
233
236
|
}>, "many">;
|
|
234
237
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
235
238
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -286,6 +289,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
286
289
|
jobSuccessScore: string | null;
|
|
287
290
|
} | null;
|
|
288
291
|
processed: boolean | null;
|
|
292
|
+
isFeatured: boolean | null;
|
|
289
293
|
}[];
|
|
290
294
|
}, {
|
|
291
295
|
cookies: any[];
|
|
@@ -341,5 +345,6 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
341
345
|
jobSuccessScore: string | null;
|
|
342
346
|
} | null;
|
|
343
347
|
processed: boolean | null;
|
|
348
|
+
isFeatured: boolean | null;
|
|
344
349
|
}[];
|
|
345
350
|
}>;
|
package/package.json
CHANGED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emptyKnowledgeObject = exports.CLIENT_HISTORY = exports.EXPERIENCE_LEVELS = exports.CATEGORIES = void 0;
|
|
4
|
-
exports.CATEGORIES = [
|
|
5
|
-
'Accounting',
|
|
6
|
-
'Business Analysis & Strategy',
|
|
7
|
-
'Financial Analysis & Modeling',
|
|
8
|
-
'HR Administration',
|
|
9
|
-
'Management Consulting',
|
|
10
|
-
'Tax Preparation',
|
|
11
|
-
'Data Entry',
|
|
12
|
-
'Personal/Virtual Assistance',
|
|
13
|
-
'Project Management',
|
|
14
|
-
'Research',
|
|
15
|
-
'Customer Service',
|
|
16
|
-
'Technical Support',
|
|
17
|
-
'Data Analytics',
|
|
18
|
-
'Data Processing',
|
|
19
|
-
'Data Engineering',
|
|
20
|
-
'Machine Learning',
|
|
21
|
-
'AI Development',
|
|
22
|
-
'Art & Illustration',
|
|
23
|
-
'Audio Production',
|
|
24
|
-
'Brand Design',
|
|
25
|
-
'Logo Design',
|
|
26
|
-
'Graphics Design',
|
|
27
|
-
'Video Production',
|
|
28
|
-
'Voice Acting',
|
|
29
|
-
'Architecture',
|
|
30
|
-
'Chemical Engineering',
|
|
31
|
-
'Civil Engineering',
|
|
32
|
-
'Electrical Engineering',
|
|
33
|
-
'Interior Design',
|
|
34
|
-
'Mechanical Engineering',
|
|
35
|
-
'Database Administration',
|
|
36
|
-
'Information Security',
|
|
37
|
-
'Network Administration',
|
|
38
|
-
'Systems Administration',
|
|
39
|
-
'DevOps Engineering',
|
|
40
|
-
'Business Law',
|
|
41
|
-
'Immigration Law',
|
|
42
|
-
'Tax Law',
|
|
43
|
-
'Regulatory Law',
|
|
44
|
-
'Paralegal Services',
|
|
45
|
-
'Digital Marketing',
|
|
46
|
-
'Lead Generation',
|
|
47
|
-
'Marketing Strategy',
|
|
48
|
-
'Social Media Marketing',
|
|
49
|
-
'SEO',
|
|
50
|
-
'Language Translation',
|
|
51
|
-
'Legal Translation',
|
|
52
|
-
'Technical Translation',
|
|
53
|
-
'Medical Translation',
|
|
54
|
-
'Desktop Development',
|
|
55
|
-
'Mobile Development',
|
|
56
|
-
'Web Development',
|
|
57
|
-
'Game Development',
|
|
58
|
-
'QA & Testing',
|
|
59
|
-
'Content Writing',
|
|
60
|
-
'Copywriting',
|
|
61
|
-
'Technical Writing',
|
|
62
|
-
'Creative Writing',
|
|
63
|
-
'Editing',
|
|
64
|
-
];
|
|
65
|
-
exports.EXPERIENCE_LEVELS = ['Entry Level', 'Mid Level', 'Senior Level'];
|
|
66
|
-
exports.CLIENT_HISTORY = ['No hires', '1-9 hires', '10+ hires'];
|
|
67
|
-
// Default knowledge object with all null values
|
|
68
|
-
exports.emptyKnowledgeObject = {
|
|
69
|
-
categories: exports.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: null })), {}),
|
|
70
|
-
experienceLevels: exports.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: null })), {}),
|
|
71
|
-
minHourlyRate: null,
|
|
72
|
-
fixedPriceMin: null,
|
|
73
|
-
clientHistory: exports.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: null })), {}),
|
|
74
|
-
keywords: [],
|
|
75
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const aiConfigSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
suitabilityPrompt: z.ZodOptional<z.ZodString>;
|
|
5
|
-
proposalPrompt: z.ZodOptional<z.ZodString>;
|
|
6
|
-
questionProposalPrompt: z.ZodOptional<z.ZodString>;
|
|
7
|
-
knowledgeBase: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: string;
|
|
10
|
-
suitabilityPrompt?: string | undefined;
|
|
11
|
-
proposalPrompt?: string | undefined;
|
|
12
|
-
questionProposalPrompt?: string | undefined;
|
|
13
|
-
knowledgeBase?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
suitabilityPrompt?: string | undefined;
|
|
17
|
-
proposalPrompt?: string | undefined;
|
|
18
|
-
questionProposalPrompt?: string | undefined;
|
|
19
|
-
knowledgeBase?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const updateAiConfigSchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodOptional<z.ZodString>;
|
|
23
|
-
suitabilityPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
24
|
-
proposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
25
|
-
questionProposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
26
|
-
knowledgeBase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
suitabilityPrompt?: string | undefined;
|
|
30
|
-
proposalPrompt?: string | undefined;
|
|
31
|
-
questionProposalPrompt?: string | undefined;
|
|
32
|
-
knowledgeBase?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
id?: string | undefined;
|
|
35
|
-
suitabilityPrompt?: string | undefined;
|
|
36
|
-
proposalPrompt?: string | undefined;
|
|
37
|
-
questionProposalPrompt?: string | undefined;
|
|
38
|
-
knowledgeBase?: string | undefined;
|
|
39
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.aiConfigSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
suitabilityPrompt: zod_1.z.string().optional(),
|
|
8
|
-
proposalPrompt: zod_1.z.string().optional(),
|
|
9
|
-
questionProposalPrompt: zod_1.z.string().optional(),
|
|
10
|
-
knowledgeBase: zod_1.z.string().optional(),
|
|
11
|
-
});
|
|
12
|
-
exports.updateAiConfigSchema = exports.aiConfigSchema.partial();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ai-config';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ai-config"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const proposalDtoSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
-
status: z.ZodLiteral<"success">;
|
|
4
|
-
biddingAmount: z.ZodNumber;
|
|
5
|
-
boosted: z.ZodBoolean;
|
|
6
|
-
boostingAmount: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
status: "success";
|
|
9
|
-
biddingAmount: number;
|
|
10
|
-
boosted: boolean;
|
|
11
|
-
boostingAmount: number;
|
|
12
|
-
}, {
|
|
13
|
-
status: "success";
|
|
14
|
-
biddingAmount: number;
|
|
15
|
-
boosted: boolean;
|
|
16
|
-
boostingAmount: number;
|
|
17
|
-
}>, z.ZodObject<{
|
|
18
|
-
status: z.ZodLiteral<"failed">;
|
|
19
|
-
errorMessage: z.ZodString;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
status: "failed";
|
|
22
|
-
errorMessage: string;
|
|
23
|
-
}, {
|
|
24
|
-
status: "failed";
|
|
25
|
-
errorMessage: string;
|
|
26
|
-
}>]>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.proposalDtoSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.proposalDtoSchema = zod_1.z.discriminatedUnion('status', [
|
|
6
|
-
// Success case
|
|
7
|
-
zod_1.z.object({
|
|
8
|
-
status: zod_1.z.literal('success'),
|
|
9
|
-
biddingAmount: zod_1.z.number(),
|
|
10
|
-
boosted: zod_1.z.boolean(),
|
|
11
|
-
boostingAmount: zod_1.z.number(),
|
|
12
|
-
}),
|
|
13
|
-
// Failed case
|
|
14
|
-
zod_1.z.object({
|
|
15
|
-
status: zod_1.z.literal('failed'),
|
|
16
|
-
errorMessage: zod_1.z.string(),
|
|
17
|
-
}),
|
|
18
|
-
]);
|