lancer-shared 1.2.340 → 1.2.342
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 +15 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +14 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +2 -0
- package/dist/schemas/account/bidder-account.d.ts +7 -0
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -0
- package/dist/schemas/dashboard/index.d.ts +11 -8
- package/dist/schemas/logger/log-event.d.ts +9 -6
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6762,6 +6762,7 @@ const bidderAccountSchema = z.object({
|
|
|
6762
6762
|
isProtected: z.boolean().optional(),
|
|
6763
6763
|
status: bidderAccountStatusEnum,
|
|
6764
6764
|
errorMessage: z.string().nullable(),
|
|
6765
|
+
requiresManualReview: z.boolean().nullable(),
|
|
6765
6766
|
connectedToChat: z.boolean().nullable(),
|
|
6766
6767
|
failedToRefreshRooms: z.boolean().nullable(),
|
|
6767
6768
|
failedToRefreshRoomsAttempts: z.number().nullable(),
|
|
@@ -8925,6 +8926,13 @@ const TRACKED_BID_FAILURE_MONITORING_CODES = [
|
|
|
8925
8926
|
];
|
|
8926
8927
|
const TRACKED_BID_FAILURE_MONITORING_CODES_SET = new Set(TRACKED_BID_FAILURE_MONITORING_CODES);
|
|
8927
8928
|
const isTrackedBidFailureMonitoringCode = (code) => !!code && TRACKED_BID_FAILURE_MONITORING_CODES_SET.has(code);
|
|
8929
|
+
const USER_FACING_CREDENTIAL_ERROR_CODES = [
|
|
8930
|
+
'INVALID_CREDENTIALS_EXCEPTION',
|
|
8931
|
+
'INCORRECT_SECURITY_QUESTION_ANSWER_EXCEPTION',
|
|
8932
|
+
'TWO_FACTOR_PRESENT_EXCEPTION',
|
|
8933
|
+
];
|
|
8934
|
+
const USER_FACING_CREDENTIAL_ERROR_CODES_SET = new Set(USER_FACING_CREDENTIAL_ERROR_CODES);
|
|
8935
|
+
const isUserFacingCredentialErrorCode = (code) => !!code && USER_FACING_CREDENTIAL_ERROR_CODES_SET.has(code);
|
|
8928
8936
|
|
|
8929
8937
|
const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
8930
8938
|
organizationId: z.string(),
|
|
@@ -9104,6 +9112,7 @@ const monitoringBidFailureRecordSchema = z.object({
|
|
|
9104
9112
|
organizationName: z.string().nullable(),
|
|
9105
9113
|
campaignId: z.string().nullable(),
|
|
9106
9114
|
leadId: z.string().nullable(),
|
|
9115
|
+
skipBidding: z.boolean().nullable(),
|
|
9107
9116
|
reason: z.string().nullable(),
|
|
9108
9117
|
errorCode: z.string().nullable(),
|
|
9109
9118
|
errorMessage: z.string().nullable(),
|
|
@@ -9113,6 +9122,7 @@ const bidderMonitoringRowSchema = z.object({
|
|
|
9113
9122
|
'biddingFailed',
|
|
9114
9123
|
'syncProposalsStatusFailed',
|
|
9115
9124
|
'refreshRoomsFailed',
|
|
9125
|
+
'unauthenticatedSessionDetected',
|
|
9116
9126
|
]),
|
|
9117
9127
|
eventId: z.string(),
|
|
9118
9128
|
bidderAccountId: z.string().nullable(),
|
|
@@ -9500,6 +9510,7 @@ const verifyCredentialsSucceededEventMetadataSchema = objectType({
|
|
|
9500
9510
|
const verifyCredentialsFailedEventMetadataSchema = objectType({
|
|
9501
9511
|
bidderAccountId: z.string(),
|
|
9502
9512
|
errorMessage: z.string(),
|
|
9513
|
+
errorCode: z.string().optional(),
|
|
9503
9514
|
});
|
|
9504
9515
|
const refreshRoomsFailedEventMetadataSchema = objectType({
|
|
9505
9516
|
bidderAccountId: z.string().optional(),
|
|
@@ -15846,6 +15857,7 @@ const ROUTES = {
|
|
|
15846
15857
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
15847
15858
|
REFRESH_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-proxy`,
|
|
15848
15859
|
REFRESH_WITH_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-with-iproyal-proxy`,
|
|
15860
|
+
REFRESH_WITH_MARS_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-with-mars-proxy`,
|
|
15849
15861
|
AGENCIES: 'admin/bidder-accounts/agencies',
|
|
15850
15862
|
ASSIGN_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-iproyal-proxy`,
|
|
15851
15863
|
ASSIGN_DECODO_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-decodo-proxy`,
|
|
@@ -15870,6 +15882,7 @@ const ROUTES = {
|
|
|
15870
15882
|
BIDDER_FAILURES: 'admin/dashboard/bidder-failures',
|
|
15871
15883
|
MARK_BIDDER_FAILURE_VIEWED: (eventId) => `admin/dashboard/bidder-failures/${eventId}/viewed`,
|
|
15872
15884
|
BIDDER_FAILURE_VIEWS: 'admin/dashboard/bidder-failure-views',
|
|
15885
|
+
CONNECTION_REQUESTS: 'admin/dashboard/connection-requests',
|
|
15873
15886
|
},
|
|
15874
15887
|
ALERTS: {
|
|
15875
15888
|
BASE: 'admin/alerts',
|
|
@@ -24815,6 +24828,7 @@ exports.TRACKED_BID_FAILURE_MONITORING_CODES = TRACKED_BID_FAILURE_MONITORING_CO
|
|
|
24815
24828
|
exports.TwoFactorPresentException = TwoFactorPresentException;
|
|
24816
24829
|
exports.TypedValueInFieldNotMatchingException = TypedValueInFieldNotMatchingException;
|
|
24817
24830
|
exports.TypingInputFieldException = TypingInputFieldException;
|
|
24831
|
+
exports.USER_FACING_CREDENTIAL_ERROR_CODES = USER_FACING_CREDENTIAL_ERROR_CODES;
|
|
24818
24832
|
exports.WaitForFunctionTimeoutError = WaitForFunctionTimeoutError;
|
|
24819
24833
|
exports.acceptUpworkInvitationResponseSchema = acceptUpworkInvitationResponseSchema;
|
|
24820
24834
|
exports.acceptUpworkInvitationSchema = acceptUpworkInvitationSchema;
|
|
@@ -25018,6 +25032,7 @@ exports.isPaymentVerifiedEnum = isPaymentVerifiedEnum;
|
|
|
25018
25032
|
exports.isPhoneVerifiedEnum = isPhoneVerifiedEnum;
|
|
25019
25033
|
exports.isRoomCrmStatus = isRoomCrmStatus;
|
|
25020
25034
|
exports.isTrackedBidFailureMonitoringCode = isTrackedBidFailureMonitoringCode;
|
|
25035
|
+
exports.isUserFacingCredentialErrorCode = isUserFacingCredentialErrorCode;
|
|
25021
25036
|
exports.isWorkTime = isWorkTime;
|
|
25022
25037
|
exports.jobActivityDeltaSchema = jobActivityDeltaSchema;
|
|
25023
25038
|
exports.jobActivityOffsetEnum = jobActivityOffsetEnum;
|