lancer-shared 1.2.219 → 1.2.221

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.
@@ -6545,7 +6545,7 @@ const ROUTES = {
6545
6545
  BASE: (id) => `organizations/${id}/onboarding`,
6546
6546
  PROGRESS: (id) => `organizations/${id}/onboarding/progress`,
6547
6547
  },
6548
- AI_CONFIG: (id) => `organizations/${id}/settings/ai-config-v2`,
6548
+ AI_CONFIG: (id) => `organizations/${id}/settings/ai-config-v3`,
6549
6549
  COVER_LETTER: {
6550
6550
  BASE: (id) => `organizations/${id}/cover-letter`,
6551
6551
  BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
@@ -13048,8 +13048,7 @@ const trackUsagePayloadSchema = objectType({
13048
13048
  const questionRulesSchema = objectType({
13049
13049
  question: stringType(),
13050
13050
  answer: stringType(),
13051
- category: stringType(),
13052
- type: stringType(),
13051
+ exampleAnswer: stringType().optional(),
13053
13052
  });
13054
13053
  const aiConfigSchema = objectType({
13055
13054
  questionHandling: z.string().nullable(),
@@ -14609,6 +14608,8 @@ const LogEventTypeEnum = z.enum([
14609
14608
  'checkSuitableLeadFeedbackStatus',
14610
14609
  'biddingApproved',
14611
14610
  'acceptInvitationFailed',
14611
+ 'syncProposalsStatusCompleted',
14612
+ 'syncProposalsStatusFailed',
14612
14613
  // System/Generic Events
14613
14614
  'errorLogged',
14614
14615
  'cloudTaskRetry',
@@ -14667,6 +14668,15 @@ const biddingFailedEventMetadata = objectType({
14667
14668
  const biddingProcessingEventMetadata = objectType({
14668
14669
  jobUrl: z.string(),
14669
14670
  });
14671
+ const syncProposalsStatusCompletedEventMetadata = objectType({
14672
+ data: z.array(z.object({
14673
+ applicationUid: z.string(),
14674
+ status: z.string(),
14675
+ })),
14676
+ });
14677
+ const syncProposalsStatusFailedEventMetadata = objectType({
14678
+ error: z.any(),
14679
+ });
14670
14680
  const userAccountBiddingExceptionEventMetadata = objectType({
14671
14681
  errorType: z.enum(['insufficientConnects', 'proposalFormWarningAlert']),
14672
14682
  context: z.string().optional(),
@@ -24100,6 +24110,8 @@ exports.suitabilityCompleteEventMetadataSchema = suitabilityCompleteEventMetadat
24100
24110
  exports.suitabilityFailedEventMetadataSchema = suitabilityFailedEventMetadataSchema;
24101
24111
  exports.suitabilityPendingEventMetadataSchema = suitabilityPendingEventMetadataSchema;
24102
24112
  exports.suitabilityRatingSchema = suitabilityRatingSchema;
24113
+ exports.syncProposalsStatusCompletedEventMetadata = syncProposalsStatusCompletedEventMetadata;
24114
+ exports.syncProposalsStatusFailedEventMetadata = syncProposalsStatusFailedEventMetadata;
24103
24115
  exports.syncProposalsStatusRequestPayloadSchema = syncProposalsStatusRequestPayloadSchema;
24104
24116
  exports.systemPromptSchema = systemPromptSchema;
24105
24117
  exports.systemSchema = systemSchema;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "syncProposalsStatusCompleted", "syncProposalsStatusFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
4
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "syncProposalsStatusCompleted", "syncProposalsStatusFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
5
5
  source: z.ZodString;
6
6
  resourceType: z.ZodDefault<z.ZodString>;
7
7
  resourceId: z.ZodNullable<z.ZodString>;
@@ -13,7 +13,7 @@ export declare const logEventSchema: z.ZodObject<{
13
13
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  timestamp: z.ZodNumber;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
16
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
17
17
  source: string;
18
18
  resourceType: string;
19
19
  resourceId: string | null;
@@ -25,7 +25,7 @@ export declare const logEventSchema: z.ZodObject<{
25
25
  metadata: Record<string, unknown> | null;
26
26
  timestamp: number;
27
27
  }, {
28
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
28
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
29
29
  source: string;
30
30
  resourceId: string | null;
31
31
  organizationId: string | null;
@@ -67,6 +67,35 @@ export declare const biddingProcessingEventMetadata: z.ZodObject<{
67
67
  }, {
68
68
  jobUrl: string;
69
69
  }>;
70
+ export declare const syncProposalsStatusCompletedEventMetadata: z.ZodObject<{
71
+ data: z.ZodArray<z.ZodObject<{
72
+ applicationUid: z.ZodString;
73
+ status: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ status: string;
76
+ applicationUid: string;
77
+ }, {
78
+ status: string;
79
+ applicationUid: string;
80
+ }>, "many">;
81
+ }, "strip", z.ZodTypeAny, {
82
+ data: {
83
+ status: string;
84
+ applicationUid: string;
85
+ }[];
86
+ }, {
87
+ data: {
88
+ status: string;
89
+ applicationUid: string;
90
+ }[];
91
+ }>;
92
+ export declare const syncProposalsStatusFailedEventMetadata: z.ZodObject<{
93
+ error: z.ZodAny;
94
+ }, "strip", z.ZodTypeAny, {
95
+ error?: any;
96
+ }, {
97
+ error?: any;
98
+ }>;
70
99
  export declare const userAccountBiddingExceptionEventMetadata: z.ZodObject<{
71
100
  errorType: z.ZodEnum<["insufficientConnects", "proposalFormWarningAlert"]>;
72
101
  context: z.ZodOptional<z.ZodString>;
@@ -96,13 +125,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
96
125
  leadId: z.ZodString;
97
126
  userId: z.ZodString;
98
127
  metadata: z.ZodOptional<z.ZodObject<{
99
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>;
128
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>;
100
129
  proposalId: z.ZodNullable<z.ZodString>;
101
130
  }, "strip", z.ZodTypeAny, {
102
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won";
131
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
103
132
  proposalId: string | null;
104
133
  }, {
105
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won";
134
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
106
135
  proposalId: string | null;
107
136
  }>>;
108
137
  reason: z.ZodOptional<z.ZodString>;
@@ -113,7 +142,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
113
142
  leadId: string;
114
143
  reason?: string | undefined;
115
144
  metadata?: {
116
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won";
145
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
117
146
  proposalId: string | null;
118
147
  } | undefined;
119
148
  }, {
@@ -123,7 +152,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
123
152
  leadId: string;
124
153
  reason?: string | undefined;
125
154
  metadata?: {
126
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won";
155
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won";
127
156
  proposalId: string | null;
128
157
  } | undefined;
129
158
  }>;
@@ -139,6 +168,8 @@ export type LogEvent = z.infer<typeof logEventSchema>;
139
168
  export type BiddingCompletedEventMetadata = z.infer<typeof biddingCompletedEventMetadata>;
140
169
  export type BiddingFailedEventMetadata = z.infer<typeof biddingFailedEventMetadata>;
141
170
  export type BiddingProcessingEventMetadata = z.infer<typeof biddingProcessingEventMetadata>;
171
+ export type SyncProposalsStatusCompletedEventMetadata = z.infer<typeof syncProposalsStatusCompletedEventMetadata>;
172
+ export type SyncProposalsStatusFailedEventMetadata = z.infer<typeof syncProposalsStatusFailedEventMetadata>;
142
173
  export type BiddingRejectedWithFeedbackEventMetadata = z.infer<typeof biddingRejectedWithFeedbackEventMetadata>;
143
174
  export type LeadStatusEventMetadata = z.infer<typeof leadStatusEventMetadata>;
144
175
  export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
@@ -351,7 +382,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
351
382
  }>;
352
383
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
353
384
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
354
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
385
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "syncProposalsStatusCompleted", "syncProposalsStatusFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
355
386
  source: z.ZodString;
356
387
  resourceType: z.ZodDefault<z.ZodString>;
357
388
  resourceId: z.ZodNullable<z.ZodString>;
@@ -363,7 +394,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
363
394
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
364
395
  timestamp: z.ZodNumber;
365
396
  }, "strip", z.ZodTypeAny, {
366
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
397
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
367
398
  source: string;
368
399
  resourceType: string;
369
400
  resourceId: string | null;
@@ -375,7 +406,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
375
406
  metadata: Record<string, unknown> | null;
376
407
  timestamp: number;
377
408
  }, {
378
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
409
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
379
410
  source: string;
380
411
  resourceId: string | null;
381
412
  organizationId: string | null;
@@ -387,7 +418,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
387
418
  timestamp: number;
388
419
  resourceType?: string | undefined;
389
420
  }>, z.ZodArray<z.ZodObject<{
390
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
421
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "syncProposalsStatusCompleted", "syncProposalsStatusFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
391
422
  source: z.ZodString;
392
423
  resourceType: z.ZodDefault<z.ZodString>;
393
424
  resourceId: z.ZodNullable<z.ZodString>;
@@ -399,7 +430,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
399
430
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
400
431
  timestamp: z.ZodNumber;
401
432
  }, "strip", z.ZodTypeAny, {
402
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
433
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
403
434
  source: string;
404
435
  resourceType: string;
405
436
  resourceId: string | null;
@@ -411,7 +442,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
411
442
  metadata: Record<string, unknown> | null;
412
443
  timestamp: number;
413
444
  }, {
414
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
445
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "syncProposalsStatusCompleted" | "syncProposalsStatusFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
415
446
  source: string;
416
447
  resourceId: string | null;
417
448
  organizationId: string | null;
@@ -885,18 +885,15 @@ export declare const trackUsagePayloadSchema: z.ZodObject<{
885
885
  export declare const questionRulesSchema: z.ZodObject<{
886
886
  question: z.ZodString;
887
887
  answer: z.ZodString;
888
- category: z.ZodString;
889
- type: z.ZodString;
888
+ exampleAnswer: z.ZodOptional<z.ZodString>;
890
889
  }, "strip", z.ZodTypeAny, {
891
- type: string;
892
890
  question: string;
893
891
  answer: string;
894
- category: string;
892
+ exampleAnswer?: string | undefined;
895
893
  }, {
896
- type: string;
897
894
  question: string;
898
895
  answer: string;
899
- category: string;
896
+ exampleAnswer?: string | undefined;
900
897
  }>;
901
898
  export type QuestionRules = z.infer<typeof questionRulesSchema>;
902
899
  export declare const aiConfigSchema: z.ZodObject<{
@@ -904,38 +901,33 @@ export declare const aiConfigSchema: z.ZodObject<{
904
901
  questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
905
902
  question: z.ZodString;
906
903
  answer: z.ZodString;
907
- category: z.ZodString;
908
- type: z.ZodString;
904
+ exampleAnswer: z.ZodOptional<z.ZodString>;
909
905
  }, "strip", z.ZodTypeAny, {
910
- type: string;
911
906
  question: string;
912
907
  answer: string;
913
- category: string;
908
+ exampleAnswer?: string | undefined;
914
909
  }, {
915
- type: string;
916
910
  question: string;
917
911
  answer: string;
918
- category: string;
912
+ exampleAnswer?: string | undefined;
919
913
  }>, "many">>;
920
914
  disqualifierRules: z.ZodNullable<z.ZodString>;
921
915
  userInstructions: z.ZodNullable<z.ZodString>;
922
916
  }, "strip", z.ZodTypeAny, {
923
917
  questionHandling: string | null;
924
918
  questionRules: {
925
- type: string;
926
919
  question: string;
927
920
  answer: string;
928
- category: string;
921
+ exampleAnswer?: string | undefined;
929
922
  }[] | null;
930
923
  disqualifierRules: string | null;
931
924
  userInstructions: string | null;
932
925
  }, {
933
926
  questionHandling: string | null;
934
927
  questionRules: {
935
- type: string;
936
928
  question: string;
937
929
  answer: string;
938
- category: string;
930
+ exampleAnswer?: string | undefined;
939
931
  }[] | null;
940
932
  disqualifierRules: string | null;
941
933
  userInstructions: string | null;
@@ -959,38 +951,33 @@ export declare const organizationSettingsSchema: z.ZodObject<{
959
951
  questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
960
952
  question: z.ZodString;
961
953
  answer: z.ZodString;
962
- category: z.ZodString;
963
- type: z.ZodString;
954
+ exampleAnswer: z.ZodOptional<z.ZodString>;
964
955
  }, "strip", z.ZodTypeAny, {
965
- type: string;
966
956
  question: string;
967
957
  answer: string;
968
- category: string;
958
+ exampleAnswer?: string | undefined;
969
959
  }, {
970
- type: string;
971
960
  question: string;
972
961
  answer: string;
973
- category: string;
962
+ exampleAnswer?: string | undefined;
974
963
  }>, "many">>;
975
964
  disqualifierRules: z.ZodNullable<z.ZodString>;
976
965
  userInstructions: z.ZodNullable<z.ZodString>;
977
966
  }, "strip", z.ZodTypeAny, {
978
967
  questionHandling: string | null;
979
968
  questionRules: {
980
- type: string;
981
969
  question: string;
982
970
  answer: string;
983
- category: string;
971
+ exampleAnswer?: string | undefined;
984
972
  }[] | null;
985
973
  disqualifierRules: string | null;
986
974
  userInstructions: string | null;
987
975
  }, {
988
976
  questionHandling: string | null;
989
977
  questionRules: {
990
- type: string;
991
978
  question: string;
992
979
  answer: string;
993
- category: string;
980
+ exampleAnswer?: string | undefined;
994
981
  }[] | null;
995
982
  disqualifierRules: string | null;
996
983
  userInstructions: string | null;
@@ -999,10 +986,9 @@ export declare const organizationSettingsSchema: z.ZodObject<{
999
986
  aiConfig: {
1000
987
  questionHandling: string | null;
1001
988
  questionRules: {
1002
- type: string;
1003
989
  question: string;
1004
990
  answer: string;
1005
- category: string;
991
+ exampleAnswer?: string | undefined;
1006
992
  }[] | null;
1007
993
  disqualifierRules: string | null;
1008
994
  userInstructions: string | null;
@@ -1011,10 +997,9 @@ export declare const organizationSettingsSchema: z.ZodObject<{
1011
997
  aiConfig: {
1012
998
  questionHandling: string | null;
1013
999
  questionRules: {
1014
- type: string;
1015
1000
  question: string;
1016
1001
  answer: string;
1017
- category: string;
1002
+ exampleAnswer?: string | undefined;
1018
1003
  }[] | null;
1019
1004
  disqualifierRules: string | null;
1020
1005
  userInstructions: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.219",
3
+ "version": "1.2.221",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",