lancer-shared 1.2.35 → 1.2.36
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 +16 -16
- package/dist/index.d.ts +3 -3
- package/dist/schemas/agent/index.d.ts +10 -20
- package/dist/schemas/campaign/campaign.d.ts +2 -2
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/logger/log-event.d.ts +5 -5
- package/dist/schemas/organization/cover-letter.d.ts +21 -17
- package/dist/schemas/organization/index.d.ts +4 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +10 -15
- package/dist/schemas/shared.d.ts +0 -20
- package/package.json +1 -1
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/constants/collections.d.ts +0 -13
- package/dist/constants/collections.js +0 -16
- package/dist/constants/common-questions.js +0 -60
- package/dist/constants/index.js +0 -40
- package/dist/constants/job-filter-options.js +0 -268
- package/dist/constants/job-status.js +0 -26
- package/dist/constants/mappings/countryMapping.js +0 -122
- package/dist/constants/mappings/regionMapping.js +0 -242
- package/dist/constants/organization.d.ts +0 -2
- package/dist/constants/routes.js +0 -108
- package/dist/constants/upwork-accounts.js +0 -21
- package/dist/index.js +0 -20
- package/dist/schemas/account/account-status.js +0 -11
- package/dist/schemas/account/bidder-account.js +0 -37
- package/dist/schemas/account/index.js +0 -19
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/account/scraper-account.js +0 -37
- package/dist/schemas/ai/ai-config.d.ts +0 -36
- package/dist/schemas/ai/ai-config.js +0 -12
- package/dist/schemas/ai/index.d.ts +0 -3
- package/dist/schemas/ai/index.js +0 -19
- package/dist/schemas/ai/proposal.d.ts +0 -82
- package/dist/schemas/ai/proposal.js +0 -16
- package/dist/schemas/ai/suitability.d.ts +0 -37
- package/dist/schemas/ai/suitability.js +0 -17
- package/dist/schemas/bid/bid-result.js +0 -15
- package/dist/schemas/bid/bid.js +0 -36
- package/dist/schemas/bid/index.js +0 -18
- package/dist/schemas/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
- package/dist/schemas/campaign/campaign-analytics.js +0 -41
- package/dist/schemas/campaign/campaign-expenses.js +0 -9
- package/dist/schemas/campaign/campaign-insights.js +0 -31
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
- package/dist/schemas/campaign/campaign-integrations.js +0 -16
- package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
- package/dist/schemas/campaign/campaign-job-count.js +0 -6
- package/dist/schemas/campaign/campaign.js +0 -44
- package/dist/schemas/campaign/index.js +0 -23
- package/dist/schemas/chat-message/chat-message.d.ts +0 -31
- package/dist/schemas/chat-message/chat-message.js +0 -13
- package/dist/schemas/chat-message/index.d.ts +0 -1
- package/dist/schemas/chat-message/index.js +0 -17
- package/dist/schemas/config/agency-config.d.ts +0 -17
- package/dist/schemas/config/agency-config.js +0 -10
- package/dist/schemas/config/index.d.ts +0 -1
- package/dist/schemas/config/index.js +0 -17
- package/dist/schemas/index.js +0 -32
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.d.ts +0 -335
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -602
- package/dist/schemas/job/pipeline-job.js +0 -42
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/job-filters/index.d.ts +0 -1
- package/dist/schemas/job-filters/index.js +0 -17
- package/dist/schemas/job-filters/job-filters.d.ts +0 -241
- package/dist/schemas/job-filters/job-filters.js +0 -87
- package/dist/schemas/lead/index.js +0 -19
- package/dist/schemas/lead/lead-note.d.ts +0 -83
- package/dist/schemas/lead/lead-note.js +0 -30
- package/dist/schemas/lead/lead-status.js +0 -26
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/lead/nuxt.d.ts +0 -1664
- package/dist/schemas/logger/index.js +0 -17
- package/dist/schemas/logger/log-event.js +0 -66
- package/dist/schemas/organization/index.js +0 -17
- package/dist/schemas/organization/organization.d.ts +0 -70
- package/dist/schemas/organization/organization.js +0 -19
- package/dist/schemas/proxy/index.js +0 -17
- package/dist/schemas/proxy/proxy.js +0 -21
- package/dist/schemas/saved-search/index.js +0 -12
- package/dist/schemas/scraper/index.js +0 -18
- package/dist/schemas/scraper/scrape-payload.js +0 -16
- package/dist/schemas/scraper/scrape-result.js +0 -23
- package/dist/schemas/shared.js +0 -16
- package/dist/schemas/time-filter/index.js +0 -9
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
- package/dist/schemas/user/index.js +0 -55
- package/dist/types/account/account-status.d.ts +0 -3
- package/dist/types/account/account-status.js +0 -2
- package/dist/types/account/bidder-account.d.ts +0 -7
- package/dist/types/account/bidder-account.js +0 -2
- package/dist/types/account/index.d.ts +0 -3
- package/dist/types/account/index.js +0 -19
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/account/scraper-account.d.ts +0 -5
- package/dist/types/account/scraper-account.js +0 -2
- package/dist/types/ai/ai-config.d.ts +0 -6
- package/dist/types/ai/ai-config.js +0 -2
- package/dist/types/ai/index.d.ts +0 -3
- package/dist/types/ai/index.js +0 -19
- package/dist/types/ai/proposal.d.ts +0 -10
- package/dist/types/ai/proposal.js +0 -2
- package/dist/types/ai/suitability.d.ts +0 -6
- package/dist/types/ai/suitability.js +0 -2
- package/dist/types/bid/bid-result.d.ts +0 -5
- package/dist/types/bid/bid-result.js +0 -2
- package/dist/types/bid/bid.d.ts +0 -9
- package/dist/types/bid/bid.js +0 -2
- package/dist/types/bid/index.d.ts +0 -2
- package/dist/types/bid/index.js +0 -18
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/campaign/campaign-analytics.d.ts +0 -7
- package/dist/types/campaign/campaign-analytics.js +0 -2
- package/dist/types/campaign/campaign-expenses.d.ts +0 -3
- package/dist/types/campaign/campaign-expenses.js +0 -2
- package/dist/types/campaign/campaign-insights.js +0 -2
- package/dist/types/campaign/campaign-integrations.d.ts +0 -6
- package/dist/types/campaign/campaign-integrations.js +0 -2
- package/dist/types/campaign/campaign-job-count.d.ts +0 -4
- package/dist/types/campaign/campaign-job-count.js +0 -2
- package/dist/types/campaign/campaign.js +0 -2
- package/dist/types/campaign/index.js +0 -22
- package/dist/types/chat-message/chat-message.d.ts +0 -4
- package/dist/types/chat-message/chat-message.js +0 -2
- package/dist/types/chat-message/index.d.ts +0 -1
- package/dist/types/chat-message/index.js +0 -17
- package/dist/types/config/agency-config.d.ts +0 -4
- package/dist/types/config/agency-config.js +0 -2
- package/dist/types/config/index.d.ts +0 -1
- package/dist/types/config/index.js +0 -17
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.js +0 -29
- package/dist/types/job/index.d.ts +0 -48
- package/dist/types/job/index.js +0 -19
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-note.d.ts +0 -10
- package/dist/types/job/job-note.js +0 -2
- package/dist/types/job/job-status.d.ts +0 -5
- package/dist/types/job/job-status.js +0 -12
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/job/nuxt.d.ts +0 -4
- package/dist/types/job-filters/index.d.ts +0 -1
- package/dist/types/job-filters/index.js +0 -17
- package/dist/types/job-filters/job-filters.d.ts +0 -4
- package/dist/types/job-filters/job-filters.js +0 -2
- package/dist/types/logger/index.d.ts +0 -1
- package/dist/types/logger/index.js +0 -17
- package/dist/types/logger/log-event.js +0 -2
- package/dist/types/saved-search/index.d.ts +0 -6
- package/dist/types/saved-search/index.js +0 -2
- package/dist/types/scraper/index.d.ts +0 -2
- package/dist/types/scraper/index.js +0 -18
- package/dist/types/scraper/scrape-payload.d.ts +0 -10
- package/dist/types/scraper/scrape-payload.js +0 -2
- package/dist/types/scraper/scrape-result.d.ts +0 -8
- package/dist/types/scraper/scrape-result.js +0 -2
- package/dist/types/shared.d.ts +0 -8
- package/dist/types/time-filter/index.d.ts +0 -3
- package/dist/types/time-filter/index.js +0 -2
- package/dist/types/transaction/index.d.ts +0 -4
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
- package/dist/types/usage/index.d.ts +0 -6
- package/dist/types/user/index.d.ts +0 -15
- package/dist/types/user/index.js +0 -2
- package/dist/utils/index.js +0 -17
- package/dist/utils/try-catch.js +0 -25
package/dist/bundle.cjs.js
CHANGED
|
@@ -11447,6 +11447,9 @@ const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFo
|
|
|
11447
11447
|
const booleanSchema = z
|
|
11448
11448
|
.union([z.boolean(), z.literal("true"), z.literal("false")])
|
|
11449
11449
|
.transform((value) => value === true || value === "true");
|
|
11450
|
+
const dateSchema = (params = {}) => coerce.date({
|
|
11451
|
+
...params,
|
|
11452
|
+
});
|
|
11450
11453
|
const passwordSchema = stringType()
|
|
11451
11454
|
.min(8, "Password must be at least 8 characters long.")
|
|
11452
11455
|
.max(255, "Password must be at most 255 characters long.")
|
|
@@ -11459,14 +11462,6 @@ const regionSchema = z.union([
|
|
|
11459
11462
|
z.literal("UKOnly"),
|
|
11460
11463
|
z.literal("Worldwide"),
|
|
11461
11464
|
]);
|
|
11462
|
-
z.object({
|
|
11463
|
-
id: z.string(),
|
|
11464
|
-
name: z.string(),
|
|
11465
|
-
});
|
|
11466
|
-
z.object({
|
|
11467
|
-
id: z.string(),
|
|
11468
|
-
name: z.string(),
|
|
11469
|
-
});
|
|
11470
11465
|
|
|
11471
11466
|
const segmentationDataSchema = objectType({
|
|
11472
11467
|
customValue: stringType().nullable(),
|
|
@@ -12292,16 +12287,17 @@ const onboardingProgressSchema = z.object({
|
|
|
12292
12287
|
automationEnabled: z.boolean(),
|
|
12293
12288
|
});
|
|
12294
12289
|
|
|
12295
|
-
const
|
|
12290
|
+
const coverLetterTemplateSchema = z.object({
|
|
12296
12291
|
id: z.string(),
|
|
12297
12292
|
name: z.string(),
|
|
12298
|
-
|
|
12299
|
-
|
|
12293
|
+
description: z.string().nullable(),
|
|
12294
|
+
template: z.string(),
|
|
12295
|
+
instructions: z.string(),
|
|
12300
12296
|
});
|
|
12301
|
-
const
|
|
12297
|
+
const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
|
|
12302
12298
|
name: true,
|
|
12303
|
-
|
|
12304
|
-
|
|
12299
|
+
template: true,
|
|
12300
|
+
instructions: true,
|
|
12305
12301
|
});
|
|
12306
12302
|
|
|
12307
12303
|
const organizationTypeSchema = z.enum(["agency", "freelancer"]);
|
|
@@ -13664,6 +13660,7 @@ exports.bidderAccountProviderDisplayMap = bidderAccountProviderDisplayMap;
|
|
|
13664
13660
|
exports.bidderAccountSchema = bidderAccountSchema;
|
|
13665
13661
|
exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
|
|
13666
13662
|
exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
|
|
13663
|
+
exports.booleanSchema = booleanSchema;
|
|
13667
13664
|
exports.buildRoute = buildRoute;
|
|
13668
13665
|
exports.campaignAIMetricsSchema = campaignAIMetricsSchema;
|
|
13669
13666
|
exports.campaignActivityCreateSchema = campaignActivityCreateSchema;
|
|
@@ -13691,13 +13688,14 @@ exports.clientSizeEnum = clientSizeEnum;
|
|
|
13691
13688
|
exports.cloudflareProtectionFailure = cloudflareProtectionFailure;
|
|
13692
13689
|
exports.commonQuestions = commonQuestions;
|
|
13693
13690
|
exports.countryMapping = countryMapping;
|
|
13694
|
-
exports.
|
|
13691
|
+
exports.coverLetterTemplateSchema = coverLetterTemplateSchema;
|
|
13695
13692
|
exports.createBidderAccountSchema = createBidderAccountSchema;
|
|
13696
13693
|
exports.createCampaignSchema = createCampaignSchema;
|
|
13697
|
-
exports.
|
|
13694
|
+
exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
|
|
13698
13695
|
exports.createOrganizationSchema = createOrganizationSchema;
|
|
13699
13696
|
exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
13700
13697
|
exports.dailyUsageSchema = dailyUsageSchema;
|
|
13698
|
+
exports.dateSchema = dateSchema;
|
|
13701
13699
|
exports.deleteMultiloginProfileException = deleteMultiloginProfileException;
|
|
13702
13700
|
exports.dropdownOptionNotPresentException = dropdownOptionNotPresentException;
|
|
13703
13701
|
exports.elementNotClickableException = elementNotClickableException;
|
|
@@ -13779,6 +13777,7 @@ exports.organizationSettingsSchema = organizationSettingsSchema;
|
|
|
13779
13777
|
exports.organizationTierEnum = organizationTierEnum;
|
|
13780
13778
|
exports.organizationTypeSchema = organizationTypeSchema;
|
|
13781
13779
|
exports.parseConnectsException = parseConnectsException;
|
|
13780
|
+
exports.passwordSchema = passwordSchema;
|
|
13782
13781
|
exports.paymentTypeEnum = paymentTypeEnum;
|
|
13783
13782
|
exports.periodUsageSchema = periodUsageSchema;
|
|
13784
13783
|
exports.planFeatureSchema = planFeatureSchema;
|
|
@@ -13802,6 +13801,7 @@ exports.questionPairNotMatchingException = questionPairNotMatchingException;
|
|
|
13802
13801
|
exports.questionRulesSchema = questionRulesSchema;
|
|
13803
13802
|
exports.regionEnum = regionEnum;
|
|
13804
13803
|
exports.regionMapping = regionMapping;
|
|
13804
|
+
exports.regionSchema = regionSchema;
|
|
13805
13805
|
exports.registerSchema = registerSchema;
|
|
13806
13806
|
exports.requiredEarningsEnum = requiredEarningsEnum;
|
|
13807
13807
|
exports.requiredJSSEnum = requiredJSSEnum;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./schemas";
|
|
3
|
+
export * from "./utils";
|
|
@@ -318,13 +318,12 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
318
318
|
answer: string;
|
|
319
319
|
}>, "many">>;
|
|
320
320
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
321
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
|
|
321
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
|
|
322
322
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
323
323
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
324
324
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
325
325
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
326
326
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
327
|
-
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
328
327
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
329
328
|
id: string | null;
|
|
330
329
|
uid: string | null;
|
|
@@ -425,7 +424,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
425
424
|
answer: string;
|
|
426
425
|
}[] | null;
|
|
427
426
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
428
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
427
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
429
428
|
biddingAmount: number | null;
|
|
430
429
|
boosted: boolean | null;
|
|
431
430
|
boostingAmount: number | null;
|
|
@@ -452,7 +451,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
452
451
|
unansweredInvites: number;
|
|
453
452
|
} | null | undefined;
|
|
454
453
|
proposalId?: string | undefined;
|
|
455
|
-
wonAmount?: number | undefined;
|
|
456
454
|
}, {
|
|
457
455
|
id: string | null;
|
|
458
456
|
uid: string | null;
|
|
@@ -553,7 +551,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
553
551
|
answer: string;
|
|
554
552
|
}[] | null;
|
|
555
553
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
556
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
554
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
557
555
|
biddingAmount: number | null;
|
|
558
556
|
boosted: boolean | null;
|
|
559
557
|
boostingAmount: number | null;
|
|
@@ -580,7 +578,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
580
578
|
unansweredInvites: number;
|
|
581
579
|
} | null | undefined;
|
|
582
580
|
proposalId?: string | undefined;
|
|
583
|
-
wonAmount?: number | undefined;
|
|
584
581
|
}>;
|
|
585
582
|
}, "strip", z.ZodTypeAny, {
|
|
586
583
|
userId: string;
|
|
@@ -686,7 +683,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
686
683
|
answer: string;
|
|
687
684
|
}[] | null;
|
|
688
685
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
689
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
686
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
690
687
|
biddingAmount: number | null;
|
|
691
688
|
boosted: boolean | null;
|
|
692
689
|
boostingAmount: number | null;
|
|
@@ -713,7 +710,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
713
710
|
unansweredInvites: number;
|
|
714
711
|
} | null | undefined;
|
|
715
712
|
proposalId?: string | undefined;
|
|
716
|
-
wonAmount?: number | undefined;
|
|
717
713
|
};
|
|
718
714
|
}, {
|
|
719
715
|
userId: string;
|
|
@@ -819,7 +815,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
819
815
|
answer: string;
|
|
820
816
|
}[] | null;
|
|
821
817
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
822
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
818
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
823
819
|
biddingAmount: number | null;
|
|
824
820
|
boosted: boolean | null;
|
|
825
821
|
boostingAmount: number | null;
|
|
@@ -846,7 +842,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
846
842
|
unansweredInvites: number;
|
|
847
843
|
} | null | undefined;
|
|
848
844
|
proposalId?: string | undefined;
|
|
849
|
-
wonAmount?: number | undefined;
|
|
850
845
|
};
|
|
851
846
|
}>;
|
|
852
847
|
export type AgentTaskRequest = z.infer<typeof agentTaskRequestSchema>;
|
|
@@ -1209,13 +1204,12 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1209
1204
|
answer: string;
|
|
1210
1205
|
}>, "many">>;
|
|
1211
1206
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1212
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
|
|
1207
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
|
|
1213
1208
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
1214
1209
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
1215
1210
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
1216
1211
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
1217
1212
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
1218
|
-
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
1219
1213
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
1220
1214
|
id: string | null;
|
|
1221
1215
|
uid: string | null;
|
|
@@ -1316,7 +1310,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1316
1310
|
answer: string;
|
|
1317
1311
|
}[] | null;
|
|
1318
1312
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1319
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1313
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1320
1314
|
biddingAmount: number | null;
|
|
1321
1315
|
boosted: boolean | null;
|
|
1322
1316
|
boostingAmount: number | null;
|
|
@@ -1343,7 +1337,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1343
1337
|
unansweredInvites: number;
|
|
1344
1338
|
} | null | undefined;
|
|
1345
1339
|
proposalId?: string | undefined;
|
|
1346
|
-
wonAmount?: number | undefined;
|
|
1347
1340
|
}, {
|
|
1348
1341
|
id: string | null;
|
|
1349
1342
|
uid: string | null;
|
|
@@ -1444,7 +1437,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1444
1437
|
answer: string;
|
|
1445
1438
|
}[] | null;
|
|
1446
1439
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1447
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1440
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1448
1441
|
biddingAmount: number | null;
|
|
1449
1442
|
boosted: boolean | null;
|
|
1450
1443
|
boostingAmount: number | null;
|
|
@@ -1471,7 +1464,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1471
1464
|
unansweredInvites: number;
|
|
1472
1465
|
} | null | undefined;
|
|
1473
1466
|
proposalId?: string | undefined;
|
|
1474
|
-
wonAmount?: number | undefined;
|
|
1475
1467
|
}>;
|
|
1476
1468
|
}, "strip", z.ZodTypeAny, {
|
|
1477
1469
|
organizationId: string;
|
|
@@ -1575,7 +1567,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1575
1567
|
answer: string;
|
|
1576
1568
|
}[] | null;
|
|
1577
1569
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1578
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1570
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1579
1571
|
biddingAmount: number | null;
|
|
1580
1572
|
boosted: boolean | null;
|
|
1581
1573
|
boostingAmount: number | null;
|
|
@@ -1602,7 +1594,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1602
1594
|
unansweredInvites: number;
|
|
1603
1595
|
} | null | undefined;
|
|
1604
1596
|
proposalId?: string | undefined;
|
|
1605
|
-
wonAmount?: number | undefined;
|
|
1606
1597
|
};
|
|
1607
1598
|
modelSuitability: string;
|
|
1608
1599
|
modelProposal: string;
|
|
@@ -1720,7 +1711,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1720
1711
|
answer: string;
|
|
1721
1712
|
}[] | null;
|
|
1722
1713
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1723
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1714
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1724
1715
|
biddingAmount: number | null;
|
|
1725
1716
|
boosted: boolean | null;
|
|
1726
1717
|
boostingAmount: number | null;
|
|
@@ -1747,7 +1738,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1747
1738
|
unansweredInvites: number;
|
|
1748
1739
|
} | null | undefined;
|
|
1749
1740
|
proposalId?: string | undefined;
|
|
1750
|
-
wonAmount?: number | undefined;
|
|
1751
1741
|
};
|
|
1752
1742
|
modelSuitability: string;
|
|
1753
1743
|
modelProposal: string;
|
|
@@ -2,7 +2,7 @@ import { infer, z } from "zod";
|
|
|
2
2
|
import { JobFilters } from "../job";
|
|
3
3
|
import { CampaignExpenses } from "./campaign-expenses";
|
|
4
4
|
import { CampaignNotificationWebhooks } from "./campaign-notifications";
|
|
5
|
-
import {
|
|
5
|
+
import { CoverLetterTemplate } from "../organization";
|
|
6
6
|
export declare const bidConfigSchema: z.ZodObject<{
|
|
7
7
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
8
8
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -1327,7 +1327,7 @@ export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
|
1327
1327
|
expenses: CampaignExpenses;
|
|
1328
1328
|
notificationWebhooks: CampaignNotificationWebhooks;
|
|
1329
1329
|
bidConfig: BidConfig | null;
|
|
1330
|
-
coverLetterTemplate:
|
|
1330
|
+
coverLetterTemplate: CoverLetterTemplate | null;
|
|
1331
1331
|
}
|
|
1332
1332
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|
|
1333
1333
|
export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -290,13 +290,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
290
290
|
leadId: z.ZodString;
|
|
291
291
|
userId: z.ZodString;
|
|
292
292
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
293
|
-
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
|
|
293
|
+
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>;
|
|
294
294
|
proposalId: z.ZodNullable<z.ZodString>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
|
-
status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
|
|
296
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
|
|
297
297
|
proposalId: string | null;
|
|
298
298
|
}, {
|
|
299
|
-
status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
|
|
299
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
|
|
300
300
|
proposalId: string | null;
|
|
301
301
|
}>>;
|
|
302
302
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -307,7 +307,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
307
307
|
leadId: string;
|
|
308
308
|
reason?: string | undefined;
|
|
309
309
|
metadata?: {
|
|
310
|
-
status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
|
|
310
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
|
|
311
311
|
proposalId: string | null;
|
|
312
312
|
} | undefined;
|
|
313
313
|
}, {
|
|
@@ -317,7 +317,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
317
317
|
leadId: string;
|
|
318
318
|
reason?: string | undefined;
|
|
319
319
|
metadata?: {
|
|
320
|
-
status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
|
|
320
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
|
|
321
321
|
proposalId: string | null;
|
|
322
322
|
} | undefined;
|
|
323
323
|
}>;
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const coverLetterTemplateSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
description: z.ZodNullable<z.ZodString>;
|
|
6
|
+
template: z.ZodString;
|
|
7
|
+
instructions: z.ZodString;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
id: string;
|
|
9
10
|
name: string;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
description: string | null;
|
|
12
|
+
template: string;
|
|
13
|
+
instructions: string;
|
|
12
14
|
}, {
|
|
13
15
|
id: string;
|
|
14
16
|
name: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
description: string | null;
|
|
18
|
+
template: string;
|
|
19
|
+
instructions: string;
|
|
17
20
|
}>;
|
|
18
|
-
export declare const
|
|
21
|
+
export declare const createCoverLetterTemplateSchema: z.ZodObject<Pick<{
|
|
19
22
|
id: z.ZodString;
|
|
20
23
|
name: z.ZodString;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
description: z.ZodNullable<z.ZodString>;
|
|
25
|
+
template: z.ZodString;
|
|
26
|
+
instructions: z.ZodString;
|
|
27
|
+
}, "name" | "template" | "instructions">, "strip", z.ZodTypeAny, {
|
|
24
28
|
name: string;
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
template: string;
|
|
30
|
+
instructions: string;
|
|
27
31
|
}, {
|
|
28
32
|
name: string;
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
template: string;
|
|
34
|
+
instructions: string;
|
|
31
35
|
}>;
|
|
32
|
-
export type
|
|
33
|
-
export type
|
|
36
|
+
export type CoverLetterTemplate = z.infer<typeof coverLetterTemplateSchema>;
|
|
37
|
+
export type CreateCoverLetterTemplate = z.infer<typeof createCoverLetterTemplateSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { infer, z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { OnboardingProgress } from "./onboarding";
|
|
3
|
+
import { CoverLetterTemplate } from "./cover-letter";
|
|
3
4
|
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
4
5
|
export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
|
|
5
6
|
export declare const limitsSchema: z.ZodObject<{
|
|
@@ -673,9 +674,10 @@ export declare const subscribePayloadSchema: z.ZodObject<{
|
|
|
673
674
|
toltReferral?: string | undefined;
|
|
674
675
|
}>;
|
|
675
676
|
export interface Organization extends infer<typeof organizationSchema> {
|
|
676
|
-
coverLetterTemplates:
|
|
677
|
+
coverLetterTemplates: CoverLetterTemplate[] | null;
|
|
677
678
|
settings: OrganizationSettings | null;
|
|
678
679
|
profile: OrganizationProfile | null;
|
|
680
|
+
onboarding: OnboardingProgress | null;
|
|
679
681
|
}
|
|
680
682
|
export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
|
|
681
683
|
}
|
|
@@ -346,7 +346,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
346
346
|
monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
347
347
|
suitabilityThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
348
348
|
boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
349
|
-
leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, import("zod").ZodNumber>>;
|
|
349
|
+
leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, import("zod").ZodNumber>>;
|
|
350
350
|
expenses: import("zod").ZodObject<{
|
|
351
351
|
biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
352
352
|
boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -445,7 +445,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
445
445
|
monthlyBudget: number | null;
|
|
446
446
|
suitabilityThreshold: number | null;
|
|
447
447
|
boostingThreshold: number | null;
|
|
448
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
448
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
449
449
|
expenses: {
|
|
450
450
|
biddingAmount: number;
|
|
451
451
|
boostingAmount: number;
|
|
@@ -521,7 +521,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
521
521
|
automatedBidding: boolean | null;
|
|
522
522
|
webhookUrl: string | null;
|
|
523
523
|
monthlyBudget: number | null;
|
|
524
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
524
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
525
525
|
expenses: {
|
|
526
526
|
biddingAmount?: number | undefined;
|
|
527
527
|
boostingAmount?: number | undefined;
|
|
@@ -1110,13 +1110,12 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1110
1110
|
answer: string;
|
|
1111
1111
|
}>, "many">>;
|
|
1112
1112
|
agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1113
|
-
leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
|
|
1113
|
+
leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
|
|
1114
1114
|
biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1115
1115
|
boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
1116
1116
|
boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1117
1117
|
biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
1118
1118
|
scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1119
|
-
wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1120
1119
|
}>, "processed">, "strip", import("zod").ZodTypeAny, {
|
|
1121
1120
|
uid: string | null;
|
|
1122
1121
|
title: string | null;
|
|
@@ -1220,7 +1219,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1220
1219
|
answer: string;
|
|
1221
1220
|
}[] | null;
|
|
1222
1221
|
agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1223
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1222
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1224
1223
|
biddingTaskScheduled: boolean | null;
|
|
1225
1224
|
scheduledBiddingTime: number | null;
|
|
1226
1225
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -1244,7 +1243,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1244
1243
|
unansweredInvites: number;
|
|
1245
1244
|
} | null | undefined;
|
|
1246
1245
|
proposalId?: string | undefined;
|
|
1247
|
-
wonAmount?: number | undefined;
|
|
1248
1246
|
}, {
|
|
1249
1247
|
uid: string | null;
|
|
1250
1248
|
title: string | null;
|
|
@@ -1348,7 +1346,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1348
1346
|
answer: string;
|
|
1349
1347
|
}[] | null;
|
|
1350
1348
|
agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1351
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1349
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1352
1350
|
biddingTaskScheduled: boolean | null;
|
|
1353
1351
|
scheduledBiddingTime: number | null;
|
|
1354
1352
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -1372,7 +1370,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1372
1370
|
unansweredInvites: number;
|
|
1373
1371
|
} | null | undefined;
|
|
1374
1372
|
proposalId?: string | undefined;
|
|
1375
|
-
wonAmount?: number | undefined;
|
|
1376
1373
|
}>;
|
|
1377
1374
|
bidder: import("zod").ZodObject<{
|
|
1378
1375
|
id: import("zod").ZodString;
|
|
@@ -1518,7 +1515,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1518
1515
|
monthlyBudget: number | null;
|
|
1519
1516
|
suitabilityThreshold: number | null;
|
|
1520
1517
|
boostingThreshold: number | null;
|
|
1521
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
1518
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
1522
1519
|
expenses: {
|
|
1523
1520
|
biddingAmount: number;
|
|
1524
1521
|
boostingAmount: number;
|
|
@@ -1682,7 +1679,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1682
1679
|
answer: string;
|
|
1683
1680
|
}[] | null;
|
|
1684
1681
|
agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1685
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1682
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1686
1683
|
biddingTaskScheduled: boolean | null;
|
|
1687
1684
|
scheduledBiddingTime: number | null;
|
|
1688
1685
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -1706,7 +1703,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1706
1703
|
unansweredInvites: number;
|
|
1707
1704
|
} | null | undefined;
|
|
1708
1705
|
proposalId?: string | undefined;
|
|
1709
|
-
wonAmount?: number | undefined;
|
|
1710
1706
|
};
|
|
1711
1707
|
bidder: {
|
|
1712
1708
|
id: string;
|
|
@@ -1795,7 +1791,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1795
1791
|
automatedBidding: boolean | null;
|
|
1796
1792
|
webhookUrl: string | null;
|
|
1797
1793
|
monthlyBudget: number | null;
|
|
1798
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
1794
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
|
|
1799
1795
|
expenses: {
|
|
1800
1796
|
biddingAmount?: number | undefined;
|
|
1801
1797
|
boostingAmount?: number | undefined;
|
|
@@ -1964,7 +1960,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1964
1960
|
answer: string;
|
|
1965
1961
|
}[] | null;
|
|
1966
1962
|
agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1967
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
|
|
1963
|
+
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
|
|
1968
1964
|
biddingTaskScheduled: boolean | null;
|
|
1969
1965
|
scheduledBiddingTime: number | null;
|
|
1970
1966
|
activity?: Partial<Record<"4h" | "24h", {
|
|
@@ -1988,7 +1984,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1988
1984
|
unansweredInvites: number;
|
|
1989
1985
|
} | null | undefined;
|
|
1990
1986
|
proposalId?: string | undefined;
|
|
1991
|
-
wonAmount?: number | undefined;
|
|
1992
1987
|
};
|
|
1993
1988
|
bidder: {
|
|
1994
1989
|
id: string;
|
package/dist/schemas/shared.d.ts
CHANGED
|
@@ -12,23 +12,3 @@ export type RequiredKeys<T, K extends keyof T> = Partial<Omit<T, K>> & Required<
|
|
|
12
12
|
export type DeepPartial<T> = T extends object ? {
|
|
13
13
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
14
14
|
} : T;
|
|
15
|
-
export declare const organizationSchema: z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
}, {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const campaignSchema: z.ZodObject<{
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
name: z.ZodString;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
}>;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
-
exports.accountStatusOrder = [
|
|
5
|
-
'verification_required',
|
|
6
|
-
'shadow_banned',
|
|
7
|
-
'healthy',
|
|
8
|
-
'banned',
|
|
9
|
-
'suspended',
|
|
10
|
-
];
|
|
11
|
-
exports.accountStatusDisplayMap = {
|
|
12
|
-
verification_required: 'Verification Required',
|
|
13
|
-
shadow_banned: 'Shadow Banned',
|
|
14
|
-
healthy: 'Healthy',
|
|
15
|
-
banned: 'Banned',
|
|
16
|
-
suspended: 'Suspended',
|
|
17
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const COLLECTIONS: {
|
|
2
|
-
readonly USERS: "users";
|
|
3
|
-
readonly SETTINGS: "settings";
|
|
4
|
-
readonly CAMPAIGNS: "campaigns";
|
|
5
|
-
readonly LEADS: "leads";
|
|
6
|
-
readonly EVENTS: "events";
|
|
7
|
-
readonly SCRAPER_ACCOUNTS: "scrapers";
|
|
8
|
-
readonly BIDDER_ACCOUNTS: "bidders";
|
|
9
|
-
readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
|
|
10
|
-
readonly ORGANIZATIONS: "organizations";
|
|
11
|
-
readonly PROXIES: "proxies";
|
|
12
|
-
readonly TRANSACTIONS: "transactions";
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLLECTIONS = void 0;
|
|
4
|
-
// Base collection names
|
|
5
|
-
exports.COLLECTIONS = {
|
|
6
|
-
USERS: 'users',
|
|
7
|
-
SETTINGS: 'settings',
|
|
8
|
-
CAMPAIGNS: 'campaigns',
|
|
9
|
-
LEADS: 'leads',
|
|
10
|
-
EVENTS: 'events',
|
|
11
|
-
SCRAPER_ACCOUNTS: 'scrapers',
|
|
12
|
-
BIDDER_ACCOUNTS: 'bidders',
|
|
13
|
-
CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
|
|
14
|
-
ORGANIZATIONS: 'organizations',
|
|
15
|
-
PROXIES: 'proxies',
|
|
16
|
-
};
|