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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class CloudflareChallengeFailedException extends Error {
|
|
2
|
+
readonly code = "CLOUDFLARE_CHALLENGE_FAILED_EXCEPTION";
|
|
3
|
+
constructor(url: string, errorMessage?: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const cloudflareProtectionFailure: (url: string, errorMessage?: string) => CloudflareChallengeFailedException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class DeleteMultiloginProfileException extends Error {
|
|
2
|
+
readonly code = "DELETE_MULTILOGIN_PROFILE_EXCEPTION";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const deleteMultiloginProfileException: (message: string) => DeleteMultiloginProfileException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class DropdownOptionNotPresentException extends Error {
|
|
2
|
+
readonly code = "DROPDOWN_OPTION_NOT_PRESENT_EXCEPTION";
|
|
3
|
+
constructor(selector: string, option: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function dropdownOptionNotPresentException(selector: string, option: string): DropdownOptionNotPresentException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class ElementNotClickableException extends Error {
|
|
2
|
+
readonly code = "ELEMENT_NOT_CLICKABLE_EXCEPTION";
|
|
3
|
+
constructor(context: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function elementNotClickableException(elementInfo: any, message: string): ElementNotClickableException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class EvaluateFunctionException extends Error {
|
|
2
|
+
readonly code = "EVALUATE_FUNCTION_EXCEPTION";
|
|
3
|
+
constructor(fn: () => void, args: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function evaluateFunctionException(fn: () => void, args: string, message: string): EvaluateFunctionException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class IncorrectSecurityQuestionAnswerException extends Error {
|
|
2
|
+
readonly code = "INCORRECT_SECURITY_QUESTION_ANSWER_EXCEPTION";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const incorrectSecurityQuestionAnswerException: (message: string) => IncorrectSecurityQuestionAnswerException;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CloudflareChallengeFailedException } from './cloudflare-challenge-failed.exception';
|
|
2
|
+
import { DeleteMultiloginProfileException } from './delete-multilogin-profile.exception';
|
|
3
|
+
import { DropdownOptionNotPresentException } from './dropdown-option-not-present.exception';
|
|
4
|
+
import { ElementNotClickableException } from './element-not-clickable.exception';
|
|
5
|
+
import { EvaluateElementException } from './evalaute-element.exception';
|
|
6
|
+
import { EvaluateFunctionException } from './evaluate-function.exception';
|
|
7
|
+
import { GetMultiloginBrowserException } from './get-multilogin-browser.exception';
|
|
8
|
+
import { IncorrectSecurityQuestionAnswerException } from './incorrect-security-question-answer.exception';
|
|
9
|
+
import { InitBrowserException } from './init-browser.exception';
|
|
10
|
+
import { InsufficientConnectsException } from './insufficient-connects.exception';
|
|
11
|
+
import { InvalidCredentialsException } from './invalid-credentials.exception';
|
|
12
|
+
import { InvalidJobUrlException } from './invalid-job-url.exception';
|
|
13
|
+
import { LoginFailedException } from './login-failed.exception';
|
|
14
|
+
import { MultiloginAuthenticationException } from './multilogin-authentication.exception';
|
|
15
|
+
import { NavigationTimeoutException } from './navigation-timeout.exception';
|
|
16
|
+
import { NewBrowserPageException } from './new-browser-page.exception';
|
|
17
|
+
import { NewPageException } from './new-page.exception';
|
|
18
|
+
import { GoToUrlException } from './open-new-url.exception';
|
|
19
|
+
import { ParseConnectsException } from './parse-connects.exception';
|
|
20
|
+
import { ProposalErrorAlertException } from './proposal-error-alert.exception';
|
|
21
|
+
import { ProposalFormWarningAlertException } from './proposal-form-warning-alert.exception';
|
|
22
|
+
import { ProposalGenerationFailedException } from './proposal-generation-failed.exception';
|
|
23
|
+
import { ProposalSubmitFailedException } from './proposal-submit-failed.exception';
|
|
24
|
+
import { PuppeteerConnectionErrorException } from './pupeteer-conection-error.exception';
|
|
25
|
+
import { QuestionPairNotMatchingException } from './question-pair-not-matching.exception';
|
|
26
|
+
import { SelectAgencyException } from './select-agency.exception';
|
|
27
|
+
import { SelectContractorException } from './select-contractor.exception';
|
|
28
|
+
import { SelectorNotFoundError } from './selector-not-found.exception';
|
|
29
|
+
import { TypedValueInFieldNotMatchingException } from './typed-value-not-matching.exception';
|
|
30
|
+
import { TypingInputFieldException } from './typing-input-field.exception';
|
|
31
|
+
import { WaitForFunctionTimeoutError } from './wait-for-function-timeout.exception';
|
|
32
|
+
export * from './cloudflare-challenge-failed.exception';
|
|
33
|
+
export * from './delete-multilogin-profile.exception';
|
|
34
|
+
export * from './dropdown-option-not-present.exception';
|
|
35
|
+
export * from './element-not-clickable.exception';
|
|
36
|
+
export * from './evalaute-element.exception';
|
|
37
|
+
export * from './evaluate-function.exception';
|
|
38
|
+
export * from './get-multilogin-browser.exception';
|
|
39
|
+
export * from './incorrect-security-question-answer.exception';
|
|
40
|
+
export * from './init-browser.exception';
|
|
41
|
+
export * from './insufficient-connects.exception';
|
|
42
|
+
export * from './invalid-credentials.exception';
|
|
43
|
+
export * from './invalid-job-url.exception';
|
|
44
|
+
export * from './login-failed.exception';
|
|
45
|
+
export * from './multilogin-authentication.exception';
|
|
46
|
+
export * from './navigation-timeout.exception';
|
|
47
|
+
export * from './new-browser-page.exception';
|
|
48
|
+
export * from './new-page.exception';
|
|
49
|
+
export * from './open-new-url.exception';
|
|
50
|
+
export * from './parse-connects.exception';
|
|
51
|
+
export * from './proposal-error-alert.exception';
|
|
52
|
+
export * from './proposal-form-warning-alert.exception';
|
|
53
|
+
export * from './proposal-generation-failed.exception';
|
|
54
|
+
export * from './proposal-submit-failed.exception';
|
|
55
|
+
export * from './pupeteer-conection-error.exception';
|
|
56
|
+
export * from './question-pair-not-matching.exception';
|
|
57
|
+
export * from './select-agency.exception';
|
|
58
|
+
export * from './select-contractor.exception';
|
|
59
|
+
export * from './selector-not-found.exception';
|
|
60
|
+
export * from './typed-value-not-matching.exception';
|
|
61
|
+
export * from './typing-input-field.exception';
|
|
62
|
+
export * from './wait-for-function-timeout.exception';
|
|
63
|
+
export type BiddingError = CloudflareChallengeFailedException | DeleteMultiloginProfileException | DropdownOptionNotPresentException | ElementNotClickableException | EvaluateFunctionException | GetMultiloginBrowserException | InitBrowserException | InsufficientConnectsException | InvalidJobUrlException | LoginFailedException | NavigationTimeoutException | NewBrowserPageException | NewPageException | GoToUrlException | ParseConnectsException | ProposalErrorAlertException | ProposalFormWarningAlertException | ProposalSubmitFailedException | PuppeteerConnectionErrorException | QuestionPairNotMatchingException | SelectAgencyException | SelectContractorException | SelectorNotFoundError | TypedValueInFieldNotMatchingException | TypingInputFieldException | WaitForFunctionTimeoutError | IncorrectSecurityQuestionAnswerException | EvaluateElementException | MultiloginAuthenticationException | InvalidCredentialsException | ProposalGenerationFailedException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class MultiloginAuthenticationException extends Error {
|
|
2
|
+
readonly code = "MULTILOGIN_AUTHENTICATION_EXCEPTION";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const multiloginAuthenticationException: (message: string) => MultiloginAuthenticationException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class NavigationTimeoutException extends Error {
|
|
2
|
+
readonly code = "NAVIGATION_TIMEOUT_EXCEPTION";
|
|
3
|
+
constructor(url: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const navigationTimeoutException: (url: string, message: string) => NavigationTimeoutException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class NewBrowserPageException extends Error {
|
|
2
|
+
readonly code = "NEW_BROWSER_PAGE_EXCEPTION";
|
|
3
|
+
constructor(profileId: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const newBrowserPageException: (profileId: string, message: string) => NewBrowserPageException;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class GoToUrlException extends Error {
|
|
2
|
+
readonly code = "GO_TO_URL_EXCEPTION";
|
|
3
|
+
constructor(url: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const goToUrlException: (url: string, message: string) => GoToUrlException;
|
|
6
|
+
export declare class PageClosedException extends Error {
|
|
7
|
+
readonly code = "PAGE_CLOSED_EXCEPTION";
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
export declare const pageClosedException: () => PageClosedException;
|
|
11
|
+
export declare class PageContentException extends Error {
|
|
12
|
+
readonly code = "PAGE_CONTENT_EXCEPTION";
|
|
13
|
+
constructor(url: string, message: string);
|
|
14
|
+
}
|
|
15
|
+
export declare const pageContentException: (url: string, message: string) => PageContentException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class ProposalFormWarningAlertException extends Error {
|
|
2
|
+
readonly code = "PROPOSAL_FORM_WARNING_ALERT_EXCEPTION";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function proposalFormWarningAlertException(message: string): ProposalFormWarningAlertException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class ProposalGenerationFailedException extends Error {
|
|
2
|
+
readonly code = "PROPOSAL_GENERATION_FAILED_EXCEPTION";
|
|
3
|
+
constructor(message: string, organizationId: string, campaignId: string, leadId: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const proposalGenerationFailed: (message: string, leadId: string, campaignId: string, organizationId: string) => ProposalGenerationFailedException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class PuppeteerConnectionErrorException extends Error {
|
|
2
|
+
readonly code = "PUPPETEER_CONNECTION_ERROR_EXCEPTION";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const puppeteerConnectionErrorException: (message: string) => PuppeteerConnectionErrorException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class QuestionPairNotMatchingException extends Error {
|
|
2
|
+
readonly code = "QUESTION_PAIR_NOT_MATCHING";
|
|
3
|
+
constructor(upworkQuestion: string, generatedQuestion: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const questionPairNotMatchingException: (upworkQuestion: string, generatedQuestion: string) => QuestionPairNotMatchingException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class SelectContractorException extends Error {
|
|
2
|
+
readonly code = "SELECT_CONTRACTOR_EXCEPTION";
|
|
3
|
+
constructor(contractorName: string, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function selectContractorException(contractorName: string, message: string): SelectContractorException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class TypedValueInFieldNotMatchingException extends Error {
|
|
2
|
+
readonly code = "TYPED_VALUE_IN_FIELD_NOT_MATCHING_EXCEPTION";
|
|
3
|
+
constructor(element: any, inputValue: string, correctValue: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const typedValueInFieldNotMatchingException: (element: any, inputValue: string, correctValue: string) => TypedValueInFieldNotMatchingException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class TypingInputFieldException extends Error {
|
|
2
|
+
readonly code = "TYPING_INPUT_FIELD_EXCEPTION";
|
|
3
|
+
constructor(element: string | any, message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const typingInputFieldException: (element: string | any, message: string) => TypingInputFieldException;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class WaitForFunctionTimeoutError extends Error {
|
|
2
|
+
readonly code = "WAIT_FOR_FUNCTION_TIMEOUT_ERROR";
|
|
3
|
+
constructor(fn: Function, timeout: number);
|
|
4
|
+
}
|
|
5
|
+
export declare const waitForFunctionTimeoutError: (fn: Function, timeout: number) => WaitForFunctionTimeoutError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const syncProposalsStatusRequestPayloadSchema: z.ZodObject<{
|
|
3
|
+
organizationId: z.ZodString;
|
|
4
|
+
bidderAccountId: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
organizationId: string;
|
|
7
|
+
bidderAccountId: string;
|
|
8
|
+
}, {
|
|
9
|
+
organizationId: string;
|
|
10
|
+
bidderAccountId: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type SyncProposalsStatusRequestPayload = z.infer<typeof syncProposalsStatusRequestPayloadSchema>;
|