lancer-shared 1.0.95 → 1.0.97

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.
@@ -2,6 +2,9 @@ import { z } from 'zod';
2
2
  export declare const bidSchema: z.ZodObject<{
3
3
  userId: z.ZodString;
4
4
  jobUrl: z.ZodString;
5
+ cookies: z.ZodArray<z.ZodAny, "many">;
6
+ jobId: z.ZodString;
7
+ campaignId: z.ZodString;
5
8
  formData: z.ZodObject<{
6
9
  coverLetter: z.ZodString;
7
10
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -47,8 +50,11 @@ export declare const bidSchema: z.ZodObject<{
47
50
  maximumBoost: number | null;
48
51
  minimumBoost: number | null;
49
52
  };
53
+ jobId: string;
54
+ cookies: any[];
50
55
  jobUrl: string;
51
56
  userId: string;
57
+ campaignId: string;
52
58
  }, {
53
59
  formData: {
54
60
  coverLetter: string;
@@ -60,12 +66,18 @@ export declare const bidSchema: z.ZodObject<{
60
66
  maximumBoost: number | null;
61
67
  minimumBoost: number | null;
62
68
  };
69
+ jobId: string;
70
+ cookies: any[];
63
71
  jobUrl: string;
64
72
  userId: string;
73
+ campaignId: string;
65
74
  }>;
66
75
  export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
67
76
  userId: z.ZodString;
68
77
  jobUrl: z.ZodString;
78
+ cookies: z.ZodArray<z.ZodAny, "many">;
79
+ jobId: z.ZodString;
80
+ campaignId: z.ZodString;
69
81
  formData: z.ZodObject<{
70
82
  coverLetter: z.ZodString;
71
83
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -115,8 +127,11 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
115
127
  maximumBoost: number | null;
116
128
  minimumBoost: number | null;
117
129
  };
130
+ jobId: string;
131
+ cookies: any[];
118
132
  jobUrl: string;
119
133
  userId: string;
134
+ campaignId: string;
120
135
  agencyName: string;
121
136
  contractorName: string;
122
137
  specializedProfile: string | null;
@@ -131,8 +146,11 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
131
146
  maximumBoost: number | null;
132
147
  minimumBoost: number | null;
133
148
  };
149
+ jobId: string;
150
+ cookies: any[];
134
151
  jobUrl: string;
135
152
  userId: string;
153
+ campaignId: string;
136
154
  agencyName: string;
137
155
  contractorName: string;
138
156
  specializedProfile: string | null;
@@ -140,6 +158,9 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
140
158
  export declare const freelancerBidSchema: z.ZodObject<{
141
159
  userId: z.ZodString;
142
160
  jobUrl: z.ZodString;
161
+ cookies: z.ZodArray<z.ZodAny, "many">;
162
+ jobId: z.ZodString;
163
+ campaignId: z.ZodString;
143
164
  formData: z.ZodObject<{
144
165
  coverLetter: z.ZodString;
145
166
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -185,8 +206,11 @@ export declare const freelancerBidSchema: z.ZodObject<{
185
206
  maximumBoost: number | null;
186
207
  minimumBoost: number | null;
187
208
  };
209
+ jobId: string;
210
+ cookies: any[];
188
211
  jobUrl: string;
189
212
  userId: string;
213
+ campaignId: string;
190
214
  }, {
191
215
  formData: {
192
216
  coverLetter: string;
@@ -198,6 +222,9 @@ export declare const freelancerBidSchema: z.ZodObject<{
198
222
  maximumBoost: number | null;
199
223
  minimumBoost: number | null;
200
224
  };
225
+ jobId: string;
226
+ cookies: any[];
201
227
  jobUrl: string;
202
228
  userId: string;
229
+ campaignId: string;
203
230
  }>;
@@ -6,6 +6,9 @@ const ai_1 = require("../ai");
6
6
  exports.bidSchema = zod_1.z.object({
7
7
  userId: zod_1.z.string(),
8
8
  jobUrl: zod_1.z.string(),
9
+ cookies: zod_1.z.array(zod_1.z.any()),
10
+ jobId: zod_1.z.string(),
11
+ campaignId: zod_1.z.string(),
9
12
  formData: zod_1.z.object({
10
13
  coverLetter: zod_1.z.string(),
11
14
  questionAnswerPairs: zod_1.z.array(ai_1.questionAnswerPairSchema).nullable(),
@@ -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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.95",
4
+ "version": "1.0.97",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",