lancer-shared 1.2.163 → 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 +68 -44
- package/dist/constants/job-filter-options.d.ts +1 -0
- package/dist/constants/routes.d.ts +1 -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`,
|
|
@@ -12669,34 +12674,39 @@ const updateScraperAccountSchema = scraperAccountSchema
|
|
|
12669
12674
|
.partial();
|
|
12670
12675
|
|
|
12671
12676
|
const agentStatusSchema = z.enum([
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12677
|
+
'suitabilityPending',
|
|
12678
|
+
'suitabilityProcessing',
|
|
12679
|
+
'suitabilityComplete',
|
|
12680
|
+
'suitabilityFailed',
|
|
12681
|
+
'proposalProcessing',
|
|
12682
|
+
'proposalComplete',
|
|
12683
|
+
'proposalFailed',
|
|
12684
|
+
'biddingProcessing',
|
|
12685
|
+
'biddingComplete',
|
|
12686
|
+
'biddingFailed',
|
|
12687
|
+
'jobArchived',
|
|
12683
12688
|
]);
|
|
12684
|
-
const
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12689
|
+
const leadStatusEnum = z.enum([
|
|
12690
|
+
'leads',
|
|
12691
|
+
'contacted',
|
|
12692
|
+
'insufficientConnects',
|
|
12693
|
+
'viewed',
|
|
12694
|
+
'replied',
|
|
12695
|
+
'won',
|
|
12690
12696
|
]);
|
|
12691
12697
|
const updateLeadStatusSchema = z.object({
|
|
12692
12698
|
leadId: z.string(),
|
|
12693
12699
|
organizationId: z.string(),
|
|
12694
12700
|
campaignId: z.string(),
|
|
12695
|
-
status:
|
|
12701
|
+
status: leadStatusEnum,
|
|
12696
12702
|
proposalId: z.string().optional(),
|
|
12697
12703
|
userId: z.string().optional(),
|
|
12698
12704
|
wonAmount: z.number().optional(),
|
|
12699
12705
|
});
|
|
12706
|
+
const updateOrganizationLeadsStatusPayloadSchema = z.array(z.object({
|
|
12707
|
+
applicationUid: z.string(),
|
|
12708
|
+
status: leadStatusEnum,
|
|
12709
|
+
}));
|
|
12700
12710
|
|
|
12701
12711
|
const questionAnswerPairSchema = z.object({
|
|
12702
12712
|
question: z.string(),
|
|
@@ -12715,7 +12725,7 @@ const leadSchema = upworkJobSchema
|
|
|
12715
12725
|
proposalId: stringType().optional(),
|
|
12716
12726
|
questionAnswerPairs: arrayType(questionAnswerPairSchema).nullable(),
|
|
12717
12727
|
agentStatus: agentStatusSchema.nullable(),
|
|
12718
|
-
leadStatus:
|
|
12728
|
+
leadStatus: leadStatusEnum.nullable(),
|
|
12719
12729
|
biddingAmount: numberType().nullable(),
|
|
12720
12730
|
boosted: booleanType().nullable(),
|
|
12721
12731
|
boostingAmount: numberType().nullable(),
|
|
@@ -12725,6 +12735,7 @@ const leadSchema = upworkJobSchema
|
|
|
12725
12735
|
feedbackCheckTaskId: stringType().nullable(),
|
|
12726
12736
|
bidDecision: z.enum(['proceeded', 'rejected']).nullable(),
|
|
12727
12737
|
rejectedFeedback: stringType().nullable(),
|
|
12738
|
+
applicationId: stringType().nullable(),
|
|
12728
12739
|
})
|
|
12729
12740
|
.omit({
|
|
12730
12741
|
processed: true,
|
|
@@ -12956,6 +12967,7 @@ const organizationSchema = objectType({
|
|
|
12956
12967
|
createdAt: numberType(),
|
|
12957
12968
|
updatedAt: numberType(),
|
|
12958
12969
|
openRouterApiKey: stringType().nullable(),
|
|
12970
|
+
nextProposalStatusSyncTime: numberType().nullable(),
|
|
12959
12971
|
oneTimePayments: oneTimePaymentsSchema.optional(),
|
|
12960
12972
|
});
|
|
12961
12973
|
const organizationUpdateSchema = objectType({ planId: stringType() });
|
|
@@ -13068,7 +13080,7 @@ const campaignSchema = z.object({
|
|
|
13068
13080
|
sleepStartAtHour: z.number().nullable().default(23),
|
|
13069
13081
|
sleepEndAtHour: z.number().nullable().default(7),
|
|
13070
13082
|
sleepTimezone: z.string().nullable(),
|
|
13071
|
-
leadCounts: z.record(
|
|
13083
|
+
leadCounts: z.record(leadStatusEnum, z.number()).nullable(),
|
|
13072
13084
|
expenses: campaignExpensesSchema,
|
|
13073
13085
|
notificationsEnabled: z.boolean().nullable(),
|
|
13074
13086
|
status: campaignStatusSchema.optional(),
|
|
@@ -13141,10 +13153,10 @@ const campaignAnalyticsResponseSchema = z.object({
|
|
|
13141
13153
|
won: z.number(),
|
|
13142
13154
|
});
|
|
13143
13155
|
const campaignActivityTypeSchema = z.enum([
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13156
|
+
'campaign_status',
|
|
13157
|
+
'lead_analysis',
|
|
13158
|
+
'lead_status',
|
|
13159
|
+
'proposal_sent',
|
|
13148
13160
|
]);
|
|
13149
13161
|
const baseActivitySchema = z.object({
|
|
13150
13162
|
createdAt: z.number(),
|
|
@@ -13159,15 +13171,15 @@ const baseActivitySchema = z.object({
|
|
|
13159
13171
|
creditBalance: z.number(),
|
|
13160
13172
|
});
|
|
13161
13173
|
const campaignStatusActivityExtraSchema = z.object({
|
|
13162
|
-
type: z.literal(
|
|
13163
|
-
status: z.enum([
|
|
13174
|
+
type: z.literal('campaign_status'),
|
|
13175
|
+
status: z.enum(['started', 'paused', 'created', 'error']),
|
|
13164
13176
|
creditBalance: z.number(),
|
|
13165
13177
|
});
|
|
13166
13178
|
const campaignStatusActivitySchema = baseActivitySchema.extend({
|
|
13167
13179
|
...campaignStatusActivityExtraSchema.shape,
|
|
13168
13180
|
});
|
|
13169
13181
|
const leadAnalysisActivityExtraSchema = z.object({
|
|
13170
|
-
type: z.literal(
|
|
13182
|
+
type: z.literal('lead_analysis'),
|
|
13171
13183
|
lead: leadSchema.pick({
|
|
13172
13184
|
id: true,
|
|
13173
13185
|
title: true,
|
|
@@ -13181,8 +13193,8 @@ const leadAnalysisActivitySchema = baseActivitySchema.extend({
|
|
|
13181
13193
|
...leadAnalysisActivityExtraSchema.shape,
|
|
13182
13194
|
});
|
|
13183
13195
|
const leadStatusActivityExtraSchema = z.object({
|
|
13184
|
-
type: z.literal(
|
|
13185
|
-
status:
|
|
13196
|
+
type: z.literal('lead_status'),
|
|
13197
|
+
status: leadStatusEnum,
|
|
13186
13198
|
lead: leadSchema.pick({
|
|
13187
13199
|
id: true,
|
|
13188
13200
|
title: true,
|
|
@@ -13195,7 +13207,7 @@ const leadStatusActivitySchema = baseActivitySchema.extend({
|
|
|
13195
13207
|
...leadStatusActivityExtraSchema.shape,
|
|
13196
13208
|
});
|
|
13197
13209
|
const proposalSentActivityExtraSchema = z.object({
|
|
13198
|
-
type: z.literal(
|
|
13210
|
+
type: z.literal('proposal_sent'),
|
|
13199
13211
|
lead: leadSchema.pick({
|
|
13200
13212
|
id: true,
|
|
13201
13213
|
title: true,
|
|
@@ -13207,13 +13219,13 @@ const proposalSentActivityExtraSchema = z.object({
|
|
|
13207
13219
|
const proposalSentActivitySchema = baseActivitySchema.extend({
|
|
13208
13220
|
...proposalSentActivityExtraSchema.shape,
|
|
13209
13221
|
});
|
|
13210
|
-
const campaignActivitySchema = z.discriminatedUnion(
|
|
13222
|
+
const campaignActivitySchema = z.discriminatedUnion('type', [
|
|
13211
13223
|
campaignStatusActivitySchema,
|
|
13212
13224
|
leadAnalysisActivitySchema,
|
|
13213
13225
|
leadStatusActivitySchema,
|
|
13214
13226
|
proposalSentActivitySchema,
|
|
13215
13227
|
]);
|
|
13216
|
-
const campaignActivityCreateSchema = z.discriminatedUnion(
|
|
13228
|
+
const campaignActivityCreateSchema = z.discriminatedUnion('type', [
|
|
13217
13229
|
campaignStatusActivityExtraSchema,
|
|
13218
13230
|
leadAnalysisActivityExtraSchema,
|
|
13219
13231
|
leadStatusActivityExtraSchema,
|
|
@@ -13223,16 +13235,16 @@ const updateCampaignAnalyticsSchema = z.object({
|
|
|
13223
13235
|
organizationId: z.string(),
|
|
13224
13236
|
campaignId: z.string(),
|
|
13225
13237
|
fields: z.array(z.enum([
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13238
|
+
'contacted',
|
|
13239
|
+
'viewed',
|
|
13240
|
+
'replied',
|
|
13241
|
+
'won',
|
|
13242
|
+
'leadsAnalyzed',
|
|
13243
|
+
'leadsFailed',
|
|
13244
|
+
'proposalsFailed',
|
|
13245
|
+
'suitableJobs',
|
|
13246
|
+
'unsuitableJobs',
|
|
13247
|
+
'wonAmount',
|
|
13236
13248
|
])),
|
|
13237
13249
|
});
|
|
13238
13250
|
|
|
@@ -13341,6 +13353,9 @@ const campaignInsightsSchema = z.object({
|
|
|
13341
13353
|
});
|
|
13342
13354
|
|
|
13343
13355
|
const bidPayloadProposalDataSchema = z.object({
|
|
13356
|
+
organizationId: z.string(),
|
|
13357
|
+
campaignId: z.string(),
|
|
13358
|
+
lead: leadSchema,
|
|
13344
13359
|
coverLetter: z.string(),
|
|
13345
13360
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
13346
13361
|
boostingEnabled: z.boolean(),
|
|
@@ -13679,6 +13694,11 @@ class WaitForFunctionTimeoutError extends Error {
|
|
|
13679
13694
|
}
|
|
13680
13695
|
const waitForFunctionTimeoutError = (fn, timeout) => new WaitForFunctionTimeoutError(fn, timeout);
|
|
13681
13696
|
|
|
13697
|
+
const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
13698
|
+
organizationId: z.string(),
|
|
13699
|
+
bidderAccountId: z.string(),
|
|
13700
|
+
});
|
|
13701
|
+
|
|
13682
13702
|
const campaignStatsSchema = z.object({
|
|
13683
13703
|
contacted: z.number(),
|
|
13684
13704
|
viewed: z.number(),
|
|
@@ -13980,6 +14000,7 @@ const biddingCompletedEventMetadata = objectType({
|
|
|
13980
14000
|
biddingAmount: numberType(),
|
|
13981
14001
|
boosted: booleanType(),
|
|
13982
14002
|
boostingAmount: numberType(),
|
|
14003
|
+
applicationId: stringType(),
|
|
13983
14004
|
});
|
|
13984
14005
|
const biddingFailedEventMetadata = objectType({
|
|
13985
14006
|
error: z.any(),
|
|
@@ -14000,7 +14021,7 @@ const leadStatusEventMetadata = objectType({
|
|
|
14000
14021
|
userId: stringType(),
|
|
14001
14022
|
metadata: z
|
|
14002
14023
|
.object({
|
|
14003
|
-
status:
|
|
14024
|
+
status: leadStatusEnum,
|
|
14004
14025
|
proposalId: stringType().nullable(),
|
|
14005
14026
|
})
|
|
14006
14027
|
.optional(),
|
|
@@ -23070,6 +23091,7 @@ exports.FeedJobEnrichException = FeedJobEnrichException;
|
|
|
23070
23091
|
exports.FeedScrapeException = FeedScrapeException;
|
|
23071
23092
|
exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
|
|
23072
23093
|
exports.GoToUrlException = GoToUrlException;
|
|
23094
|
+
exports.HIERARCHICAL_CATEGORIES_TO_CHILDREN = HIERARCHICAL_CATEGORIES_TO_CHILDREN;
|
|
23073
23095
|
exports.IncorrectSecurityQuestionAnswerException = IncorrectSecurityQuestionAnswerException;
|
|
23074
23096
|
exports.InitBrowserException = InitBrowserException;
|
|
23075
23097
|
exports.InsufficientConnectsException = InsufficientConnectsException;
|
|
@@ -23265,8 +23287,8 @@ exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
|
23265
23287
|
exports.leadResponseSchema = leadResponseSchema;
|
|
23266
23288
|
exports.leadSchema = leadSchema;
|
|
23267
23289
|
exports.leadStatusActivitySchema = leadStatusActivitySchema;
|
|
23290
|
+
exports.leadStatusEnum = leadStatusEnum;
|
|
23268
23291
|
exports.leadStatusEventMetadata = leadStatusEventMetadata;
|
|
23269
|
-
exports.leadStatusSchema = leadStatusSchema;
|
|
23270
23292
|
exports.limitsSchema = limitsSchema;
|
|
23271
23293
|
exports.logEventSchema = logEventSchema;
|
|
23272
23294
|
exports.loginFailedException = loginFailedException;
|
|
@@ -23370,6 +23392,7 @@ exports.suitabilityCompleteEventMetadataSchema = suitabilityCompleteEventMetadat
|
|
|
23370
23392
|
exports.suitabilityFailedEventMetadataSchema = suitabilityFailedEventMetadataSchema;
|
|
23371
23393
|
exports.suitabilityPendingEventMetadataSchema = suitabilityPendingEventMetadataSchema;
|
|
23372
23394
|
exports.suitabilityRatingSchema = suitabilityRatingSchema;
|
|
23395
|
+
exports.syncProposalsStatusRequestPayloadSchema = syncProposalsStatusRequestPayloadSchema;
|
|
23373
23396
|
exports.systemPromptSchema = systemPromptSchema;
|
|
23374
23397
|
exports.systemSchema = systemSchema;
|
|
23375
23398
|
exports.talentTypeEnum = talentTypeEnum;
|
|
@@ -23387,6 +23410,7 @@ exports.updateCampaignAnalyticsSchema = updateCampaignAnalyticsSchema;
|
|
|
23387
23410
|
exports.updateCampaignSchema = updateCampaignSchema;
|
|
23388
23411
|
exports.updateChatbotSchema = updateChatbotSchema;
|
|
23389
23412
|
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
23413
|
+
exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
|
|
23390
23414
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
23391
23415
|
exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
|
|
23392
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;
|
|
@@ -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;
|