lancer-shared 1.2.146 → 1.2.147
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 +25 -25
- package/dist/constants/collections.js +11 -13
- package/dist/constants/common-questions.js +1 -4
- package/dist/constants/index.js +10 -32
- package/dist/constants/job-filter-options.js +1 -4
- package/dist/constants/job-status.js +7 -12
- package/dist/constants/mappings/countryMapping.js +1 -3
- package/dist/constants/mappings/regionMapping.js +1 -3
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/routes.js +39 -37
- package/dist/constants/upwork-accounts.js +3 -6
- package/dist/index.js +4 -20
- package/dist/schemas/account/account-status.js +2 -5
- package/dist/schemas/account/bidder-account.js +22 -24
- package/dist/schemas/account/index.js +3 -19
- package/dist/schemas/account/scraper-account.js +21 -24
- package/dist/schemas/ai/ai-config.js +8 -11
- package/dist/schemas/ai/index.js +3 -19
- package/dist/schemas/ai/proposal.js +10 -13
- package/dist/schemas/ai/suitability.js +8 -11
- package/dist/schemas/bid/bid-result.js +9 -13
- package/dist/schemas/bid/bid.js +29 -30
- package/dist/schemas/bid/index.js +2 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
- package/dist/schemas/campaign/campaign-analytics.d.ts +8 -0
- package/dist/schemas/campaign/campaign-analytics.js +32 -31
- package/dist/schemas/campaign/campaign-expenses.js +5 -8
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
- package/dist/schemas/campaign/campaign-integrations.js +10 -13
- package/dist/schemas/campaign/campaign-job-count.js +3 -6
- package/dist/schemas/campaign/campaign.js +32 -35
- package/dist/schemas/campaign/index.js +7 -23
- package/dist/schemas/chat-message/chat-message.js +7 -10
- package/dist/schemas/chat-message/index.js +1 -17
- package/dist/schemas/config/agency-config.js +6 -9
- package/dist/schemas/config/index.js +1 -17
- package/dist/schemas/event/index.d.ts +58 -0
- package/dist/schemas/index.js +17 -32
- package/dist/schemas/job/haha.json +581 -0
- package/dist/schemas/job-filters/index.js +1 -17
- package/dist/schemas/job-filters/job-filters.js +62 -65
- package/dist/schemas/lead/index.js +173 -19
- package/dist/schemas/lead/lead-note.js +13 -16
- package/dist/schemas/lead/lead-status.js +3 -6
- package/dist/schemas/lead/nuxt.js +287 -0
- package/dist/schemas/logger/index.js +1 -17
- package/dist/schemas/logger/log-event.d.ts +10 -10
- package/dist/schemas/logger/log-event.js +100 -49
- package/dist/schemas/logger/scraper-events.d.ts +17 -17
- package/dist/schemas/meter-event/index.d.ts +12 -0
- package/dist/schemas/organization/index.js +70 -17
- package/dist/schemas/organization/member.js +7 -0
- package/dist/schemas/organization/organization.d.ts +177 -7
- package/dist/schemas/organization/organization.js +14 -17
- package/dist/schemas/organization/subscription.js +17 -0
- package/dist/schemas/profile/index.d.ts +2551 -0
- package/dist/schemas/proxy/index.js +3 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
- package/dist/schemas/proxy/proxy-country.js +249 -0
- package/dist/schemas/proxy/proxy.js +25 -19
- package/dist/schemas/saved-search/index.js +8 -11
- package/dist/schemas/scraper/exceptions.d.ts +3 -3
- package/dist/schemas/scraper/index.js +2 -18
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/dist/schemas/scraper/scrape-payload.js +19 -14
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +12 -9
- package/dist/schemas/talent/index.d.ts +1314 -0
- package/dist/schemas/tier/index.d.ts +119 -0
- package/dist/schemas/time-filter/index.js +5 -8
- package/dist/schemas/transaction/index.js +17 -0
- package/dist/schemas/usage/index.js +18 -0
- package/dist/schemas/user/index.js +38 -41
- package/dist/types/account/account-status.js +1 -2
- package/dist/types/account/bidder-account.js +1 -2
- package/dist/types/account/index.js +3 -19
- package/dist/types/account/scraper-account.js +1 -2
- package/dist/types/ai/ai-config.js +1 -2
- package/dist/types/ai/index.js +3 -19
- package/dist/types/ai/proposal.js +1 -2
- package/dist/types/ai/suitability.js +1 -2
- package/dist/types/bid/bid-result.js +1 -2
- package/dist/types/bid/bid.js +1 -2
- package/dist/types/bid/index.js +2 -18
- package/dist/types/campaign/campaign-analytics.js +1 -2
- package/dist/types/campaign/campaign-expenses.js +1 -2
- package/dist/types/campaign/campaign-insights.js +1 -2
- package/dist/types/campaign/campaign-integrations.js +1 -2
- package/dist/types/campaign/campaign-job-count.js +1 -2
- package/dist/types/campaign/campaign.js +1 -2
- package/dist/types/campaign/index.js +6 -22
- package/dist/types/chat-message/chat-message.js +1 -2
- package/dist/types/chat-message/index.js +1 -17
- package/dist/types/config/agency-config.js +1 -2
- package/dist/types/config/index.js +1 -17
- package/dist/types/index.js +15 -29
- package/dist/types/job/index.js +3 -19
- package/dist/types/job/job-note.js +1 -2
- package/dist/types/job/job-status.js +1 -4
- package/dist/types/job/nuxt.js +1 -0
- package/dist/types/job-filters/index.js +1 -17
- package/dist/types/job-filters/job-filters.js +1 -2
- package/dist/types/logger/index.js +1 -17
- package/dist/types/logger/log-event.js +1 -2
- package/dist/types/saved-search/index.js +1 -2
- package/dist/types/scraper/index.js +2 -18
- package/dist/types/scraper/scrape-payload.js +1 -2
- package/dist/types/scraper/scrape-result.js +1 -2
- package/dist/types/shared.js +1 -0
- package/dist/types/time-filter/index.js +1 -2
- package/dist/types/transaction/index.js +1 -0
- package/dist/types/usage/index.js +1 -0
- package/dist/types/user/index.js +1 -2
- package/dist/utils/index.js +1 -17
- package/dist/utils/try-catch.js +8 -23
- 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/proxies.d.ts +0 -4
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
- 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/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/feed-job.d.ts +0 -866
- package/dist/schemas/job/index.js +0 -19
- 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-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- 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 -608
- package/dist/schemas/job/pipeline-job.js +0 -43
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.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-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- 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/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
- 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/bundle.cjs.js
CHANGED
|
@@ -13718,12 +13718,12 @@ const LogEventTypeEnum = z.enum([
|
|
|
13718
13718
|
'scrapeFeedStarted',
|
|
13719
13719
|
'scrapeFeedCompleted',
|
|
13720
13720
|
'scrapeFeedFailed',
|
|
13721
|
-
'
|
|
13721
|
+
'feedJobRefineStarted',
|
|
13722
13722
|
'jobScraped',
|
|
13723
|
-
'
|
|
13724
|
-
'
|
|
13725
|
-
'
|
|
13726
|
-
'
|
|
13723
|
+
'feedJobRefineFailed',
|
|
13724
|
+
'feedJobChunkRefineStarted',
|
|
13725
|
+
'feedJobChunkRefineCompleted',
|
|
13726
|
+
'feedJobChunkRefineFailed',
|
|
13727
13727
|
'scrapeJobsCompleted',
|
|
13728
13728
|
'scraperAccountError',
|
|
13729
13729
|
]);
|
|
@@ -13850,7 +13850,7 @@ const scrapeFeedFailedEventMetadata = objectType({
|
|
|
13850
13850
|
errorCode: stringType(),
|
|
13851
13851
|
errorStack: stringType(),
|
|
13852
13852
|
});
|
|
13853
|
-
const
|
|
13853
|
+
const feedJobRefineStartedEventMetadata = objectType({
|
|
13854
13854
|
listing: jobListingSchema,
|
|
13855
13855
|
region: regionSchema,
|
|
13856
13856
|
accountId: stringType(),
|
|
@@ -13861,7 +13861,7 @@ const jobScrapedEventMetadata = objectType({
|
|
|
13861
13861
|
region: regionSchema,
|
|
13862
13862
|
duration: stringType(),
|
|
13863
13863
|
});
|
|
13864
|
-
const
|
|
13864
|
+
const feedJobRefineFailedEventMetadata = objectType({
|
|
13865
13865
|
listing: jobListingSchema,
|
|
13866
13866
|
region: regionSchema,
|
|
13867
13867
|
accountId: stringType(),
|
|
@@ -13870,22 +13870,22 @@ const scrapeJobDetailsFailedEventMetadata = objectType({
|
|
|
13870
13870
|
errorCode: stringType(),
|
|
13871
13871
|
errorStack: stringType(),
|
|
13872
13872
|
});
|
|
13873
|
-
const
|
|
13873
|
+
const feedJobChunkRefineStartedEventMetadata = objectType({
|
|
13874
13874
|
region: regionSchema,
|
|
13875
13875
|
accountIds: arrayType(stringType()),
|
|
13876
13876
|
accountEmails: arrayType(stringType()),
|
|
13877
13877
|
jobListingsCount: numberType(),
|
|
13878
13878
|
});
|
|
13879
|
-
const
|
|
13879
|
+
const feedJobChunkRefineCompletedEventMetadata = objectType({
|
|
13880
13880
|
region: regionSchema,
|
|
13881
13881
|
feedScraperAccountId: stringType(),
|
|
13882
13882
|
feedScraperAccountEmail: stringType(),
|
|
13883
13883
|
uniqueJobsFound: numberType(),
|
|
13884
13884
|
duration: stringType(),
|
|
13885
|
-
|
|
13886
|
-
|
|
13885
|
+
refineFeedJobSuccessCount: numberType(),
|
|
13886
|
+
refineFeedJobFailCount: numberType(),
|
|
13887
13887
|
});
|
|
13888
|
-
const
|
|
13888
|
+
const feedJobChunkRefineFailedEventMetadata = objectType({
|
|
13889
13889
|
region: regionSchema,
|
|
13890
13890
|
accountId: stringType(),
|
|
13891
13891
|
accountEmail: stringType(),
|
|
@@ -14053,20 +14053,20 @@ class ParseJobListingsException extends Error {
|
|
|
14053
14053
|
const parseJobListingsException = (message) => {
|
|
14054
14054
|
return new ParseJobListingsException(message);
|
|
14055
14055
|
};
|
|
14056
|
-
class
|
|
14057
|
-
code = '
|
|
14056
|
+
class FeedJobRefineException extends Error {
|
|
14057
|
+
code = 'FEED_JOB_REFINE_FAILED';
|
|
14058
14058
|
constructor(jobListing) {
|
|
14059
14059
|
super(`Failed to scrape job details for ${JSON.stringify(jobListing)}.`);
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
|
-
const
|
|
14063
|
-
return new
|
|
14062
|
+
const feedJobRefineFailedException = (jobListing) => {
|
|
14063
|
+
return new FeedJobRefineException(jobListing);
|
|
14064
14064
|
};
|
|
14065
14065
|
class ScraperAccountProxyNotFoundException extends Error {
|
|
14066
14066
|
scraperAccountId;
|
|
14067
14067
|
proxyId;
|
|
14068
|
-
code =
|
|
14069
|
-
constructor(scraperAccountId, proxyId, message =
|
|
14068
|
+
code = 'SCRAPER_ACCOUNT_PROXY_NOT_FOUND';
|
|
14069
|
+
constructor(scraperAccountId, proxyId, message = 'Scraper account proxy not found.') {
|
|
14070
14070
|
super(message);
|
|
14071
14071
|
this.scraperAccountId = scraperAccountId;
|
|
14072
14072
|
this.proxyId = proxyId;
|
|
@@ -14622,6 +14622,7 @@ exports.EvaluateElementException = EvaluateElementException;
|
|
|
14622
14622
|
exports.EvaluateFunctionException = EvaluateFunctionException;
|
|
14623
14623
|
exports.FEED_JOB_TO_JOB_DETAILS_FIELD_MAPPING = FEED_JOB_TO_JOB_DETAILS_FIELD_MAPPING;
|
|
14624
14624
|
exports.FailedToParseNuxtJobException = FailedToParseNuxtJobException;
|
|
14625
|
+
exports.FeedJobRefineException = FeedJobRefineException;
|
|
14625
14626
|
exports.FeedScrapeException = FeedScrapeException;
|
|
14626
14627
|
exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
|
|
14627
14628
|
exports.GoToUrlException = GoToUrlException;
|
|
@@ -14652,7 +14653,6 @@ exports.ProposalSubmitFailedException = ProposalSubmitFailedException;
|
|
|
14652
14653
|
exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
|
|
14653
14654
|
exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
|
|
14654
14655
|
exports.ROUTES = ROUTES;
|
|
14655
|
-
exports.ScrapeJobDetailsException = ScrapeJobDetailsException;
|
|
14656
14656
|
exports.ScraperAccountProxyNotFoundException = ScraperAccountProxyNotFoundException;
|
|
14657
14657
|
exports.SelectAgencyException = SelectAgencyException;
|
|
14658
14658
|
exports.SelectContractorException = SelectContractorException;
|
|
@@ -14743,6 +14743,12 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
|
|
|
14743
14743
|
exports.experienceLevelEnum = experienceLevelEnum;
|
|
14744
14744
|
exports.externalProxySchema = externalProxySchema;
|
|
14745
14745
|
exports.failedToParseNuxtJobException = failedToParseNuxtJobException;
|
|
14746
|
+
exports.feedJobChunkRefineCompletedEventMetadata = feedJobChunkRefineCompletedEventMetadata;
|
|
14747
|
+
exports.feedJobChunkRefineFailedEventMetadata = feedJobChunkRefineFailedEventMetadata;
|
|
14748
|
+
exports.feedJobChunkRefineStartedEventMetadata = feedJobChunkRefineStartedEventMetadata;
|
|
14749
|
+
exports.feedJobRefineFailedEventMetadata = feedJobRefineFailedEventMetadata;
|
|
14750
|
+
exports.feedJobRefineFailedException = feedJobRefineFailedException;
|
|
14751
|
+
exports.feedJobRefineStartedEventMetadata = feedJobRefineStartedEventMetadata;
|
|
14746
14752
|
exports.feedJobSchema = feedJobSchema;
|
|
14747
14753
|
exports.feedScrapeException = feedScrapeException;
|
|
14748
14754
|
exports.filterOptionItemSchema = filterOptionItemSchema;
|
|
@@ -14873,14 +14879,8 @@ exports.scrapeFeedFailedEventMetadata = scrapeFeedFailedEventMetadata;
|
|
|
14873
14879
|
exports.scrapeFeedResultSchema = scrapeFeedResultSchema;
|
|
14874
14880
|
exports.scrapeFeedStartedEventMetadata = scrapeFeedStartedEventMetadata;
|
|
14875
14881
|
exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
14876
|
-
exports.scrapeJobDetailsException = scrapeJobDetailsException;
|
|
14877
|
-
exports.scrapeJobDetailsFailedEventMetadata = scrapeJobDetailsFailedEventMetadata;
|
|
14878
|
-
exports.scrapeJobDetailsStartedEventMetadata = scrapeJobDetailsStartedEventMetadata;
|
|
14879
14882
|
exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
|
|
14880
14883
|
exports.scrapeJobsCompletedEventMetadata = scrapeJobsCompletedEventMetadata;
|
|
14881
|
-
exports.scrapeJobsDetailsCompletedEventMetadata = scrapeJobsDetailsCompletedEventMetadata;
|
|
14882
|
-
exports.scrapeJobsDetailsFailedEventMetadata = scrapeJobsDetailsFailedEventMetadata;
|
|
14883
|
-
exports.scrapeJobsDetailsStartedEventMetadata = scrapeJobsDetailsStartedEventMetadata;
|
|
14884
14884
|
exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
14885
14885
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
14886
14886
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLLECTIONS = void 0;
|
|
4
1
|
// Base collection names
|
|
5
|
-
|
|
6
|
-
USERS:
|
|
7
|
-
SETTINGS:
|
|
8
|
-
CAMPAIGNS:
|
|
9
|
-
LEADS:
|
|
10
|
-
EVENTS:
|
|
11
|
-
SCRAPER_ACCOUNTS:
|
|
12
|
-
BIDDER_ACCOUNTS:
|
|
2
|
+
export const COLLECTIONS = {
|
|
3
|
+
USERS: "users",
|
|
4
|
+
SETTINGS: "settings",
|
|
5
|
+
CAMPAIGNS: "campaigns",
|
|
6
|
+
LEADS: "leads",
|
|
7
|
+
EVENTS: "events",
|
|
8
|
+
SCRAPER_ACCOUNTS: "scrapers",
|
|
9
|
+
BIDDER_ACCOUNTS: "bidders",
|
|
13
10
|
CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
|
|
14
|
-
ORGANIZATIONS:
|
|
15
|
-
PROXIES:
|
|
11
|
+
ORGANIZATIONS: "organizations",
|
|
12
|
+
PROXIES: "proxies",
|
|
13
|
+
TRANSACTIONS: "transactions",
|
|
16
14
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonQuestions = void 0;
|
|
4
|
-
exports.commonQuestions = [
|
|
1
|
+
export const commonQuestions = [
|
|
5
2
|
{
|
|
6
3
|
id: 'similar_experience',
|
|
7
4
|
question: 'Describe your recent experience with similar projects',
|
package/dist/constants/index.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
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 = {
|
|
1
|
+
export const paths = {
|
|
22
2
|
auth: {
|
|
23
3
|
register: `auth/register`,
|
|
24
4
|
},
|
|
@@ -27,14 +7,12 @@ exports.paths = {
|
|
|
27
7
|
details: (id) => `users/${id}`,
|
|
28
8
|
},
|
|
29
9
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
__exportStar(require("./collections"), exports);
|
|
40
|
-
__exportStar(require("./upwork-accounts"), exports);
|
|
10
|
+
export * from './job-filter-options';
|
|
11
|
+
export { default as countryMapping } from './mappings/countryMapping';
|
|
12
|
+
export { default as regionMapping } from './mappings/regionMapping';
|
|
13
|
+
export * from './job-filter-options';
|
|
14
|
+
export * from './common-questions';
|
|
15
|
+
export * from './job-status';
|
|
16
|
+
export * from './routes';
|
|
17
|
+
export * from './collections';
|
|
18
|
+
export * from './upwork-accounts';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JOB_FILTER_OPTIONS = void 0;
|
|
4
|
-
exports.JOB_FILTER_OPTIONS = {
|
|
1
|
+
export const JOB_FILTER_OPTIONS = {
|
|
5
2
|
REGIONS: ["Worldwide", "UKOnly", "USOnly"],
|
|
6
3
|
PROJECT_DURATION: [
|
|
7
4
|
"Less than 1 month",
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNextStatus = exports.getPreviousStatus = exports.jobStatusOrder = void 0;
|
|
4
|
-
exports.jobStatusOrder = [
|
|
1
|
+
export const jobStatusOrder = [
|
|
5
2
|
"leads",
|
|
6
3
|
"contacted",
|
|
7
4
|
"viewed",
|
|
@@ -10,17 +7,15 @@ exports.jobStatusOrder = [
|
|
|
10
7
|
"won",
|
|
11
8
|
"lost",
|
|
12
9
|
];
|
|
13
|
-
const getPreviousStatus = (status) => {
|
|
10
|
+
export const getPreviousStatus = (status) => {
|
|
14
11
|
if (status === "won")
|
|
15
12
|
return "negotiations";
|
|
16
13
|
if (status === "lost")
|
|
17
14
|
return "negotiations";
|
|
18
|
-
const index =
|
|
19
|
-
return index > 0 ?
|
|
15
|
+
const index = jobStatusOrder.indexOf(status);
|
|
16
|
+
return index > 0 ? jobStatusOrder[index - 1] : null;
|
|
20
17
|
};
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
return index < exports.jobStatusOrder.length - 1 ? exports.jobStatusOrder[index + 1] : null;
|
|
18
|
+
export const getNextStatus = (status) => {
|
|
19
|
+
const index = jobStatusOrder.indexOf(status);
|
|
20
|
+
return index < jobStatusOrder.length - 1 ? jobStatusOrder[index + 1] : null;
|
|
25
21
|
};
|
|
26
|
-
exports.getNextStatus = getNextStatus;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const countryMapping = {
|
|
4
2
|
USA: "United States",
|
|
5
3
|
GBR: "United Kingdom",
|
|
@@ -119,4 +117,4 @@ const countryMapping = {
|
|
|
119
117
|
VCT: "Saint Vincent and the Grenadines",
|
|
120
118
|
VGB: "British Virgin Islands",
|
|
121
119
|
};
|
|
122
|
-
|
|
120
|
+
export default countryMapping;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const regionMapping = {
|
|
4
2
|
Africa: [
|
|
5
3
|
"Algeria",
|
|
@@ -239,4 +237,4 @@ const regionMapping = {
|
|
|
239
237
|
"Wallis and Futuna",
|
|
240
238
|
],
|
|
241
239
|
};
|
|
242
|
-
|
|
240
|
+
export default regionMapping;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const creditDeductionAmountMap: Record<
|
|
1
|
+
import { TrackUsageEventType } from "../schemas";
|
|
2
|
+
export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
|
package/dist/constants/routes.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildRoute = exports.ROUTES = void 0;
|
|
4
|
-
exports.ROUTES = {
|
|
1
|
+
export const ROUTES = {
|
|
5
2
|
AUTH: {
|
|
6
|
-
BASE:
|
|
7
|
-
REGISTER:
|
|
3
|
+
BASE: "auth",
|
|
4
|
+
REGISTER: "auth/register",
|
|
8
5
|
},
|
|
9
6
|
EVENTS: {
|
|
10
|
-
BASE:
|
|
7
|
+
BASE: "events",
|
|
11
8
|
BY_ID: (id) => `events/${id}`,
|
|
12
9
|
},
|
|
13
10
|
CAMPAIGNS: {
|
|
14
|
-
BASE:
|
|
11
|
+
BASE: "campaigns",
|
|
15
12
|
BY_ID: (id) => `campaigns/${id}`,
|
|
16
13
|
LEADS: {
|
|
17
14
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -44,71 +41,76 @@ exports.ROUTES = {
|
|
|
44
41
|
},
|
|
45
42
|
},
|
|
46
43
|
JOBS: {
|
|
47
|
-
BASE:
|
|
44
|
+
BASE: "jobs",
|
|
48
45
|
BY_ID: (id) => `jobs/${id}`,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
BY_URL: (url) => `jobs/${encodeURIComponent(url)}`,
|
|
47
|
+
IMPORT: "jobs/import",
|
|
48
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
49
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
52
50
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
53
|
-
SEARCH:
|
|
51
|
+
SEARCH: "jobs/search",
|
|
54
52
|
},
|
|
55
53
|
USERS: {
|
|
56
|
-
BASE:
|
|
54
|
+
BASE: "users",
|
|
57
55
|
BY_ID: (id) => `users/${id}`,
|
|
58
56
|
},
|
|
59
57
|
AI_CONFIG: {
|
|
60
|
-
BASE:
|
|
61
|
-
GENERATE_KNOWLEDGE_BASE:
|
|
58
|
+
BASE: "ai-config",
|
|
59
|
+
GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
|
|
62
60
|
},
|
|
63
61
|
COOKIES: {
|
|
64
|
-
BASE:
|
|
65
|
-
SCRAPE:
|
|
62
|
+
BASE: "cookies",
|
|
63
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
66
64
|
},
|
|
67
65
|
SCRAPING: {
|
|
68
|
-
BASE:
|
|
69
|
-
START_SCRAPING:
|
|
70
|
-
START_WORLDWIDE_SCRAPING:
|
|
71
|
-
START_US_SCRAPING:
|
|
72
|
-
START_UK_SCRAPING:
|
|
73
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
74
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
75
|
-
UPDATE_ACTIVITY_4H_US:
|
|
76
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
77
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
78
|
-
UPDATE_ACTIVITY_24H_US:
|
|
66
|
+
BASE: "scraping",
|
|
67
|
+
START_SCRAPING: "scraping/start",
|
|
68
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
69
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
70
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
71
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
72
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
73
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
74
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
75
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
76
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
77
|
+
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
78
|
+
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
79
|
+
SCRAPE_FEED_US: "scraping/feed-us",
|
|
80
|
+
SCRAPE_JOB: "scraping/job",
|
|
81
|
+
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
79
82
|
},
|
|
80
83
|
ADMIN: {
|
|
81
|
-
BASE:
|
|
84
|
+
BASE: "admin",
|
|
82
85
|
BIDDER_ACCOUNTS: {
|
|
83
|
-
BASE:
|
|
86
|
+
BASE: "admin/bidder-accounts",
|
|
84
87
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
85
88
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
86
89
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
87
90
|
},
|
|
88
91
|
SCRAPER_ACCOUNTS: {
|
|
89
|
-
BASE:
|
|
92
|
+
BASE: "admin/scraper-accounts",
|
|
90
93
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
91
94
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
92
95
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
93
96
|
},
|
|
94
97
|
PROXIES: {
|
|
95
|
-
BASE:
|
|
98
|
+
BASE: "admin/proxies",
|
|
96
99
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
97
100
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
98
|
-
SYNC:
|
|
101
|
+
SYNC: "admin/proxies/sync",
|
|
99
102
|
},
|
|
100
103
|
},
|
|
101
104
|
BID: {
|
|
102
|
-
BASE:
|
|
105
|
+
BASE: "bid",
|
|
103
106
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
104
107
|
},
|
|
105
108
|
};
|
|
106
109
|
// Helper function to build route with parameters
|
|
107
|
-
const buildRoute = (route, params = {}) => {
|
|
110
|
+
export const buildRoute = (route, params = {}) => {
|
|
108
111
|
let builtRoute = route;
|
|
109
112
|
Object.entries(params).forEach(([key, value]) => {
|
|
110
113
|
builtRoute = builtRoute.replace(`:${key}`, value);
|
|
111
114
|
});
|
|
112
115
|
return builtRoute;
|
|
113
116
|
};
|
|
114
|
-
exports.buildRoute = buildRoute;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bidderAccountProviderDisplayMap = exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
-
exports.accountStatusOrder = [
|
|
1
|
+
export const accountStatusOrder = [
|
|
5
2
|
'verification_required',
|
|
6
3
|
'shadow_banned',
|
|
7
4
|
'healthy',
|
|
8
5
|
'banned',
|
|
9
6
|
'suspended',
|
|
10
7
|
];
|
|
11
|
-
|
|
8
|
+
export const accountStatusDisplayMap = {
|
|
12
9
|
verification_required: 'Verification Required',
|
|
13
10
|
shadow_banned: 'Shadow Banned',
|
|
14
11
|
healthy: 'Healthy',
|
|
15
12
|
banned: 'Banned',
|
|
16
13
|
suspended: 'Suspended',
|
|
17
14
|
};
|
|
18
|
-
|
|
15
|
+
export const bidderAccountProviderDisplayMap = {
|
|
19
16
|
'lancer-provided': 'Lancer Provided',
|
|
20
17
|
'user-provided': 'User Provided',
|
|
21
18
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schemas"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
|
-
__exportStar(require("./constants"), exports);
|
|
20
|
-
__exportStar(require("./utils"), exports);
|
|
1
|
+
export * from './schemas';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './utils';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.accountStatusSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.accountStatusSchema = zod_1.z.enum([
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const accountStatusSchema = z.enum([
|
|
6
3
|
'verification_required',
|
|
7
4
|
'shadow_banned',
|
|
8
5
|
'healthy',
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.bidderAccountProvider = zod_1.z.enum([
|
|
7
|
-
'user-provided',
|
|
8
|
-
'lancer-provided',
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { accountStatusSchema } from "./account-status";
|
|
3
|
+
export const bidderAccountProvider = z.enum([
|
|
4
|
+
"user-provided",
|
|
5
|
+
"lancer-provided",
|
|
9
6
|
]);
|
|
10
|
-
|
|
11
|
-
id:
|
|
12
|
-
provider:
|
|
13
|
-
email:
|
|
14
|
-
password:
|
|
15
|
-
cookies:
|
|
16
|
-
status:
|
|
17
|
-
verified:
|
|
18
|
-
isActive:
|
|
19
|
-
assignedOrganizations:
|
|
20
|
-
lastUsed:
|
|
21
|
-
multiLoginProfileId:
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
export const bidderAccountSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
provider: bidderAccountProvider,
|
|
10
|
+
email: z.string().email(),
|
|
11
|
+
password: z.string(),
|
|
12
|
+
cookies: z.array(z.any()).nullable(),
|
|
13
|
+
status: accountStatusSchema,
|
|
14
|
+
verified: z.boolean(),
|
|
15
|
+
isActive: z.boolean(),
|
|
16
|
+
assignedOrganizations: z.array(z.string()),
|
|
17
|
+
lastUsed: z.number().nullable(),
|
|
18
|
+
multiLoginProfileId: z.string().nullable(),
|
|
19
|
+
proxyId: z.string().nullable(),
|
|
20
|
+
createdAt: z.number(),
|
|
21
|
+
updatedAt: z.number(),
|
|
24
22
|
});
|
|
25
|
-
|
|
23
|
+
export const createBidderAccountSchema = bidderAccountSchema.pick({
|
|
26
24
|
email: true,
|
|
27
25
|
password: true,
|
|
28
26
|
provider: true,
|
|
@@ -30,7 +28,7 @@ exports.createBidderAccountSchema = exports.bidderAccountSchema.pick({
|
|
|
30
28
|
verified: true,
|
|
31
29
|
isActive: true,
|
|
32
30
|
});
|
|
33
|
-
|
|
31
|
+
export const updateBidderAccountSchema = bidderAccountSchema
|
|
34
32
|
.omit({
|
|
35
33
|
id: true,
|
|
36
34
|
})
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./account-status"), exports);
|
|
18
|
-
__exportStar(require("./bidder-account"), exports);
|
|
19
|
-
__exportStar(require("./scraper-account"), exports);
|
|
1
|
+
export * from './account-status';
|
|
2
|
+
export * from './bidder-account';
|
|
3
|
+
export * from './scraper-account';
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
timestamp: zod_1.z.number(),
|
|
21
|
-
screenshotUrl: zod_1.z.string(),
|
|
22
|
-
htmlUrl: zod_1.z.string(),
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { accountStatusSchema } from './account-status';
|
|
3
|
+
import { regionEnum } from '../job-filters';
|
|
4
|
+
export const scraperAccountSchema = z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
email: z.string().email(),
|
|
7
|
+
password: z.string(),
|
|
8
|
+
cookies: z.record(z.string(), z.string()),
|
|
9
|
+
proxy_credentials: z.string(),
|
|
10
|
+
region: regionEnum,
|
|
11
|
+
isActive: z.boolean(),
|
|
12
|
+
lastUsed: z.number(),
|
|
13
|
+
status: accountStatusSchema,
|
|
14
|
+
verified: z.boolean(),
|
|
15
|
+
errors: z.array(z.object({
|
|
16
|
+
errorMessage: z.string(),
|
|
17
|
+
timestamp: z.number(),
|
|
18
|
+
screenshotUrl: z.string(),
|
|
19
|
+
htmlUrl: z.string(),
|
|
23
20
|
})),
|
|
24
21
|
});
|
|
25
|
-
|
|
22
|
+
export const createScraperAccountSchema = scraperAccountSchema.pick({
|
|
26
23
|
email: true,
|
|
27
24
|
password: true,
|
|
28
25
|
proxy_credentials: true,
|
|
@@ -30,7 +27,7 @@ exports.createScraperAccountSchema = exports.scraperAccountSchema.pick({
|
|
|
30
27
|
verified: true,
|
|
31
28
|
isActive: true,
|
|
32
29
|
});
|
|
33
|
-
|
|
30
|
+
export const updateScraperAccountSchema = scraperAccountSchema
|
|
34
31
|
.omit({
|
|
35
32
|
id: true,
|
|
36
33
|
})
|