lancer-shared 1.2.341 → 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.
@@ -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(),
@@ -9502,6 +9510,7 @@ const verifyCredentialsSucceededEventMetadataSchema = objectType({
9502
9510
  const verifyCredentialsFailedEventMetadataSchema = objectType({
9503
9511
  bidderAccountId: z.string(),
9504
9512
  errorMessage: z.string(),
9513
+ errorCode: z.string().optional(),
9505
9514
  });
9506
9515
  const refreshRoomsFailedEventMetadataSchema = objectType({
9507
9516
  bidderAccountId: z.string().optional(),
@@ -15873,6 +15882,7 @@ const ROUTES = {
15873
15882
  BIDDER_FAILURES: 'admin/dashboard/bidder-failures',
15874
15883
  MARK_BIDDER_FAILURE_VIEWED: (eventId) => `admin/dashboard/bidder-failures/${eventId}/viewed`,
15875
15884
  BIDDER_FAILURE_VIEWS: 'admin/dashboard/bidder-failure-views',
15885
+ CONNECTION_REQUESTS: 'admin/dashboard/connection-requests',
15876
15886
  },
15877
15887
  ALERTS: {
15878
15888
  BASE: 'admin/alerts',
@@ -24818,6 +24828,7 @@ exports.TRACKED_BID_FAILURE_MONITORING_CODES = TRACKED_BID_FAILURE_MONITORING_CO
24818
24828
  exports.TwoFactorPresentException = TwoFactorPresentException;
24819
24829
  exports.TypedValueInFieldNotMatchingException = TypedValueInFieldNotMatchingException;
24820
24830
  exports.TypingInputFieldException = TypingInputFieldException;
24831
+ exports.USER_FACING_CREDENTIAL_ERROR_CODES = USER_FACING_CREDENTIAL_ERROR_CODES;
24821
24832
  exports.WaitForFunctionTimeoutError = WaitForFunctionTimeoutError;
24822
24833
  exports.acceptUpworkInvitationResponseSchema = acceptUpworkInvitationResponseSchema;
24823
24834
  exports.acceptUpworkInvitationSchema = acceptUpworkInvitationSchema;
@@ -25021,6 +25032,7 @@ exports.isPaymentVerifiedEnum = isPaymentVerifiedEnum;
25021
25032
  exports.isPhoneVerifiedEnum = isPhoneVerifiedEnum;
25022
25033
  exports.isRoomCrmStatus = isRoomCrmStatus;
25023
25034
  exports.isTrackedBidFailureMonitoringCode = isTrackedBidFailureMonitoringCode;
25035
+ exports.isUserFacingCredentialErrorCode = isUserFacingCredentialErrorCode;
25024
25036
  exports.isWorkTime = isWorkTime;
25025
25037
  exports.jobActivityDeltaSchema = jobActivityDeltaSchema;
25026
25038
  exports.jobActivityOffsetEnum = jobActivityOffsetEnum;