lancer-shared 1.0.0

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 (131) hide show
  1. package/dist/constants/common-questions.d.ts +5 -0
  2. package/dist/constants/common-questions.js +60 -0
  3. package/dist/constants/index.d.ts +16 -0
  4. package/dist/constants/index.js +38 -0
  5. package/dist/constants/job-filter-options.d.ts +61 -0
  6. package/dist/constants/job-filter-options.js +265 -0
  7. package/dist/constants/job-status.d.ts +4 -0
  8. package/dist/constants/job-status.js +26 -0
  9. package/dist/constants/mappings/countryMapping.d.ts +2 -0
  10. package/dist/constants/mappings/countryMapping.js +122 -0
  11. package/dist/constants/mappings/regionMapping.d.ts +2 -0
  12. package/dist/constants/mappings/regionMapping.js +242 -0
  13. package/dist/constants/routes.d.ts +57 -0
  14. package/dist/constants/routes.js +63 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.js +19 -0
  17. package/dist/schemas/ai/ai-config.d.ts +36 -0
  18. package/dist/schemas/ai/ai-config.js +12 -0
  19. package/dist/schemas/ai/index.d.ts +3 -0
  20. package/dist/schemas/ai/index.js +19 -0
  21. package/dist/schemas/ai/proposal.d.ts +82 -0
  22. package/dist/schemas/ai/proposal.js +16 -0
  23. package/dist/schemas/ai/suitability.d.ts +37 -0
  24. package/dist/schemas/ai/suitability.js +17 -0
  25. package/dist/schemas/bidding/index.d.ts +1 -0
  26. package/dist/schemas/bidding/index.js +17 -0
  27. package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
  28. package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
  29. package/dist/schemas/campaign/campaign-expenses.d.ts +14 -0
  30. package/dist/schemas/campaign/campaign-expenses.js +9 -0
  31. package/dist/schemas/campaign/campaign-insights.d.ts +118 -0
  32. package/dist/schemas/campaign/campaign-insights.js +31 -0
  33. package/dist/schemas/campaign/campaign-integrations.d.ts +82 -0
  34. package/dist/schemas/campaign/campaign-integrations.js +16 -0
  35. package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
  36. package/dist/schemas/campaign/campaign-job-count.js +6 -0
  37. package/dist/schemas/campaign/campaign.d.ts +1146 -0
  38. package/dist/schemas/campaign/campaign.js +37 -0
  39. package/dist/schemas/campaign/index.d.ts +5 -0
  40. package/dist/schemas/campaign/index.js +21 -0
  41. package/dist/schemas/chat-message/chat-message.d.ts +31 -0
  42. package/dist/schemas/chat-message/chat-message.js +13 -0
  43. package/dist/schemas/chat-message/index.d.ts +1 -0
  44. package/dist/schemas/chat-message/index.js +17 -0
  45. package/dist/schemas/index.d.ts +10 -0
  46. package/dist/schemas/index.js +26 -0
  47. package/dist/schemas/job/index.d.ts +3 -0
  48. package/dist/schemas/job/index.js +19 -0
  49. package/dist/schemas/job/job-details.d.ts +335 -0
  50. package/dist/schemas/job/job-details.js +29 -0
  51. package/dist/schemas/job/job-note.d.ts +83 -0
  52. package/dist/schemas/job/job-note.js +30 -0
  53. package/dist/schemas/job/job-status.d.ts +3 -0
  54. package/dist/schemas/job/job-status.js +27 -0
  55. package/dist/schemas/job/job.d.ts +1160 -0
  56. package/dist/schemas/job/job.js +90 -0
  57. package/dist/schemas/job/pipeline-job.d.ts +602 -0
  58. package/dist/schemas/job/pipeline-job.js +42 -0
  59. package/dist/schemas/job/upwork-job.d.ts +334 -0
  60. package/dist/schemas/job/upwork-job.js +60 -0
  61. package/dist/schemas/job-filters/index.d.ts +1 -0
  62. package/dist/schemas/job-filters/index.js +17 -0
  63. package/dist/schemas/job-filters/job-filters.d.ts +187 -0
  64. package/dist/schemas/job-filters/job-filters.js +69 -0
  65. package/dist/schemas/saved-search/index.d.ts +19 -0
  66. package/dist/schemas/saved-search/index.js +12 -0
  67. package/dist/schemas/scraper/index.d.ts +2 -0
  68. package/dist/schemas/scraper/index.js +18 -0
  69. package/dist/schemas/scraper/scrape-payload.d.ts +17 -0
  70. package/dist/schemas/scraper/scrape-payload.js +10 -0
  71. package/dist/schemas/scraper/scrape-result.d.ts +345 -0
  72. package/dist/schemas/scraper/scrape-result.js +9 -0
  73. package/dist/schemas/shared.d.ts +7 -0
  74. package/dist/schemas/shared.js +16 -0
  75. package/dist/schemas/user/index.d.ts +72 -0
  76. package/dist/schemas/user/index.js +33 -0
  77. package/dist/types/ai/ai-config.d.ts +6 -0
  78. package/dist/types/ai/ai-config.js +2 -0
  79. package/dist/types/ai/index.d.ts +3 -0
  80. package/dist/types/ai/index.js +19 -0
  81. package/dist/types/ai/proposal.d.ts +10 -0
  82. package/dist/types/ai/proposal.js +2 -0
  83. package/dist/types/ai/suitability.d.ts +6 -0
  84. package/dist/types/ai/suitability.js +2 -0
  85. package/dist/types/bidding/index.d.ts +1 -0
  86. package/dist/types/bidding/index.js +17 -0
  87. package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
  88. package/dist/types/bidding/proposal-bidding-status.js +2 -0
  89. package/dist/types/campaign/campaign-expenses.d.ts +3 -0
  90. package/dist/types/campaign/campaign-expenses.js +2 -0
  91. package/dist/types/campaign/campaign-insights.d.ts +8 -0
  92. package/dist/types/campaign/campaign-insights.js +2 -0
  93. package/dist/types/campaign/campaign-integrations.d.ts +6 -0
  94. package/dist/types/campaign/campaign-integrations.js +2 -0
  95. package/dist/types/campaign/campaign-job-count.d.ts +4 -0
  96. package/dist/types/campaign/campaign-job-count.js +2 -0
  97. package/dist/types/campaign/campaign.d.ts +16 -0
  98. package/dist/types/campaign/campaign.js +2 -0
  99. package/dist/types/campaign/index.d.ts +5 -0
  100. package/dist/types/campaign/index.js +21 -0
  101. package/dist/types/chat-message/chat-message.d.ts +4 -0
  102. package/dist/types/chat-message/chat-message.js +2 -0
  103. package/dist/types/chat-message/index.d.ts +1 -0
  104. package/dist/types/chat-message/index.js +17 -0
  105. package/dist/types/index.d.ts +9 -0
  106. package/dist/types/index.js +25 -0
  107. package/dist/types/job/index.d.ts +3 -0
  108. package/dist/types/job/index.js +19 -0
  109. package/dist/types/job/job-details.d.ts +36 -0
  110. package/dist/types/job/job-details.js +2 -0
  111. package/dist/types/job/job-note.d.ts +10 -0
  112. package/dist/types/job/job-note.js +2 -0
  113. package/dist/types/job/job-status.d.ts +5 -0
  114. package/dist/types/job/job-status.js +12 -0
  115. package/dist/types/job/job.d.ts +32 -0
  116. package/dist/types/job/job.js +2 -0
  117. package/dist/types/job-filters/index.d.ts +1 -0
  118. package/dist/types/job-filters/index.js +17 -0
  119. package/dist/types/job-filters/job-filters.d.ts +4 -0
  120. package/dist/types/job-filters/job-filters.js +2 -0
  121. package/dist/types/saved-search/index.d.ts +6 -0
  122. package/dist/types/saved-search/index.js +2 -0
  123. package/dist/types/scraper/index.d.ts +2 -0
  124. package/dist/types/scraper/index.js +18 -0
  125. package/dist/types/scraper/scrape-payload.d.ts +4 -0
  126. package/dist/types/scraper/scrape-payload.js +2 -0
  127. package/dist/types/scraper/scrape-result.d.ts +4 -0
  128. package/dist/types/scraper/scrape-result.js +2 -0
  129. package/dist/types/user/index.d.ts +12 -0
  130. package/dist/types/user/index.js +2 -0
  131. package/package.json +35 -0
@@ -0,0 +1,345 @@
1
+ import { z } from 'zod';
2
+ export declare const scrapeResultSchema: z.ZodObject<{
3
+ jobs: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodNullable<z.ZodString>;
5
+ createdAt: z.ZodNullable<z.ZodNumber>;
6
+ title: z.ZodNullable<z.ZodString>;
7
+ category: z.ZodNullable<z.ZodString>;
8
+ skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
9
+ name: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ }, {
13
+ name: string;
14
+ }>, "many">>;
15
+ datetime: z.ZodNullable<z.ZodNumber>;
16
+ description: z.ZodNullable<z.ZodString>;
17
+ descriptionLength: z.ZodNullable<z.ZodNumber>;
18
+ connectsRequired: z.ZodNullable<z.ZodNumber>;
19
+ projectType: z.ZodNullable<z.ZodString>;
20
+ projectDuration: z.ZodNullable<z.ZodString>;
21
+ questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
22
+ jobUrl: z.ZodNullable<z.ZodString>;
23
+ metadata: z.ZodNullable<z.ZodObject<{
24
+ hours: z.ZodNullable<z.ZodString>;
25
+ duration: z.ZodNullable<z.ZodString>;
26
+ experienceLevel: z.ZodNullable<z.ZodString>;
27
+ hourlyRate: z.ZodNullable<z.ZodObject<{
28
+ min: z.ZodNullable<z.ZodNumber>;
29
+ max: z.ZodNullable<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ max: number | null;
32
+ min: number | null;
33
+ }, {
34
+ max: number | null;
35
+ min: number | null;
36
+ }>>;
37
+ paymentType: z.ZodNullable<z.ZodString>;
38
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ hours: string | null;
41
+ duration: string | null;
42
+ experienceLevel: string | null;
43
+ hourlyRate: {
44
+ max: number | null;
45
+ min: number | null;
46
+ } | null;
47
+ paymentType: string | null;
48
+ fixedPrice: number | null;
49
+ }, {
50
+ hours: string | null;
51
+ duration: string | null;
52
+ experienceLevel: string | null;
53
+ hourlyRate: {
54
+ max: number | null;
55
+ min: number | null;
56
+ } | null;
57
+ paymentType: string | null;
58
+ fixedPrice: number | null;
59
+ }>>;
60
+ clientInfo: z.ZodNullable<z.ZodObject<{
61
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
62
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
63
+ rating: z.ZodNullable<z.ZodNumber>;
64
+ country: z.ZodNullable<z.ZodString>;
65
+ region: z.ZodNullable<z.ZodString>;
66
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
67
+ totalSpent: z.ZodNullable<z.ZodNumber>;
68
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
69
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
70
+ openJobs: z.ZodNullable<z.ZodNumber>;
71
+ hireRate: z.ZodNullable<z.ZodNumber>;
72
+ memberSince: z.ZodNullable<z.ZodString>;
73
+ companyIndustry: z.ZodNullable<z.ZodString>;
74
+ companySize: z.ZodNullable<z.ZodString>;
75
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ country: string | null;
78
+ region: string | null;
79
+ rating: number | null;
80
+ isPaymentVerified: boolean | null;
81
+ numberOfReviews: number | null;
82
+ jobsPosted: number | null;
83
+ totalSpent: number | null;
84
+ numberOfHires: number | null;
85
+ activeEngagements: number | null;
86
+ openJobs: number | null;
87
+ hireRate: number | null;
88
+ memberSince: string | null;
89
+ companyIndustry: string | null;
90
+ companySize: string | null;
91
+ enterpriseClient: boolean | null;
92
+ }, {
93
+ country: string | null;
94
+ region: string | null;
95
+ rating: number | null;
96
+ isPaymentVerified: boolean | null;
97
+ numberOfReviews: number | null;
98
+ jobsPosted: number | null;
99
+ totalSpent: number | null;
100
+ numberOfHires: number | null;
101
+ activeEngagements: number | null;
102
+ openJobs: number | null;
103
+ hireRate: number | null;
104
+ memberSince: string | null;
105
+ companyIndustry: string | null;
106
+ companySize: string | null;
107
+ enterpriseClient: boolean | null;
108
+ }>>;
109
+ vendorQualifications: z.ZodNullable<z.ZodObject<{
110
+ location: z.ZodNullable<z.ZodString>;
111
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
112
+ englishLevel: z.ZodNullable<z.ZodString>;
113
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
114
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ location: string | null;
117
+ talentType: "unspecified" | "Agency" | "Independent" | null;
118
+ englishLevel: string | null;
119
+ minimumEarnings: number | null;
120
+ jobSuccessScore: string | null;
121
+ }, {
122
+ location: string | null;
123
+ talentType: "unspecified" | "Agency" | "Independent" | null;
124
+ englishLevel: string | null;
125
+ minimumEarnings: number | null;
126
+ jobSuccessScore: string | null;
127
+ }>>;
128
+ processed: z.ZodNullable<z.ZodBoolean>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: string | null;
131
+ title: string | null;
132
+ metadata: {
133
+ hours: string | null;
134
+ duration: string | null;
135
+ experienceLevel: string | null;
136
+ hourlyRate: {
137
+ max: number | null;
138
+ min: number | null;
139
+ } | null;
140
+ paymentType: string | null;
141
+ fixedPrice: number | null;
142
+ } | null;
143
+ description: string | null;
144
+ datetime: number | null;
145
+ createdAt: number | null;
146
+ category: string | null;
147
+ skills: {
148
+ name: string;
149
+ }[] | null;
150
+ descriptionLength: number | null;
151
+ connectsRequired: number | null;
152
+ projectType: string | null;
153
+ projectDuration: string | null;
154
+ questions: string[] | null;
155
+ jobUrl: string | null;
156
+ clientInfo: {
157
+ country: string | null;
158
+ region: string | null;
159
+ rating: number | null;
160
+ isPaymentVerified: boolean | null;
161
+ numberOfReviews: number | null;
162
+ jobsPosted: number | null;
163
+ totalSpent: number | null;
164
+ numberOfHires: number | null;
165
+ activeEngagements: number | null;
166
+ openJobs: number | null;
167
+ hireRate: number | null;
168
+ memberSince: string | null;
169
+ companyIndustry: string | null;
170
+ companySize: string | null;
171
+ enterpriseClient: boolean | null;
172
+ } | null;
173
+ vendorQualifications: {
174
+ location: string | null;
175
+ talentType: "unspecified" | "Agency" | "Independent" | null;
176
+ englishLevel: string | null;
177
+ minimumEarnings: number | null;
178
+ jobSuccessScore: string | null;
179
+ } | null;
180
+ processed: boolean | null;
181
+ }, {
182
+ id: string | null;
183
+ title: string | null;
184
+ metadata: {
185
+ hours: string | null;
186
+ duration: string | null;
187
+ experienceLevel: string | null;
188
+ hourlyRate: {
189
+ max: number | null;
190
+ min: number | null;
191
+ } | null;
192
+ paymentType: string | null;
193
+ fixedPrice: number | null;
194
+ } | null;
195
+ description: string | null;
196
+ datetime: number | null;
197
+ createdAt: number | null;
198
+ category: string | null;
199
+ skills: {
200
+ name: string;
201
+ }[] | null;
202
+ descriptionLength: number | null;
203
+ connectsRequired: number | null;
204
+ projectType: string | null;
205
+ projectDuration: string | null;
206
+ questions: string[] | null;
207
+ jobUrl: string | null;
208
+ clientInfo: {
209
+ country: string | null;
210
+ region: string | null;
211
+ rating: number | null;
212
+ isPaymentVerified: boolean | null;
213
+ numberOfReviews: number | null;
214
+ jobsPosted: number | null;
215
+ totalSpent: number | null;
216
+ numberOfHires: number | null;
217
+ activeEngagements: number | null;
218
+ openJobs: number | null;
219
+ hireRate: number | null;
220
+ memberSince: string | null;
221
+ companyIndustry: string | null;
222
+ companySize: string | null;
223
+ enterpriseClient: boolean | null;
224
+ } | null;
225
+ vendorQualifications: {
226
+ location: string | null;
227
+ talentType: "unspecified" | "Agency" | "Independent" | null;
228
+ englishLevel: string | null;
229
+ minimumEarnings: number | null;
230
+ jobSuccessScore: string | null;
231
+ } | null;
232
+ processed: boolean | null;
233
+ }>, "many">;
234
+ cookies: z.ZodArray<z.ZodAny, "many">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ jobs: {
237
+ id: string | null;
238
+ title: string | null;
239
+ metadata: {
240
+ hours: string | null;
241
+ duration: string | null;
242
+ experienceLevel: string | null;
243
+ hourlyRate: {
244
+ max: number | null;
245
+ min: number | null;
246
+ } | null;
247
+ paymentType: string | null;
248
+ fixedPrice: number | null;
249
+ } | null;
250
+ description: string | null;
251
+ datetime: number | null;
252
+ createdAt: number | null;
253
+ category: string | null;
254
+ skills: {
255
+ name: string;
256
+ }[] | null;
257
+ descriptionLength: number | null;
258
+ connectsRequired: number | null;
259
+ projectType: string | null;
260
+ projectDuration: string | null;
261
+ questions: string[] | null;
262
+ jobUrl: string | null;
263
+ clientInfo: {
264
+ country: string | null;
265
+ region: string | null;
266
+ rating: number | null;
267
+ isPaymentVerified: boolean | null;
268
+ numberOfReviews: number | null;
269
+ jobsPosted: number | null;
270
+ totalSpent: number | null;
271
+ numberOfHires: number | null;
272
+ activeEngagements: number | null;
273
+ openJobs: number | null;
274
+ hireRate: number | null;
275
+ memberSince: string | null;
276
+ companyIndustry: string | null;
277
+ companySize: string | null;
278
+ enterpriseClient: boolean | null;
279
+ } | null;
280
+ vendorQualifications: {
281
+ location: string | null;
282
+ talentType: "unspecified" | "Agency" | "Independent" | null;
283
+ englishLevel: string | null;
284
+ minimumEarnings: number | null;
285
+ jobSuccessScore: string | null;
286
+ } | null;
287
+ processed: boolean | null;
288
+ }[];
289
+ cookies: any[];
290
+ }, {
291
+ jobs: {
292
+ id: string | null;
293
+ title: string | null;
294
+ metadata: {
295
+ hours: string | null;
296
+ duration: string | null;
297
+ experienceLevel: string | null;
298
+ hourlyRate: {
299
+ max: number | null;
300
+ min: number | null;
301
+ } | null;
302
+ paymentType: string | null;
303
+ fixedPrice: number | null;
304
+ } | null;
305
+ description: string | null;
306
+ datetime: number | null;
307
+ createdAt: number | null;
308
+ category: string | null;
309
+ skills: {
310
+ name: string;
311
+ }[] | null;
312
+ descriptionLength: number | null;
313
+ connectsRequired: number | null;
314
+ projectType: string | null;
315
+ projectDuration: string | null;
316
+ questions: string[] | null;
317
+ jobUrl: string | null;
318
+ clientInfo: {
319
+ country: string | null;
320
+ region: string | null;
321
+ rating: number | null;
322
+ isPaymentVerified: boolean | null;
323
+ numberOfReviews: number | null;
324
+ jobsPosted: number | null;
325
+ totalSpent: number | null;
326
+ numberOfHires: number | null;
327
+ activeEngagements: number | null;
328
+ openJobs: number | null;
329
+ hireRate: number | null;
330
+ memberSince: string | null;
331
+ companyIndustry: string | null;
332
+ companySize: string | null;
333
+ enterpriseClient: boolean | null;
334
+ } | null;
335
+ vendorQualifications: {
336
+ location: string | null;
337
+ talentType: "unspecified" | "Agency" | "Independent" | null;
338
+ englishLevel: string | null;
339
+ minimumEarnings: number | null;
340
+ jobSuccessScore: string | null;
341
+ } | null;
342
+ processed: boolean | null;
343
+ }[];
344
+ cookies: any[];
345
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrapeResultSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const job_1 = require("../job");
6
+ exports.scrapeResultSchema = zod_1.z.object({
7
+ jobs: zod_1.z.array(job_1.upworkJobSchema),
8
+ cookies: zod_1.z.array(zod_1.z.any()),
9
+ });
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export declare const booleanSchema: z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, boolean | "false" | "true">;
3
+ export declare const dateSchema: (params?: {
4
+ invalid_type_error?: string;
5
+ required_error?: string;
6
+ }) => z.ZodDate;
7
+ export declare const passwordSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.passwordSchema = exports.dateSchema = exports.booleanSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.booleanSchema = zod_1.z
6
+ .union([zod_1.z.boolean(), zod_1.z.literal("true"), zod_1.z.literal("false")])
7
+ .transform((value) => value === true || value === "true");
8
+ const dateSchema = (params = {}) => zod_1.coerce.date(Object.assign({}, params));
9
+ exports.dateSchema = dateSchema;
10
+ exports.passwordSchema = (0, zod_1.string)()
11
+ .min(8, "Password must be at least 8 characters long.")
12
+ .max(255, "Password must be at most 255 characters long.")
13
+ .refine((password) => /[a-z]/.test(password), "Password must contain at least one lowercase letter.")
14
+ .refine((password) => /[A-Z]/.test(password), "Password must contain at least one uppercase letter.")
15
+ .refine((password) => /\d/.test(password), "Password must contain at least one number.")
16
+ .refine((password) => /[\W_]/.test(password), "Password must contain at least one symbol.");
@@ -0,0 +1,72 @@
1
+ export declare const userSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ firstName: import("zod").ZodString;
4
+ lastName: import("zod").ZodString;
5
+ displayName: import("zod").ZodString;
6
+ email: import("zod").ZodString;
7
+ suitabilityPrompt: import("zod").ZodString;
8
+ proposalPrompt: import("zod").ZodString;
9
+ createdAt: import("zod").ZodDate;
10
+ updatedAt: import("zod").ZodDate;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ id: string;
13
+ email: string;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ firstName: string;
17
+ lastName: string;
18
+ displayName: string;
19
+ suitabilityPrompt: string;
20
+ proposalPrompt: string;
21
+ }, {
22
+ id: string;
23
+ email: string;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ firstName: string;
27
+ lastName: string;
28
+ displayName: string;
29
+ suitabilityPrompt: string;
30
+ proposalPrompt: string;
31
+ }>;
32
+ export declare const loginSchema: import("zod").ZodObject<{
33
+ email: import("zod").ZodString;
34
+ password: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
35
+ }, "strip", import("zod").ZodTypeAny, {
36
+ email: string;
37
+ password: string;
38
+ }, {
39
+ email: string;
40
+ password: string;
41
+ }>;
42
+ export declare const registerSchema: import("zod").ZodEffects<import("zod").ZodObject<{
43
+ firstName: import("zod").ZodString;
44
+ lastName: import("zod").ZodString;
45
+ email: import("zod").ZodString;
46
+ password: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
47
+ confirmPassword: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ email: string;
50
+ firstName: string;
51
+ lastName: string;
52
+ password: string;
53
+ confirmPassword: string;
54
+ }, {
55
+ email: string;
56
+ firstName: string;
57
+ lastName: string;
58
+ password: string;
59
+ confirmPassword: string;
60
+ }>, {
61
+ email: string;
62
+ firstName: string;
63
+ lastName: string;
64
+ password: string;
65
+ confirmPassword: string;
66
+ }, {
67
+ email: string;
68
+ firstName: string;
69
+ lastName: string;
70
+ password: string;
71
+ confirmPassword: string;
72
+ }>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerSchema = exports.loginSchema = exports.userSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const shared_1 = require("../shared");
6
+ exports.userSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ firstName: (0, zod_1.string)(),
9
+ lastName: (0, zod_1.string)(),
10
+ displayName: (0, zod_1.string)(),
11
+ email: (0, zod_1.string)(),
12
+ suitabilityPrompt: (0, zod_1.string)(),
13
+ proposalPrompt: (0, zod_1.string)(),
14
+ createdAt: (0, shared_1.dateSchema)(),
15
+ updatedAt: (0, shared_1.dateSchema)(),
16
+ });
17
+ exports.loginSchema = (0, zod_1.object)({
18
+ email: (0, zod_1.string)().email(),
19
+ password: shared_1.passwordSchema,
20
+ });
21
+ exports.registerSchema = (0, zod_1.object)({
22
+ firstName: (0, zod_1.string)().min(1, 'First name is required').max(255),
23
+ lastName: (0, zod_1.string)().min(1, 'Last name is required').max(255),
24
+ email: (0, zod_1.string)()
25
+ .email('Must be a valid email address')
26
+ .max(255)
27
+ .min(1, 'Email address is required'),
28
+ password: shared_1.passwordSchema,
29
+ confirmPassword: shared_1.passwordSchema,
30
+ }).refine(({ password, confirmPassword }) => password === confirmPassword, {
31
+ message: `Passwords don't match.`,
32
+ path: ['confirmPassword'],
33
+ });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { aiConfigSchema, updateAiConfigSchema } from '../../schemas';
3
+ export interface AiConfig extends z.infer<typeof aiConfigSchema> {
4
+ }
5
+ export interface UpdateAiConfig extends z.infer<typeof updateAiConfigSchema> {
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './ai-config';
2
+ export * from './proposal';
3
+ export * from './suitability';
@@ -0,0 +1,19 @@
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);
18
+ __exportStar(require("./proposal"), exports);
19
+ __exportStar(require("./suitability"), exports);
@@ -0,0 +1,10 @@
1
+ import { proposalResponseSchema } from '../../schemas/ai/proposal';
2
+ import { proposalSchema } from '../../schemas/ai/proposal';
3
+ import { z } from 'zod';
4
+ import { questionAnswerPairSchema } from '../../schemas/ai/proposal';
5
+ export interface QuestionAnswerPair extends z.infer<typeof questionAnswerPairSchema> {
6
+ }
7
+ export interface Proposal extends z.infer<typeof proposalSchema> {
8
+ }
9
+ export interface ProposalResponse extends z.infer<typeof proposalResponseSchema> {
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { suitabilitySchema, suitabilityResponseSchema } from '../../schemas';
3
+ export interface Suitability extends z.infer<typeof suitabilitySchema> {
4
+ }
5
+ export interface SuitabilityResponse extends z.infer<typeof suitabilityResponseSchema> {
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './proposal-bidding-status';
@@ -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("./proposal-bidding-status"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { proposalBiddingStatusSchema } from '../../schemas';
3
+ export type ProposalBiddingStatus = z.infer<typeof proposalBiddingStatusSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { campaignExpensesSchema } from '../../schemas';
3
+ export type CampaignExpenses = z.infer<typeof campaignExpensesSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { campaignInsightsSchema, campaignIntegrations } from '../../schemas';
3
+ import { campaignCountByStatusSchema } from '../../schemas/campaign/campaign-insights';
4
+ export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
5
+ export interface CampaignCountByStatus extends z.infer<typeof campaignCountByStatusSchema> {
6
+ }
7
+ export interface CampaignInsights extends z.infer<typeof campaignInsightsSchema> {
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { campaignIntegrationsSchema, updateCampaignIntegrationsSchema } from '../../schemas';
3
+ export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
4
+ }
5
+ export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { campaignJobCountSchema } from '../../schemas';
3
+ export interface CampaignJobCount extends z.infer<typeof campaignJobCountSchema> {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { campaignSchema, createCampaignSchema, updateCampaignSchema } from '../../schemas';
3
+ import { JobFilters } from '../job-filters';
4
+ import { CampaignExpenses } from './campaign-expenses';
5
+ import { CampaignIntegrations } from './campaign-integrations';
6
+ export interface Campaign extends z.infer<typeof campaignSchema> {
7
+ filters: JobFilters;
8
+ expenses: CampaignExpenses;
9
+ integrations: CampaignIntegrations;
10
+ }
11
+ export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
12
+ filters: JobFilters;
13
+ }
14
+ export interface UpdateCampaign extends z.infer<typeof updateCampaignSchema> {
15
+ filters: JobFilters;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from './campaign';
2
+ export * from './campaign-insights';
3
+ export * from './campaign-job-count';
4
+ export * from './campaign-expenses';
5
+ export * from './campaign-integrations';