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.
Files changed (50) hide show
  1. package/dist/bundle.cjs.js +68 -44
  2. package/dist/constants/job-filter-options.d.ts +1 -0
  3. package/dist/constants/routes.d.ts +1 -0
  4. package/dist/schemas/agent/index.d.ts +10 -5
  5. package/dist/schemas/bid/bid.d.ts +5134 -177
  6. package/dist/schemas/bidder/bid-result.d.ts +30 -0
  7. package/dist/schemas/bidder/bid.d.ts +8010 -0
  8. package/dist/schemas/bidder/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
  9. package/dist/schemas/bidder/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
  10. package/dist/schemas/bidder/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
  11. package/dist/schemas/bidder/exceptions/element-not-clickable.exception.d.ts +5 -0
  12. package/dist/schemas/bidder/exceptions/evalaute-element.exception.d.ts +5 -0
  13. package/dist/schemas/bidder/exceptions/evaluate-function.exception.d.ts +5 -0
  14. package/dist/schemas/bidder/exceptions/get-multilogin-browser.exception.d.ts +5 -0
  15. package/dist/schemas/bidder/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
  16. package/dist/schemas/bidder/exceptions/index.d.ts +63 -0
  17. package/dist/schemas/bidder/exceptions/init-browser.exception.d.ts +5 -0
  18. package/dist/schemas/bidder/exceptions/insufficient-connects.exception.d.ts +5 -0
  19. package/dist/schemas/bidder/exceptions/invalid-credentials.exception.d.ts +5 -0
  20. package/dist/schemas/bidder/exceptions/invalid-job-url.exception.d.ts +5 -0
  21. package/dist/schemas/bidder/exceptions/login-failed.exception.d.ts +5 -0
  22. package/dist/schemas/bidder/exceptions/multilogin-authentication.exception.d.ts +5 -0
  23. package/dist/schemas/bidder/exceptions/navigation-timeout.exception.d.ts +5 -0
  24. package/dist/schemas/bidder/exceptions/new-browser-page.exception.d.ts +5 -0
  25. package/dist/schemas/bidder/exceptions/new-page.exception.d.ts +5 -0
  26. package/dist/schemas/bidder/exceptions/open-new-url.exception.d.ts +15 -0
  27. package/dist/schemas/bidder/exceptions/parse-connects.exception.d.ts +5 -0
  28. package/dist/schemas/bidder/exceptions/proposal-error-alert.exception.d.ts +5 -0
  29. package/dist/schemas/bidder/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
  30. package/dist/schemas/bidder/exceptions/proposal-generation-failed.exception.d.ts +5 -0
  31. package/dist/schemas/bidder/exceptions/proposal-submit-failed.exception.d.ts +5 -0
  32. package/dist/schemas/bidder/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
  33. package/dist/schemas/bidder/exceptions/question-pair-not-matching.exception.d.ts +5 -0
  34. package/dist/schemas/bidder/exceptions/select-agency.exception.d.ts +5 -0
  35. package/dist/schemas/bidder/exceptions/select-contractor.exception.d.ts +5 -0
  36. package/dist/schemas/bidder/exceptions/selector-not-found.exception.d.ts +5 -0
  37. package/dist/schemas/bidder/exceptions/typed-value-not-matching.exception.d.ts +5 -0
  38. package/dist/schemas/bidder/exceptions/typing-input-field.exception.d.ts +5 -0
  39. package/dist/schemas/bidder/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
  40. package/dist/schemas/bidder/index.d.ts +4 -0
  41. package/dist/schemas/bidder/sync-proposal-status.d.ts +12 -0
  42. package/dist/schemas/campaign/campaign-analytics.d.ts +44 -27
  43. package/dist/schemas/campaign/campaign.d.ts +9 -9
  44. package/dist/schemas/index.d.ts +22 -22
  45. package/dist/schemas/lead/index.d.ts +36 -18
  46. package/dist/schemas/lead/lead-status.d.ts +17 -6
  47. package/dist/schemas/logger/log-event.d.ts +8 -5
  48. package/dist/schemas/organization/index.d.ts +4 -0
  49. package/dist/schemas/scraper/scrape-payload.d.ts +20 -10
  50. 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 EvaluateElementException extends Error {
2
+ readonly code = "EVALUATE_ELEMENT_EXCEPTION";
3
+ constructor(element: any, message: string);
4
+ }
5
+ export declare function evaluateElementException(element: any, message: string): EvaluateElementException;
@@ -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 GetMultiloginBrowserException extends Error {
2
+ readonly code = "GET_MULTILOGIN_BROWSER_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const getMultiloginBrowserException: (message: string) => GetMultiloginBrowserException;
@@ -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 InitBrowserException extends Error {
2
+ readonly code = "INIT_BROWSER_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const initBrowserException: (message: string) => InitBrowserException;
@@ -0,0 +1,5 @@
1
+ export declare class InsufficientConnectsException extends Error {
2
+ readonly code = "INSUFFICIENT_CONNECTS_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const insufficientConnectsException: (message: string) => InsufficientConnectsException;
@@ -0,0 +1,5 @@
1
+ export declare class InvalidCredentialsException extends Error {
2
+ readonly code = "INVALID_CREDENTIALS_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const invalidCredentialsException: (message: string) => InvalidCredentialsException;
@@ -0,0 +1,5 @@
1
+ export declare class InvalidJobUrlException extends Error {
2
+ readonly code = "INVALID_JOB_URL_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare function invalidJobUrlException(message: string): InvalidJobUrlException;
@@ -0,0 +1,5 @@
1
+ export declare class LoginFailedException extends Error {
2
+ readonly code = "LOGIN_FAILED_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const loginFailedException: (message: string) => LoginFailedException;
@@ -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,5 @@
1
+ export declare class NewPageException extends Error {
2
+ readonly code = "NEW_PAGE_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const newPageException: (message: string) => NewPageException;
@@ -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 ParseConnectsException extends Error {
2
+ readonly code = "PARSE_CONNECTS_EXCEPTION";
3
+ constructor();
4
+ }
5
+ export declare const parseConnectsException: () => ParseConnectsException;
@@ -0,0 +1,5 @@
1
+ export declare class ProposalErrorAlertException extends Error {
2
+ readonly code = "PROPOSAL_ERROR_ALERT_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const proposalErrorAlertException: (message: string) => ProposalErrorAlertException;
@@ -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 ProposalSubmitFailedException extends Error {
2
+ readonly code = "PROPOSAL_SUBMIT_FAILED";
3
+ constructor(message: string);
4
+ }
5
+ export declare const proposalSubmitFailedException: (message: string) => ProposalSubmitFailedException;
@@ -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 SelectAgencyException extends Error {
2
+ readonly code = "SELECT_AGENCY_EXCEPTION";
3
+ constructor(agencyName: string, message: string);
4
+ }
5
+ export declare function selectAgencyException(agencyName: string, message: string): SelectAgencyException;
@@ -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 SelectorNotFoundError extends Error {
2
+ readonly code = "SELECTOR_NOT_FOUND_ERROR";
3
+ constructor(selector: string, context?: string);
4
+ }
5
+ export declare const selectorNotFoundError: (selector: string, context?: string) => SelectorNotFoundError;
@@ -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,4 @@
1
+ export * from './bid';
2
+ export * from './bid-result';
3
+ export * from './exceptions';
4
+ export * from './sync-proposal-status';
@@ -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>;