lancer-shared 1.0.96 → 1.0.98
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.
|
@@ -1,8 +1,44 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const bidFormDataSchema: z.ZodObject<{
|
|
3
|
+
coverLetter: z.ZodString;
|
|
4
|
+
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
answer: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
answer: string;
|
|
9
|
+
question: string;
|
|
10
|
+
}, {
|
|
11
|
+
answer: string;
|
|
12
|
+
question: string;
|
|
13
|
+
}>, "many">>;
|
|
14
|
+
boostingEnabled: z.ZodBoolean;
|
|
15
|
+
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
coverLetter: string;
|
|
19
|
+
questionAnswerPairs: {
|
|
20
|
+
answer: string;
|
|
21
|
+
question: string;
|
|
22
|
+
}[] | null;
|
|
23
|
+
boostingEnabled: boolean;
|
|
24
|
+
maximumBoost: number | null;
|
|
25
|
+
minimumBoost: number | null;
|
|
26
|
+
}, {
|
|
27
|
+
coverLetter: string;
|
|
28
|
+
questionAnswerPairs: {
|
|
29
|
+
answer: string;
|
|
30
|
+
question: string;
|
|
31
|
+
}[] | null;
|
|
32
|
+
boostingEnabled: boolean;
|
|
33
|
+
maximumBoost: number | null;
|
|
34
|
+
minimumBoost: number | null;
|
|
35
|
+
}>;
|
|
2
36
|
export declare const bidSchema: z.ZodObject<{
|
|
3
37
|
userId: z.ZodString;
|
|
4
38
|
jobUrl: z.ZodString;
|
|
5
39
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
40
|
+
jobId: z.ZodString;
|
|
41
|
+
campaignId: z.ZodString;
|
|
6
42
|
formData: z.ZodObject<{
|
|
7
43
|
coverLetter: z.ZodString;
|
|
8
44
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -48,9 +84,11 @@ export declare const bidSchema: z.ZodObject<{
|
|
|
48
84
|
maximumBoost: number | null;
|
|
49
85
|
minimumBoost: number | null;
|
|
50
86
|
};
|
|
87
|
+
jobId: string;
|
|
51
88
|
cookies: any[];
|
|
52
89
|
jobUrl: string;
|
|
53
90
|
userId: string;
|
|
91
|
+
campaignId: string;
|
|
54
92
|
}, {
|
|
55
93
|
formData: {
|
|
56
94
|
coverLetter: string;
|
|
@@ -62,14 +100,18 @@ export declare const bidSchema: z.ZodObject<{
|
|
|
62
100
|
maximumBoost: number | null;
|
|
63
101
|
minimumBoost: number | null;
|
|
64
102
|
};
|
|
103
|
+
jobId: string;
|
|
65
104
|
cookies: any[];
|
|
66
105
|
jobUrl: string;
|
|
67
106
|
userId: string;
|
|
107
|
+
campaignId: string;
|
|
68
108
|
}>;
|
|
69
109
|
export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
70
110
|
userId: z.ZodString;
|
|
71
111
|
jobUrl: z.ZodString;
|
|
72
112
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
113
|
+
jobId: z.ZodString;
|
|
114
|
+
campaignId: z.ZodString;
|
|
73
115
|
formData: z.ZodObject<{
|
|
74
116
|
coverLetter: z.ZodString;
|
|
75
117
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -119,9 +161,11 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
119
161
|
maximumBoost: number | null;
|
|
120
162
|
minimumBoost: number | null;
|
|
121
163
|
};
|
|
164
|
+
jobId: string;
|
|
122
165
|
cookies: any[];
|
|
123
166
|
jobUrl: string;
|
|
124
167
|
userId: string;
|
|
168
|
+
campaignId: string;
|
|
125
169
|
agencyName: string;
|
|
126
170
|
contractorName: string;
|
|
127
171
|
specializedProfile: string | null;
|
|
@@ -136,9 +180,11 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
136
180
|
maximumBoost: number | null;
|
|
137
181
|
minimumBoost: number | null;
|
|
138
182
|
};
|
|
183
|
+
jobId: string;
|
|
139
184
|
cookies: any[];
|
|
140
185
|
jobUrl: string;
|
|
141
186
|
userId: string;
|
|
187
|
+
campaignId: string;
|
|
142
188
|
agencyName: string;
|
|
143
189
|
contractorName: string;
|
|
144
190
|
specializedProfile: string | null;
|
|
@@ -147,6 +193,8 @@ export declare const freelancerBidSchema: z.ZodObject<{
|
|
|
147
193
|
userId: z.ZodString;
|
|
148
194
|
jobUrl: z.ZodString;
|
|
149
195
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
196
|
+
jobId: z.ZodString;
|
|
197
|
+
campaignId: z.ZodString;
|
|
150
198
|
formData: z.ZodObject<{
|
|
151
199
|
coverLetter: z.ZodString;
|
|
152
200
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -192,9 +240,11 @@ export declare const freelancerBidSchema: z.ZodObject<{
|
|
|
192
240
|
maximumBoost: number | null;
|
|
193
241
|
minimumBoost: number | null;
|
|
194
242
|
};
|
|
243
|
+
jobId: string;
|
|
195
244
|
cookies: any[];
|
|
196
245
|
jobUrl: string;
|
|
197
246
|
userId: string;
|
|
247
|
+
campaignId: string;
|
|
198
248
|
}, {
|
|
199
249
|
formData: {
|
|
200
250
|
coverLetter: string;
|
|
@@ -206,7 +256,9 @@ export declare const freelancerBidSchema: z.ZodObject<{
|
|
|
206
256
|
maximumBoost: number | null;
|
|
207
257
|
minimumBoost: number | null;
|
|
208
258
|
};
|
|
259
|
+
jobId: string;
|
|
209
260
|
cookies: any[];
|
|
210
261
|
jobUrl: string;
|
|
211
262
|
userId: string;
|
|
263
|
+
campaignId: string;
|
|
212
264
|
}>;
|
package/dist/schemas/bid/bid.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.freelancerBidSchema = exports.agencyBidSchema = exports.bidSchema = void 0;
|
|
3
|
+
exports.freelancerBidSchema = exports.agencyBidSchema = exports.bidSchema = exports.bidFormDataSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ai_1 = require("../ai");
|
|
6
|
+
exports.bidFormDataSchema = zod_1.z.object({
|
|
7
|
+
coverLetter: zod_1.z.string(),
|
|
8
|
+
questionAnswerPairs: zod_1.z.array(ai_1.questionAnswerPairSchema).nullable(),
|
|
9
|
+
boostingEnabled: zod_1.z.boolean(),
|
|
10
|
+
minimumBoost: zod_1.z.number().nullable(),
|
|
11
|
+
maximumBoost: zod_1.z.number().nullable(),
|
|
12
|
+
});
|
|
6
13
|
exports.bidSchema = zod_1.z.object({
|
|
7
14
|
userId: zod_1.z.string(),
|
|
8
15
|
jobUrl: zod_1.z.string(),
|
|
9
16
|
cookies: zod_1.z.array(zod_1.z.any()),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
boostingEnabled: zod_1.z.boolean(),
|
|
14
|
-
minimumBoost: zod_1.z.number().nullable(),
|
|
15
|
-
maximumBoost: zod_1.z.number().nullable(),
|
|
16
|
-
}),
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
campaignId: zod_1.z.string(),
|
|
19
|
+
formData: exports.bidFormDataSchema,
|
|
17
20
|
});
|
|
18
21
|
exports.agencyBidSchema = exports.bidSchema.extend({
|
|
19
22
|
agencyName: zod_1.z.string(),
|
|
@@ -18,10 +18,10 @@ export declare const logEventSchema: z.ZodObject<{
|
|
|
18
18
|
metadata: Record<string, unknown> | null;
|
|
19
19
|
timestamp: number;
|
|
20
20
|
userId: string | null;
|
|
21
|
+
campaignId: string | null;
|
|
21
22
|
resourceType: string;
|
|
22
23
|
resourceId: string | null;
|
|
23
24
|
leadId: string | null;
|
|
24
|
-
campaignId: string | null;
|
|
25
25
|
}, {
|
|
26
26
|
type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
27
27
|
reason: string | null;
|
|
@@ -29,8 +29,8 @@ export declare const logEventSchema: z.ZodObject<{
|
|
|
29
29
|
metadata: Record<string, unknown> | null;
|
|
30
30
|
timestamp: number;
|
|
31
31
|
userId: string | null;
|
|
32
|
+
campaignId: string | null;
|
|
32
33
|
resourceId: string | null;
|
|
33
34
|
leadId: string | null;
|
|
34
|
-
campaignId: string | null;
|
|
35
35
|
resourceType?: string | undefined;
|
|
36
36
|
}>;
|
package/dist/types/bid/bid.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { agencyBidSchema, bidSchema, freelancerBidSchema } from '../../schemas/bid';
|
|
2
|
+
import { agencyBidSchema, bidFormDataSchema, bidSchema, freelancerBidSchema } from '../../schemas/bid';
|
|
3
|
+
export interface BidFormData extends z.infer<typeof bidFormDataSchema> {
|
|
4
|
+
}
|
|
3
5
|
export interface Bid extends z.infer<typeof bidSchema> {
|
|
6
|
+
formData: BidFormData;
|
|
4
7
|
}
|
|
5
8
|
export interface AgencyBid extends z.infer<typeof agencyBidSchema> {
|
|
6
9
|
}
|