lancer-shared 1.2.68 → 1.2.70
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
CHANGED
|
@@ -6414,98 +6414,98 @@ var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
|
|
|
6414
6414
|
|
|
6415
6415
|
const ROUTES = {
|
|
6416
6416
|
AUTH: {
|
|
6417
|
-
BASE:
|
|
6418
|
-
REGISTER:
|
|
6417
|
+
BASE: "auth",
|
|
6418
|
+
REGISTER: "auth/register",
|
|
6419
6419
|
},
|
|
6420
6420
|
SYSTEM: {
|
|
6421
|
-
BASE:
|
|
6421
|
+
BASE: "system",
|
|
6422
6422
|
PROMPTS: {
|
|
6423
|
-
BASE:
|
|
6423
|
+
BASE: "system/prompts",
|
|
6424
6424
|
},
|
|
6425
6425
|
},
|
|
6426
6426
|
EVENTS: {
|
|
6427
|
-
BASE:
|
|
6427
|
+
BASE: "events",
|
|
6428
6428
|
BY_ID: (id) => `events/${id}`,
|
|
6429
6429
|
},
|
|
6430
6430
|
JOBS: {
|
|
6431
|
-
BASE:
|
|
6431
|
+
BASE: "jobs",
|
|
6432
6432
|
BY_ID: (id) => `jobs/${id}`,
|
|
6433
6433
|
UPDATE_ACTIVITY: `jobs/update-activity`,
|
|
6434
|
-
IMPORT:
|
|
6435
|
-
FILTER_OPTIONS:
|
|
6436
|
-
TOTAL_JOBS:
|
|
6434
|
+
IMPORT: "jobs/import",
|
|
6435
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
6436
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
6437
6437
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
6438
6438
|
GET_JOBS_COUNT: "jobs/get-jobs-count",
|
|
6439
6439
|
},
|
|
6440
6440
|
USERS: {
|
|
6441
|
-
BASE:
|
|
6441
|
+
BASE: "users",
|
|
6442
6442
|
BY_ID: (id) => `users/${id}`,
|
|
6443
6443
|
ORGANIZATIONS: (id) => `users/${id}/organizations`,
|
|
6444
6444
|
},
|
|
6445
6445
|
COOKIES: {
|
|
6446
|
-
BASE:
|
|
6447
|
-
SCRAPE:
|
|
6446
|
+
BASE: "cookies",
|
|
6447
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
6448
6448
|
},
|
|
6449
6449
|
SCRAPING: {
|
|
6450
|
-
BASE:
|
|
6451
|
-
START_SCRAPING:
|
|
6452
|
-
START_WORLDWIDE_SCRAPING:
|
|
6453
|
-
START_US_SCRAPING:
|
|
6454
|
-
START_UK_SCRAPING:
|
|
6455
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
6456
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
6457
|
-
UPDATE_ACTIVITY_4H_US:
|
|
6458
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
6459
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
6460
|
-
UPDATE_ACTIVITY_24H_US:
|
|
6461
|
-
SCRAPE_FEED_WORLDWIDE:
|
|
6462
|
-
SCRAPE_FEED_UK:
|
|
6463
|
-
SCRAPE_FEED_US:
|
|
6464
|
-
SCRAPE_JOB:
|
|
6465
|
-
SCRAPE_JOB_ACTIVITY:
|
|
6466
|
-
USER_PROFILE:
|
|
6467
|
-
CHECK_LEAD_STATUS:
|
|
6450
|
+
BASE: "scraping",
|
|
6451
|
+
START_SCRAPING: "scraping/start",
|
|
6452
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
6453
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
6454
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
6455
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
6456
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
6457
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
6458
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
6459
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
6460
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
6461
|
+
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
6462
|
+
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
6463
|
+
SCRAPE_FEED_US: "scraping/feed-us",
|
|
6464
|
+
SCRAPE_JOB: "scraping/job",
|
|
6465
|
+
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
6466
|
+
USER_PROFILE: "scraping/user-profile",
|
|
6467
|
+
CHECK_LEAD_STATUS: "scraping/check-lead-status",
|
|
6468
6468
|
},
|
|
6469
6469
|
ADMIN: {
|
|
6470
|
-
BASE:
|
|
6470
|
+
BASE: "admin",
|
|
6471
6471
|
BIDDER_ACCOUNTS: {
|
|
6472
|
-
BASE:
|
|
6472
|
+
BASE: "admin/bidder-accounts",
|
|
6473
6473
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
6474
6474
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
6475
6475
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
6476
6476
|
},
|
|
6477
6477
|
SCRAPER_ACCOUNTS: {
|
|
6478
|
-
BASE:
|
|
6478
|
+
BASE: "admin/scraper-accounts",
|
|
6479
6479
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
6480
6480
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
6481
6481
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
6482
6482
|
},
|
|
6483
6483
|
PROXIES: {
|
|
6484
|
-
BASE:
|
|
6484
|
+
BASE: "admin/proxies",
|
|
6485
6485
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
6486
6486
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
6487
|
-
SYNC:
|
|
6488
|
-
AVAILABLE_REPLACEMENTS:
|
|
6489
|
-
AVAILABLE_COUNTRIES:
|
|
6487
|
+
SYNC: "admin/proxies/sync",
|
|
6488
|
+
AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements",
|
|
6489
|
+
AVAILABLE_COUNTRIES: "admin/proxies/available-countries",
|
|
6490
6490
|
},
|
|
6491
6491
|
DASHBOARD: {
|
|
6492
|
-
CAMPAIGN_STATS:
|
|
6492
|
+
CAMPAIGN_STATS: "admin/dashboard/campaign-stats",
|
|
6493
6493
|
},
|
|
6494
6494
|
ALERTS: {
|
|
6495
|
-
BASE:
|
|
6496
|
-
SEND_ALERT:
|
|
6495
|
+
BASE: "admin/alerts",
|
|
6496
|
+
SEND_ALERT: "admin/alerts/send",
|
|
6497
6497
|
},
|
|
6498
6498
|
},
|
|
6499
6499
|
BID: {
|
|
6500
|
-
BASE:
|
|
6500
|
+
BASE: "bid",
|
|
6501
6501
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
6502
6502
|
},
|
|
6503
6503
|
BIDDER_ACCOUNTS: {
|
|
6504
|
-
BASE:
|
|
6504
|
+
BASE: "bidder-accounts",
|
|
6505
6505
|
BY_ID: (id) => `bidder-accounts/${id}`,
|
|
6506
6506
|
},
|
|
6507
6507
|
ORGANIZATIONS: {
|
|
6508
|
-
BASE:
|
|
6508
|
+
BASE: "organizations",
|
|
6509
6509
|
BY_ID: (id) => `organizations/${id}`,
|
|
6510
6510
|
ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
|
|
6511
6511
|
AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
|
|
@@ -6513,7 +6513,10 @@ const ROUTES = {
|
|
|
6513
6513
|
BASE: (id) => `organizations/${id}/cover-letter`,
|
|
6514
6514
|
BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
|
|
6515
6515
|
},
|
|
6516
|
-
PROFILE:
|
|
6516
|
+
PROFILE: {
|
|
6517
|
+
BASE: (id) => `organizations/${id}/profile`,
|
|
6518
|
+
DATA: (id) => `organizations/${id}/profile/data`,
|
|
6519
|
+
},
|
|
6517
6520
|
MEMBERS: {
|
|
6518
6521
|
BASE: (id) => `organizations/${id}/members`,
|
|
6519
6522
|
BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
|
|
@@ -6553,26 +6556,26 @@ const ROUTES = {
|
|
|
6553
6556
|
USAGE_SUMMARIES: {
|
|
6554
6557
|
DAILY: {
|
|
6555
6558
|
BASE: (organizationId) => `usage-summaries/${organizationId}/daily`,
|
|
6556
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format(
|
|
6559
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format("YYYY-MM-DD")}`,
|
|
6557
6560
|
},
|
|
6558
6561
|
WEEKLY: {
|
|
6559
6562
|
BASE: (organizationId) => `usage-summaries/${organizationId}/weekly`,
|
|
6560
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format(
|
|
6563
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format("YYYY-WW")}`,
|
|
6561
6564
|
},
|
|
6562
6565
|
MONTHLY: {
|
|
6563
6566
|
BASE: (organizationId) => `usage-summaries/${organizationId}/monthly`,
|
|
6564
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format(
|
|
6567
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format("YYYY-MM")}`,
|
|
6565
6568
|
},
|
|
6566
6569
|
QUARTERLY: {
|
|
6567
6570
|
BASE: (organizationId) => `usage-summaries/${organizationId}/quarterly`,
|
|
6568
6571
|
BY_DATE: (organizationId, date) => {
|
|
6569
6572
|
const parsed = moment(date);
|
|
6570
|
-
return `usage-summaries/${organizationId}/quarterly/${parsed.format(
|
|
6573
|
+
return `usage-summaries/${organizationId}/quarterly/${parsed.format("YYYY")}-Q${parsed.quarter()}`;
|
|
6571
6574
|
},
|
|
6572
6575
|
},
|
|
6573
6576
|
YEARLY: {
|
|
6574
6577
|
BASE: (organizationId) => `usage-summaries/${organizationId}/yearly`,
|
|
6575
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format(
|
|
6578
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format("YYYY")}`,
|
|
6576
6579
|
},
|
|
6577
6580
|
},
|
|
6578
6581
|
INVOICES: {
|
|
@@ -6586,30 +6589,30 @@ const ROUTES = {
|
|
|
6586
6589
|
INVOICE_PREVIEW: (id) => `organizations/${id}/invoice-preview`,
|
|
6587
6590
|
},
|
|
6588
6591
|
TRANSACTIONS: {
|
|
6589
|
-
BASE:
|
|
6592
|
+
BASE: "transactions",
|
|
6590
6593
|
BY_ID: (id) => `transactions/${id}`,
|
|
6591
6594
|
},
|
|
6592
6595
|
AGENT: {
|
|
6593
|
-
BASE:
|
|
6594
|
-
SCRAPE_UPWORK_PROFILE:
|
|
6595
|
-
GENERATE_DEFAULT_AI_CONFIG:
|
|
6596
|
-
TEST_SUITABILITY:
|
|
6597
|
-
TEST_PROPOSAL:
|
|
6598
|
-
TEST_SYSTEM_PROMPTS:
|
|
6599
|
-
ANALYZE_LEAD:
|
|
6600
|
-
GENERATE_PROPOSAL:
|
|
6601
|
-
BID:
|
|
6596
|
+
BASE: "agent",
|
|
6597
|
+
SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile",
|
|
6598
|
+
GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config",
|
|
6599
|
+
TEST_SUITABILITY: "agent/test-suitability",
|
|
6600
|
+
TEST_PROPOSAL: "agent/test-proposal",
|
|
6601
|
+
TEST_SYSTEM_PROMPTS: "agent/test-system-prompts",
|
|
6602
|
+
ANALYZE_LEAD: "agent/analyze-lead",
|
|
6603
|
+
GENERATE_PROPOSAL: "agent/generate-proposal",
|
|
6604
|
+
BID: "agent/bid",
|
|
6602
6605
|
},
|
|
6603
6606
|
PLANS: {
|
|
6604
|
-
BASE:
|
|
6607
|
+
BASE: "plans",
|
|
6605
6608
|
BY_ID: (id) => `plans/${id}`,
|
|
6606
6609
|
},
|
|
6607
6610
|
NOTIFICATIONS: {
|
|
6608
|
-
BASE:
|
|
6609
|
-
SEND_NOTIFICATION:
|
|
6611
|
+
BASE: "notifications",
|
|
6612
|
+
SEND_NOTIFICATION: "notifications/send",
|
|
6610
6613
|
},
|
|
6611
6614
|
USAGE_EVENTS: {
|
|
6612
|
-
BASE:
|
|
6615
|
+
BASE: "usage-events",
|
|
6613
6616
|
BY_ID: (id) => `usage-events/${id}`,
|
|
6614
6617
|
},
|
|
6615
6618
|
};
|
|
@@ -6623,7 +6626,7 @@ const buildRoute = (route, params = {}) => {
|
|
|
6623
6626
|
};
|
|
6624
6627
|
// Helper function to get route without admin prefix
|
|
6625
6628
|
const getRouteWithoutAdminPrefix = (route) => {
|
|
6626
|
-
return route.replace(
|
|
6629
|
+
return route.replace("admin/", "");
|
|
6627
6630
|
};
|
|
6628
6631
|
|
|
6629
6632
|
const accountStatusOrder = [
|
|
@@ -12232,6 +12235,10 @@ const proposalCompleteEventMetadataSchema = objectType({
|
|
|
12232
12235
|
content: z.string(),
|
|
12233
12236
|
})),
|
|
12234
12237
|
});
|
|
12238
|
+
const eventLoggerPayloadSchema = unionType([
|
|
12239
|
+
logEventSchema,
|
|
12240
|
+
arrayType(logEventSchema),
|
|
12241
|
+
]);
|
|
12235
12242
|
|
|
12236
12243
|
const usageEventTypeEnum = LogEventTypeEnum.extract([
|
|
12237
12244
|
"suitabilityComplete",
|
|
@@ -13720,6 +13727,7 @@ exports.engagementTypeEnum = engagementTypeEnum;
|
|
|
13720
13727
|
exports.englishLevelEnum = englishLevelEnum;
|
|
13721
13728
|
exports.evaluateElementException = evaluateElementException;
|
|
13722
13729
|
exports.evaluateFunctionException = evaluateFunctionException;
|
|
13730
|
+
exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
|
|
13723
13731
|
exports.experienceLevelEnum = experienceLevelEnum;
|
|
13724
13732
|
exports.externalProxySchema = externalProxySchema;
|
|
13725
13733
|
exports.feedScrapeCompletedEventMetadata = feedScrapeCompletedEventMetadata;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Moment } from
|
|
1
|
+
import { Moment } from "moment";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -100,7 +100,10 @@ export declare const ROUTES: {
|
|
|
100
100
|
readonly BASE: (id: string) => string;
|
|
101
101
|
readonly BY_ID: (id: string, coverLetterId: string) => string;
|
|
102
102
|
};
|
|
103
|
-
readonly PROFILE:
|
|
103
|
+
readonly PROFILE: {
|
|
104
|
+
readonly BASE: (id: string) => string;
|
|
105
|
+
readonly DATA: (id: string) => string;
|
|
106
|
+
};
|
|
104
107
|
readonly MEMBERS: {
|
|
105
108
|
readonly BASE: (id: string) => string;
|
|
106
109
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
@@ -452,3 +452,77 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
452
452
|
};
|
|
453
453
|
}>;
|
|
454
454
|
export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
|
|
455
|
+
export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
456
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "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"]>;
|
|
457
|
+
source: z.ZodString;
|
|
458
|
+
resourceType: z.ZodDefault<z.ZodString>;
|
|
459
|
+
resourceId: z.ZodNullable<z.ZodString>;
|
|
460
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
461
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
462
|
+
campaignId: z.ZodNullable<z.ZodString>;
|
|
463
|
+
leadId: z.ZodNullable<z.ZodString>;
|
|
464
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
465
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
466
|
+
timestamp: z.ZodNumber;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "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";
|
|
469
|
+
source: string;
|
|
470
|
+
resourceType: string;
|
|
471
|
+
resourceId: string | null;
|
|
472
|
+
organizationId: string | null;
|
|
473
|
+
userId: string | null;
|
|
474
|
+
campaignId: string | null;
|
|
475
|
+
leadId: string | null;
|
|
476
|
+
reason: string | null;
|
|
477
|
+
metadata: Record<string, unknown> | null;
|
|
478
|
+
timestamp: number;
|
|
479
|
+
}, {
|
|
480
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "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";
|
|
481
|
+
source: string;
|
|
482
|
+
resourceId: string | null;
|
|
483
|
+
organizationId: string | null;
|
|
484
|
+
userId: string | null;
|
|
485
|
+
campaignId: string | null;
|
|
486
|
+
leadId: string | null;
|
|
487
|
+
reason: string | null;
|
|
488
|
+
metadata: Record<string, unknown> | null;
|
|
489
|
+
timestamp: number;
|
|
490
|
+
resourceType?: string | undefined;
|
|
491
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
492
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "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"]>;
|
|
493
|
+
source: z.ZodString;
|
|
494
|
+
resourceType: z.ZodDefault<z.ZodString>;
|
|
495
|
+
resourceId: z.ZodNullable<z.ZodString>;
|
|
496
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
497
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
498
|
+
campaignId: z.ZodNullable<z.ZodString>;
|
|
499
|
+
leadId: z.ZodNullable<z.ZodString>;
|
|
500
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
501
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
502
|
+
timestamp: z.ZodNumber;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "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";
|
|
505
|
+
source: string;
|
|
506
|
+
resourceType: string;
|
|
507
|
+
resourceId: string | null;
|
|
508
|
+
organizationId: string | null;
|
|
509
|
+
userId: string | null;
|
|
510
|
+
campaignId: string | null;
|
|
511
|
+
leadId: string | null;
|
|
512
|
+
reason: string | null;
|
|
513
|
+
metadata: Record<string, unknown> | null;
|
|
514
|
+
timestamp: number;
|
|
515
|
+
}, {
|
|
516
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "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";
|
|
517
|
+
source: string;
|
|
518
|
+
resourceId: string | null;
|
|
519
|
+
organizationId: string | null;
|
|
520
|
+
userId: string | null;
|
|
521
|
+
campaignId: string | null;
|
|
522
|
+
leadId: string | null;
|
|
523
|
+
reason: string | null;
|
|
524
|
+
metadata: Record<string, unknown> | null;
|
|
525
|
+
timestamp: number;
|
|
526
|
+
resourceType?: string | undefined;
|
|
527
|
+
}>, "many">]>;
|
|
528
|
+
export type EventLoggerPayload = z.infer<typeof eventLoggerPayloadSchema>;
|