lancer-shared 1.2.86 → 1.2.88

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 (68) hide show
  1. package/dist/bundle.cjs.js +39 -14
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/routes.d.ts +2 -0
  4. package/dist/constants/routes.js +0 -6
  5. package/dist/schemas/agent/index.d.ts +31 -0
  6. package/dist/schemas/campaign/campaign-analytics.d.ts +28 -2
  7. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  8. package/dist/schemas/campaign/campaign.d.ts +9 -0
  9. package/dist/schemas/job/job.d.ts +16 -16
  10. package/dist/schemas/job/pipeline-job.d.ts +3 -9
  11. package/dist/schemas/job/pipeline-job.js +0 -1
  12. package/dist/schemas/lead/index.d.ts +30 -4
  13. package/dist/schemas/logger/log-event.d.ts +118 -41
  14. package/dist/schemas/proxy/proxy.js +1 -3
  15. package/dist/schemas/scraper/scrape-payload.d.ts +21 -6
  16. package/dist/schemas/upwork-account/index.d.ts +1 -1
  17. package/dist/schemas/upwork-account/index.js +1 -1
  18. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  19. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  20. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  21. package/dist/schemas/upwork-account/upwork-scraping-account.js +3 -4
  22. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  23. package/package.json +1 -1
  24. package/dist/constants/proxies.d.ts +0 -4
  25. package/dist/constants/upwork-filters.d.ts +0 -5
  26. package/dist/constants/upwork-filters.js +0 -75
  27. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  28. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  29. package/dist/schemas/ai-config/ai-config.js +0 -12
  30. package/dist/schemas/ai-config/index.d.ts +0 -1
  31. package/dist/schemas/ai-config/index.js +0 -17
  32. package/dist/schemas/bid/bid-status.d.ts +0 -30
  33. package/dist/schemas/bid/bid-status.js +0 -15
  34. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  35. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  36. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  37. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  38. package/dist/schemas/bidding/proposal-dto.js +0 -18
  39. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  40. package/dist/schemas/job/job-pipeline.js +0 -29
  41. package/dist/schemas/job/job-suitability.d.ts +0 -12
  42. package/dist/schemas/job/job-suitability.js +0 -13
  43. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  44. package/dist/schemas/knowledge-object/index.js +0 -17
  45. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  46. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  47. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  48. package/dist/schemas/scraper/scrape-response.js +0 -9
  49. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  50. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  51. package/dist/types/ai-config/ai-config.d.ts +0 -6
  52. package/dist/types/ai-config/ai-config.js +0 -2
  53. package/dist/types/ai-config/index.d.ts +0 -1
  54. package/dist/types/ai-config/index.js +0 -17
  55. package/dist/types/bid/bid-status.d.ts +0 -5
  56. package/dist/types/bid/bid-status.js +0 -2
  57. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  58. package/dist/types/bidding/proposal-dto.js +0 -2
  59. package/dist/types/job/job-pipeline.d.ts +0 -4
  60. package/dist/types/job/job-pipeline.js +0 -2
  61. package/dist/types/job/job-suitability.d.ts +0 -3
  62. package/dist/types/job/job-suitability.js +0 -2
  63. package/dist/types/knowledge-object/index.d.ts +0 -1
  64. package/dist/types/knowledge-object/index.js +0 -17
  65. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  66. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  67. package/dist/types/scraper/scrape-response.d.ts +0 -4
  68. package/dist/types/scraper/scrape-response.js +0 -2
@@ -9,33 +9,33 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
9
9
  proxy: z.ZodString;
10
10
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
11
  verified: z.ZodBoolean;
12
- isActive: z.ZodBoolean;
12
+ is_active: z.ZodBoolean;
13
13
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
- lastUsed: z.ZodNullable<z.ZodNumber>;
14
+ last_used: z.ZodNullable<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
17
  email: string;
18
18
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
19
19
  cookies: any[] | null;
20
20
  password: string;
21
- isActive: boolean;
22
21
  provider: "user_provided" | "lancer_provided";
23
22
  proxy: string;
24
23
  verified: boolean;
24
+ is_active: boolean;
25
25
  assignedOrganizations: string[];
26
- lastUsed: number | null;
26
+ last_used: number | null;
27
27
  }, {
28
28
  id: string;
29
29
  email: string;
30
30
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
31
31
  cookies: any[] | null;
32
32
  password: string;
33
- isActive: boolean;
34
33
  provider: "user_provided" | "lancer_provided";
35
34
  proxy: string;
36
35
  verified: boolean;
36
+ is_active: boolean;
37
37
  assignedOrganizations: string[];
38
- lastUsed: number | null;
38
+ last_used: number | null;
39
39
  }>;
40
40
  export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
41
41
  id: z.ZodString;
@@ -46,9 +46,9 @@ export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<
46
46
  proxy: z.ZodString;
47
47
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
48
48
  verified: z.ZodBoolean;
49
- isActive: z.ZodBoolean;
49
+ is_active: z.ZodBoolean;
50
50
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
51
- lastUsed: z.ZodNullable<z.ZodNumber>;
51
+ last_used: z.ZodNullable<z.ZodNumber>;
52
52
  }, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
53
53
  email: string;
54
54
  password: string;
@@ -67,29 +67,29 @@ export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
67
67
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
68
68
  cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
69
69
  password: z.ZodOptional<z.ZodString>;
70
- isActive: z.ZodOptional<z.ZodBoolean>;
71
70
  proxy: z.ZodOptional<z.ZodString>;
72
71
  verified: z.ZodOptional<z.ZodBoolean>;
72
+ is_active: z.ZodOptional<z.ZodBoolean>;
73
73
  assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  email?: string | undefined;
77
77
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
78
78
  cookies?: any[] | null | undefined;
79
79
  password?: string | undefined;
80
- isActive?: boolean | undefined;
81
80
  proxy?: string | undefined;
82
81
  verified?: boolean | undefined;
82
+ is_active?: boolean | undefined;
83
83
  assignedOrganizations?: string[] | undefined;
84
- lastUsed?: number | null | undefined;
84
+ last_used?: number | null | undefined;
85
85
  }, {
86
86
  email?: string | undefined;
87
87
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
88
88
  cookies?: any[] | null | undefined;
89
89
  password?: string | undefined;
90
- isActive?: boolean | undefined;
91
90
  proxy?: string | undefined;
92
91
  verified?: boolean | undefined;
92
+ is_active?: boolean | undefined;
93
93
  assignedOrganizations?: string[] | undefined;
94
- lastUsed?: number | null | undefined;
94
+ last_used?: number | null | undefined;
95
95
  }>;
@@ -16,9 +16,9 @@ exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
16
16
  proxy: zod_1.z.string(),
17
17
  status: upwork_account_status_1.upworkAccountStatusSchema,
18
18
  verified: zod_1.z.boolean(),
19
- isActive: zod_1.z.boolean(),
19
+ is_active: zod_1.z.boolean(),
20
20
  assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
- lastUsed: zod_1.z.number().nullable(),
21
+ last_used: zod_1.z.number().nullable(),
22
22
  });
23
23
  exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
24
24
  email: true,
@@ -5,32 +5,32 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
5
5
  password: z.ZodString;
6
6
  cookies: z.ZodRecord<z.ZodString, z.ZodString>;
7
7
  proxy_credentials: z.ZodString;
8
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
9
- isActive: z.ZodBoolean;
10
- lastUsed: z.ZodNumber;
8
+ region: z.ZodString;
9
+ is_active: z.ZodBoolean;
10
+ last_used: z.ZodNumber;
11
11
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
12
12
  verified: z.ZodBoolean;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  id: string;
15
15
  email: string;
16
16
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
17
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
17
+ region: string;
18
18
  cookies: Record<string, string>;
19
19
  password: string;
20
- isActive: boolean;
21
20
  verified: boolean;
22
- lastUsed: number;
21
+ is_active: boolean;
22
+ last_used: number;
23
23
  proxy_credentials: string;
24
24
  }, {
25
25
  id: string;
26
26
  email: string;
27
27
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
28
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
28
+ region: string;
29
29
  cookies: Record<string, string>;
30
30
  password: string;
31
- isActive: boolean;
32
31
  verified: boolean;
33
- lastUsed: number;
32
+ is_active: boolean;
33
+ last_used: number;
34
34
  proxy_credentials: string;
35
35
  }>;
36
36
  export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
@@ -39,20 +39,20 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
39
39
  password: z.ZodString;
40
40
  cookies: z.ZodRecord<z.ZodString, z.ZodString>;
41
41
  proxy_credentials: z.ZodString;
42
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
43
- isActive: z.ZodBoolean;
44
- lastUsed: z.ZodNumber;
42
+ region: z.ZodString;
43
+ is_active: z.ZodBoolean;
44
+ last_used: z.ZodNumber;
45
45
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
46
46
  verified: z.ZodBoolean;
47
47
  }, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
48
  email: string;
49
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
49
+ region: string;
50
50
  password: string;
51
51
  verified: boolean;
52
52
  proxy_credentials: string;
53
53
  }, {
54
54
  email: string;
55
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
55
+ region: string;
56
56
  password: string;
57
57
  verified: boolean;
58
58
  proxy_credentials: string;
@@ -60,31 +60,31 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
60
60
  export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
61
61
  email: z.ZodOptional<z.ZodString>;
62
62
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
63
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
63
+ region: z.ZodOptional<z.ZodString>;
64
64
  cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
65
  password: z.ZodOptional<z.ZodString>;
66
- isActive: z.ZodOptional<z.ZodBoolean>;
67
66
  verified: z.ZodOptional<z.ZodBoolean>;
68
- lastUsed: z.ZodOptional<z.ZodNumber>;
67
+ is_active: z.ZodOptional<z.ZodBoolean>;
68
+ last_used: z.ZodOptional<z.ZodNumber>;
69
69
  proxy_credentials: z.ZodOptional<z.ZodString>;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  email?: string | undefined;
72
72
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
73
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
73
+ region?: string | undefined;
74
74
  cookies?: Record<string, string> | undefined;
75
75
  password?: string | undefined;
76
- isActive?: boolean | undefined;
77
76
  verified?: boolean | undefined;
78
- lastUsed?: number | undefined;
77
+ is_active?: boolean | undefined;
78
+ last_used?: number | undefined;
79
79
  proxy_credentials?: string | undefined;
80
80
  }, {
81
81
  email?: string | undefined;
82
82
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
83
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
83
+ region?: string | undefined;
84
84
  cookies?: Record<string, string> | undefined;
85
85
  password?: string | undefined;
86
- isActive?: boolean | undefined;
87
86
  verified?: boolean | undefined;
88
- lastUsed?: number | undefined;
87
+ is_active?: boolean | undefined;
88
+ last_used?: number | undefined;
89
89
  proxy_credentials?: string | undefined;
90
90
  }>;
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const upwork_account_status_1 = require("./upwork-account-status");
6
- const job_filters_1 = require("../job-filters");
7
6
  exports.upworkScrapingAccountSchema = zod_1.z.object({
8
7
  id: zod_1.z.string(),
9
8
  email: zod_1.z.string().email(),
10
9
  password: zod_1.z.string(),
11
10
  cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
12
11
  proxy_credentials: zod_1.z.string(),
13
- region: job_filters_1.regionEnum,
14
- isActive: zod_1.z.boolean(),
15
- lastUsed: zod_1.z.number(),
12
+ region: zod_1.z.string(),
13
+ is_active: zod_1.z.boolean(),
14
+ last_used: zod_1.z.number(),
16
15
  status: upwork_account_status_1.upworkAccountStatusSchema,
17
16
  verified: zod_1.z.boolean(),
18
17
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScraperAccountSchema } from '../../schemas';
3
- export type UpworkScraperAccount = z.infer<typeof upworkScraperAccountSchema>;
2
+ import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScrapingAccountSchema } from '../../schemas';
3
+ export type UpworkScrapingAccount = z.infer<typeof upworkScrapingAccountSchema>;
4
4
  export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
5
5
  export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.86",
3
+ "version": "1.2.88",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -1,4 +0,0 @@
1
- import { ProxyCountry } from '../schemas';
2
- export declare const countryToWebshareCountryCode: (country: ProxyCountry) => string;
3
- export declare const webshareCountryCodeToCountry: (countryCode: string) => ProxyCountry;
4
- export declare const IPQualityScoreCountryCodeToCountry: (countryCode: string) => ProxyCountry;
@@ -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,5 +0,0 @@
1
- export declare class NoBidderAccountsAvailableException extends Error {
2
- readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
3
- constructor(message: string);
4
- }
5
- export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
@@ -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,30 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const bidSuccessSchema: z.ZodObject<{
3
- status: z.ZodLiteral<"success">;
4
- biddingAmount: z.ZodNumber;
5
- boosted: z.ZodBoolean;
6
- boostingAmount: z.ZodNumber;
7
- cookies: z.ZodArray<z.ZodAny, "many">;
8
- }, "strip", z.ZodTypeAny, {
9
- status: "success";
10
- cookies: any[];
11
- biddingAmount: number;
12
- boosted: boolean;
13
- boostingAmount: number;
14
- }, {
15
- status: "success";
16
- cookies: any[];
17
- biddingAmount: number;
18
- boosted: boolean;
19
- boostingAmount: number;
20
- }>;
21
- export declare const bidFailedSchema: z.ZodObject<{
22
- status: z.ZodLiteral<"failed">;
23
- errorMessage: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- status: "failed";
26
- errorMessage: string;
27
- }, {
28
- status: "failed";
29
- errorMessage: string;
30
- }>;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bidFailedSchema = exports.bidSuccessSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.bidSuccessSchema = zod_1.z.object({
6
- status: zod_1.z.literal('success'),
7
- biddingAmount: zod_1.z.number(),
8
- boosted: zod_1.z.boolean(),
9
- boostingAmount: zod_1.z.number(),
10
- cookies: zod_1.z.array(zod_1.z.any()),
11
- });
12
- exports.bidFailedSchema = zod_1.z.object({
13
- status: zod_1.z.literal('failed'),
14
- errorMessage: zod_1.z.string(),
15
- });
@@ -1,4 +0,0 @@
1
- export declare abstract class BaseException extends Error {
2
- abstract readonly code: string;
3
- constructor(message: string);
4
- }
@@ -1,5 +0,0 @@
1
- export declare class EvaluateElementException extends Error {
2
- readonly code = "EVALUATE_ELEMENT_EXCEPTION";
3
- constructor(element: any, message: string);
4
- }
5
- export declare function evaluateElementException(element: any, message: string): EvaluateElementException;
@@ -1,5 +0,0 @@
1
- export declare class WaitForFunctionTimeoutError extends Error {
2
- readonly code = "WAIT_FOR_FUNCTION_TIMEOUT_ERROR";
3
- constructor(fn: Function, timeout: number);
4
- }
5
- export declare const waitForFunctionTimeoutError: (fn: Function, timeout: number) => WaitForFunctionTimeoutError;
@@ -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
- }>;