lancer-shared 1.2.162 → 1.2.164
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 +69 -44
- package/dist/constants/job-filter-options.d.ts +1 -0
- package/dist/constants/routes.d.ts +2 -0
- package/dist/schemas/agent/index.d.ts +10 -5
- package/dist/schemas/bid/bid.d.ts +5134 -177
- package/dist/schemas/bidder/bid-result.d.ts +30 -0
- package/dist/schemas/bidder/bid.d.ts +8010 -0
- package/dist/schemas/bidder/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/element-not-clickable.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/evalaute-element.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/evaluate-function.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/get-multilogin-browser.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/index.d.ts +63 -0
- package/dist/schemas/bidder/exceptions/init-browser.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/insufficient-connects.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/invalid-credentials.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/invalid-job-url.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/login-failed.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/multilogin-authentication.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/navigation-timeout.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/new-browser-page.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/new-page.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/open-new-url.exception.d.ts +15 -0
- package/dist/schemas/bidder/exceptions/parse-connects.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/proposal-error-alert.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/proposal-generation-failed.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/proposal-submit-failed.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/question-pair-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/select-agency.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/select-contractor.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/selector-not-found.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/typed-value-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/typing-input-field.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
- package/dist/schemas/bidder/index.d.ts +4 -0
- package/dist/schemas/bidder/sync-proposal-status.d.ts +12 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +44 -27
- package/dist/schemas/campaign/campaign.d.ts +9 -9
- package/dist/schemas/index.d.ts +22 -22
- package/dist/schemas/lead/index.d.ts +36 -18
- package/dist/schemas/lead/lead-status.d.ts +17 -6
- package/dist/schemas/logger/log-event.d.ts +8 -5
- package/dist/schemas/organization/index.d.ts +4 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +20 -10
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -332,6 +332,10 @@ const JOB_FILTER_OPTIONS = {
|
|
|
332
332
|
'Unspecified',
|
|
333
333
|
],
|
|
334
334
|
};
|
|
335
|
+
const HIERARCHICAL_CATEGORIES_TO_CHILDREN = JOB_FILTER_OPTIONS.HIERARCHICAL_CATEGORIES.reduce((acc, category) => {
|
|
336
|
+
acc[category.label] = category.children;
|
|
337
|
+
return acc;
|
|
338
|
+
}, {});
|
|
335
339
|
const regionNames = {
|
|
336
340
|
Worldwide: 'Worldwide',
|
|
337
341
|
USOnly: 'US Only',
|
|
@@ -6545,6 +6549,7 @@ const ROUTES = {
|
|
|
6545
6549
|
BASE: (id) => `organizations/${id}/members`,
|
|
6546
6550
|
BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
|
|
6547
6551
|
},
|
|
6552
|
+
UPDATE_LEADS_STATUS: (id) => `organizations/${id}/update-leads-status`,
|
|
6548
6553
|
SETTINGS: (id) => `organizations/${id}/settings`,
|
|
6549
6554
|
CHARGES: (id) => `organizations/${id}/charges`,
|
|
6550
6555
|
PAYMENT_METHODS: (id) => `organizations/${id}/payment-methods`,
|
|
@@ -6575,6 +6580,7 @@ const ROUTES = {
|
|
|
6575
6580
|
BY_ID: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}`,
|
|
6576
6581
|
SEARCH: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/search`,
|
|
6577
6582
|
GENERATE_COUNTS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/generate-counts`,
|
|
6583
|
+
REJECTED: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/rejected`,
|
|
6578
6584
|
},
|
|
6579
6585
|
ANALYTICS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/analytics`,
|
|
6580
6586
|
TOTAL_STATS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/analytics/totals`,
|
|
@@ -12668,34 +12674,39 @@ const updateScraperAccountSchema = scraperAccountSchema
|
|
|
12668
12674
|
.partial();
|
|
12669
12675
|
|
|
12670
12676
|
const agentStatusSchema = z.enum([
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12677
|
+
'suitabilityPending',
|
|
12678
|
+
'suitabilityProcessing',
|
|
12679
|
+
'suitabilityComplete',
|
|
12680
|
+
'suitabilityFailed',
|
|
12681
|
+
'proposalProcessing',
|
|
12682
|
+
'proposalComplete',
|
|
12683
|
+
'proposalFailed',
|
|
12684
|
+
'biddingProcessing',
|
|
12685
|
+
'biddingComplete',
|
|
12686
|
+
'biddingFailed',
|
|
12687
|
+
'jobArchived',
|
|
12682
12688
|
]);
|
|
12683
|
-
const
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
+
const leadStatusEnum = z.enum([
|
|
12690
|
+
'leads',
|
|
12691
|
+
'contacted',
|
|
12692
|
+
'insufficientConnects',
|
|
12693
|
+
'viewed',
|
|
12694
|
+
'replied',
|
|
12695
|
+
'won',
|
|
12689
12696
|
]);
|
|
12690
12697
|
const updateLeadStatusSchema = z.object({
|
|
12691
12698
|
leadId: z.string(),
|
|
12692
12699
|
organizationId: z.string(),
|
|
12693
12700
|
campaignId: z.string(),
|
|
12694
|
-
status:
|
|
12701
|
+
status: leadStatusEnum,
|
|
12695
12702
|
proposalId: z.string().optional(),
|
|
12696
12703
|
userId: z.string().optional(),
|
|
12697
12704
|
wonAmount: z.number().optional(),
|
|
12698
12705
|
});
|
|
12706
|
+
const updateOrganizationLeadsStatusPayloadSchema = z.array(z.object({
|
|
12707
|
+
applicationUid: z.string(),
|
|
12708
|
+
status: leadStatusEnum,
|
|
12709
|
+
}));
|
|
12699
12710
|
|
|
12700
12711
|
const questionAnswerPairSchema = z.object({
|
|
12701
12712
|
question: z.string(),
|
|
@@ -12714,7 +12725,7 @@ const leadSchema = upworkJobSchema
|
|
|
12714
12725
|
proposalId: stringType().optional(),
|
|
12715
12726
|
questionAnswerPairs: arrayType(questionAnswerPairSchema).nullable(),
|
|
12716
12727
|
agentStatus: agentStatusSchema.nullable(),
|
|
12717
|
-
leadStatus:
|
|
12728
|
+
leadStatus: leadStatusEnum.nullable(),
|
|
12718
12729
|
biddingAmount: numberType().nullable(),
|
|
12719
12730
|
boosted: booleanType().nullable(),
|
|
12720
12731
|
boostingAmount: numberType().nullable(),
|
|
@@ -12724,6 +12735,7 @@ const leadSchema = upworkJobSchema
|
|
|
12724
12735
|
feedbackCheckTaskId: stringType().nullable(),
|
|
12725
12736
|
bidDecision: z.enum(['proceeded', 'rejected']).nullable(),
|
|
12726
12737
|
rejectedFeedback: stringType().nullable(),
|
|
12738
|
+
applicationId: stringType().nullable(),
|
|
12727
12739
|
})
|
|
12728
12740
|
.omit({
|
|
12729
12741
|
processed: true,
|
|
@@ -12955,6 +12967,7 @@ const organizationSchema = objectType({
|
|
|
12955
12967
|
createdAt: numberType(),
|
|
12956
12968
|
updatedAt: numberType(),
|
|
12957
12969
|
openRouterApiKey: stringType().nullable(),
|
|
12970
|
+
nextProposalStatusSyncTime: numberType().nullable(),
|
|
12958
12971
|
oneTimePayments: oneTimePaymentsSchema.optional(),
|
|
12959
12972
|
});
|
|
12960
12973
|
const organizationUpdateSchema = objectType({ planId: stringType() });
|
|
@@ -13067,7 +13080,7 @@ const campaignSchema = z.object({
|
|
|
13067
13080
|
sleepStartAtHour: z.number().nullable().default(23),
|
|
13068
13081
|
sleepEndAtHour: z.number().nullable().default(7),
|
|
13069
13082
|
sleepTimezone: z.string().nullable(),
|
|
13070
|
-
leadCounts: z.record(
|
|
13083
|
+
leadCounts: z.record(leadStatusEnum, z.number()).nullable(),
|
|
13071
13084
|
expenses: campaignExpensesSchema,
|
|
13072
13085
|
notificationsEnabled: z.boolean().nullable(),
|
|
13073
13086
|
status: campaignStatusSchema.optional(),
|
|
@@ -13140,10 +13153,10 @@ const campaignAnalyticsResponseSchema = z.object({
|
|
|
13140
13153
|
won: z.number(),
|
|
13141
13154
|
});
|
|
13142
13155
|
const campaignActivityTypeSchema = z.enum([
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13156
|
+
'campaign_status',
|
|
13157
|
+
'lead_analysis',
|
|
13158
|
+
'lead_status',
|
|
13159
|
+
'proposal_sent',
|
|
13147
13160
|
]);
|
|
13148
13161
|
const baseActivitySchema = z.object({
|
|
13149
13162
|
createdAt: z.number(),
|
|
@@ -13158,15 +13171,15 @@ const baseActivitySchema = z.object({
|
|
|
13158
13171
|
creditBalance: z.number(),
|
|
13159
13172
|
});
|
|
13160
13173
|
const campaignStatusActivityExtraSchema = z.object({
|
|
13161
|
-
type: z.literal(
|
|
13162
|
-
status: z.enum([
|
|
13174
|
+
type: z.literal('campaign_status'),
|
|
13175
|
+
status: z.enum(['started', 'paused', 'created', 'error']),
|
|
13163
13176
|
creditBalance: z.number(),
|
|
13164
13177
|
});
|
|
13165
13178
|
const campaignStatusActivitySchema = baseActivitySchema.extend({
|
|
13166
13179
|
...campaignStatusActivityExtraSchema.shape,
|
|
13167
13180
|
});
|
|
13168
13181
|
const leadAnalysisActivityExtraSchema = z.object({
|
|
13169
|
-
type: z.literal(
|
|
13182
|
+
type: z.literal('lead_analysis'),
|
|
13170
13183
|
lead: leadSchema.pick({
|
|
13171
13184
|
id: true,
|
|
13172
13185
|
title: true,
|
|
@@ -13180,8 +13193,8 @@ const leadAnalysisActivitySchema = baseActivitySchema.extend({
|
|
|
13180
13193
|
...leadAnalysisActivityExtraSchema.shape,
|
|
13181
13194
|
});
|
|
13182
13195
|
const leadStatusActivityExtraSchema = z.object({
|
|
13183
|
-
type: z.literal(
|
|
13184
|
-
status:
|
|
13196
|
+
type: z.literal('lead_status'),
|
|
13197
|
+
status: leadStatusEnum,
|
|
13185
13198
|
lead: leadSchema.pick({
|
|
13186
13199
|
id: true,
|
|
13187
13200
|
title: true,
|
|
@@ -13194,7 +13207,7 @@ const leadStatusActivitySchema = baseActivitySchema.extend({
|
|
|
13194
13207
|
...leadStatusActivityExtraSchema.shape,
|
|
13195
13208
|
});
|
|
13196
13209
|
const proposalSentActivityExtraSchema = z.object({
|
|
13197
|
-
type: z.literal(
|
|
13210
|
+
type: z.literal('proposal_sent'),
|
|
13198
13211
|
lead: leadSchema.pick({
|
|
13199
13212
|
id: true,
|
|
13200
13213
|
title: true,
|
|
@@ -13206,13 +13219,13 @@ const proposalSentActivityExtraSchema = z.object({
|
|
|
13206
13219
|
const proposalSentActivitySchema = baseActivitySchema.extend({
|
|
13207
13220
|
...proposalSentActivityExtraSchema.shape,
|
|
13208
13221
|
});
|
|
13209
|
-
const campaignActivitySchema = z.discriminatedUnion(
|
|
13222
|
+
const campaignActivitySchema = z.discriminatedUnion('type', [
|
|
13210
13223
|
campaignStatusActivitySchema,
|
|
13211
13224
|
leadAnalysisActivitySchema,
|
|
13212
13225
|
leadStatusActivitySchema,
|
|
13213
13226
|
proposalSentActivitySchema,
|
|
13214
13227
|
]);
|
|
13215
|
-
const campaignActivityCreateSchema = z.discriminatedUnion(
|
|
13228
|
+
const campaignActivityCreateSchema = z.discriminatedUnion('type', [
|
|
13216
13229
|
campaignStatusActivityExtraSchema,
|
|
13217
13230
|
leadAnalysisActivityExtraSchema,
|
|
13218
13231
|
leadStatusActivityExtraSchema,
|
|
@@ -13222,16 +13235,16 @@ const updateCampaignAnalyticsSchema = z.object({
|
|
|
13222
13235
|
organizationId: z.string(),
|
|
13223
13236
|
campaignId: z.string(),
|
|
13224
13237
|
fields: z.array(z.enum([
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13238
|
+
'contacted',
|
|
13239
|
+
'viewed',
|
|
13240
|
+
'replied',
|
|
13241
|
+
'won',
|
|
13242
|
+
'leadsAnalyzed',
|
|
13243
|
+
'leadsFailed',
|
|
13244
|
+
'proposalsFailed',
|
|
13245
|
+
'suitableJobs',
|
|
13246
|
+
'unsuitableJobs',
|
|
13247
|
+
'wonAmount',
|
|
13235
13248
|
])),
|
|
13236
13249
|
});
|
|
13237
13250
|
|
|
@@ -13340,6 +13353,9 @@ const campaignInsightsSchema = z.object({
|
|
|
13340
13353
|
});
|
|
13341
13354
|
|
|
13342
13355
|
const bidPayloadProposalDataSchema = z.object({
|
|
13356
|
+
organizationId: z.string(),
|
|
13357
|
+
campaignId: z.string(),
|
|
13358
|
+
lead: leadSchema,
|
|
13343
13359
|
coverLetter: z.string(),
|
|
13344
13360
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
13345
13361
|
boostingEnabled: z.boolean(),
|
|
@@ -13678,6 +13694,11 @@ class WaitForFunctionTimeoutError extends Error {
|
|
|
13678
13694
|
}
|
|
13679
13695
|
const waitForFunctionTimeoutError = (fn, timeout) => new WaitForFunctionTimeoutError(fn, timeout);
|
|
13680
13696
|
|
|
13697
|
+
const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
13698
|
+
organizationId: z.string(),
|
|
13699
|
+
bidderAccountId: z.string(),
|
|
13700
|
+
});
|
|
13701
|
+
|
|
13681
13702
|
const campaignStatsSchema = z.object({
|
|
13682
13703
|
contacted: z.number(),
|
|
13683
13704
|
viewed: z.number(),
|
|
@@ -13979,6 +14000,7 @@ const biddingCompletedEventMetadata = objectType({
|
|
|
13979
14000
|
biddingAmount: numberType(),
|
|
13980
14001
|
boosted: booleanType(),
|
|
13981
14002
|
boostingAmount: numberType(),
|
|
14003
|
+
applicationId: stringType(),
|
|
13982
14004
|
});
|
|
13983
14005
|
const biddingFailedEventMetadata = objectType({
|
|
13984
14006
|
error: z.any(),
|
|
@@ -13999,7 +14021,7 @@ const leadStatusEventMetadata = objectType({
|
|
|
13999
14021
|
userId: stringType(),
|
|
14000
14022
|
metadata: z
|
|
14001
14023
|
.object({
|
|
14002
|
-
status:
|
|
14024
|
+
status: leadStatusEnum,
|
|
14003
14025
|
proposalId: stringType().nullable(),
|
|
14004
14026
|
})
|
|
14005
14027
|
.optional(),
|
|
@@ -23069,6 +23091,7 @@ exports.FeedJobEnrichException = FeedJobEnrichException;
|
|
|
23069
23091
|
exports.FeedScrapeException = FeedScrapeException;
|
|
23070
23092
|
exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
|
|
23071
23093
|
exports.GoToUrlException = GoToUrlException;
|
|
23094
|
+
exports.HIERARCHICAL_CATEGORIES_TO_CHILDREN = HIERARCHICAL_CATEGORIES_TO_CHILDREN;
|
|
23072
23095
|
exports.IncorrectSecurityQuestionAnswerException = IncorrectSecurityQuestionAnswerException;
|
|
23073
23096
|
exports.InitBrowserException = InitBrowserException;
|
|
23074
23097
|
exports.InsufficientConnectsException = InsufficientConnectsException;
|
|
@@ -23264,8 +23287,8 @@ exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
|
23264
23287
|
exports.leadResponseSchema = leadResponseSchema;
|
|
23265
23288
|
exports.leadSchema = leadSchema;
|
|
23266
23289
|
exports.leadStatusActivitySchema = leadStatusActivitySchema;
|
|
23290
|
+
exports.leadStatusEnum = leadStatusEnum;
|
|
23267
23291
|
exports.leadStatusEventMetadata = leadStatusEventMetadata;
|
|
23268
|
-
exports.leadStatusSchema = leadStatusSchema;
|
|
23269
23292
|
exports.limitsSchema = limitsSchema;
|
|
23270
23293
|
exports.logEventSchema = logEventSchema;
|
|
23271
23294
|
exports.loginFailedException = loginFailedException;
|
|
@@ -23369,6 +23392,7 @@ exports.suitabilityCompleteEventMetadataSchema = suitabilityCompleteEventMetadat
|
|
|
23369
23392
|
exports.suitabilityFailedEventMetadataSchema = suitabilityFailedEventMetadataSchema;
|
|
23370
23393
|
exports.suitabilityPendingEventMetadataSchema = suitabilityPendingEventMetadataSchema;
|
|
23371
23394
|
exports.suitabilityRatingSchema = suitabilityRatingSchema;
|
|
23395
|
+
exports.syncProposalsStatusRequestPayloadSchema = syncProposalsStatusRequestPayloadSchema;
|
|
23372
23396
|
exports.systemPromptSchema = systemPromptSchema;
|
|
23373
23397
|
exports.systemSchema = systemSchema;
|
|
23374
23398
|
exports.talentTypeEnum = talentTypeEnum;
|
|
@@ -23386,6 +23410,7 @@ exports.updateCampaignAnalyticsSchema = updateCampaignAnalyticsSchema;
|
|
|
23386
23410
|
exports.updateCampaignSchema = updateCampaignSchema;
|
|
23387
23411
|
exports.updateChatbotSchema = updateChatbotSchema;
|
|
23388
23412
|
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
23413
|
+
exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
|
|
23389
23414
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
23390
23415
|
exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
|
|
23391
23416
|
exports.updateSuitableLeadNotificationType = updateSuitableLeadNotificationType;
|
|
@@ -63,4 +63,5 @@ export declare const JOB_FILTER_OPTIONS: {
|
|
|
63
63
|
CLIENT_INDUSTRY: readonly ["Aerospace", "Agriculture & Forestry", "Art & Design", "Automotive", "Aviation", "Education", "Energy & Utilities", "Engineering & Architecture", "Fashion & Beauty", "Finance & Accounting", "Food & Beverage", "Government & Public Sector", "Health & Fitness", "HR & Business Services", "Legal", "Manufacturing & Construction", "Media & Entertainment", "Military & Defense", "Mining", "Real Estate", "Retail & Consumer Goods", "Sales & Marketing", "Science & Medicine", "Sports & Recreation", "Supply Chain & Logistics", "Tech & IT", "Transportation & Warehousing", "Travel & Hospitality"];
|
|
64
64
|
CLIENT_SIZE: readonly ["Individual client", "Small company (2-9 people)", "Mid-sized company (10-99 people)", "Large company (100-1,000 people)", "Large company (1,000+ people)", "Unspecified"];
|
|
65
65
|
};
|
|
66
|
+
export declare const HIERARCHICAL_CATEGORIES_TO_CHILDREN: Record<"Accounting & Consulting" | "Admin Support" | "Customer Service" | "Data Science & Analytics" | "Design & Creative" | "Engineering & Architecture" | "IT & Networking" | "Legal" | "Sales & Marketing" | "Translation" | "Software Development" | "Writing", readonly ["Accounting & Bookkeeping", "Financial Planning", "Management Consulting & Analysis", "Other - Accounting & Consulting", "Personal & Professional Coaching", "Recruiting & Human Resources"] | readonly ["Data Entry & Transcription Services", "Market Research & Product Reviews", "Project Management", "Virtual Assistance"] | readonly ["Community Management & Tagging", "Customer Service & Tech Support"] | readonly ["AI & Machine Learning", "Data Analysis & Testing", "Data Extraction/ETL", "Data Mining & Management"] | readonly ["Art & Illustration", "Audio & Music Production", "Branding & Logo Design", "Graphic, Editorial & Presentation Design", "NFT, AR/VR & Game Art", "Performing Arts", "Photography", "Product Design", "Video & Animation"] | readonly ["3D Modeling & CAD", "Building & Landscape Architecture", "Chemical Engineering", "Civil & Structural Engineering", "Contract Manufacturing", "Electrical & Electronic Engineering", "Energy & Mechanical Engineering"] | readonly ["Database Management & Administration", "DevOps & Solution Architecture", "ERP/CRM Software", "Information Security & Compliance", "Network & System Administration"] | readonly ["Corporate & Contract Law", "Finance & Tax Law", "International & Immigration Law", "Public Law"] | readonly ["Digital Marketing", "Lead Generation & Telemarketing", "Marketing, PR & Brand Strategy"] | readonly ["Language Tutoring & Interpretation", "Translation & Localization Services"] | readonly ["AI Apps & Integration", "Blockchain, NFT & Cryptocurrency", "Desktop Application Development", "Ecommerce Development", "Game Design & Development", "Mobile Development", "Other - Software Development", "Product Management & Scrum", "QA Testing", "Scripts & Utilities", "Web & Mobile Design", "Web Development"] | readonly ["Content Writing", "Editing & Proofreading Services", "Professional & Business Writing", "Sales & Marketing Copywriting"]>;
|
|
66
67
|
export declare const regionNames: Record<Region, string>;
|
|
@@ -126,6 +126,7 @@ export declare const ROUTES: {
|
|
|
126
126
|
readonly BASE: (id: string) => string;
|
|
127
127
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
128
128
|
};
|
|
129
|
+
readonly UPDATE_LEADS_STATUS: (id: string) => string;
|
|
129
130
|
readonly SETTINGS: (id: string) => string;
|
|
130
131
|
readonly CHARGES: (id: string) => string;
|
|
131
132
|
readonly PAYMENT_METHODS: (id: string) => string;
|
|
@@ -156,6 +157,7 @@ export declare const ROUTES: {
|
|
|
156
157
|
readonly BY_ID: (organizationId: string, campaignId: string, leadId: string) => string;
|
|
157
158
|
readonly SEARCH: (organizationId: string, campaignId: string) => string;
|
|
158
159
|
readonly GENERATE_COUNTS: (organizationId: string, campaignId: string) => string;
|
|
160
|
+
readonly REJECTED: (organizationId: string, campaignId: string) => string;
|
|
159
161
|
};
|
|
160
162
|
readonly ANALYTICS: (organizationId: string, campaignId: string) => string;
|
|
161
163
|
readonly TOTAL_STATS: (organizationId: string, campaignId: string) => string;
|
|
@@ -419,7 +419,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
419
419
|
answer: string;
|
|
420
420
|
}>, "many">>;
|
|
421
421
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
422
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
|
|
422
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>>;
|
|
423
423
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
424
424
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
425
425
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -429,6 +429,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
429
429
|
feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
|
|
430
430
|
bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
|
|
431
431
|
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
432
|
+
applicationId: z.ZodNullable<z.ZodString>;
|
|
432
433
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
433
434
|
organizationId: string;
|
|
434
435
|
campaignId: string;
|
|
@@ -532,7 +533,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
532
533
|
suitabilityReason: string | null;
|
|
533
534
|
proposal: string | null;
|
|
534
535
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
535
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
536
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
|
|
536
537
|
biddingAmount: number | null;
|
|
537
538
|
boosted: boolean | null;
|
|
538
539
|
boostingAmount: number | null;
|
|
@@ -541,6 +542,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
541
542
|
feedbackCheckTaskId: string | null;
|
|
542
543
|
bidDecision: "proceeded" | "rejected" | null;
|
|
543
544
|
rejectedFeedback: string | null;
|
|
545
|
+
applicationId: string | null;
|
|
544
546
|
activity?: Partial<Record<"4h" | "24h", {
|
|
545
547
|
proposals: {
|
|
546
548
|
min: number | null;
|
|
@@ -666,7 +668,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
666
668
|
suitabilityReason: string | null;
|
|
667
669
|
proposal: string | null;
|
|
668
670
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
669
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
671
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
|
|
670
672
|
biddingAmount: number | null;
|
|
671
673
|
boosted: boolean | null;
|
|
672
674
|
boostingAmount: number | null;
|
|
@@ -675,6 +677,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
675
677
|
feedbackCheckTaskId: string | null;
|
|
676
678
|
bidDecision: "proceeded" | "rejected" | null;
|
|
677
679
|
rejectedFeedback: string | null;
|
|
680
|
+
applicationId: string | null;
|
|
678
681
|
activity?: Partial<Record<"4h" | "24h", {
|
|
679
682
|
proposals: {
|
|
680
683
|
min: number | null;
|
|
@@ -816,7 +819,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
816
819
|
suitabilityReason: string | null;
|
|
817
820
|
proposal: string | null;
|
|
818
821
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
819
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
822
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
|
|
820
823
|
biddingAmount: number | null;
|
|
821
824
|
boosted: boolean | null;
|
|
822
825
|
boostingAmount: number | null;
|
|
@@ -825,6 +828,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
825
828
|
feedbackCheckTaskId: string | null;
|
|
826
829
|
bidDecision: "proceeded" | "rejected" | null;
|
|
827
830
|
rejectedFeedback: string | null;
|
|
831
|
+
applicationId: string | null;
|
|
828
832
|
activity?: Partial<Record<"4h" | "24h", {
|
|
829
833
|
proposals: {
|
|
830
834
|
min: number | null;
|
|
@@ -960,7 +964,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
960
964
|
suitabilityReason: string | null;
|
|
961
965
|
proposal: string | null;
|
|
962
966
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
963
|
-
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
967
|
+
leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
|
|
964
968
|
biddingAmount: number | null;
|
|
965
969
|
boosted: boolean | null;
|
|
966
970
|
boostingAmount: number | null;
|
|
@@ -969,6 +973,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
969
973
|
feedbackCheckTaskId: string | null;
|
|
970
974
|
bidDecision: "proceeded" | "rejected" | null;
|
|
971
975
|
rejectedFeedback: string | null;
|
|
976
|
+
applicationId: string | null;
|
|
972
977
|
activity?: Partial<Record<"4h" | "24h", {
|
|
973
978
|
proposals: {
|
|
974
979
|
min: number | null;
|