lancer-shared 1.0.45 → 1.0.47

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 (43) hide show
  1. package/dist/constants/job-filter-options.d.ts +1 -0
  2. package/dist/constants/job-filter-options.js +1 -0
  3. package/dist/schemas/campaign/campaign.d.ts +15 -15
  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 +4 -3
  8. package/dist/schemas/job-filters/job-filters.js +3 -2
  9. package/package.json +1 -1
  10. package/dist/constants/upwork-filters.d.ts +0 -5
  11. package/dist/constants/upwork-filters.js +0 -75
  12. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  13. package/dist/schemas/ai-config/ai-config.js +0 -12
  14. package/dist/schemas/ai-config/index.d.ts +0 -1
  15. package/dist/schemas/ai-config/index.js +0 -17
  16. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  17. package/dist/schemas/bidding/proposal-dto.js +0 -18
  18. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  19. package/dist/schemas/job/job-pipeline.js +0 -29
  20. package/dist/schemas/job/job-suitability.d.ts +0 -12
  21. package/dist/schemas/job/job-suitability.js +0 -13
  22. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  23. package/dist/schemas/knowledge-object/index.js +0 -17
  24. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  25. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  26. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  27. package/dist/schemas/scraper/scrape-response.js +0 -9
  28. package/dist/types/ai-config/ai-config.d.ts +0 -6
  29. package/dist/types/ai-config/ai-config.js +0 -2
  30. package/dist/types/ai-config/index.d.ts +0 -1
  31. package/dist/types/ai-config/index.js +0 -17
  32. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  33. package/dist/types/bidding/proposal-dto.js +0 -2
  34. package/dist/types/job/job-pipeline.d.ts +0 -4
  35. package/dist/types/job/job-pipeline.js +0 -2
  36. package/dist/types/job/job-suitability.d.ts +0 -3
  37. package/dist/types/job/job-suitability.js +0 -2
  38. package/dist/types/knowledge-object/index.d.ts +0 -1
  39. package/dist/types/knowledge-object/index.js +0 -17
  40. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  41. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  42. package/dist/types/scraper/scrape-response.d.ts +0 -4
  43. package/dist/types/scraper/scrape-response.js +0 -2
@@ -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),
@@ -9,6 +9,7 @@ export declare const clientSizeEnum: z.ZodEnum<["Individual client", "Small comp
9
9
  export declare const talentTypeEnum: z.ZodEnum<["Agency", "Independent", "Unspecified"]>;
10
10
  export declare const englishLevelEnum: z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>;
11
11
  export declare const experienceLevelEnum: z.ZodEnum<["Entry level", "Intermediate", "Expert"]>;
12
+ export declare const regionEnum: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
12
13
  export declare const jobFiltersSchema: z.ZodObject<{
13
14
  keywords: z.ZodNullable<z.ZodObject<{
14
15
  includes: z.ZodNullable<z.ZodString>;
@@ -21,7 +22,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
21
22
  excludes: string | null;
22
23
  }>>;
23
24
  isFeatured: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
24
- region: z.ZodDefault<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
25
+ regions: z.ZodNullable<z.ZodArray<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>, "many">>;
25
26
  categories: z.ZodNullable<z.ZodObject<{
26
27
  includes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Personal & Professional Coaching", "Accounting & Bookkeeping", "Financial Planning", "Recruiting & Human Resources", "Management Consulting & Analysis", "Other - Accounting & Consulting", "Data Entry & Transcription Services", "Virtual Assistance", "Project Management", "Market Research & Product Reviews", "Community Management & Tagging", "Customer Service & Tech Support", "Data Analysis & Testing", "Data Extraction/ETL", "Data Mining & Management", "AI & Machine Learning", "Art & Illustration", "Audio & Music Production", "Branding & Logo Design", "NFT, AR/VR & Game Art", "Graphic, Editorial & Presentation Design", "Performing Arts", "Photography", "Product Design", "Video & Animation", "Building & Landscape Architecture", "Chemical Engineering", "Civil & Structural Engineering", "Contract Manufacturing", "Electrical & Electronic Engineering", "Energy & Mechanical Engineering", "3D Modeling & CAD", "Database Management & Administration", "ERP/CRM Software", "Information Security & Compliance", "Network & System Administration", "DevOps & Solution Architecture", "Corporate & Contract Law", "International & Immigration Law", "Finance & Tax Law", "Public Law", "Digital Marketing", "Lead Generation & Telemarketing", "Marketing, PR & Brand Strategy", "Language Tutoring & Interpretation", "Translation & Localization Services", "Blockchain, NFT & Cryptocurrency", "AI Apps & Integration", "Desktop Application Development", "Ecommerce Development", "Game Design & Development", "Mobile Development", "Other - Software Development", "Product Management & Scrum", "QA Testing", "Scripts & Utilities", "Web & Mobile Design", "Web Development", "Sales & Marketing Copywriting", "Content Writing", "Editing & Proofreading Services", "Professional & Business Writing"]>, "many">>;
27
28
  excludes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Personal & Professional Coaching", "Accounting & Bookkeeping", "Financial Planning", "Recruiting & Human Resources", "Management Consulting & Analysis", "Other - Accounting & Consulting", "Data Entry & Transcription Services", "Virtual Assistance", "Project Management", "Market Research & Product Reviews", "Community Management & Tagging", "Customer Service & Tech Support", "Data Analysis & Testing", "Data Extraction/ETL", "Data Mining & Management", "AI & Machine Learning", "Art & Illustration", "Audio & Music Production", "Branding & Logo Design", "NFT, AR/VR & Game Art", "Graphic, Editorial & Presentation Design", "Performing Arts", "Photography", "Product Design", "Video & Animation", "Building & Landscape Architecture", "Chemical Engineering", "Civil & Structural Engineering", "Contract Manufacturing", "Electrical & Electronic Engineering", "Energy & Mechanical Engineering", "3D Modeling & CAD", "Database Management & Administration", "ERP/CRM Software", "Information Security & Compliance", "Network & System Administration", "DevOps & Solution Architecture", "Corporate & Contract Law", "International & Immigration Law", "Finance & Tax Law", "Public Law", "Digital Marketing", "Lead Generation & Telemarketing", "Marketing, PR & Brand Strategy", "Language Tutoring & Interpretation", "Translation & Localization Services", "Blockchain, NFT & Cryptocurrency", "AI Apps & Integration", "Desktop Application Development", "Ecommerce Development", "Game Design & Development", "Mobile Development", "Other - Software Development", "Product Management & Scrum", "QA Testing", "Scripts & Utilities", "Web & Mobile Design", "Web Development", "Sales & Marketing Copywriting", "Content Writing", "Editing & Proofreading Services", "Professional & Business Writing"]>, "many">>;
@@ -112,7 +113,6 @@ export declare const jobFiltersSchema: z.ZodObject<{
112
113
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
113
114
  }>>;
114
115
  }, "strip", z.ZodTypeAny, {
115
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
116
116
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
117
117
  questions: {
118
118
  hasQuestions: "all" | "yes" | "no";
@@ -141,6 +141,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
141
141
  includes: string | null;
142
142
  excludes: string | null;
143
143
  } | null;
144
+ regions: ("all" | "USOnly" | "UKOnly" | "Worldwide")[] | null;
144
145
  categories: {
145
146
  includes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
146
147
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
@@ -181,6 +182,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
181
182
  includes: string | null;
182
183
  excludes: string | null;
183
184
  } | null;
185
+ regions: ("all" | "USOnly" | "UKOnly" | "Worldwide")[] | null;
184
186
  categories: {
185
187
  includes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
186
188
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
@@ -193,6 +195,5 @@ export declare const jobFiltersSchema: z.ZodObject<{
193
195
  maxHourlyRate: number | null;
194
196
  } | null;
195
197
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
196
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
197
198
  isFeatured?: "false" | "all" | "true" | undefined;
198
199
  }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jobFiltersSchema = exports.experienceLevelEnum = exports.englishLevelEnum = exports.talentTypeEnum = exports.clientSizeEnum = exports.clientIndustryEnum = exports.categoryEnum = exports.paymentTypeEnum = exports.vendorTypeEnum = exports.engagementTypeEnum = exports.projectDurationEnum = void 0;
3
+ exports.jobFiltersSchema = exports.regionEnum = exports.experienceLevelEnum = exports.englishLevelEnum = exports.talentTypeEnum = exports.clientSizeEnum = exports.clientIndustryEnum = exports.categoryEnum = exports.paymentTypeEnum = exports.vendorTypeEnum = exports.engagementTypeEnum = exports.projectDurationEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const job_filter_options_1 = require("../../constants/job-filter-options");
6
6
  // Enum definitions for fixed options
@@ -14,6 +14,7 @@ exports.clientSizeEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.CL
14
14
  exports.talentTypeEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.TALENT_TYPE);
15
15
  exports.englishLevelEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.ENGLISH_LEVELS);
16
16
  exports.experienceLevelEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.EXPERIENCE_LEVELS);
17
+ exports.regionEnum = zod_1.z.enum(["all", "Worldwide", "UKOnly", "USOnly"]);
17
18
  // Main job filters schema
18
19
  exports.jobFiltersSchema = zod_1.z.object({
19
20
  keywords: zod_1.z
@@ -23,7 +24,7 @@ exports.jobFiltersSchema = zod_1.z.object({
23
24
  })
24
25
  .nullable(),
25
26
  isFeatured: zod_1.z.enum(["all", "true", "false"]).default("all"),
26
- region: zod_1.z.enum(["all", "Worldwide", "UKOnly", "USOnly"]).default("all"),
27
+ regions: zod_1.z.array(exports.regionEnum).nullable(),
27
28
  categories: zod_1.z
28
29
  .object({
29
30
  includes: zod_1.z.array(exports.categoryEnum).nullable(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.45",
4
+ "version": "1.0.47",
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);
@@ -1,128 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const KnowledgeObjectSchema: z.ZodObject<{
3
- categories: z.ZodObject<any, "strip", z.ZodTypeAny, {
4
- [x: string]: any;
5
- }, {
6
- [x: string]: any;
7
- }>;
8
- experienceLevels: z.ZodObject<any, "strip", z.ZodTypeAny, {
9
- [x: string]: any;
10
- }, {
11
- [x: string]: any;
12
- }>;
13
- minHourlyRate: z.ZodNullable<z.ZodNumber>;
14
- fixedPriceMin: z.ZodNullable<z.ZodNumber>;
15
- clientHistory: z.ZodObject<any, "strip", z.ZodTypeAny, {
16
- [x: string]: any;
17
- }, {
18
- [x: string]: any;
19
- }>;
20
- keywords: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
21
- }, "strip", z.ZodTypeAny, {
22
- categories: {
23
- [x: string]: any;
24
- };
25
- experienceLevels: {
26
- [x: string]: any;
27
- };
28
- minHourlyRate: number | null;
29
- fixedPriceMin: number | null;
30
- clientHistory: {
31
- [x: string]: any;
32
- };
33
- keywords: string[] | null;
34
- }, {
35
- categories: {
36
- [x: string]: any;
37
- };
38
- experienceLevels: {
39
- [x: string]: any;
40
- };
41
- minHourlyRate: number | null;
42
- fixedPriceMin: number | null;
43
- clientHistory: {
44
- [x: string]: any;
45
- };
46
- keywords: string[] | null;
47
- }>;
48
- export declare const chatResponseSchema: z.ZodObject<{
49
- followUpQuestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
- knowledgeObject: z.ZodOptional<z.ZodObject<{
51
- categories: z.ZodObject<any, "strip", z.ZodTypeAny, {
52
- [x: string]: any;
53
- }, {
54
- [x: string]: any;
55
- }>;
56
- experienceLevels: z.ZodObject<any, "strip", z.ZodTypeAny, {
57
- [x: string]: any;
58
- }, {
59
- [x: string]: any;
60
- }>;
61
- minHourlyRate: z.ZodNullable<z.ZodNumber>;
62
- fixedPriceMin: z.ZodNullable<z.ZodNumber>;
63
- clientHistory: z.ZodObject<any, "strip", z.ZodTypeAny, {
64
- [x: string]: any;
65
- }, {
66
- [x: string]: any;
67
- }>;
68
- keywords: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
69
- }, "strip", z.ZodTypeAny, {
70
- categories: {
71
- [x: string]: any;
72
- };
73
- experienceLevels: {
74
- [x: string]: any;
75
- };
76
- minHourlyRate: number | null;
77
- fixedPriceMin: number | null;
78
- clientHistory: {
79
- [x: string]: any;
80
- };
81
- keywords: string[] | null;
82
- }, {
83
- categories: {
84
- [x: string]: any;
85
- };
86
- experienceLevels: {
87
- [x: string]: any;
88
- };
89
- minHourlyRate: number | null;
90
- fixedPriceMin: number | null;
91
- clientHistory: {
92
- [x: string]: any;
93
- };
94
- keywords: string[] | null;
95
- }>>;
96
- }, "strip", z.ZodTypeAny, {
97
- followUpQuestion?: string | null | undefined;
98
- knowledgeObject?: {
99
- categories: {
100
- [x: string]: any;
101
- };
102
- experienceLevels: {
103
- [x: string]: any;
104
- };
105
- minHourlyRate: number | null;
106
- fixedPriceMin: number | null;
107
- clientHistory: {
108
- [x: string]: any;
109
- };
110
- keywords: string[] | null;
111
- } | undefined;
112
- }, {
113
- followUpQuestion?: string | null | undefined;
114
- knowledgeObject?: {
115
- categories: {
116
- [x: string]: any;
117
- };
118
- experienceLevels: {
119
- [x: string]: any;
120
- };
121
- minHourlyRate: number | null;
122
- fixedPriceMin: number | null;
123
- clientHistory: {
124
- [x: string]: any;
125
- };
126
- keywords: string[] | null;
127
- } | undefined;
128
- }>;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chatResponseSchema = exports.KnowledgeObjectSchema = void 0;
4
- const zod_1 = require("zod");
5
- const job_filter_options_1 = require("../../constants/job-filter-options");
6
- exports.KnowledgeObjectSchema = zod_1.z.object({
7
- categories: zod_1.z
8
- .object(job_filter_options_1.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: zod_1.z
9
- .boolean()
10
- .nullable()
11
- .describe(`Indicates if ${category} category is suitable based on skills and services`) })), {}))
12
- .describe('Job categories for the agency'),
13
- experienceLevels: zod_1.z
14
- .object(job_filter_options_1.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: zod_1.z
15
- .boolean()
16
- .nullable()
17
- .describe(`Has ${level} experience level`) })), {}))
18
- .describe('Experience level of the agency in the services they offer'),
19
- minHourlyRate: zod_1.z
20
- .number()
21
- .min(0)
22
- .nullable()
23
- .describe('Minimum hourly rate in USD that the agency is willing to accept for providing their services'),
24
- fixedPriceMin: zod_1.z
25
- .number()
26
- .min(0)
27
- .nullable()
28
- .describe('Minimum budget of the project in USD that the agency is willing to accept for providing their services'),
29
- clientHistory: zod_1.z
30
- .object(job_filter_options_1.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: zod_1.z
31
- .boolean()
32
- .nullable()
33
- .describe(`Whether the job poster (client) has made ${history} hires on Upwork. This refers to the client's hiring history, not the agency's experience.`) })), {}))
34
- .describe("Filters for the job poster's (client's) hiring history on Upwork - indicates how many previous hires the client should have made to be considered suitable"),
35
- keywords: zod_1.z
36
- .array(zod_1.z.string())
37
- .nullable()
38
- .describe('List of search keywords that best match the agency\'s expertise and services. These keywords will be used when searching for job posts on Upwork to find the most relevant opportunities. Examples might include specific technologies, skills, or service areas like "React.js", "mobile development", or "UI/UX design".'),
39
- });
40
- exports.chatResponseSchema = zod_1.z.object({
41
- followUpQuestion: zod_1.z
42
- .string()
43
- .nullable()
44
- .optional()
45
- .describe('This is a question that you should ask a user for a field that you left null. This is important. Always ask this if there is a null field.'),
46
- knowledgeObject: exports.KnowledgeObjectSchema.optional(),
47
- });