lancer-shared 1.0.22 → 1.0.24
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/constants/routes.d.ts +1 -0
- package/dist/constants/routes.js +14 -13
- package/dist/schemas/campaign/campaign.d.ts +9 -9
- package/dist/schemas/job/job.d.ts +12 -4
- package/dist/schemas/job/job.js +4 -3
- package/dist/schemas/job/pipeline-job.d.ts +3 -9
- package/dist/schemas/job/pipeline-job.js +0 -1
- package/dist/schemas/lead/lead-status.d.ts +1 -1
- package/dist/schemas/lead/lead-status.js +1 -0
- package/dist/schemas/lead/lead.d.ts +8 -8
- 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
package/dist/constants/routes.js
CHANGED
|
@@ -3,11 +3,11 @@ 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
|
LEADS: {
|
|
13
13
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -37,27 +37,28 @@ exports.ROUTES = {
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
JOBS: {
|
|
40
|
-
BASE:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
BASE: "jobs",
|
|
41
|
+
BY_ID: (id) => `jobs/${id}`,
|
|
42
|
+
IMPORT: "jobs/import",
|
|
43
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
44
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
44
45
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
45
46
|
SEARCH: 'jobs/search',
|
|
46
47
|
},
|
|
47
48
|
USERS: {
|
|
48
|
-
BASE:
|
|
49
|
+
BASE: "users",
|
|
49
50
|
BY_ID: (id) => `users/${id}`,
|
|
50
51
|
},
|
|
51
52
|
AI_CONFIG: {
|
|
52
|
-
BASE:
|
|
53
|
+
BASE: "ai-config",
|
|
53
54
|
},
|
|
54
55
|
COOKIES: {
|
|
55
|
-
BASE:
|
|
56
|
-
SCRAPE:
|
|
56
|
+
BASE: "cookies",
|
|
57
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
57
58
|
},
|
|
58
59
|
SCRAPING: {
|
|
59
|
-
BASE:
|
|
60
|
-
START_SCRAPING:
|
|
60
|
+
BASE: "scraping",
|
|
61
|
+
START_SCRAPING: "scraping/start",
|
|
61
62
|
},
|
|
62
63
|
};
|
|
63
64
|
// Helper function to build route with parameters
|
|
@@ -189,7 +189,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
189
189
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
190
190
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
191
191
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
192
|
-
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
192
|
+
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
193
193
|
expenses: z.ZodObject<{
|
|
194
194
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
195
195
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -297,7 +297,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
297
297
|
monthlyBudget: number | null;
|
|
298
298
|
suitabilityThreshold: number | null;
|
|
299
299
|
boostingThreshold: number | null;
|
|
300
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
300
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
301
301
|
expenses: {
|
|
302
302
|
biddingAmount: number;
|
|
303
303
|
boosted: number;
|
|
@@ -362,7 +362,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
362
362
|
automatedBidding: boolean | null;
|
|
363
363
|
webhookUrl: string | null;
|
|
364
364
|
monthlyBudget: number | null;
|
|
365
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
365
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
366
366
|
expenses: {
|
|
367
367
|
biddingAmount?: number | undefined;
|
|
368
368
|
boosted?: number | undefined;
|
|
@@ -574,7 +574,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
574
574
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
575
575
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
576
576
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
577
|
-
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
577
|
+
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
578
578
|
expenses: z.ZodObject<{
|
|
579
579
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
580
580
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -679,7 +679,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
679
679
|
monthlyBudget: number | null;
|
|
680
680
|
suitabilityThreshold: number | null;
|
|
681
681
|
boostingThreshold: number | null;
|
|
682
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
682
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
683
683
|
expenses: {
|
|
684
684
|
biddingAmount: number;
|
|
685
685
|
boosted: number;
|
|
@@ -741,7 +741,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
741
741
|
automatedBidding: boolean | null;
|
|
742
742
|
webhookUrl: string | null;
|
|
743
743
|
monthlyBudget: number | null;
|
|
744
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
744
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
745
745
|
expenses: {
|
|
746
746
|
biddingAmount?: number | undefined;
|
|
747
747
|
boosted?: number | undefined;
|
|
@@ -953,7 +953,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
953
953
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
954
954
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
955
955
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
956
|
-
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
956
|
+
jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
|
|
957
957
|
expenses: z.ZodObject<{
|
|
958
958
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
959
959
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1059,7 +1059,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1059
1059
|
monthlyBudget: number | null;
|
|
1060
1060
|
suitabilityThreshold: number | null;
|
|
1061
1061
|
boostingThreshold: number | null;
|
|
1062
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
1062
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
1063
1063
|
expenses: {
|
|
1064
1064
|
biddingAmount: number;
|
|
1065
1065
|
boosted: number;
|
|
@@ -1122,7 +1122,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1122
1122
|
automatedBidding: boolean | null;
|
|
1123
1123
|
webhookUrl: string | null;
|
|
1124
1124
|
monthlyBudget: number | null;
|
|
1125
|
-
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
1125
|
+
jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
|
|
1126
1126
|
expenses: {
|
|
1127
1127
|
biddingAmount?: number | undefined;
|
|
1128
1128
|
boosted?: number | undefined;
|
|
@@ -342,7 +342,7 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
342
342
|
} | null;
|
|
343
343
|
processed: boolean | null;
|
|
344
344
|
}>;
|
|
345
|
-
export declare const
|
|
345
|
+
export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
346
346
|
id: z.ZodNullable<z.ZodString>;
|
|
347
347
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
348
348
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -469,6 +469,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
469
469
|
}>>;
|
|
470
470
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
471
471
|
}, {
|
|
472
|
+
jobId: z.ZodString;
|
|
472
473
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
473
474
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
474
475
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -530,6 +531,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
530
531
|
description: string | null;
|
|
531
532
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
532
533
|
datetime: number | null;
|
|
534
|
+
jobId: string;
|
|
533
535
|
createdAt: number | null;
|
|
534
536
|
updatedAt: number | null;
|
|
535
537
|
questionAnswerPairs: {
|
|
@@ -604,6 +606,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
604
606
|
description: string | null;
|
|
605
607
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
606
608
|
datetime: number | null;
|
|
609
|
+
jobId: string;
|
|
607
610
|
createdAt: number | null;
|
|
608
611
|
updatedAt: number | null;
|
|
609
612
|
questionAnswerPairs: {
|
|
@@ -676,7 +679,7 @@ export declare const jobListItemSchema: z.ZodObject<{
|
|
|
676
679
|
jobUrl: string | null;
|
|
677
680
|
}>;
|
|
678
681
|
export declare const jobResponseSchema: z.ZodObject<{
|
|
679
|
-
|
|
682
|
+
leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
680
683
|
id: z.ZodNullable<z.ZodString>;
|
|
681
684
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
682
685
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -803,6 +806,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
803
806
|
}>>;
|
|
804
807
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
805
808
|
}, {
|
|
809
|
+
jobId: z.ZodString;
|
|
806
810
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
807
811
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
808
812
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -864,6 +868,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
864
868
|
description: string | null;
|
|
865
869
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
866
870
|
datetime: number | null;
|
|
871
|
+
jobId: string;
|
|
867
872
|
createdAt: number | null;
|
|
868
873
|
updatedAt: number | null;
|
|
869
874
|
questionAnswerPairs: {
|
|
@@ -938,6 +943,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
938
943
|
description: string | null;
|
|
939
944
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
940
945
|
datetime: number | null;
|
|
946
|
+
jobId: string;
|
|
941
947
|
createdAt: number | null;
|
|
942
948
|
updatedAt: number | null;
|
|
943
949
|
questionAnswerPairs: {
|
|
@@ -1000,7 +1006,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1000
1006
|
hasMore: z.ZodBoolean;
|
|
1001
1007
|
jobCounts: z.ZodNullable<z.ZodNumber>;
|
|
1002
1008
|
}, "strip", z.ZodTypeAny, {
|
|
1003
|
-
|
|
1009
|
+
leads: {
|
|
1004
1010
|
id: string | null;
|
|
1005
1011
|
title: string | null;
|
|
1006
1012
|
metadata: {
|
|
@@ -1017,6 +1023,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1017
1023
|
description: string | null;
|
|
1018
1024
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1019
1025
|
datetime: number | null;
|
|
1026
|
+
jobId: string;
|
|
1020
1027
|
createdAt: number | null;
|
|
1021
1028
|
updatedAt: number | null;
|
|
1022
1029
|
questionAnswerPairs: {
|
|
@@ -1079,7 +1086,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1079
1086
|
hasMore: boolean;
|
|
1080
1087
|
jobCounts: number | null;
|
|
1081
1088
|
}, {
|
|
1082
|
-
|
|
1089
|
+
leads: {
|
|
1083
1090
|
id: string | null;
|
|
1084
1091
|
title: string | null;
|
|
1085
1092
|
metadata: {
|
|
@@ -1096,6 +1103,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1096
1103
|
description: string | null;
|
|
1097
1104
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1098
1105
|
datetime: number | null;
|
|
1106
|
+
jobId: string;
|
|
1099
1107
|
createdAt: number | null;
|
|
1100
1108
|
updatedAt: number | null;
|
|
1101
1109
|
questionAnswerPairs: {
|
package/dist/schemas/job/job.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jobResponseSchema = exports.jobListItemSchema = exports.
|
|
3
|
+
exports.jobResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const job_note_1 = require("./job-note");
|
|
6
6
|
const job_status_1 = require("./job-status");
|
|
@@ -64,7 +64,8 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
64
64
|
vendorQualifications: exports.vendorQualificationSchema.nullable(),
|
|
65
65
|
processed: (0, zod_1.boolean)().nullable(),
|
|
66
66
|
});
|
|
67
|
-
exports.
|
|
67
|
+
exports.leadSchema = exports.upworkJobSchema.extend({
|
|
68
|
+
jobId: zod_1.z.string(),
|
|
68
69
|
updatedAt: zod_1.z.number().nullable(),
|
|
69
70
|
suitabilityRating: zod_1.z.number().nullable(),
|
|
70
71
|
suitabilityReason: zod_1.z.string().nullable(),
|
|
@@ -83,7 +84,7 @@ exports.jobListItemSchema = zod_1.z.object({
|
|
|
83
84
|
datetime: zod_1.z.string().nullable(),
|
|
84
85
|
});
|
|
85
86
|
exports.jobResponseSchema = zod_1.z.object({
|
|
86
|
-
|
|
87
|
+
leads: zod_1.z.array(exports.leadSchema),
|
|
87
88
|
nextCursor: zod_1.z.string().nullable(),
|
|
88
89
|
hasMore: zod_1.z.boolean(),
|
|
89
90
|
jobCounts: zod_1.z.number().nullable(),
|
|
@@ -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),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
|
|
2
|
+
export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
|
|
3
3
|
export declare const leadStatusSchema: z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>;
|
|
@@ -484,7 +484,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
484
484
|
answer: string;
|
|
485
485
|
question: string;
|
|
486
486
|
}>, "many">>;
|
|
487
|
-
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
487
|
+
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
488
488
|
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>>;
|
|
489
489
|
notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
490
490
|
id: z.ZodString;
|
|
@@ -575,7 +575,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
575
575
|
processed: boolean | null;
|
|
576
576
|
suitabilityRating: number | null;
|
|
577
577
|
suitabilityReason: string | null;
|
|
578
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
578
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
579
579
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
580
580
|
notes: {
|
|
581
581
|
id: string;
|
|
@@ -650,7 +650,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
650
650
|
processed: boolean | null;
|
|
651
651
|
suitabilityRating: number | null;
|
|
652
652
|
suitabilityReason: string | null;
|
|
653
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
653
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
654
654
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
655
655
|
notes: {
|
|
656
656
|
id: string;
|
|
@@ -821,7 +821,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
821
821
|
answer: string;
|
|
822
822
|
question: string;
|
|
823
823
|
}>, "many">>;
|
|
824
|
-
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
824
|
+
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalPending", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingPending", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
825
825
|
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>>;
|
|
826
826
|
notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
827
827
|
id: z.ZodString;
|
|
@@ -912,7 +912,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
912
912
|
processed: boolean | null;
|
|
913
913
|
suitabilityRating: number | null;
|
|
914
914
|
suitabilityReason: string | null;
|
|
915
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
915
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
916
916
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
917
917
|
notes: {
|
|
918
918
|
id: string;
|
|
@@ -987,7 +987,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
987
987
|
processed: boolean | null;
|
|
988
988
|
suitabilityRating: number | null;
|
|
989
989
|
suitabilityReason: string | null;
|
|
990
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
990
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
991
991
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
992
992
|
notes: {
|
|
993
993
|
id: string;
|
|
@@ -1067,7 +1067,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1067
1067
|
processed: boolean | null;
|
|
1068
1068
|
suitabilityRating: number | null;
|
|
1069
1069
|
suitabilityReason: string | null;
|
|
1070
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1070
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1071
1071
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
1072
1072
|
notes: {
|
|
1073
1073
|
id: string;
|
|
@@ -1147,7 +1147,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1147
1147
|
processed: boolean | null;
|
|
1148
1148
|
suitabilityRating: number | null;
|
|
1149
1149
|
suitabilityReason: string | null;
|
|
1150
|
-
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1150
|
+
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1151
1151
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost" | null;
|
|
1152
1152
|
notes: {
|
|
1153
1153
|
id: string;
|
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);
|