lancer-shared 1.0.49 → 1.0.51

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.
Files changed (46) hide show
  1. package/dist/constants/job-filter-options.d.ts +1 -1
  2. package/dist/constants/job-filter-options.js +1 -1
  3. package/dist/schemas/campaign/campaign.d.ts +21 -21
  4. package/dist/schemas/job/job.d.ts +16 -16
  5. package/dist/schemas/job/pipeline-job.d.ts +3 -9
  6. package/dist/schemas/job/pipeline-job.js +0 -1
  7. package/dist/schemas/job-filters/job-filters.d.ts +6 -6
  8. package/dist/schemas/lead/lead.d.ts +4 -10
  9. package/dist/schemas/lead/lead.js +5 -1
  10. package/dist/schemas/logger/log-event.d.ts +5 -5
  11. package/dist/schemas/logger/log-event.js +29 -29
  12. package/package.json +1 -1
  13. package/dist/constants/upwork-filters.d.ts +0 -5
  14. package/dist/constants/upwork-filters.js +0 -75
  15. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  16. package/dist/schemas/ai-config/ai-config.js +0 -12
  17. package/dist/schemas/ai-config/index.d.ts +0 -1
  18. package/dist/schemas/ai-config/index.js +0 -17
  19. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  20. package/dist/schemas/bidding/proposal-dto.js +0 -18
  21. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  22. package/dist/schemas/job/job-pipeline.js +0 -29
  23. package/dist/schemas/job/job-suitability.d.ts +0 -12
  24. package/dist/schemas/job/job-suitability.js +0 -13
  25. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  26. package/dist/schemas/knowledge-object/index.js +0 -17
  27. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  28. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  29. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  30. package/dist/schemas/scraper/scrape-response.js +0 -9
  31. package/dist/types/ai-config/ai-config.d.ts +0 -6
  32. package/dist/types/ai-config/ai-config.js +0 -2
  33. package/dist/types/ai-config/index.d.ts +0 -1
  34. package/dist/types/ai-config/index.js +0 -17
  35. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  36. package/dist/types/bidding/proposal-dto.js +0 -2
  37. package/dist/types/job/job-pipeline.d.ts +0 -4
  38. package/dist/types/job/job-pipeline.js +0 -2
  39. package/dist/types/job/job-suitability.d.ts +0 -3
  40. package/dist/types/job/job-suitability.js +0 -2
  41. package/dist/types/knowledge-object/index.d.ts +0 -1
  42. package/dist/types/knowledge-object/index.js +0 -17
  43. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  44. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  45. package/dist/types/scraper/scrape-response.d.ts +0 -4
  46. package/dist/types/scraper/scrape-response.js +0 -2
@@ -472,7 +472,7 @@ export declare const upworkJobSchema: z.ZodObject<{
472
472
  totalBilled: number | null;
473
473
  }[] | null;
474
474
  }>;
475
- export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
475
+ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
476
476
  id: z.ZodNullable<z.ZodString>;
477
477
  createdAt: z.ZodNullable<z.ZodNumber>;
478
478
  title: z.ZodNullable<z.ZodString>;
@@ -694,7 +694,7 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
694
694
  boostingAmount: z.ZodNullable<z.ZodNumber>;
695
695
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
696
696
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
697
- }>, "strip", z.ZodTypeAny, {
697
+ }>, "processed">, "strip", z.ZodTypeAny, {
698
698
  id: string | null;
699
699
  title: string | null;
700
700
  metadata: {
@@ -755,7 +755,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
755
755
  jobSuccessScore: string | null;
756
756
  includeRisingTalent: string | null;
757
757
  } | null;
758
- processed: boolean | null;
759
758
  isFeatured: boolean | null;
760
759
  clientReviews: {
761
760
  hourlyRate: number | null;
@@ -850,7 +849,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
850
849
  jobSuccessScore: string | null;
851
850
  includeRisingTalent: string | null;
852
851
  } | null;
853
- processed: boolean | null;
854
852
  isFeatured: boolean | null;
855
853
  clientReviews: {
856
854
  hourlyRate: number | null;
@@ -905,7 +903,7 @@ export declare const jobListItemSchema: z.ZodObject<{
905
903
  isFeatured: boolean | null;
906
904
  }>;
907
905
  export declare const leadResponseSchema: z.ZodObject<{
908
- leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
906
+ leads: z.ZodArray<z.ZodObject<Omit<z.objectUtil.extendShape<{
909
907
  id: z.ZodNullable<z.ZodString>;
910
908
  createdAt: z.ZodNullable<z.ZodNumber>;
911
909
  title: z.ZodNullable<z.ZodString>;
@@ -1127,7 +1125,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1127
1125
  boostingAmount: z.ZodNullable<z.ZodNumber>;
1128
1126
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1129
1127
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1130
- }>, "strip", z.ZodTypeAny, {
1128
+ }>, "processed">, "strip", z.ZodTypeAny, {
1131
1129
  id: string | null;
1132
1130
  title: string | null;
1133
1131
  metadata: {
@@ -1188,7 +1186,6 @@ export declare const leadResponseSchema: z.ZodObject<{
1188
1186
  jobSuccessScore: string | null;
1189
1187
  includeRisingTalent: string | null;
1190
1188
  } | null;
1191
- processed: boolean | null;
1192
1189
  isFeatured: boolean | null;
1193
1190
  clientReviews: {
1194
1191
  hourlyRate: number | null;
@@ -1283,7 +1280,6 @@ export declare const leadResponseSchema: z.ZodObject<{
1283
1280
  jobSuccessScore: string | null;
1284
1281
  includeRisingTalent: string | null;
1285
1282
  } | null;
1286
- processed: boolean | null;
1287
1283
  isFeatured: boolean | null;
1288
1284
  clientReviews: {
1289
1285
  hourlyRate: number | null;
@@ -1383,7 +1379,6 @@ export declare const leadResponseSchema: z.ZodObject<{
1383
1379
  jobSuccessScore: string | null;
1384
1380
  includeRisingTalent: string | null;
1385
1381
  } | null;
1386
- processed: boolean | null;
1387
1382
  isFeatured: boolean | null;
1388
1383
  clientReviews: {
1389
1384
  hourlyRate: number | null;
@@ -1483,7 +1478,6 @@ export declare const leadResponseSchema: z.ZodObject<{
1483
1478
  jobSuccessScore: string | null;
1484
1479
  includeRisingTalent: string | null;
1485
1480
  } | null;
1486
- processed: boolean | null;
1487
1481
  isFeatured: boolean | null;
1488
1482
  clientReviews: {
1489
1483
  hourlyRate: number | null;
@@ -84,7 +84,8 @@ exports.upworkJobSchema = zod_1.z.object({
84
84
  clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
85
85
  region: scraper_1.regionSchema.nullable(),
86
86
  });
87
- exports.leadSchema = exports.upworkJobSchema.extend({
87
+ exports.leadSchema = exports.upworkJobSchema
88
+ .extend({
88
89
  jobId: zod_1.z.string(),
89
90
  updatedAt: zod_1.z.number().nullable(),
90
91
  suitabilityRating: zod_1.z.number().nullable(),
@@ -99,6 +100,9 @@ exports.leadSchema = exports.upworkJobSchema.extend({
99
100
  boostingAmount: (0, zod_1.number)().nullable(),
100
101
  biddingTaskScheduled: (0, zod_1.boolean)().nullable(),
101
102
  scheduledBiddingTime: (0, zod_1.number)().nullable(),
103
+ })
104
+ .omit({
105
+ processed: true,
102
106
  });
103
107
  exports.jobListItemSchema = zod_1.z.object({
104
108
  title: zod_1.z.string().nullable(),
@@ -1,7 +1,7 @@
1
- import { z } from 'zod';
2
- export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scraperFailed", "jobScraped", "jobsIndexed", "jobDuplicateSkipped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
1
+ import { z } from "zod";
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scraperFailed", "jobScraped", "jobsIndexed", "jobDuplicateSkipped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
4
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
5
5
  source: z.ZodString;
6
6
  resourceType: z.ZodDefault<z.ZodString>;
7
7
  resourceId: z.ZodNullable<z.ZodString>;
@@ -12,7 +12,7 @@ export declare const logEventSchema: z.ZodObject<{
12
12
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
13
  timestamp: z.ZodNumber;
14
14
  }, "strip", z.ZodTypeAny, {
15
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "scraperFailed" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
15
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
16
16
  reason: string | null;
17
17
  source: string;
18
18
  metadata: Record<string, unknown> | null;
@@ -23,7 +23,7 @@ export declare const logEventSchema: z.ZodObject<{
23
23
  campaignId: string | null;
24
24
  userId: string | null;
25
25
  }, {
26
- type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "scraperFailed" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
26
+ type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
27
27
  reason: string | null;
28
28
  source: string;
29
29
  metadata: Record<string, unknown> | null;
@@ -4,39 +4,39 @@ exports.logEventSchema = exports.LogEventTypeEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.LogEventTypeEnum = zod_1.z.enum([
6
6
  // Scraper Events
7
- 'scraperStarted',
8
- 'scraperCompleted',
9
- 'scraperFailed',
10
- 'jobScraped',
11
- 'jobsIndexed',
12
- 'jobDuplicateSkipped',
7
+ "scraperStarted",
8
+ "scraperCompleted",
9
+ "jobScraped",
10
+ "jobsIndexed",
11
+ "jobDuplicateSkipped",
12
+ "scraperFailed",
13
13
  // Job Sync & Campaign Matching
14
- 'jobSyncPublished',
15
- 'jobSyncReceived',
16
- 'leadsCreatedAndSynced',
14
+ "jobSyncPublished",
15
+ "jobSyncReceived",
16
+ "leadsCreatedAndSynced",
17
17
  // Suitability Events
18
- 'suitabilityPending',
19
- 'suitabilityProcessing',
20
- 'suitabilityComplete',
21
- 'suitabilityFailed',
22
- 'manualSuitabilityAnalyzed',
18
+ "suitabilityPending",
19
+ "suitabilityProcessing",
20
+ "suitabilityComplete",
21
+ "suitabilityFailed",
22
+ "manualSuitabilityAnalyzed",
23
23
  // Proposal Events
24
- 'proposalProcessing',
25
- 'proposalComplete',
26
- 'proposalFailed',
27
- 'manualProposalGenerated',
24
+ "proposalProcessing",
25
+ "proposalComplete",
26
+ "proposalFailed",
27
+ "manualProposalGenerated",
28
28
  // Bidding Events
29
- 'biddingProcessing',
30
- 'biddingComplete',
31
- 'biddingFailed',
32
- 'biddingSkipped',
33
- 'biddingPending',
29
+ "biddingProcessing",
30
+ "biddingComplete",
31
+ "biddingFailed",
32
+ "biddingSkipped",
33
+ "biddingPending",
34
34
  // System/Generic Events
35
- 'errorLogged',
36
- 'cloudTaskRetry',
37
- 'manualLeadEdited',
38
- 'leadArchived',
39
- 'auditTrailLogged',
35
+ "errorLogged",
36
+ "cloudTaskRetry",
37
+ "manualLeadEdited",
38
+ "leadArchived",
39
+ "auditTrailLogged",
40
40
  ]);
41
41
  exports.logEventSchema = zod_1.z.object({
42
42
  // The type of event (use a z.enum if possible)
@@ -44,7 +44,7 @@ exports.logEventSchema = zod_1.z.object({
44
44
  // The service that triggered the event
45
45
  source: zod_1.z.string(), // e.g. "lancer-agents", "lancer-bidding"
46
46
  // Optional: Allow logging non-lead events in the future
47
- resourceType: zod_1.z.string().default('lead'), // e.g. "lead", "campaign", "user"
47
+ resourceType: zod_1.z.string().default("lead"), // e.g. "lead", "campaign", "user"
48
48
  // ID of the resource (primary entity affected)
49
49
  resourceId: zod_1.z.string().nullable(), // fallback if leadId is not applicable
50
50
  // Lead-level metadata
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.49",
4
+ "version": "1.0.51",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",
@@ -1,5 +0,0 @@
1
- import { KnowledgeObject } from '../types/knowledge-object';
2
- export declare const CATEGORIES: string[];
3
- export declare const EXPERIENCE_LEVELS: string[];
4
- export declare const CLIENT_HISTORY: string[];
5
- export declare const emptyKnowledgeObject: KnowledgeObject;
@@ -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
- ]);
@@ -1,74 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const jobPipelineSchema: z.ZodObject<{
3
- jobId: z.ZodString;
4
- addedAt: z.ZodString;
5
- country: z.ZodOptional<z.ZodString>;
6
- description: z.ZodString;
7
- fixedPrice: z.ZodOptional<z.ZodString>;
8
- hourlyRate: z.ZodOptional<z.ZodObject<{
9
- min: z.ZodOptional<z.ZodString>;
10
- max: z.ZodOptional<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- max?: string | undefined;
13
- min?: string | undefined;
14
- }, {
15
- max?: string | undefined;
16
- min?: string | undefined;
17
- }>>;
18
- status: z.ZodString;
19
- suitabilityRating: z.ZodOptional<z.ZodNumber>;
20
- suitabilityReason: z.ZodOptional<z.ZodString>;
21
- suitabilityStatus: z.ZodOptional<z.ZodString>;
22
- title: z.ZodString;
23
- suitabilityProposal: z.ZodOptional<z.ZodString>;
24
- suitabilityQuestionAnswerPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
- question: z.ZodString;
26
- answer: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- answer: string;
29
- question: string;
30
- }, {
31
- answer: string;
32
- question: string;
33
- }>, "many">>;
34
- }, "strip", z.ZodTypeAny, {
35
- title: string;
36
- description: string;
37
- status: string;
38
- jobId: string;
39
- addedAt: string;
40
- country?: string | undefined;
41
- fixedPrice?: string | undefined;
42
- hourlyRate?: {
43
- max?: string | undefined;
44
- min?: string | undefined;
45
- } | undefined;
46
- suitabilityRating?: number | undefined;
47
- suitabilityReason?: string | undefined;
48
- suitabilityStatus?: string | undefined;
49
- suitabilityProposal?: string | undefined;
50
- suitabilityQuestionAnswerPairs?: {
51
- answer: string;
52
- question: string;
53
- }[] | undefined;
54
- }, {
55
- title: string;
56
- description: string;
57
- status: string;
58
- jobId: string;
59
- addedAt: string;
60
- country?: string | undefined;
61
- fixedPrice?: string | undefined;
62
- hourlyRate?: {
63
- max?: string | undefined;
64
- min?: string | undefined;
65
- } | undefined;
66
- suitabilityRating?: number | undefined;
67
- suitabilityReason?: string | undefined;
68
- suitabilityStatus?: string | undefined;
69
- suitabilityProposal?: string | undefined;
70
- suitabilityQuestionAnswerPairs?: {
71
- answer: string;
72
- question: string;
73
- }[] | undefined;
74
- }>;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jobPipelineSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.jobPipelineSchema = zod_1.z.object({
6
- jobId: zod_1.z.string(),
7
- addedAt: zod_1.z.string(),
8
- country: zod_1.z.string().optional(),
9
- description: zod_1.z.string(),
10
- fixedPrice: zod_1.z.string().optional(),
11
- hourlyRate: zod_1.z
12
- .object({
13
- min: zod_1.z.string().optional(),
14
- max: zod_1.z.string().optional(),
15
- })
16
- .optional(),
17
- status: zod_1.z.string(),
18
- suitabilityRating: zod_1.z.number().optional(),
19
- suitabilityReason: zod_1.z.string().optional(),
20
- suitabilityStatus: zod_1.z.string().optional(),
21
- title: zod_1.z.string(),
22
- suitabilityProposal: zod_1.z.string().optional(),
23
- suitabilityQuestionAnswerPairs: zod_1.z
24
- .array(zod_1.z.object({
25
- question: zod_1.z.string(),
26
- answer: zod_1.z.string(),
27
- }))
28
- .optional(),
29
- });
@@ -1,12 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const jobSuitabilityStatusSchema: z.ZodEnum<["completed", "pending", "failed"]>;
3
- export declare const questionAnswerPairSchema: z.ZodObject<{
4
- question: z.ZodString;
5
- answer: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- answer: string;
8
- question: string;
9
- }, {
10
- answer: string;
11
- question: string;
12
- }>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.questionAnswerPairSchema = exports.jobSuitabilityStatusSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.jobSuitabilityStatusSchema = zod_1.z.enum([
6
- 'completed',
7
- 'pending',
8
- 'failed',
9
- ]);
10
- exports.questionAnswerPairSchema = zod_1.z.object({
11
- question: zod_1.z.string(),
12
- answer: zod_1.z.string(),
13
- });
@@ -1 +0,0 @@
1
- export * from './knowledge-object';
@@ -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("./knowledge-object"), exports);