lancer-shared 1.2.15 → 1.2.17
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.
- package/dist/bundle.cjs.js +538 -374
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/routes.d.ts +16 -4
- package/dist/schemas/agent/index.d.ts +20 -21
- package/dist/schemas/campaign/campaign.d.ts +9 -9
- package/dist/schemas/index.d.ts +6 -4
- package/dist/schemas/invoice/index.d.ts +253 -0
- package/dist/schemas/logger/log-event.d.ts +4 -4
- package/dist/schemas/organization/billing.d.ts +51 -0
- package/dist/schemas/organization/index.d.ts +234 -121
- package/dist/schemas/organization/subscription.d.ts +132 -15
- package/dist/schemas/plan/index.d.ts +120 -0
- package/dist/schemas/scraper/index.d.ts +3 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +166 -49
- package/dist/schemas/scraper/scrape-result.d.ts +0 -123
- package/dist/schemas/scraper/upwork-profile.d.ts +109 -0
- package/dist/schemas/time-filter/index.d.ts +1 -1
- package/dist/schemas/transaction/index.d.ts +82 -13
- package/dist/schemas/user/index.d.ts +0 -75
- package/dist/utils/shared.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const creditDeductionAmountMap: Record<
|
|
1
|
+
import { TrackUsageEventType } from "../schemas";
|
|
2
|
+
export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
|
|
@@ -86,7 +86,7 @@ export declare const ROUTES: {
|
|
|
86
86
|
readonly BY_ID: (id: string) => string;
|
|
87
87
|
readonly ONBOARDING: (id: string) => string;
|
|
88
88
|
readonly AI_CONFIG: (id: string) => string;
|
|
89
|
-
readonly
|
|
89
|
+
readonly PROFILE: (id: string) => string;
|
|
90
90
|
readonly MEMBERS: {
|
|
91
91
|
readonly BASE: (id: string) => string;
|
|
92
92
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
@@ -95,7 +95,8 @@ export declare const ROUTES: {
|
|
|
95
95
|
readonly SETTINGS: (id: string) => string;
|
|
96
96
|
readonly CHARGES: (id: string) => string;
|
|
97
97
|
readonly PAYMENT_METHODS: (id: string) => string;
|
|
98
|
-
readonly
|
|
98
|
+
readonly TRACK_USAGE: (id: string) => string;
|
|
99
|
+
readonly SUBSCRIBE: (id: string) => string;
|
|
99
100
|
readonly CAMPAIGNS: {
|
|
100
101
|
readonly BASE: (organizationId: string) => string;
|
|
101
102
|
readonly BY_ID: (organizationId: string, campaignId: string) => string;
|
|
@@ -151,6 +152,14 @@ export declare const ROUTES: {
|
|
|
151
152
|
readonly BY_DATE: (organizationId: string, date: Date | Moment | string) => string;
|
|
152
153
|
};
|
|
153
154
|
};
|
|
155
|
+
readonly INVOICES: {
|
|
156
|
+
readonly BASE: (organizationId: string) => string;
|
|
157
|
+
readonly BY_ID: (organizationId: string, invoiceId: string) => string;
|
|
158
|
+
};
|
|
159
|
+
readonly USERS: {
|
|
160
|
+
readonly BASE: (id: string) => string;
|
|
161
|
+
readonly BY_ID: (organizationId: string, userId: string) => string;
|
|
162
|
+
};
|
|
154
163
|
};
|
|
155
164
|
readonly TRANSACTIONS: {
|
|
156
165
|
readonly BASE: "transactions";
|
|
@@ -158,8 +167,7 @@ export declare const ROUTES: {
|
|
|
158
167
|
};
|
|
159
168
|
readonly AGENT: {
|
|
160
169
|
readonly BASE: "agent";
|
|
161
|
-
readonly
|
|
162
|
-
readonly GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config";
|
|
170
|
+
readonly SCRAPE_UPWORK_PROFIL: "agent/scrape-upwork-profile";
|
|
163
171
|
readonly TEST_AI_CONFIG: "agent/test-ai-config";
|
|
164
172
|
readonly TEST_SYSTEM_PROMPTS: "agent/test-system-prompts";
|
|
165
173
|
};
|
|
@@ -167,6 +175,10 @@ export declare const ROUTES: {
|
|
|
167
175
|
readonly BASE: "bidders";
|
|
168
176
|
readonly BY_ID: (id: string) => string;
|
|
169
177
|
};
|
|
178
|
+
readonly PLANS: {
|
|
179
|
+
readonly BASE: "plans";
|
|
180
|
+
readonly BY_ID: (id: string) => string;
|
|
181
|
+
};
|
|
170
182
|
};
|
|
171
183
|
export type RouteParams = {
|
|
172
184
|
id?: string;
|
|
@@ -323,6 +323,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
323
323
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
324
324
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
325
325
|
proposal: z.ZodNullable<z.ZodString>;
|
|
326
|
+
proposalId: z.ZodOptional<z.ZodString>;
|
|
326
327
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
327
328
|
question: z.ZodString;
|
|
328
329
|
answer: z.ZodString;
|
|
@@ -334,7 +335,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
334
335
|
answer: string;
|
|
335
336
|
}>, "many">>;
|
|
336
337
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
337
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "
|
|
338
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
|
|
338
339
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
339
340
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
340
341
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -440,7 +441,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
440
441
|
answer: string;
|
|
441
442
|
}[] | null;
|
|
442
443
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
443
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
444
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
444
445
|
biddingAmount: number | null;
|
|
445
446
|
boosted: boolean | null;
|
|
446
447
|
boostingAmount: number | null;
|
|
@@ -466,6 +467,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
466
467
|
invitesSent: number;
|
|
467
468
|
unansweredInvites: number;
|
|
468
469
|
} | null | undefined;
|
|
470
|
+
proposalId?: string | undefined;
|
|
469
471
|
}, {
|
|
470
472
|
id: string | null;
|
|
471
473
|
uid: string | null;
|
|
@@ -566,7 +568,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
566
568
|
answer: string;
|
|
567
569
|
}[] | null;
|
|
568
570
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
569
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
571
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
570
572
|
biddingAmount: number | null;
|
|
571
573
|
boosted: boolean | null;
|
|
572
574
|
boostingAmount: number | null;
|
|
@@ -592,6 +594,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
592
594
|
invitesSent: number;
|
|
593
595
|
unansweredInvites: number;
|
|
594
596
|
} | null | undefined;
|
|
597
|
+
proposalId?: string | undefined;
|
|
595
598
|
}>;
|
|
596
599
|
}, "strip", z.ZodTypeAny, {
|
|
597
600
|
organizationId: string;
|
|
@@ -702,7 +705,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
702
705
|
answer: string;
|
|
703
706
|
}[] | null;
|
|
704
707
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
705
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
708
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
706
709
|
biddingAmount: number | null;
|
|
707
710
|
boosted: boolean | null;
|
|
708
711
|
boostingAmount: number | null;
|
|
@@ -728,6 +731,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
728
731
|
invitesSent: number;
|
|
729
732
|
unansweredInvites: number;
|
|
730
733
|
} | null | undefined;
|
|
734
|
+
proposalId?: string | undefined;
|
|
731
735
|
};
|
|
732
736
|
userId?: string | undefined;
|
|
733
737
|
campaignId?: string | undefined;
|
|
@@ -840,7 +844,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
840
844
|
answer: string;
|
|
841
845
|
}[] | null;
|
|
842
846
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
843
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
847
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
844
848
|
biddingAmount: number | null;
|
|
845
849
|
boosted: boolean | null;
|
|
846
850
|
boostingAmount: number | null;
|
|
@@ -866,6 +870,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
866
870
|
invitesSent: number;
|
|
867
871
|
unansweredInvites: number;
|
|
868
872
|
} | null | undefined;
|
|
873
|
+
proposalId?: string | undefined;
|
|
869
874
|
};
|
|
870
875
|
userId?: string | undefined;
|
|
871
876
|
campaignId?: string | undefined;
|
|
@@ -1206,6 +1211,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1206
1211
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
1207
1212
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
1208
1213
|
proposal: z.ZodNullable<z.ZodString>;
|
|
1214
|
+
proposalId: z.ZodOptional<z.ZodString>;
|
|
1209
1215
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1210
1216
|
question: z.ZodString;
|
|
1211
1217
|
answer: z.ZodString;
|
|
@@ -1217,7 +1223,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1217
1223
|
answer: string;
|
|
1218
1224
|
}>, "many">>;
|
|
1219
1225
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1220
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "
|
|
1226
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
|
|
1221
1227
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
1222
1228
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
1223
1229
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1323,7 +1329,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1323
1329
|
answer: string;
|
|
1324
1330
|
}[] | null;
|
|
1325
1331
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1326
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
1332
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1327
1333
|
biddingAmount: number | null;
|
|
1328
1334
|
boosted: boolean | null;
|
|
1329
1335
|
boostingAmount: number | null;
|
|
@@ -1349,6 +1355,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1349
1355
|
invitesSent: number;
|
|
1350
1356
|
unansweredInvites: number;
|
|
1351
1357
|
} | null | undefined;
|
|
1358
|
+
proposalId?: string | undefined;
|
|
1352
1359
|
}, {
|
|
1353
1360
|
id: string | null;
|
|
1354
1361
|
uid: string | null;
|
|
@@ -1449,7 +1456,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1449
1456
|
answer: string;
|
|
1450
1457
|
}[] | null;
|
|
1451
1458
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1452
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
1459
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1453
1460
|
biddingAmount: number | null;
|
|
1454
1461
|
boosted: boolean | null;
|
|
1455
1462
|
boostingAmount: number | null;
|
|
@@ -1475,6 +1482,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1475
1482
|
invitesSent: number;
|
|
1476
1483
|
unansweredInvites: number;
|
|
1477
1484
|
} | null | undefined;
|
|
1485
|
+
proposalId?: string | undefined;
|
|
1478
1486
|
}>;
|
|
1479
1487
|
}, "strip", z.ZodTypeAny, {
|
|
1480
1488
|
organizationId: string;
|
|
@@ -1584,7 +1592,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1584
1592
|
answer: string;
|
|
1585
1593
|
}[] | null;
|
|
1586
1594
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1587
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
1595
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1588
1596
|
biddingAmount: number | null;
|
|
1589
1597
|
boosted: boolean | null;
|
|
1590
1598
|
boostingAmount: number | null;
|
|
@@ -1610,6 +1618,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1610
1618
|
invitesSent: number;
|
|
1611
1619
|
unansweredInvites: number;
|
|
1612
1620
|
} | null | undefined;
|
|
1621
|
+
proposalId?: string | undefined;
|
|
1613
1622
|
};
|
|
1614
1623
|
modelSuitability: string;
|
|
1615
1624
|
modelProposal: string;
|
|
@@ -1726,7 +1735,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1726
1735
|
answer: string;
|
|
1727
1736
|
}[] | null;
|
|
1728
1737
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1729
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "
|
|
1738
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1730
1739
|
biddingAmount: number | null;
|
|
1731
1740
|
boosted: boolean | null;
|
|
1732
1741
|
boostingAmount: number | null;
|
|
@@ -1752,6 +1761,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1752
1761
|
invitesSent: number;
|
|
1753
1762
|
unansweredInvites: number;
|
|
1754
1763
|
} | null | undefined;
|
|
1764
|
+
proposalId?: string | undefined;
|
|
1755
1765
|
};
|
|
1756
1766
|
modelSuitability: string;
|
|
1757
1767
|
modelProposal: string;
|
|
@@ -1762,16 +1772,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1762
1772
|
};
|
|
1763
1773
|
}>;
|
|
1764
1774
|
export type TestSystemPromptsRequest = z.infer<typeof testSystemPromptsRequestSchema>;
|
|
1765
|
-
export declare const generateKnowledgeBaseRequestSchema: z.ZodObject<{
|
|
1766
|
-
profileUrl: z.ZodString;
|
|
1767
|
-
organizationId: z.ZodString;
|
|
1768
|
-
}, "strip", z.ZodTypeAny, {
|
|
1769
|
-
organizationId: string;
|
|
1770
|
-
profileUrl: string;
|
|
1771
|
-
}, {
|
|
1772
|
-
organizationId: string;
|
|
1773
|
-
profileUrl: string;
|
|
1774
|
-
}>;
|
|
1775
1775
|
export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
1776
1776
|
rating: z.ZodNumber;
|
|
1777
1777
|
reason: z.ZodString;
|
|
@@ -2019,6 +2019,5 @@ export declare const testSystemPromptsResponseSchema: z.ZodObject<{
|
|
|
2019
2019
|
export type TestSystemPromptsResponse = z.infer<typeof testSystemPromptsResponseSchema>;
|
|
2020
2020
|
export type AgentTaskResponse = z.infer<typeof agentTaskResponseSchema>;
|
|
2021
2021
|
export type AgentTaskRequest = z.infer<typeof agentTaskRequestSchema>;
|
|
2022
|
-
export type GenerateKnowledgeBaseRequest = z.infer<typeof generateKnowledgeBaseRequestSchema>;
|
|
2023
2022
|
export type SuitabilityRating = z.infer<typeof suitabilityRatingSchema>;
|
|
2024
2023
|
export type Proposal = z.infer<typeof proposalSchema>;
|
|
@@ -245,7 +245,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
245
245
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
246
246
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
247
247
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
248
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "
|
|
248
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, z.ZodNumber>>;
|
|
249
249
|
expenses: z.ZodObject<{
|
|
250
250
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
251
251
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -366,7 +366,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
366
366
|
monthlyBudget: number | null;
|
|
367
367
|
suitabilityThreshold: number | null;
|
|
368
368
|
boostingThreshold: number | null;
|
|
369
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
369
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
370
370
|
expenses: {
|
|
371
371
|
biddingAmount: number;
|
|
372
372
|
boostingAmount: number;
|
|
@@ -444,7 +444,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
444
444
|
automatedBidding: boolean | null;
|
|
445
445
|
webhookUrl: string | null;
|
|
446
446
|
monthlyBudget: number | null;
|
|
447
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
447
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
448
448
|
expenses: {
|
|
449
449
|
biddingAmount?: number | undefined;
|
|
450
450
|
boostingAmount?: number | undefined;
|
|
@@ -709,7 +709,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
709
709
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
710
710
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
711
711
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
712
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "
|
|
712
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, z.ZodNumber>>;
|
|
713
713
|
expenses: z.ZodObject<{
|
|
714
714
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
715
715
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -827,7 +827,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
827
827
|
monthlyBudget: number | null;
|
|
828
828
|
suitabilityThreshold: number | null;
|
|
829
829
|
boostingThreshold: number | null;
|
|
830
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
830
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
831
831
|
expenses: {
|
|
832
832
|
biddingAmount: number;
|
|
833
833
|
boostingAmount: number;
|
|
@@ -902,7 +902,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
902
902
|
automatedBidding: boolean | null;
|
|
903
903
|
webhookUrl: string | null;
|
|
904
904
|
monthlyBudget: number | null;
|
|
905
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
905
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
906
906
|
expenses: {
|
|
907
907
|
biddingAmount?: number | undefined;
|
|
908
908
|
boostingAmount?: number | undefined;
|
|
@@ -1167,7 +1167,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1167
1167
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
1168
1168
|
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1169
1169
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1170
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "
|
|
1170
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, z.ZodNumber>>;
|
|
1171
1171
|
expenses: z.ZodObject<{
|
|
1172
1172
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
1173
1173
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1286,7 +1286,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1286
1286
|
monthlyBudget: number | null;
|
|
1287
1287
|
suitabilityThreshold: number | null;
|
|
1288
1288
|
boostingThreshold: number | null;
|
|
1289
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
1289
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
1290
1290
|
expenses: {
|
|
1291
1291
|
biddingAmount: number;
|
|
1292
1292
|
boostingAmount: number;
|
|
@@ -1362,7 +1362,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1362
1362
|
automatedBidding: boolean | null;
|
|
1363
1363
|
webhookUrl: string | null;
|
|
1364
1364
|
monthlyBudget: number | null;
|
|
1365
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "
|
|
1365
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
1366
1366
|
expenses: {
|
|
1367
1367
|
biddingAmount?: number | undefined;
|
|
1368
1368
|
boostingAmount?: number | undefined;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export * from "./account";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./agent";
|
|
3
3
|
export * from "./bid";
|
|
4
4
|
export * from "./campaign";
|
|
5
|
+
export * from "./invoice";
|
|
5
6
|
export * from "./job";
|
|
6
7
|
export * from "./lead";
|
|
7
8
|
export * from "./logger";
|
|
8
9
|
export * from "./organization";
|
|
10
|
+
export * from "./plan";
|
|
9
11
|
export * from "./proxy";
|
|
10
12
|
export * from "./saved-search";
|
|
11
13
|
export * from "./scraper";
|
|
12
14
|
export * from "./shared";
|
|
15
|
+
export * from "./system";
|
|
13
16
|
export * from "./time-filter";
|
|
14
|
-
export * from "./user";
|
|
15
|
-
export * from "./usage";
|
|
16
17
|
export * from "./transaction";
|
|
17
|
-
export * from "./
|
|
18
|
+
export * from "./usage";
|
|
19
|
+
export * from "./user";
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { infer, z } from "zod";
|
|
2
|
+
export declare const invoiceStripeMetadataLineSchema: z.ZodObject<{
|
|
3
|
+
description: z.ZodString;
|
|
4
|
+
amount: z.ZodNumber;
|
|
5
|
+
quantity: z.ZodNumber;
|
|
6
|
+
currency: z.ZodString;
|
|
7
|
+
subscription_item_id: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
description: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
quantity: number;
|
|
12
|
+
currency: string;
|
|
13
|
+
subscription_item_id: string;
|
|
14
|
+
}, {
|
|
15
|
+
description: string;
|
|
16
|
+
amount: number;
|
|
17
|
+
quantity: number;
|
|
18
|
+
currency: string;
|
|
19
|
+
subscription_item_id: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const invoiceStripeMetadataSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
subscription_id: z.ZodString;
|
|
24
|
+
hosted_invoice_url: z.ZodString;
|
|
25
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
26
|
+
description: z.ZodString;
|
|
27
|
+
amount: z.ZodNumber;
|
|
28
|
+
quantity: z.ZodNumber;
|
|
29
|
+
currency: z.ZodString;
|
|
30
|
+
subscription_item_id: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
description: string;
|
|
33
|
+
amount: number;
|
|
34
|
+
quantity: number;
|
|
35
|
+
currency: string;
|
|
36
|
+
subscription_item_id: string;
|
|
37
|
+
}, {
|
|
38
|
+
description: string;
|
|
39
|
+
amount: number;
|
|
40
|
+
quantity: number;
|
|
41
|
+
currency: string;
|
|
42
|
+
subscription_item_id: string;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
amount_paid: z.ZodNumber;
|
|
45
|
+
amount_due: z.ZodNumber;
|
|
46
|
+
amount_remaining: z.ZodNumber;
|
|
47
|
+
attempt_count: z.ZodNumber;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
id: string;
|
|
50
|
+
subscription_id: string;
|
|
51
|
+
hosted_invoice_url: string;
|
|
52
|
+
lines: {
|
|
53
|
+
description: string;
|
|
54
|
+
amount: number;
|
|
55
|
+
quantity: number;
|
|
56
|
+
currency: string;
|
|
57
|
+
subscription_item_id: string;
|
|
58
|
+
}[];
|
|
59
|
+
amount_paid: number;
|
|
60
|
+
amount_due: number;
|
|
61
|
+
amount_remaining: number;
|
|
62
|
+
attempt_count: number;
|
|
63
|
+
}, {
|
|
64
|
+
id: string;
|
|
65
|
+
subscription_id: string;
|
|
66
|
+
hosted_invoice_url: string;
|
|
67
|
+
lines: {
|
|
68
|
+
description: string;
|
|
69
|
+
amount: number;
|
|
70
|
+
quantity: number;
|
|
71
|
+
currency: string;
|
|
72
|
+
subscription_item_id: string;
|
|
73
|
+
}[];
|
|
74
|
+
amount_paid: number;
|
|
75
|
+
amount_due: number;
|
|
76
|
+
amount_remaining: number;
|
|
77
|
+
attempt_count: number;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const invoiceLineItemSchema: z.ZodObject<{
|
|
80
|
+
description: z.ZodString;
|
|
81
|
+
total: z.ZodNumber;
|
|
82
|
+
quantity: z.ZodNumber;
|
|
83
|
+
currency: z.ZodString;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
description: string;
|
|
86
|
+
quantity: number;
|
|
87
|
+
currency: string;
|
|
88
|
+
total: number;
|
|
89
|
+
}, {
|
|
90
|
+
description: string;
|
|
91
|
+
quantity: number;
|
|
92
|
+
currency: string;
|
|
93
|
+
total: number;
|
|
94
|
+
}>;
|
|
95
|
+
export declare const invoiceStatusEnum: z.ZodEnum<["open", "paid", "past_due", "payment_failed"]>;
|
|
96
|
+
export declare const invoiceSchema: z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
status: z.ZodEnum<["open", "paid", "past_due", "payment_failed"]>;
|
|
99
|
+
subtotal: z.ZodNumber;
|
|
100
|
+
total: z.ZodNumber;
|
|
101
|
+
amountPaid: z.ZodNumber;
|
|
102
|
+
amountDue: z.ZodNumber;
|
|
103
|
+
amountRemaining: z.ZodNumber;
|
|
104
|
+
currency: z.ZodString;
|
|
105
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
106
|
+
description: z.ZodString;
|
|
107
|
+
total: z.ZodNumber;
|
|
108
|
+
quantity: z.ZodNumber;
|
|
109
|
+
currency: z.ZodString;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
description: string;
|
|
112
|
+
quantity: number;
|
|
113
|
+
currency: string;
|
|
114
|
+
total: number;
|
|
115
|
+
}, {
|
|
116
|
+
description: string;
|
|
117
|
+
quantity: number;
|
|
118
|
+
currency: string;
|
|
119
|
+
total: number;
|
|
120
|
+
}>, "many">;
|
|
121
|
+
stripe: z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
subscription_id: z.ZodString;
|
|
124
|
+
hosted_invoice_url: z.ZodString;
|
|
125
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
126
|
+
description: z.ZodString;
|
|
127
|
+
amount: z.ZodNumber;
|
|
128
|
+
quantity: z.ZodNumber;
|
|
129
|
+
currency: z.ZodString;
|
|
130
|
+
subscription_item_id: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
description: string;
|
|
133
|
+
amount: number;
|
|
134
|
+
quantity: number;
|
|
135
|
+
currency: string;
|
|
136
|
+
subscription_item_id: string;
|
|
137
|
+
}, {
|
|
138
|
+
description: string;
|
|
139
|
+
amount: number;
|
|
140
|
+
quantity: number;
|
|
141
|
+
currency: string;
|
|
142
|
+
subscription_item_id: string;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
amount_paid: z.ZodNumber;
|
|
145
|
+
amount_due: z.ZodNumber;
|
|
146
|
+
amount_remaining: z.ZodNumber;
|
|
147
|
+
attempt_count: z.ZodNumber;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
id: string;
|
|
150
|
+
subscription_id: string;
|
|
151
|
+
hosted_invoice_url: string;
|
|
152
|
+
lines: {
|
|
153
|
+
description: string;
|
|
154
|
+
amount: number;
|
|
155
|
+
quantity: number;
|
|
156
|
+
currency: string;
|
|
157
|
+
subscription_item_id: string;
|
|
158
|
+
}[];
|
|
159
|
+
amount_paid: number;
|
|
160
|
+
amount_due: number;
|
|
161
|
+
amount_remaining: number;
|
|
162
|
+
attempt_count: number;
|
|
163
|
+
}, {
|
|
164
|
+
id: string;
|
|
165
|
+
subscription_id: string;
|
|
166
|
+
hosted_invoice_url: string;
|
|
167
|
+
lines: {
|
|
168
|
+
description: string;
|
|
169
|
+
amount: number;
|
|
170
|
+
quantity: number;
|
|
171
|
+
currency: string;
|
|
172
|
+
subscription_item_id: string;
|
|
173
|
+
}[];
|
|
174
|
+
amount_paid: number;
|
|
175
|
+
amount_due: number;
|
|
176
|
+
amount_remaining: number;
|
|
177
|
+
attempt_count: number;
|
|
178
|
+
}>;
|
|
179
|
+
createdAt: z.ZodNumber;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
currency: string;
|
|
182
|
+
status: "open" | "paid" | "past_due" | "payment_failed";
|
|
183
|
+
id: string;
|
|
184
|
+
total: number;
|
|
185
|
+
subtotal: number;
|
|
186
|
+
amountPaid: number;
|
|
187
|
+
amountDue: number;
|
|
188
|
+
amountRemaining: number;
|
|
189
|
+
lineItems: {
|
|
190
|
+
description: string;
|
|
191
|
+
quantity: number;
|
|
192
|
+
currency: string;
|
|
193
|
+
total: number;
|
|
194
|
+
}[];
|
|
195
|
+
stripe: {
|
|
196
|
+
id: string;
|
|
197
|
+
subscription_id: string;
|
|
198
|
+
hosted_invoice_url: string;
|
|
199
|
+
lines: {
|
|
200
|
+
description: string;
|
|
201
|
+
amount: number;
|
|
202
|
+
quantity: number;
|
|
203
|
+
currency: string;
|
|
204
|
+
subscription_item_id: string;
|
|
205
|
+
}[];
|
|
206
|
+
amount_paid: number;
|
|
207
|
+
amount_due: number;
|
|
208
|
+
amount_remaining: number;
|
|
209
|
+
attempt_count: number;
|
|
210
|
+
};
|
|
211
|
+
createdAt: number;
|
|
212
|
+
}, {
|
|
213
|
+
currency: string;
|
|
214
|
+
status: "open" | "paid" | "past_due" | "payment_failed";
|
|
215
|
+
id: string;
|
|
216
|
+
total: number;
|
|
217
|
+
subtotal: number;
|
|
218
|
+
amountPaid: number;
|
|
219
|
+
amountDue: number;
|
|
220
|
+
amountRemaining: number;
|
|
221
|
+
lineItems: {
|
|
222
|
+
description: string;
|
|
223
|
+
quantity: number;
|
|
224
|
+
currency: string;
|
|
225
|
+
total: number;
|
|
226
|
+
}[];
|
|
227
|
+
stripe: {
|
|
228
|
+
id: string;
|
|
229
|
+
subscription_id: string;
|
|
230
|
+
hosted_invoice_url: string;
|
|
231
|
+
lines: {
|
|
232
|
+
description: string;
|
|
233
|
+
amount: number;
|
|
234
|
+
quantity: number;
|
|
235
|
+
currency: string;
|
|
236
|
+
subscription_item_id: string;
|
|
237
|
+
}[];
|
|
238
|
+
amount_paid: number;
|
|
239
|
+
amount_due: number;
|
|
240
|
+
amount_remaining: number;
|
|
241
|
+
attempt_count: number;
|
|
242
|
+
};
|
|
243
|
+
createdAt: number;
|
|
244
|
+
}>;
|
|
245
|
+
export type InvoiceStatus = z.infer<typeof invoiceStatusEnum>;
|
|
246
|
+
export interface InvoiceStripeMetadataLine extends infer<typeof invoiceStripeMetadataLineSchema> {
|
|
247
|
+
}
|
|
248
|
+
export interface InvoiceStripeMetadata extends infer<typeof invoiceStripeMetadataSchema> {
|
|
249
|
+
}
|
|
250
|
+
export interface InvoiceLineItem extends infer<typeof invoiceLineItemSchema> {
|
|
251
|
+
}
|
|
252
|
+
export interface Invoice extends infer<typeof invoiceSchema> {
|
|
253
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "
|
|
2
|
+
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "modelFailed"]>;
|
|
3
3
|
export declare const logEventSchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "
|
|
4
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "modelFailed"]>;
|
|
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "
|
|
16
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "modelFailed";
|
|
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "
|
|
28
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "modelFailed";
|
|
29
29
|
source: string;
|
|
30
30
|
resourceId: string | null;
|
|
31
31
|
organizationId: string | null;
|