lancer-shared 1.0.104 → 1.0.106

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.
@@ -119,51 +119,7 @@ export declare const bidSchema: z.ZodObject<{
119
119
  campaignId: z.ZodString;
120
120
  username: z.ZodString;
121
121
  password: z.ZodString;
122
- formData: z.ZodObject<{
123
- coverLetter: z.ZodString;
124
- questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
125
- question: z.ZodString;
126
- answer: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- answer: string;
129
- question: string;
130
- }, {
131
- answer: string;
132
- question: string;
133
- }>, "many">>;
134
- boostingEnabled: z.ZodBoolean;
135
- minimumBoost: z.ZodNullable<z.ZodNumber>;
136
- maximumBoost: z.ZodNullable<z.ZodNumber>;
137
- }, "strip", z.ZodTypeAny, {
138
- coverLetter: string;
139
- questionAnswerPairs: {
140
- answer: string;
141
- question: string;
142
- }[] | null;
143
- boostingEnabled: boolean;
144
- maximumBoost: number | null;
145
- minimumBoost: number | null;
146
- }, {
147
- coverLetter: string;
148
- questionAnswerPairs: {
149
- answer: string;
150
- question: string;
151
- }[] | null;
152
- boostingEnabled: boolean;
153
- maximumBoost: number | null;
154
- minimumBoost: number | null;
155
- }>;
156
122
  }, "strip", z.ZodTypeAny, {
157
- formData: {
158
- coverLetter: string;
159
- questionAnswerPairs: {
160
- answer: string;
161
- question: string;
162
- }[] | null;
163
- boostingEnabled: boolean;
164
- maximumBoost: number | null;
165
- minimumBoost: number | null;
166
- };
167
123
  username: string;
168
124
  jobId: string;
169
125
  cookies: any[];
@@ -172,16 +128,6 @@ export declare const bidSchema: z.ZodObject<{
172
128
  userId: string;
173
129
  campaignId: string;
174
130
  }, {
175
- formData: {
176
- coverLetter: string;
177
- questionAnswerPairs: {
178
- answer: string;
179
- question: string;
180
- }[] | null;
181
- boostingEnabled: boolean;
182
- maximumBoost: number | null;
183
- minimumBoost: number | null;
184
- };
185
131
  username: string;
186
132
  jobId: string;
187
133
  cookies: any[];
@@ -198,7 +144,8 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
198
144
  campaignId: z.ZodString;
199
145
  username: z.ZodString;
200
146
  password: z.ZodString;
201
- formData: z.ZodObject<{
147
+ }, {
148
+ formData: z.ZodObject<z.objectUtil.extendShape<{
202
149
  coverLetter: z.ZodString;
203
150
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
204
151
  question: z.ZodString;
@@ -213,7 +160,11 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
213
160
  boostingEnabled: z.ZodBoolean;
214
161
  minimumBoost: z.ZodNullable<z.ZodNumber>;
215
162
  maximumBoost: z.ZodNullable<z.ZodNumber>;
216
- }, "strip", z.ZodTypeAny, {
163
+ }, {
164
+ agencyName: z.ZodString;
165
+ contractorName: z.ZodString;
166
+ specializedProfile: z.ZodNullable<z.ZodString>;
167
+ }>, "strip", z.ZodTypeAny, {
217
168
  coverLetter: string;
218
169
  questionAnswerPairs: {
219
170
  answer: string;
@@ -222,6 +173,9 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
222
173
  boostingEnabled: boolean;
223
174
  maximumBoost: number | null;
224
175
  minimumBoost: number | null;
176
+ agencyName: string;
177
+ contractorName: string;
178
+ specializedProfile: string | null;
225
179
  }, {
226
180
  coverLetter: string;
227
181
  questionAnswerPairs: {
@@ -231,11 +185,10 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
231
185
  boostingEnabled: boolean;
232
186
  maximumBoost: number | null;
233
187
  minimumBoost: number | null;
188
+ agencyName: string;
189
+ contractorName: string;
190
+ specializedProfile: string | null;
234
191
  }>;
235
- }, {
236
- agencyName: z.ZodString;
237
- contractorName: z.ZodString;
238
- specializedProfile: z.ZodNullable<z.ZodString>;
239
192
  }>, "strip", z.ZodTypeAny, {
240
193
  formData: {
241
194
  coverLetter: string;
@@ -246,15 +199,15 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
246
199
  boostingEnabled: boolean;
247
200
  maximumBoost: number | null;
248
201
  minimumBoost: number | null;
202
+ agencyName: string;
203
+ contractorName: string;
204
+ specializedProfile: string | null;
249
205
  };
250
206
  username: string;
251
207
  jobId: string;
252
208
  cookies: any[];
253
209
  password: string;
254
210
  jobUrl: string;
255
- agencyName: string;
256
- contractorName: string;
257
- specializedProfile: string | null;
258
211
  userId: string;
259
212
  campaignId: string;
260
213
  }, {
@@ -267,19 +220,19 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
267
220
  boostingEnabled: boolean;
268
221
  maximumBoost: number | null;
269
222
  minimumBoost: number | null;
223
+ agencyName: string;
224
+ contractorName: string;
225
+ specializedProfile: string | null;
270
226
  };
271
227
  username: string;
272
228
  jobId: string;
273
229
  cookies: any[];
274
230
  password: string;
275
231
  jobUrl: string;
276
- agencyName: string;
277
- contractorName: string;
278
- specializedProfile: string | null;
279
232
  userId: string;
280
233
  campaignId: string;
281
234
  }>;
282
- export declare const freelancerBidSchema: z.ZodObject<{
235
+ export declare const freelancerBidSchema: z.ZodObject<z.objectUtil.extendShape<{
283
236
  userId: z.ZodString;
284
237
  jobUrl: z.ZodString;
285
238
  cookies: z.ZodArray<z.ZodAny, "many">;
@@ -287,6 +240,7 @@ export declare const freelancerBidSchema: z.ZodObject<{
287
240
  campaignId: z.ZodString;
288
241
  username: z.ZodString;
289
242
  password: z.ZodString;
243
+ }, {
290
244
  formData: z.ZodObject<{
291
245
  coverLetter: z.ZodString;
292
246
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -321,7 +275,7 @@ export declare const freelancerBidSchema: z.ZodObject<{
321
275
  maximumBoost: number | null;
322
276
  minimumBoost: number | null;
323
277
  }>;
324
- }, "strip", z.ZodTypeAny, {
278
+ }>, "strip", z.ZodTypeAny, {
325
279
  formData: {
326
280
  coverLetter: string;
327
281
  questionAnswerPairs: {
@@ -24,11 +24,10 @@ exports.bidSchema = zod_1.z.object({
24
24
  campaignId: zod_1.z.string(),
25
25
  username: zod_1.z.string(),
26
26
  password: zod_1.z.string(),
27
- formData: exports.bidFormDataSchema,
28
27
  });
29
28
  exports.agencyBidSchema = exports.bidSchema.extend({
30
- agencyName: zod_1.z.string(),
31
- contractorName: zod_1.z.string(),
32
- specializedProfile: zod_1.z.string().nullable(),
29
+ formData: exports.agencyBidFormDataSchema,
30
+ });
31
+ exports.freelancerBidSchema = exports.bidSchema.extend({
32
+ formData: exports.freelancerBidFormDataSchema,
33
33
  });
34
- exports.freelancerBidSchema = exports.bidSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.104",
4
+ "version": "1.0.106",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",