lancer-shared 1.0.47 → 1.0.49

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 (42) hide show
  1. package/dist/constants/upwork-filters.d.ts +5 -0
  2. package/dist/constants/upwork-filters.js +75 -0
  3. package/dist/schemas/ai-config/ai-config.d.ts +39 -0
  4. package/dist/schemas/ai-config/ai-config.js +12 -0
  5. package/dist/schemas/ai-config/index.d.ts +1 -0
  6. package/dist/schemas/ai-config/index.js +17 -0
  7. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  8. package/dist/schemas/bidding/proposal-dto.js +18 -0
  9. package/dist/schemas/campaign/campaign.d.ts +10 -10
  10. package/dist/schemas/campaign/campaign.js +1 -1
  11. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  12. package/dist/schemas/job/job-pipeline.js +29 -0
  13. package/dist/schemas/job/job-suitability.d.ts +12 -0
  14. package/dist/schemas/job/job-suitability.js +13 -0
  15. package/dist/schemas/job/job.d.ts +16 -16
  16. package/dist/schemas/job/pipeline-job.d.ts +9 -3
  17. package/dist/schemas/job/pipeline-job.js +1 -0
  18. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  19. package/dist/schemas/knowledge-object/index.js +17 -0
  20. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  21. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  22. package/dist/schemas/logger/log-event.d.ts +4 -4
  23. package/dist/schemas/logger/log-event.js +1 -0
  24. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  25. package/dist/schemas/scraper/scrape-response.js +9 -0
  26. package/dist/types/ai-config/ai-config.d.ts +6 -0
  27. package/dist/types/ai-config/ai-config.js +2 -0
  28. package/dist/types/ai-config/index.d.ts +1 -0
  29. package/dist/types/ai-config/index.js +17 -0
  30. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  31. package/dist/types/bidding/proposal-dto.js +2 -0
  32. package/dist/types/job/job-pipeline.d.ts +4 -0
  33. package/dist/types/job/job-pipeline.js +2 -0
  34. package/dist/types/job/job-suitability.d.ts +3 -0
  35. package/dist/types/job/job-suitability.js +2 -0
  36. package/dist/types/knowledge-object/index.d.ts +1 -0
  37. package/dist/types/knowledge-object/index.js +17 -0
  38. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  39. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  40. package/dist/types/scraper/scrape-response.d.ts +4 -0
  41. package/dist/types/scraper/scrape-response.js +2 -0
  42. package/package.json +1 -1
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,75 @@
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
+ };
@@ -0,0 +1,39 @@
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
+ }>;
@@ -0,0 +1,12 @@
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();
@@ -0,0 +1 @@
1
+ export * from './ai-config';
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1,26 @@
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
+ }>]>;
@@ -0,0 +1,18 @@
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,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const campaignSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
@@ -200,7 +200,7 @@ export declare const campaignSchema: z.ZodObject<{
200
200
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
201
201
  suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
202
202
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
203
- jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
203
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>, z.ZodNumber>>;
204
204
  expenses: z.ZodObject<{
205
205
  biddingAmount: z.ZodDefault<z.ZodNumber>;
206
206
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -259,6 +259,7 @@ export declare const campaignSchema: z.ZodObject<{
259
259
  name: string;
260
260
  createdAt: number;
261
261
  updatedAt: number;
262
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
262
263
  filters: {
263
264
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
264
265
  questions: {
@@ -311,7 +312,6 @@ export declare const campaignSchema: z.ZodObject<{
311
312
  monthlyBudget: number | null;
312
313
  suitabilityThreshold: number | null;
313
314
  boostingThreshold: number | null;
314
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
315
315
  expenses: {
316
316
  biddingAmount: number;
317
317
  boosted: number;
@@ -332,6 +332,7 @@ export declare const campaignSchema: z.ZodObject<{
332
332
  name: string;
333
333
  createdAt: number;
334
334
  updatedAt: number;
335
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
335
336
  filters: {
336
337
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
337
338
  questions: {
@@ -379,7 +380,6 @@ export declare const campaignSchema: z.ZodObject<{
379
380
  automatedBidding: boolean | null;
380
381
  webhookUrl: string | null;
381
382
  monthlyBudget: number | null;
382
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
383
383
  expenses: {
384
384
  biddingAmount?: number | undefined;
385
385
  boosted?: number | undefined;
@@ -602,7 +602,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
602
602
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
603
603
  suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
604
604
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
605
- jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
605
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>, z.ZodNumber>>;
606
606
  expenses: z.ZodObject<{
607
607
  biddingAmount: z.ZodDefault<z.ZodNumber>;
608
608
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -658,6 +658,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
658
658
  }>;
659
659
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
660
660
  name: string;
661
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
661
662
  filters: {
662
663
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
663
664
  questions: {
@@ -710,7 +711,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
710
711
  monthlyBudget: number | null;
711
712
  suitabilityThreshold: number | null;
712
713
  boostingThreshold: number | null;
713
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
714
714
  expenses: {
715
715
  biddingAmount: number;
716
716
  boosted: number;
@@ -728,6 +728,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
728
728
  };
729
729
  }, {
730
730
  name: string;
731
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
731
732
  filters: {
732
733
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
733
734
  questions: {
@@ -775,7 +776,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
775
776
  automatedBidding: boolean | null;
776
777
  webhookUrl: string | null;
777
778
  monthlyBudget: number | null;
778
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
779
779
  expenses: {
780
780
  biddingAmount?: number | undefined;
781
781
  boosted?: number | undefined;
@@ -998,7 +998,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
998
998
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
999
999
  suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1000
1000
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1001
- jobCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>, z.ZodNumber>>;
1001
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>, z.ZodNumber>>;
1002
1002
  expenses: z.ZodObject<{
1003
1003
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1004
1004
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1055,6 +1055,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1055
1055
  }, "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
1056
1056
  id: string;
1057
1057
  name: string;
1058
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
1058
1059
  filters: {
1059
1060
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1060
1061
  questions: {
@@ -1107,7 +1108,6 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1107
1108
  monthlyBudget: number | null;
1108
1109
  suitabilityThreshold: number | null;
1109
1110
  boostingThreshold: number | null;
1110
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
1111
1111
  expenses: {
1112
1112
  biddingAmount: number;
1113
1113
  boosted: number;
@@ -1126,6 +1126,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1126
1126
  }, {
1127
1127
  id: string;
1128
1128
  name: string;
1129
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
1129
1130
  filters: {
1130
1131
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1131
1132
  questions: {
@@ -1173,7 +1174,6 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1173
1174
  automatedBidding: boolean | null;
1174
1175
  webhookUrl: string | null;
1175
1176
  monthlyBudget: number | null;
1176
- jobCounts: Partial<Record<"suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived", number>> | null;
1177
1177
  expenses: {
1178
1178
  biddingAmount?: number | undefined;
1179
1179
  boosted?: number | undefined;
@@ -21,7 +21,7 @@ exports.campaignSchema = zod_1.z.object({
21
21
  monthlyBudget: zod_1.z.number().nullable(),
22
22
  suitabilityThreshold: zod_1.z.number().min(0).max(100).nullable().default(0),
23
23
  boostingThreshold: zod_1.z.number().min(0).max(100).nullable().default(0),
24
- jobCounts: zod_1.z.record(lead_1.agentStatusSchema, zod_1.z.number()).nullable(),
24
+ leadCounts: zod_1.z.record(lead_1.leadStatusSchema, zod_1.z.number()).nullable(),
25
25
  expenses: campaign_expenses_1.campaignExpensesSchema,
26
26
  integrations: campaign_integrations_1.campaignIntegrationsSchema,
27
27
  });
@@ -0,0 +1,74 @@
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
+ }>;
@@ -0,0 +1,29 @@
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
+ });
@@ -0,0 +1,12 @@
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
+ }>;
@@ -0,0 +1,13 @@
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
+ });
@@ -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;
48
47
  isPaymentVerified: boolean | null;
49
48
  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;
64
63
  isPaymentVerified: boolean | null;
65
64
  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;
191
190
  isPaymentVerified: boolean | null;
192
191
  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;
207
206
  isPaymentVerified: boolean | null;
208
207
  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;
271
270
  isPaymentVerified: boolean | null;
272
271
  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;
323
322
  isPaymentVerified: boolean | null;
324
323
  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;
422
421
  isPaymentVerified: boolean | null;
423
422
  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;
438
437
  isPaymentVerified: boolean | null;
439
438
  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;
554
553
  isPaymentVerified: boolean | null;
555
554
  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;
628
627
  isPaymentVerified: boolean | null;
629
628
  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;
756
755
  isPaymentVerified: boolean | null;
757
756
  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;
772
771
  isPaymentVerified: boolean | null;
773
772
  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;
888
887
  isPaymentVerified: boolean | null;
889
888
  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;
962
961
  isPaymentVerified: boolean | null;
963
962
  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;
1041
1040
  isPaymentVerified: boolean | null;
1042
1041
  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;
1120
1119
  isPaymentVerified: boolean | null;
1121
1120
  numberOfReviews: number | null;
1121
+ rating: number | null;
1122
1122
  jobsPosted: number | null;
1123
1123
  totalSpent: number | null;
1124
1124
  numberOfHires: number | null;