lancer-shared 1.0.92 → 1.0.94

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 (67) 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/bid/bid-status.d.ts +26 -0
  8. package/dist/schemas/bid/bid-status.js +18 -0
  9. package/dist/schemas/bid/bid.d.ts +203 -0
  10. package/dist/schemas/bid/bid.js +22 -0
  11. package/dist/schemas/bid/index.d.ts +2 -0
  12. package/dist/schemas/bid/index.js +18 -0
  13. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  14. package/dist/schemas/bidding/proposal-dto.js +18 -0
  15. package/dist/schemas/campaign/campaign.d.ts +21 -0
  16. package/dist/schemas/index.d.ts +1 -1
  17. package/dist/schemas/index.js +1 -1
  18. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  19. package/dist/schemas/job/job-pipeline.js +29 -0
  20. package/dist/schemas/job/job-suitability.d.ts +12 -0
  21. package/dist/schemas/job/job-suitability.js +13 -0
  22. package/dist/schemas/job/job.d.ts +16 -16
  23. package/dist/schemas/job/pipeline-job.d.ts +9 -3
  24. package/dist/schemas/job/pipeline-job.js +1 -0
  25. package/dist/schemas/job-filters/job-filters.d.ts +5 -0
  26. package/dist/schemas/job-filters/job-filters.js +1 -0
  27. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  28. package/dist/schemas/knowledge-object/index.js +17 -0
  29. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  30. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  31. package/dist/schemas/logger/log-event.d.ts +2 -2
  32. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  33. package/dist/schemas/scraper/scrape-response.js +9 -0
  34. package/dist/schemas/upwork-account/index.d.ts +1 -1
  35. package/dist/schemas/upwork-account/index.js +1 -1
  36. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  37. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  38. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
  39. package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
  40. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  41. package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
  42. package/dist/types/ai-config/ai-config.d.ts +6 -0
  43. package/dist/types/ai-config/ai-config.js +2 -0
  44. package/dist/types/ai-config/index.d.ts +1 -0
  45. package/dist/types/ai-config/index.js +17 -0
  46. package/dist/types/bid/bid-status.d.ts +3 -0
  47. package/dist/types/bid/bid-status.js +2 -0
  48. package/dist/types/bid/bid.d.ts +8 -0
  49. package/dist/types/bid/bid.js +2 -0
  50. package/dist/types/bid/index.d.ts +2 -0
  51. package/dist/types/bid/index.js +18 -0
  52. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  53. package/dist/types/bidding/proposal-dto.js +2 -0
  54. package/dist/types/index.d.ts +0 -1
  55. package/dist/types/index.js +0 -1
  56. package/dist/types/job/job-pipeline.d.ts +4 -0
  57. package/dist/types/job/job-pipeline.js +2 -0
  58. package/dist/types/job/job-suitability.d.ts +3 -0
  59. package/dist/types/job/job-suitability.js +2 -0
  60. package/dist/types/knowledge-object/index.d.ts +1 -0
  61. package/dist/types/knowledge-object/index.js +17 -0
  62. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  63. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  64. package/dist/types/scraper/scrape-response.d.ts +4 -0
  65. package/dist/types/scraper/scrape-response.js +2 -0
  66. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  67. 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 bidResultSchema: 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.bidResultSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.bidResultSchema = 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
+ ]);
@@ -0,0 +1,203 @@
1
+ import { z } from 'zod';
2
+ export declare const bidSchema: z.ZodObject<{
3
+ userId: z.ZodString;
4
+ jobUrl: z.ZodString;
5
+ formData: z.ZodObject<{
6
+ coverLetter: z.ZodString;
7
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
8
+ question: z.ZodString;
9
+ answer: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ answer: string;
12
+ question: string;
13
+ }, {
14
+ answer: string;
15
+ question: string;
16
+ }>, "many">>;
17
+ boostingEnabled: z.ZodBoolean;
18
+ minimumBoost: z.ZodNullable<z.ZodNumber>;
19
+ maximumBoost: z.ZodNullable<z.ZodNumber>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ coverLetter: string;
22
+ questionAnswerPairs: {
23
+ answer: string;
24
+ question: string;
25
+ }[] | null;
26
+ boostingEnabled: boolean;
27
+ maximumBoost: number | null;
28
+ minimumBoost: number | null;
29
+ }, {
30
+ coverLetter: string;
31
+ questionAnswerPairs: {
32
+ answer: string;
33
+ question: string;
34
+ }[] | null;
35
+ boostingEnabled: boolean;
36
+ maximumBoost: number | null;
37
+ minimumBoost: number | null;
38
+ }>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ formData: {
41
+ coverLetter: string;
42
+ questionAnswerPairs: {
43
+ answer: string;
44
+ question: string;
45
+ }[] | null;
46
+ boostingEnabled: boolean;
47
+ maximumBoost: number | null;
48
+ minimumBoost: number | null;
49
+ };
50
+ jobUrl: string;
51
+ userId: string;
52
+ }, {
53
+ formData: {
54
+ coverLetter: string;
55
+ questionAnswerPairs: {
56
+ answer: string;
57
+ question: string;
58
+ }[] | null;
59
+ boostingEnabled: boolean;
60
+ maximumBoost: number | null;
61
+ minimumBoost: number | null;
62
+ };
63
+ jobUrl: string;
64
+ userId: string;
65
+ }>;
66
+ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
67
+ userId: z.ZodString;
68
+ jobUrl: z.ZodString;
69
+ formData: z.ZodObject<{
70
+ coverLetter: z.ZodString;
71
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
72
+ question: z.ZodString;
73
+ answer: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ answer: string;
76
+ question: string;
77
+ }, {
78
+ answer: string;
79
+ question: string;
80
+ }>, "many">>;
81
+ boostingEnabled: z.ZodBoolean;
82
+ minimumBoost: z.ZodNullable<z.ZodNumber>;
83
+ maximumBoost: z.ZodNullable<z.ZodNumber>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ coverLetter: string;
86
+ questionAnswerPairs: {
87
+ answer: string;
88
+ question: string;
89
+ }[] | null;
90
+ boostingEnabled: boolean;
91
+ maximumBoost: number | null;
92
+ minimumBoost: number | null;
93
+ }, {
94
+ coverLetter: string;
95
+ questionAnswerPairs: {
96
+ answer: string;
97
+ question: string;
98
+ }[] | null;
99
+ boostingEnabled: boolean;
100
+ maximumBoost: number | null;
101
+ minimumBoost: number | null;
102
+ }>;
103
+ }, {
104
+ agencyName: z.ZodString;
105
+ contractorName: z.ZodString;
106
+ specializedProfile: z.ZodNullable<z.ZodString>;
107
+ }>, "strip", z.ZodTypeAny, {
108
+ formData: {
109
+ coverLetter: string;
110
+ questionAnswerPairs: {
111
+ answer: string;
112
+ question: string;
113
+ }[] | null;
114
+ boostingEnabled: boolean;
115
+ maximumBoost: number | null;
116
+ minimumBoost: number | null;
117
+ };
118
+ jobUrl: string;
119
+ userId: string;
120
+ agencyName: string;
121
+ contractorName: string;
122
+ specializedProfile: string | null;
123
+ }, {
124
+ formData: {
125
+ coverLetter: string;
126
+ questionAnswerPairs: {
127
+ answer: string;
128
+ question: string;
129
+ }[] | null;
130
+ boostingEnabled: boolean;
131
+ maximumBoost: number | null;
132
+ minimumBoost: number | null;
133
+ };
134
+ jobUrl: string;
135
+ userId: string;
136
+ agencyName: string;
137
+ contractorName: string;
138
+ specializedProfile: string | null;
139
+ }>;
140
+ export declare const freelancerBidSchema: z.ZodObject<{
141
+ userId: z.ZodString;
142
+ jobUrl: z.ZodString;
143
+ formData: z.ZodObject<{
144
+ coverLetter: z.ZodString;
145
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
146
+ question: z.ZodString;
147
+ answer: z.ZodString;
148
+ }, "strip", z.ZodTypeAny, {
149
+ answer: string;
150
+ question: string;
151
+ }, {
152
+ answer: string;
153
+ question: string;
154
+ }>, "many">>;
155
+ boostingEnabled: z.ZodBoolean;
156
+ minimumBoost: z.ZodNullable<z.ZodNumber>;
157
+ maximumBoost: z.ZodNullable<z.ZodNumber>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ coverLetter: string;
160
+ questionAnswerPairs: {
161
+ answer: string;
162
+ question: string;
163
+ }[] | null;
164
+ boostingEnabled: boolean;
165
+ maximumBoost: number | null;
166
+ minimumBoost: number | null;
167
+ }, {
168
+ coverLetter: string;
169
+ questionAnswerPairs: {
170
+ answer: string;
171
+ question: string;
172
+ }[] | null;
173
+ boostingEnabled: boolean;
174
+ maximumBoost: number | null;
175
+ minimumBoost: number | null;
176
+ }>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ formData: {
179
+ coverLetter: string;
180
+ questionAnswerPairs: {
181
+ answer: string;
182
+ question: string;
183
+ }[] | null;
184
+ boostingEnabled: boolean;
185
+ maximumBoost: number | null;
186
+ minimumBoost: number | null;
187
+ };
188
+ jobUrl: string;
189
+ userId: string;
190
+ }, {
191
+ formData: {
192
+ coverLetter: string;
193
+ questionAnswerPairs: {
194
+ answer: string;
195
+ question: string;
196
+ }[] | null;
197
+ boostingEnabled: boolean;
198
+ maximumBoost: number | null;
199
+ minimumBoost: number | null;
200
+ };
201
+ jobUrl: string;
202
+ userId: string;
203
+ }>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.freelancerBidSchema = exports.agencyBidSchema = exports.bidSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const ai_1 = require("../ai");
6
+ exports.bidSchema = zod_1.z.object({
7
+ userId: zod_1.z.string(),
8
+ jobUrl: zod_1.z.string(),
9
+ formData: zod_1.z.object({
10
+ coverLetter: zod_1.z.string(),
11
+ questionAnswerPairs: zod_1.z.array(ai_1.questionAnswerPairSchema).nullable(),
12
+ boostingEnabled: zod_1.z.boolean(),
13
+ minimumBoost: zod_1.z.number().nullable(),
14
+ maximumBoost: zod_1.z.number().nullable(),
15
+ }),
16
+ });
17
+ exports.agencyBidSchema = exports.bidSchema.extend({
18
+ agencyName: zod_1.z.string(),
19
+ contractorName: zod_1.z.string(),
20
+ specializedProfile: zod_1.z.string().nullable(),
21
+ });
22
+ exports.freelancerBidSchema = exports.bidSchema;
@@ -0,0 +1,2 @@
1
+ export * from './bid';
2
+ export * from './bid-status';
@@ -0,0 +1,18 @@
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("./bid"), exports);
18
+ __exportStar(require("./bid-status"), 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
+ ]);
@@ -57,6 +57,7 @@ export declare const campaignSchema: z.ZodObject<{
57
57
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
58
58
  clientInfo: z.ZodNullable<z.ZodObject<{
59
59
  isPaymentVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
60
+ isPhoneVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
60
61
  enterpriseClient: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
61
62
  clientLocationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
62
63
  clientLocationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -72,6 +73,7 @@ export declare const campaignSchema: z.ZodObject<{
72
73
  memberSinceTo: z.ZodNullable<z.ZodString>;
73
74
  }, "strip", z.ZodTypeAny, {
74
75
  isPaymentVerified: "false" | "all" | "true";
76
+ isPhoneVerified: "false" | "all" | "true";
75
77
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
76
78
  enterpriseClient: "false" | "all" | "true";
77
79
  clientLocationIncludes: string[] | null;
@@ -99,6 +101,7 @@ export declare const campaignSchema: z.ZodObject<{
99
101
  memberSinceFrom: string | null;
100
102
  memberSinceTo: string | null;
101
103
  isPaymentVerified?: "false" | "all" | "true" | undefined;
104
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
102
105
  enterpriseClient?: "false" | "all" | "true" | undefined;
103
106
  }>>;
104
107
  vendorQualifications: z.ZodNullable<z.ZodObject<{
@@ -134,6 +137,7 @@ export declare const campaignSchema: z.ZodObject<{
134
137
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
135
138
  clientInfo: {
136
139
  isPaymentVerified: "false" | "all" | "true";
140
+ isPhoneVerified: "false" | "all" | "true";
137
141
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
138
142
  enterpriseClient: "false" | "all" | "true";
139
143
  clientLocationIncludes: string[] | null;
@@ -195,6 +199,7 @@ export declare const campaignSchema: z.ZodObject<{
195
199
  memberSinceFrom: string | null;
196
200
  memberSinceTo: string | null;
197
201
  isPaymentVerified?: "false" | "all" | "true" | undefined;
202
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
198
203
  enterpriseClient?: "false" | "all" | "true" | undefined;
199
204
  } | null;
200
205
  vendorQualifications: {
@@ -305,6 +310,7 @@ export declare const campaignSchema: z.ZodObject<{
305
310
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
306
311
  clientInfo: {
307
312
  isPaymentVerified: "false" | "all" | "true";
313
+ isPhoneVerified: "false" | "all" | "true";
308
314
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
309
315
  enterpriseClient: "false" | "all" | "true";
310
316
  clientLocationIncludes: string[] | null;
@@ -398,6 +404,7 @@ export declare const campaignSchema: z.ZodObject<{
398
404
  memberSinceFrom: string | null;
399
405
  memberSinceTo: string | null;
400
406
  isPaymentVerified?: "false" | "all" | "true" | undefined;
407
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
401
408
  enterpriseClient?: "false" | "all" | "true" | undefined;
402
409
  } | null;
403
410
  vendorQualifications: {
@@ -511,6 +518,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
511
518
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
512
519
  clientInfo: z.ZodNullable<z.ZodObject<{
513
520
  isPaymentVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
521
+ isPhoneVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
514
522
  enterpriseClient: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
515
523
  clientLocationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
516
524
  clientLocationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -526,6 +534,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
526
534
  memberSinceTo: z.ZodNullable<z.ZodString>;
527
535
  }, "strip", z.ZodTypeAny, {
528
536
  isPaymentVerified: "false" | "all" | "true";
537
+ isPhoneVerified: "false" | "all" | "true";
529
538
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
530
539
  enterpriseClient: "false" | "all" | "true";
531
540
  clientLocationIncludes: string[] | null;
@@ -553,6 +562,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
553
562
  memberSinceFrom: string | null;
554
563
  memberSinceTo: string | null;
555
564
  isPaymentVerified?: "false" | "all" | "true" | undefined;
565
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
556
566
  enterpriseClient?: "false" | "all" | "true" | undefined;
557
567
  }>>;
558
568
  vendorQualifications: z.ZodNullable<z.ZodObject<{
@@ -588,6 +598,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
588
598
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
589
599
  clientInfo: {
590
600
  isPaymentVerified: "false" | "all" | "true";
601
+ isPhoneVerified: "false" | "all" | "true";
591
602
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
592
603
  enterpriseClient: "false" | "all" | "true";
593
604
  clientLocationIncludes: string[] | null;
@@ -649,6 +660,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
649
660
  memberSinceFrom: string | null;
650
661
  memberSinceTo: string | null;
651
662
  isPaymentVerified?: "false" | "all" | "true" | undefined;
663
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
652
664
  enterpriseClient?: "false" | "all" | "true" | undefined;
653
665
  } | null;
654
666
  vendorQualifications: {
@@ -756,6 +768,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
756
768
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
757
769
  clientInfo: {
758
770
  isPaymentVerified: "false" | "all" | "true";
771
+ isPhoneVerified: "false" | "all" | "true";
759
772
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
760
773
  enterpriseClient: "false" | "all" | "true";
761
774
  clientLocationIncludes: string[] | null;
@@ -846,6 +859,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
846
859
  memberSinceFrom: string | null;
847
860
  memberSinceTo: string | null;
848
861
  isPaymentVerified?: "false" | "all" | "true" | undefined;
862
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
849
863
  enterpriseClient?: "false" | "all" | "true" | undefined;
850
864
  } | null;
851
865
  vendorQualifications: {
@@ -959,6 +973,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
959
973
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
960
974
  clientInfo: z.ZodNullable<z.ZodObject<{
961
975
  isPaymentVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
976
+ isPhoneVerified: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
962
977
  enterpriseClient: z.ZodDefault<z.ZodEnum<["all", "true", "false"]>>;
963
978
  clientLocationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
964
979
  clientLocationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -974,6 +989,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
974
989
  memberSinceTo: z.ZodNullable<z.ZodString>;
975
990
  }, "strip", z.ZodTypeAny, {
976
991
  isPaymentVerified: "false" | "all" | "true";
992
+ isPhoneVerified: "false" | "all" | "true";
977
993
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
978
994
  enterpriseClient: "false" | "all" | "true";
979
995
  clientLocationIncludes: string[] | null;
@@ -1001,6 +1017,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1001
1017
  memberSinceFrom: string | null;
1002
1018
  memberSinceTo: string | null;
1003
1019
  isPaymentVerified?: "false" | "all" | "true" | undefined;
1020
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
1004
1021
  enterpriseClient?: "false" | "all" | "true" | undefined;
1005
1022
  }>>;
1006
1023
  vendorQualifications: z.ZodNullable<z.ZodObject<{
@@ -1036,6 +1053,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1036
1053
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1037
1054
  clientInfo: {
1038
1055
  isPaymentVerified: "false" | "all" | "true";
1056
+ isPhoneVerified: "false" | "all" | "true";
1039
1057
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
1040
1058
  enterpriseClient: "false" | "all" | "true";
1041
1059
  clientLocationIncludes: string[] | null;
@@ -1097,6 +1115,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1097
1115
  memberSinceFrom: string | null;
1098
1116
  memberSinceTo: string | null;
1099
1117
  isPaymentVerified?: "false" | "all" | "true" | undefined;
1118
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
1100
1119
  enterpriseClient?: "false" | "all" | "true" | undefined;
1101
1120
  } | null;
1102
1121
  vendorQualifications: {
@@ -1205,6 +1224,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1205
1224
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1206
1225
  clientInfo: {
1207
1226
  isPaymentVerified: "false" | "all" | "true";
1227
+ isPhoneVerified: "false" | "all" | "true";
1208
1228
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
1209
1229
  enterpriseClient: "false" | "all" | "true";
1210
1230
  clientLocationIncludes: string[] | null;
@@ -1296,6 +1316,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1296
1316
  memberSinceFrom: string | null;
1297
1317
  memberSinceTo: string | null;
1298
1318
  isPaymentVerified?: "false" | "all" | "true" | undefined;
1319
+ isPhoneVerified?: "false" | "all" | "true" | undefined;
1299
1320
  enterpriseClient?: "false" | "all" | "true" | undefined;
1300
1321
  } | null;
1301
1322
  vendorQualifications: {