lancer-shared 1.2.341 → 1.2.343
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 +30 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +28 -3
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +8 -0
- package/dist/schemas/account/bidder-account.d.ts +7 -0
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -0
- package/dist/schemas/infrastructure/index.d.ts +73 -12
- package/dist/schemas/logger/log-event.d.ts +3 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6660,6 +6660,7 @@ const largeCountries = [
|
|
|
6660
6660
|
'IT',
|
|
6661
6661
|
'ES',
|
|
6662
6662
|
'UA',
|
|
6663
|
+
'TH',
|
|
6663
6664
|
];
|
|
6664
6665
|
|
|
6665
6666
|
const proxyStatusSchema = z.enum([
|
|
@@ -6762,6 +6763,7 @@ const bidderAccountSchema = z.object({
|
|
|
6762
6763
|
isProtected: z.boolean().optional(),
|
|
6763
6764
|
status: bidderAccountStatusEnum,
|
|
6764
6765
|
errorMessage: z.string().nullable(),
|
|
6766
|
+
requiresManualReview: z.boolean().nullable(),
|
|
6765
6767
|
connectedToChat: z.boolean().nullable(),
|
|
6766
6768
|
failedToRefreshRooms: z.boolean().nullable(),
|
|
6767
6769
|
failedToRefreshRoomsAttempts: z.number().nullable(),
|
|
@@ -8925,6 +8927,13 @@ const TRACKED_BID_FAILURE_MONITORING_CODES = [
|
|
|
8925
8927
|
];
|
|
8926
8928
|
const TRACKED_BID_FAILURE_MONITORING_CODES_SET = new Set(TRACKED_BID_FAILURE_MONITORING_CODES);
|
|
8927
8929
|
const isTrackedBidFailureMonitoringCode = (code) => !!code && TRACKED_BID_FAILURE_MONITORING_CODES_SET.has(code);
|
|
8930
|
+
const USER_FACING_CREDENTIAL_ERROR_CODES = [
|
|
8931
|
+
'INVALID_CREDENTIALS_EXCEPTION',
|
|
8932
|
+
'INCORRECT_SECURITY_QUESTION_ANSWER_EXCEPTION',
|
|
8933
|
+
'TWO_FACTOR_PRESENT_EXCEPTION',
|
|
8934
|
+
];
|
|
8935
|
+
const USER_FACING_CREDENTIAL_ERROR_CODES_SET = new Set(USER_FACING_CREDENTIAL_ERROR_CODES);
|
|
8936
|
+
const isUserFacingCredentialErrorCode = (code) => !!code && USER_FACING_CREDENTIAL_ERROR_CODES_SET.has(code);
|
|
8928
8937
|
|
|
8929
8938
|
const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
8930
8939
|
organizationId: z.string(),
|
|
@@ -9184,15 +9193,22 @@ const hetznerMetadataSchema = objectType({
|
|
|
9184
9193
|
const bidderInstanceStatusEnum = z.enum(["available", "unavailable"]);
|
|
9185
9194
|
const bidderInstanceSchema = objectType({
|
|
9186
9195
|
id: stringType(),
|
|
9196
|
+
name: stringType(),
|
|
9187
9197
|
ipAddress: stringType(),
|
|
9188
9198
|
domain: stringType().nullable(),
|
|
9189
9199
|
bidderAccounts: arrayType(stringType()),
|
|
9190
|
-
gcp: gcpMetadataSchema,
|
|
9191
|
-
hetzner: hetznerMetadataSchema,
|
|
9200
|
+
gcp: gcpMetadataSchema.optional(),
|
|
9201
|
+
hetzner: hetznerMetadataSchema.optional(),
|
|
9202
|
+
isDefault: z.boolean().default(false),
|
|
9192
9203
|
status: bidderInstanceStatusEnum,
|
|
9193
9204
|
createdAt: numberType(),
|
|
9194
9205
|
updatedAt: numberType(),
|
|
9195
9206
|
});
|
|
9207
|
+
const createBidderInstanceSchema = bidderInstanceSchema.pick({
|
|
9208
|
+
name: true,
|
|
9209
|
+
ipAddress: true,
|
|
9210
|
+
isDefault: true,
|
|
9211
|
+
});
|
|
9196
9212
|
|
|
9197
9213
|
const invoiceStripeMetadataLineSchema = objectType({
|
|
9198
9214
|
description: stringType(),
|
|
@@ -9502,6 +9518,7 @@ const verifyCredentialsSucceededEventMetadataSchema = objectType({
|
|
|
9502
9518
|
const verifyCredentialsFailedEventMetadataSchema = objectType({
|
|
9503
9519
|
bidderAccountId: z.string(),
|
|
9504
9520
|
errorMessage: z.string(),
|
|
9521
|
+
errorCode: z.string().optional(),
|
|
9505
9522
|
});
|
|
9506
9523
|
const refreshRoomsFailedEventMetadataSchema = objectType({
|
|
9507
9524
|
bidderAccountId: z.string().optional(),
|
|
@@ -15873,6 +15890,7 @@ const ROUTES = {
|
|
|
15873
15890
|
BIDDER_FAILURES: 'admin/dashboard/bidder-failures',
|
|
15874
15891
|
MARK_BIDDER_FAILURE_VIEWED: (eventId) => `admin/dashboard/bidder-failures/${eventId}/viewed`,
|
|
15875
15892
|
BIDDER_FAILURE_VIEWS: 'admin/dashboard/bidder-failure-views',
|
|
15893
|
+
CONNECTION_REQUESTS: 'admin/dashboard/connection-requests',
|
|
15876
15894
|
},
|
|
15877
15895
|
ALERTS: {
|
|
15878
15896
|
BASE: 'admin/alerts',
|
|
@@ -15894,6 +15912,13 @@ const ROUTES = {
|
|
|
15894
15912
|
UPWORK_INVITATIONS_CONFIG: {
|
|
15895
15913
|
BASE: 'admin/upwork-invitation-bucket-account',
|
|
15896
15914
|
},
|
|
15915
|
+
BIDDER_INSTANCES: {
|
|
15916
|
+
BASE: 'admin/bidder-instances',
|
|
15917
|
+
BY_ID: (id) => `admin/bidder-instances/${id}`,
|
|
15918
|
+
ASSIGN_ACCOUNTS: (id) => `admin/bidder-instances/${id}/assign-accounts`,
|
|
15919
|
+
UNASSIGN_ACCOUNTS: (id) => `admin/bidder-instances/${id}/unassign-accounts`,
|
|
15920
|
+
SET_DEFAULT: (id) => `admin/bidder-instances/${id}/set-default`,
|
|
15921
|
+
},
|
|
15897
15922
|
},
|
|
15898
15923
|
BID: {
|
|
15899
15924
|
BASE: 'bid',
|
|
@@ -24818,6 +24843,7 @@ exports.TRACKED_BID_FAILURE_MONITORING_CODES = TRACKED_BID_FAILURE_MONITORING_CO
|
|
|
24818
24843
|
exports.TwoFactorPresentException = TwoFactorPresentException;
|
|
24819
24844
|
exports.TypedValueInFieldNotMatchingException = TypedValueInFieldNotMatchingException;
|
|
24820
24845
|
exports.TypingInputFieldException = TypingInputFieldException;
|
|
24846
|
+
exports.USER_FACING_CREDENTIAL_ERROR_CODES = USER_FACING_CREDENTIAL_ERROR_CODES;
|
|
24821
24847
|
exports.WaitForFunctionTimeoutError = WaitForFunctionTimeoutError;
|
|
24822
24848
|
exports.acceptUpworkInvitationResponseSchema = acceptUpworkInvitationResponseSchema;
|
|
24823
24849
|
exports.acceptUpworkInvitationSchema = acceptUpworkInvitationSchema;
|
|
@@ -24906,6 +24932,7 @@ exports.convertToUtc = convertToUtc;
|
|
|
24906
24932
|
exports.countryMapping = countryMapping;
|
|
24907
24933
|
exports.coverLetterTemplateSchema = coverLetterTemplateSchema;
|
|
24908
24934
|
exports.createBidderAccountSchema = createBidderAccountSchema;
|
|
24935
|
+
exports.createBidderInstanceSchema = createBidderInstanceSchema;
|
|
24909
24936
|
exports.createCampaignSchema = createCampaignSchema;
|
|
24910
24937
|
exports.createChatbotSchema = createChatbotSchema;
|
|
24911
24938
|
exports.createClientHireRateFormSchema = createClientHireRateFormSchema;
|
|
@@ -25021,6 +25048,7 @@ exports.isPaymentVerifiedEnum = isPaymentVerifiedEnum;
|
|
|
25021
25048
|
exports.isPhoneVerifiedEnum = isPhoneVerifiedEnum;
|
|
25022
25049
|
exports.isRoomCrmStatus = isRoomCrmStatus;
|
|
25023
25050
|
exports.isTrackedBidFailureMonitoringCode = isTrackedBidFailureMonitoringCode;
|
|
25051
|
+
exports.isUserFacingCredentialErrorCode = isUserFacingCredentialErrorCode;
|
|
25024
25052
|
exports.isWorkTime = isWorkTime;
|
|
25025
25053
|
exports.jobActivityDeltaSchema = jobActivityDeltaSchema;
|
|
25026
25054
|
exports.jobActivityOffsetEnum = jobActivityOffsetEnum;
|