lancer-shared 1.2.19 → 1.2.21
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 +134 -23
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +16 -0
- package/dist/constants/common-questions.js +60 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +40 -0
- package/dist/constants/invoice.d.ts +2 -0
- package/dist/constants/job-filter-options.js +268 -0
- package/dist/constants/job-status.js +26 -0
- package/dist/constants/mappings/countryMapping.js +122 -0
- package/dist/constants/mappings/regionMapping.js +242 -0
- package/dist/constants/routes.js +108 -0
- package/dist/constants/upwork-accounts.js +21 -0
- package/dist/index.js +20 -0
- package/dist/schemas/account/account-status.js +11 -0
- package/dist/schemas/account/bidder-account.js +37 -0
- package/dist/schemas/account/index.js +19 -0
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +37 -0
- package/dist/schemas/ai/ai-config.d.ts +36 -0
- package/dist/schemas/ai/ai-config.js +12 -0
- package/dist/schemas/ai/index.d.ts +3 -0
- package/dist/schemas/ai/index.js +19 -0
- package/dist/schemas/ai/proposal.d.ts +82 -0
- package/dist/schemas/ai/proposal.js +16 -0
- package/dist/schemas/ai/suitability.d.ts +37 -0
- package/dist/schemas/ai/suitability.js +17 -0
- package/dist/schemas/bid/bid-result.js +15 -0
- package/dist/schemas/bid/bid.js +36 -0
- package/dist/schemas/bid/index.js +18 -0
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +9 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +2621 -38
- package/dist/schemas/campaign/campaign-analytics.js +41 -0
- package/dist/schemas/campaign/campaign-expenses.js +9 -0
- package/dist/schemas/campaign/campaign-insights.js +31 -0
- package/dist/schemas/campaign/campaign-integrations.js +16 -0
- package/dist/schemas/campaign/campaign-job-count.js +6 -0
- package/dist/schemas/campaign/campaign.js +44 -0
- package/dist/schemas/campaign/index.js +23 -0
- package/dist/schemas/chat-message/chat-message.js +13 -0
- package/dist/schemas/chat-message/index.js +17 -0
- package/dist/schemas/config/agency-config.js +10 -0
- package/dist/schemas/config/index.js +17 -0
- package/dist/schemas/index.js +32 -0
- package/dist/schemas/invoice/index.d.ts +8 -0
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +602 -0
- package/dist/schemas/job/pipeline-job.js +42 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -0
- package/dist/schemas/job-filters/job-filters.js +87 -0
- package/dist/schemas/lead/index.js +19 -0
- package/dist/schemas/lead/lead-note.js +30 -0
- package/dist/schemas/lead/lead-status.d.ts +23 -0
- package/dist/schemas/lead/lead-status.js +26 -0
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -0
- package/dist/schemas/logger/log-event.d.ts +13 -10
- package/dist/schemas/logger/log-event.js +66 -0
- package/dist/schemas/organization/index.d.ts +68 -1
- package/dist/schemas/organization/index.js +17 -0
- package/dist/schemas/organization/organization.d.ts +13 -87
- package/dist/schemas/organization/organization.js +19 -0
- package/dist/schemas/organization/subscription.d.ts +47 -0
- package/dist/schemas/plan/index.d.ts +36 -3
- package/dist/schemas/proxy/index.js +17 -0
- package/dist/schemas/proxy/proxy.js +21 -0
- package/dist/schemas/saved-search/index.js +12 -0
- package/dist/schemas/scraper/index.js +18 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +49 -0
- package/dist/schemas/scraper/scrape-payload.js +16 -0
- package/dist/schemas/scraper/scrape-result.js +23 -0
- package/dist/schemas/shared.js +16 -0
- package/dist/schemas/time-filter/index.js +9 -0
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +29 -0
- package/dist/schemas/user/index.js +55 -0
- package/dist/types/account/account-status.js +2 -0
- package/dist/types/account/bidder-account.js +2 -0
- package/dist/types/account/index.js +19 -0
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -0
- package/dist/types/ai/ai-config.d.ts +6 -0
- package/dist/types/ai/ai-config.js +2 -0
- package/dist/types/ai/index.d.ts +3 -0
- package/dist/types/ai/index.js +19 -0
- package/dist/types/ai/proposal.d.ts +10 -0
- package/dist/types/ai/proposal.js +2 -0
- package/dist/types/ai/suitability.d.ts +6 -0
- package/dist/types/ai/suitability.js +2 -0
- package/dist/types/bid/bid-result.js +2 -0
- package/dist/types/bid/bid.js +2 -0
- package/dist/types/bid/index.js +18 -0
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -0
- package/dist/types/campaign/campaign-expenses.js +2 -0
- package/dist/types/campaign/campaign-insights.js +2 -0
- package/dist/types/campaign/campaign-integrations.js +2 -0
- package/dist/types/campaign/campaign-job-count.js +2 -0
- package/dist/types/campaign/campaign.js +2 -0
- package/dist/types/campaign/index.js +22 -0
- package/dist/types/chat-message/chat-message.js +2 -0
- package/dist/types/chat-message/index.js +17 -0
- package/dist/types/config/agency-config.js +2 -0
- package/dist/types/config/index.js +17 -0
- package/dist/types/index.js +29 -0
- package/dist/types/job/index.js +19 -0
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -0
- package/dist/types/job/job-status.js +12 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -0
- package/dist/types/job-filters/job-filters.js +2 -0
- package/dist/types/logger/index.js +17 -0
- package/dist/types/logger/log-event.js +2 -0
- package/dist/types/saved-search/index.js +2 -0
- package/dist/types/scraper/index.js +18 -0
- package/dist/types/scraper/scrape-payload.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -0
- package/dist/types/time-filter/index.js +2 -0
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/try-catch.js +25 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -5302,6 +5302,14 @@ const leadStatusSchema = z.enum([
|
|
|
5302
5302
|
"won",
|
|
5303
5303
|
"lost",
|
|
5304
5304
|
]);
|
|
5305
|
+
const updateLeadStatusSchema = z.object({
|
|
5306
|
+
leadId: z.string(),
|
|
5307
|
+
organizationId: z.string(),
|
|
5308
|
+
campaignId: z.string(),
|
|
5309
|
+
status: leadStatusSchema,
|
|
5310
|
+
proposalId: z.string().optional(),
|
|
5311
|
+
userId: z.string(),
|
|
5312
|
+
});
|
|
5305
5313
|
|
|
5306
5314
|
const questionAnswerPairSchema = z.object({
|
|
5307
5315
|
question: z.string(),
|
|
@@ -5360,7 +5368,6 @@ const LogEventTypeEnum = z.enum([
|
|
|
5360
5368
|
"scraperFailed",
|
|
5361
5369
|
"jobActivityScraped",
|
|
5362
5370
|
"jobActivityScrapeFailed",
|
|
5363
|
-
"leadStatusChecked",
|
|
5364
5371
|
"leadStatusCheckFailed",
|
|
5365
5372
|
"leadStatusUpdated",
|
|
5366
5373
|
// Feed Scraper Events
|
|
@@ -5469,10 +5476,13 @@ const leadStatusEventMetadata = objectType({
|
|
|
5469
5476
|
organizationId: stringType(),
|
|
5470
5477
|
leadId: stringType(),
|
|
5471
5478
|
userId: stringType(),
|
|
5472
|
-
metadata: z
|
|
5479
|
+
metadata: z
|
|
5480
|
+
.object({
|
|
5473
5481
|
status: leadStatusSchema,
|
|
5474
5482
|
proposalId: stringType().nullable(),
|
|
5475
|
-
})
|
|
5483
|
+
})
|
|
5484
|
+
.optional(),
|
|
5485
|
+
reason: z.string().optional(),
|
|
5476
5486
|
});
|
|
5477
5487
|
|
|
5478
5488
|
const billingStripeMetadataSchema = objectType({
|
|
@@ -5501,9 +5511,14 @@ const subscriptionStripeMetadataItemSchema = objectType({
|
|
|
5501
5511
|
const subscriptionStripeMetadataSchema = objectType({
|
|
5502
5512
|
id: stringType(),
|
|
5503
5513
|
items: arrayType(subscriptionStripeMetadataItemSchema),
|
|
5514
|
+
invoice: objectType({
|
|
5515
|
+
id: stringType(),
|
|
5516
|
+
hosted_invoice_url: stringType().nullable(),
|
|
5517
|
+
}),
|
|
5504
5518
|
});
|
|
5505
5519
|
const subscriptionSchema = objectType({
|
|
5506
5520
|
planId: stringType(),
|
|
5521
|
+
pendingPlanId: stringType().nullable(),
|
|
5507
5522
|
status: subscriptionStatusEnum,
|
|
5508
5523
|
startedAt: numberType(),
|
|
5509
5524
|
currentPeriodEnd: numberType(),
|
|
@@ -5770,15 +5785,18 @@ const campaignInsightsSchema = z.object({
|
|
|
5770
5785
|
suitabilityRange90to100: z.number(),
|
|
5771
5786
|
});
|
|
5772
5787
|
|
|
5788
|
+
const campaignAnalyticsSchema = z.object({
|
|
5789
|
+
contacted: z.number().optional(),
|
|
5790
|
+
viewed: z.number().optional(),
|
|
5791
|
+
replied: z.number().optional(),
|
|
5792
|
+
interview: z.number().optional(),
|
|
5793
|
+
won: z.number().optional(),
|
|
5794
|
+
proposalsGenerated: z.number().optional(),
|
|
5795
|
+
leadsAnalyzed: z.number().optional(),
|
|
5796
|
+
failedLeads: z.number().optional(),
|
|
5797
|
+
});
|
|
5773
5798
|
const campaignAnalyticsStatsSchema = z.object({
|
|
5774
|
-
|
|
5775
|
-
totalStats: z.object({
|
|
5776
|
-
contacted: z.number(),
|
|
5777
|
-
viewed: z.number(),
|
|
5778
|
-
replied: z.number(),
|
|
5779
|
-
interview: z.number(),
|
|
5780
|
-
won: z.number(),
|
|
5781
|
-
}),
|
|
5799
|
+
totalStats: campaignAnalyticsSchema,
|
|
5782
5800
|
statsByDate: z.array(z.object({
|
|
5783
5801
|
label: z.string(),
|
|
5784
5802
|
contacted: z.number(),
|
|
@@ -5786,6 +5804,7 @@ const campaignAnalyticsStatsSchema = z.object({
|
|
|
5786
5804
|
replied: z.number(),
|
|
5787
5805
|
interview: z.number(),
|
|
5788
5806
|
won: z.number(),
|
|
5807
|
+
leadsAnalyzed: z.number(),
|
|
5789
5808
|
})),
|
|
5790
5809
|
});
|
|
5791
5810
|
const campaignAnalyticsResponseSchema = z.object({
|
|
@@ -5796,7 +5815,30 @@ const campaignAnalyticsResponseSchema = z.object({
|
|
|
5796
5815
|
interview: z.number(),
|
|
5797
5816
|
won: z.number(),
|
|
5798
5817
|
});
|
|
5799
|
-
const
|
|
5818
|
+
const campaignActivityTypeSchema = z.enum([
|
|
5819
|
+
"campaign_status",
|
|
5820
|
+
"lead_analysis",
|
|
5821
|
+
"lead_status",
|
|
5822
|
+
"proposal_sent",
|
|
5823
|
+
]);
|
|
5824
|
+
const campaignStatusActivitySchema = z.object({
|
|
5825
|
+
type: z.literal("campaign_status"),
|
|
5826
|
+
createdAt: z.number(),
|
|
5827
|
+
status: z.enum(["started", "paused"]),
|
|
5828
|
+
});
|
|
5829
|
+
const leadAnalysisActivitySchema = z.object({
|
|
5830
|
+
type: z.literal("lead_analysis"),
|
|
5831
|
+
createdAt: z.number(),
|
|
5832
|
+
lead: leadSchema.pick({
|
|
5833
|
+
id: true,
|
|
5834
|
+
title: true,
|
|
5835
|
+
datetime: true,
|
|
5836
|
+
jobUrl: true,
|
|
5837
|
+
}),
|
|
5838
|
+
suitabilityRating: z.number().min(0).max(100),
|
|
5839
|
+
});
|
|
5840
|
+
const leadStatusActivitySchema = z.object({
|
|
5841
|
+
type: z.literal("lead_status"),
|
|
5800
5842
|
createdAt: z.number(),
|
|
5801
5843
|
status: leadStatusSchema,
|
|
5802
5844
|
lead: leadSchema.pick({
|
|
@@ -5806,9 +5848,61 @@ const campaignActivitySchema = z.object({
|
|
|
5806
5848
|
jobUrl: true,
|
|
5807
5849
|
}),
|
|
5808
5850
|
});
|
|
5809
|
-
const
|
|
5810
|
-
|
|
5811
|
-
|
|
5851
|
+
const proposalSentActivitySchema = z.object({
|
|
5852
|
+
type: z.literal("proposal_sent"),
|
|
5853
|
+
createdAt: z.number(),
|
|
5854
|
+
lead: leadSchema.pick({
|
|
5855
|
+
id: true,
|
|
5856
|
+
title: true,
|
|
5857
|
+
datetime: true,
|
|
5858
|
+
jobUrl: true,
|
|
5859
|
+
}),
|
|
5860
|
+
});
|
|
5861
|
+
const campaignActivitySchema = z.discriminatedUnion("type", [
|
|
5862
|
+
campaignStatusActivitySchema,
|
|
5863
|
+
leadAnalysisActivitySchema,
|
|
5864
|
+
leadStatusActivitySchema,
|
|
5865
|
+
proposalSentActivitySchema,
|
|
5866
|
+
]);
|
|
5867
|
+
const campaignActivityCreateSchema = z.discriminatedUnion("type", [
|
|
5868
|
+
z.object({
|
|
5869
|
+
type: z.literal("campaign_status"),
|
|
5870
|
+
status: z.enum(["started", "paused"]),
|
|
5871
|
+
}),
|
|
5872
|
+
z.object({
|
|
5873
|
+
type: z.literal("lead_analysis"),
|
|
5874
|
+
lead: leadSchema.pick({
|
|
5875
|
+
id: true,
|
|
5876
|
+
title: true,
|
|
5877
|
+
datetime: true,
|
|
5878
|
+
jobUrl: true,
|
|
5879
|
+
}),
|
|
5880
|
+
suitabilityRating: z.number().min(0).max(100),
|
|
5881
|
+
}),
|
|
5882
|
+
z.object({
|
|
5883
|
+
type: z.literal("lead_status"),
|
|
5884
|
+
status: leadStatusSchema,
|
|
5885
|
+
lead: leadSchema.pick({
|
|
5886
|
+
id: true,
|
|
5887
|
+
title: true,
|
|
5888
|
+
datetime: true,
|
|
5889
|
+
jobUrl: true,
|
|
5890
|
+
}),
|
|
5891
|
+
}),
|
|
5892
|
+
z.object({
|
|
5893
|
+
type: z.literal("proposal_sent"),
|
|
5894
|
+
lead: leadSchema.pick({
|
|
5895
|
+
id: true,
|
|
5896
|
+
title: true,
|
|
5897
|
+
datetime: true,
|
|
5898
|
+
jobUrl: true,
|
|
5899
|
+
}),
|
|
5900
|
+
}),
|
|
5901
|
+
]);
|
|
5902
|
+
const updateCampaignAnalyticsSchema = z.object({
|
|
5903
|
+
organizationId: z.string(),
|
|
5904
|
+
campaignId: z.string(),
|
|
5905
|
+
field: z.string(),
|
|
5812
5906
|
});
|
|
5813
5907
|
|
|
5814
5908
|
const campaignAIMetricsSchema = z.object({
|
|
@@ -5826,6 +5920,7 @@ const invoiceStripeMetadataLineSchema = objectType({
|
|
|
5826
5920
|
});
|
|
5827
5921
|
const invoiceStripeMetadataSchema = objectType({
|
|
5828
5922
|
id: stringType(),
|
|
5923
|
+
status: z.enum(["draft", "open", "paid", "uncollectible", "void"]),
|
|
5829
5924
|
subscription_id: stringType(),
|
|
5830
5925
|
hosted_invoice_url: stringType(),
|
|
5831
5926
|
lines: arrayType(invoiceStripeMetadataLineSchema),
|
|
@@ -5869,13 +5964,19 @@ const planStripeMetadataSchema = objectType({
|
|
|
5869
5964
|
lookup_key: stringType(),
|
|
5870
5965
|
})),
|
|
5871
5966
|
});
|
|
5967
|
+
const planFeatureSchema = objectType({
|
|
5968
|
+
id: stringType(),
|
|
5969
|
+
description: stringType(),
|
|
5970
|
+
});
|
|
5872
5971
|
const planSchema = objectType({
|
|
5873
5972
|
id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
|
|
5874
5973
|
name: stringType(),
|
|
5875
5974
|
slug: stringType().regex(/^[a-z0-9-]+$/),
|
|
5975
|
+
description: stringType(),
|
|
5976
|
+
price: numberType(),
|
|
5876
5977
|
stripe: planStripeMetadataSchema,
|
|
5877
5978
|
version: numberType().int().positive(),
|
|
5878
|
-
features: arrayType(
|
|
5979
|
+
features: arrayType(planFeatureSchema),
|
|
5879
5980
|
sortOrder: numberType().int().positive(),
|
|
5880
5981
|
isActive: booleanType(),
|
|
5881
5982
|
createdAt: numberType(),
|
|
@@ -6362,6 +6463,13 @@ const commonQuestions = [
|
|
|
6362
6463
|
},
|
|
6363
6464
|
];
|
|
6364
6465
|
|
|
6466
|
+
const invoiceStatusNames = {
|
|
6467
|
+
open: "Open",
|
|
6468
|
+
paid: "Paid",
|
|
6469
|
+
past_due: "Past Due",
|
|
6470
|
+
payment_failed: "Payment Failed",
|
|
6471
|
+
};
|
|
6472
|
+
|
|
6365
6473
|
const jobStatusOrder = [
|
|
6366
6474
|
"leads",
|
|
6367
6475
|
"contacted",
|
|
@@ -12664,12 +12772,6 @@ const bidderAccountProviderDisplayMap = {
|
|
|
12664
12772
|
"user-provided": "User Provided",
|
|
12665
12773
|
};
|
|
12666
12774
|
|
|
12667
|
-
const creditDeductionAmountMap = {
|
|
12668
|
-
suitabilityComplete: 1,
|
|
12669
|
-
proposalComplete: 1,
|
|
12670
|
-
biddingComplete: 5,
|
|
12671
|
-
};
|
|
12672
|
-
|
|
12673
12775
|
// Main wrapper function
|
|
12674
12776
|
async function tryCatch(promise) {
|
|
12675
12777
|
try {
|
|
@@ -13039,7 +13141,9 @@ exports.buildRoute = buildRoute;
|
|
|
13039
13141
|
exports.campaignAIMetricsSchema = campaignAIMetricsSchema;
|
|
13040
13142
|
exports.campaignActivityCreateSchema = campaignActivityCreateSchema;
|
|
13041
13143
|
exports.campaignActivitySchema = campaignActivitySchema;
|
|
13144
|
+
exports.campaignActivityTypeSchema = campaignActivityTypeSchema;
|
|
13042
13145
|
exports.campaignAnalyticsResponseSchema = campaignAnalyticsResponseSchema;
|
|
13146
|
+
exports.campaignAnalyticsSchema = campaignAnalyticsSchema;
|
|
13043
13147
|
exports.campaignAnalyticsStatsSchema = campaignAnalyticsStatsSchema;
|
|
13044
13148
|
exports.campaignCountByStatusSchema = campaignCountByStatusSchema;
|
|
13045
13149
|
exports.campaignExpensesSchema = campaignExpensesSchema;
|
|
@@ -13047,6 +13151,7 @@ exports.campaignInsightsSchema = campaignInsightsSchema;
|
|
|
13047
13151
|
exports.campaignIntegrations = campaignIntegrations;
|
|
13048
13152
|
exports.campaignIntegrationsSchema = campaignIntegrationsSchema;
|
|
13049
13153
|
exports.campaignSchema = campaignSchema;
|
|
13154
|
+
exports.campaignStatusActivitySchema = campaignStatusActivitySchema;
|
|
13050
13155
|
exports.campaignStatusSchema = campaignStatusSchema;
|
|
13051
13156
|
exports.capitalize = capitalize;
|
|
13052
13157
|
exports.categoryEnum = categoryEnum;
|
|
@@ -13061,7 +13166,6 @@ exports.createBidderAccountSchema = createBidderAccountSchema;
|
|
|
13061
13166
|
exports.createCampaignSchema = createCampaignSchema;
|
|
13062
13167
|
exports.createOrganizationSchema = createOrganizationSchema;
|
|
13063
13168
|
exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
13064
|
-
exports.creditDeductionAmountMap = creditDeductionAmountMap;
|
|
13065
13169
|
exports.dailyUsageSchema = dailyUsageSchema;
|
|
13066
13170
|
exports.dateSchema = dateSchema;
|
|
13067
13171
|
exports.employmentHistorySchema = employmentHistorySchema;
|
|
@@ -13085,6 +13189,7 @@ exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
|
13085
13189
|
exports.invoiceLineItemSchema = invoiceLineItemSchema;
|
|
13086
13190
|
exports.invoiceSchema = invoiceSchema;
|
|
13087
13191
|
exports.invoiceStatusEnum = invoiceStatusEnum;
|
|
13192
|
+
exports.invoiceStatusNames = invoiceStatusNames;
|
|
13088
13193
|
exports.invoiceStripeMetadataLineSchema = invoiceStripeMetadataLineSchema;
|
|
13089
13194
|
exports.invoiceStripeMetadataSchema = invoiceStripeMetadataSchema;
|
|
13090
13195
|
exports.isNumeric = isNumeric;
|
|
@@ -13101,8 +13206,10 @@ exports.jobFiltersSchema = jobFiltersSchema;
|
|
|
13101
13206
|
exports.jobListingSchema = jobListingSchema;
|
|
13102
13207
|
exports.jobSkillsSchema = jobSkillsSchema;
|
|
13103
13208
|
exports.jobStatusOrder = jobStatusOrder;
|
|
13209
|
+
exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
13104
13210
|
exports.leadResponseSchema = leadResponseSchema;
|
|
13105
13211
|
exports.leadSchema = leadSchema;
|
|
13212
|
+
exports.leadStatusActivitySchema = leadStatusActivitySchema;
|
|
13106
13213
|
exports.leadStatusEventMetadata = leadStatusEventMetadata;
|
|
13107
13214
|
exports.leadStatusSchema = leadStatusSchema;
|
|
13108
13215
|
exports.limitsSchema = limitsSchema;
|
|
@@ -13122,11 +13229,13 @@ exports.organizationTypeSchema = organizationTypeSchema;
|
|
|
13122
13229
|
exports.passwordSchema = passwordSchema;
|
|
13123
13230
|
exports.paymentTypeEnum = paymentTypeEnum;
|
|
13124
13231
|
exports.periodUsageSchema = periodUsageSchema;
|
|
13232
|
+
exports.planFeatureSchema = planFeatureSchema;
|
|
13125
13233
|
exports.planSchema = planSchema;
|
|
13126
13234
|
exports.planStripeMetadataSchema = planStripeMetadataSchema;
|
|
13127
13235
|
exports.portfolioSchema = portfolioSchema;
|
|
13128
13236
|
exports.projectDurationEnum = projectDurationEnum;
|
|
13129
13237
|
exports.proposalSchema = proposalSchema;
|
|
13238
|
+
exports.proposalSentActivitySchema = proposalSentActivitySchema;
|
|
13130
13239
|
exports.proxyAvailableReplacementsSchema = proxyAvailableReplacementsSchema;
|
|
13131
13240
|
exports.proxyCountrySchema = proxyCountrySchema;
|
|
13132
13241
|
exports.proxyProviderSchema = proxyProviderSchema;
|
|
@@ -13168,8 +13277,10 @@ exports.transactionStripeMetadataSchema = transactionStripeMetadataSchema;
|
|
|
13168
13277
|
exports.transactionTypeEnum = transactionTypeEnum;
|
|
13169
13278
|
exports.tryCatch = tryCatch;
|
|
13170
13279
|
exports.updateBidderAccountSchema = updateBidderAccountSchema;
|
|
13280
|
+
exports.updateCampaignAnalyticsSchema = updateCampaignAnalyticsSchema;
|
|
13171
13281
|
exports.updateCampaignIntegrationsSchema = updateCampaignIntegrationsSchema;
|
|
13172
13282
|
exports.updateCampaignSchema = updateCampaignSchema;
|
|
13283
|
+
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
13173
13284
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
13174
13285
|
exports.upworkJobSchema = upworkJobSchema;
|
|
13175
13286
|
exports.upworkProfileSchema = upworkProfileSchema;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonQuestions = void 0;
|
|
4
|
+
exports.commonQuestions = [
|
|
5
|
+
{
|
|
6
|
+
id: 'similar_experience',
|
|
7
|
+
question: 'Describe your recent experience with similar projects',
|
|
8
|
+
placeholder: 'ex: [Answer the question based on case studies, if not certain ask to discuss in DMs]',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'profile_links',
|
|
12
|
+
question: 'Include a link to your GitHub profile and/or website',
|
|
13
|
+
placeholder: 'ex: [https://github.com/yourusername or https://yourwebsite.com]',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'frameworks',
|
|
17
|
+
question: 'What frameworks have you worked with?',
|
|
18
|
+
placeholder: 'ex: [NextJS, React, TailwindCSS, etc...]',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'testing_approach',
|
|
22
|
+
question: 'Describe your approach to testing and improving QA',
|
|
23
|
+
placeholder: 'ex: [We are using test-driven development, and we are using Jest for testing]',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'certifications',
|
|
27
|
+
question: 'Please list any certifications related to this project',
|
|
28
|
+
placeholder: 'ex: [Certification in React, Certification in NextJS, etc...]',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'similar_project',
|
|
32
|
+
question: 'What past project or job have you had that is most like this one and why?',
|
|
33
|
+
placeholder: "ex: [Describe a similar project and explain the key similarities... If you can't answer based on the case studies, ask to discuss in DMs]",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'project_fit',
|
|
37
|
+
question: 'Why do you think you are a good fit for this particular project?',
|
|
38
|
+
placeholder: 'ex: [Explain how your skills and experience match the project requirements...]',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'job_questions',
|
|
42
|
+
question: 'Do you have any questions about the job description?',
|
|
43
|
+
placeholder: 'ex: [Ask for any clarifications needed about the role or requirements...]',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'project_questions',
|
|
47
|
+
question: 'What questions do you have about the project?',
|
|
48
|
+
placeholder: 'ex: [Ask about project scope, timeline, team structure...]',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'project_suggestions',
|
|
52
|
+
question: 'Do you have suggestions to make this project run successfully?',
|
|
53
|
+
placeholder: 'ex: [Ask to discuss in DMs]',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'company_info',
|
|
57
|
+
question: 'What is your company website URL? . . . Company size?',
|
|
58
|
+
placeholder: 'ex: [https://company.com | Number of employees: ...]',
|
|
59
|
+
},
|
|
60
|
+
];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./common-questions";
|
|
2
|
+
export * from "./invoice";
|
|
2
3
|
export * from "./job-filter-options";
|
|
3
4
|
export * from "./job-status";
|
|
4
5
|
export { default as countryMapping } from "./mappings/countryMapping";
|
|
5
6
|
export { default as regionMapping } from "./mappings/regionMapping";
|
|
6
7
|
export * from "./routes";
|
|
7
8
|
export * from "./upwork-accounts";
|
|
8
|
-
export * from "./organization";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.regionMapping = exports.countryMapping = exports.paths = void 0;
|
|
21
|
+
exports.paths = {
|
|
22
|
+
auth: {
|
|
23
|
+
register: `auth/register`,
|
|
24
|
+
},
|
|
25
|
+
users: {
|
|
26
|
+
root: 'users',
|
|
27
|
+
details: (id) => `users/${id}`,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
__exportStar(require("./job-filter-options"), exports);
|
|
31
|
+
var countryMapping_1 = require("./mappings/countryMapping");
|
|
32
|
+
Object.defineProperty(exports, "countryMapping", { enumerable: true, get: function () { return __importDefault(countryMapping_1).default; } });
|
|
33
|
+
var regionMapping_1 = require("./mappings/regionMapping");
|
|
34
|
+
Object.defineProperty(exports, "regionMapping", { enumerable: true, get: function () { return __importDefault(regionMapping_1).default; } });
|
|
35
|
+
__exportStar(require("./job-filter-options"), exports);
|
|
36
|
+
__exportStar(require("./common-questions"), exports);
|
|
37
|
+
__exportStar(require("./job-status"), exports);
|
|
38
|
+
__exportStar(require("./routes"), exports);
|
|
39
|
+
__exportStar(require("./collections"), exports);
|
|
40
|
+
__exportStar(require("./upwork-accounts"), exports);
|