lancer-shared 1.2.336 → 1.2.337
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 +72 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +67 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +3 -0
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -0
- package/dist/schemas/dashboard/index.d.ts +195 -0
- package/dist/schemas/logger/log-event.d.ts +33 -10
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -8899,6 +8899,20 @@ class WaitForFunctionTimeoutError extends Error {
|
|
|
8899
8899
|
}
|
|
8900
8900
|
const waitForFunctionTimeoutError = (fn, timeout) => new WaitForFunctionTimeoutError(fn, timeout);
|
|
8901
8901
|
|
|
8902
|
+
const TRACKED_BID_FAILURE_MONITORING_CODES = [
|
|
8903
|
+
'CLOUDFLARE_CHALLENGE_FAILED_EXCEPTION',
|
|
8904
|
+
'GO_TO_URL_EXCEPTION',
|
|
8905
|
+
'SELECTOR_NOT_FOUND_ERROR',
|
|
8906
|
+
'PROPOSAL_SUBMIT_FAILED',
|
|
8907
|
+
'PROXY_NOT_REACHABLE_EXCEPTION',
|
|
8908
|
+
'ELEMENT_NOT_CLICKABLE_EXCEPTION',
|
|
8909
|
+
'LOGIN_FAILED_EXCEPTION',
|
|
8910
|
+
'INVALID_CREDENTIALS_EXCEPTION',
|
|
8911
|
+
'NETWORK_RESTRICTIONS_EXCEPTION',
|
|
8912
|
+
];
|
|
8913
|
+
const TRACKED_BID_FAILURE_MONITORING_CODES_SET = new Set(TRACKED_BID_FAILURE_MONITORING_CODES);
|
|
8914
|
+
const isTrackedBidFailureMonitoringCode = (code) => !!code && TRACKED_BID_FAILURE_MONITORING_CODES_SET.has(code);
|
|
8915
|
+
|
|
8902
8916
|
const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
8903
8917
|
organizationId: z.string(),
|
|
8904
8918
|
bidderAccountId: z.string(),
|
|
@@ -9069,6 +9083,46 @@ const organizationCampaignStatsSchema = z.object({
|
|
|
9069
9083
|
totalStats: campaignStatsSchema,
|
|
9070
9084
|
campaigns: z.array(campaignDetailsSchema),
|
|
9071
9085
|
});
|
|
9086
|
+
const monitoringBidFailureRecordSchema = z.object({
|
|
9087
|
+
id: z.string(),
|
|
9088
|
+
eventId: z.string(),
|
|
9089
|
+
timestamp: z.number(),
|
|
9090
|
+
organizationId: z.string().nullable(),
|
|
9091
|
+
organizationName: z.string().nullable(),
|
|
9092
|
+
campaignId: z.string().nullable(),
|
|
9093
|
+
leadId: z.string().nullable(),
|
|
9094
|
+
reason: z.string().nullable(),
|
|
9095
|
+
errorCode: z.string().nullable(),
|
|
9096
|
+
errorMessage: z.string().nullable(),
|
|
9097
|
+
});
|
|
9098
|
+
const bidderMonitoringRowSchema = z.object({
|
|
9099
|
+
eventType: z.enum([
|
|
9100
|
+
'biddingFailed',
|
|
9101
|
+
'syncProposalsStatusFailed',
|
|
9102
|
+
'refreshRoomsFailed',
|
|
9103
|
+
]),
|
|
9104
|
+
eventId: z.string(),
|
|
9105
|
+
bidderAccountId: z.string().nullable(),
|
|
9106
|
+
email: z.string().nullable(),
|
|
9107
|
+
proxyString: z.string().nullable(),
|
|
9108
|
+
timestamp: z.number(),
|
|
9109
|
+
organizationId: z.string().nullable(),
|
|
9110
|
+
organizationName: z.string().nullable(),
|
|
9111
|
+
campaignId: z.string().nullable(),
|
|
9112
|
+
leadId: z.string().nullable(),
|
|
9113
|
+
reason: z.string().nullable(),
|
|
9114
|
+
errorCode: z.string().nullable(),
|
|
9115
|
+
errorMessage: z.string().nullable(),
|
|
9116
|
+
screenshotUrl: z.string().nullable(),
|
|
9117
|
+
attempt: z.number().nullable(),
|
|
9118
|
+
viewed: z.boolean(),
|
|
9119
|
+
viewedAt: z.number().nullable(),
|
|
9120
|
+
});
|
|
9121
|
+
const bidderFailureDashboardResponseSchema = z.object({
|
|
9122
|
+
items: z.array(bidderMonitoringRowSchema),
|
|
9123
|
+
totalFailures: z.number(),
|
|
9124
|
+
unviewedCount: z.number(),
|
|
9125
|
+
});
|
|
9072
9126
|
|
|
9073
9127
|
const labelEnum = z.enum(['suitable', 'unsuitable']);
|
|
9074
9128
|
const sampleSchema = z.object({
|
|
@@ -9341,6 +9395,7 @@ const LogEventTypeEnum = z.enum([
|
|
|
9341
9395
|
// Bidder Account Events
|
|
9342
9396
|
'verifyCredentialsSucceeded',
|
|
9343
9397
|
'verifyCredentialsFailed',
|
|
9398
|
+
'refreshRoomsFailed',
|
|
9344
9399
|
]);
|
|
9345
9400
|
const logEventSchema = z.object({
|
|
9346
9401
|
// The type of event (use a z.enum if possible)
|
|
@@ -9373,6 +9428,7 @@ const biddingCompletedEventMetadata = objectType({
|
|
|
9373
9428
|
});
|
|
9374
9429
|
const biddingFailedEventMetadata = objectType({
|
|
9375
9430
|
error: z.any(),
|
|
9431
|
+
screenshotUrl: z.string().url().optional(),
|
|
9376
9432
|
});
|
|
9377
9433
|
const biddingProcessingEventMetadata = objectType({
|
|
9378
9434
|
jobUrl: z.string(),
|
|
@@ -9385,6 +9441,7 @@ const syncProposalsStatusCompletedEventMetadata = objectType({
|
|
|
9385
9441
|
});
|
|
9386
9442
|
const syncProposalsStatusFailedEventMetadata = objectType({
|
|
9387
9443
|
error: z.any(),
|
|
9444
|
+
bidderAccountId: z.string().optional(),
|
|
9388
9445
|
});
|
|
9389
9446
|
const userAccountBiddingExceptionEventMetadata = objectType({
|
|
9390
9447
|
errorType: z.enum(['insufficientConnects', 'proposalFormWarningAlert']),
|
|
@@ -9430,6 +9487,12 @@ const verifyCredentialsFailedEventMetadataSchema = objectType({
|
|
|
9430
9487
|
bidderAccountId: z.string(),
|
|
9431
9488
|
errorMessage: z.string(),
|
|
9432
9489
|
});
|
|
9490
|
+
const refreshRoomsFailedEventMetadataSchema = objectType({
|
|
9491
|
+
bidderAccountId: z.string().optional(),
|
|
9492
|
+
errorMessage: z.string().optional(),
|
|
9493
|
+
errorCode: z.string().optional(),
|
|
9494
|
+
context: z.string().optional(),
|
|
9495
|
+
});
|
|
9433
9496
|
const suitabilityPendingEventMetadataSchema = objectType({
|
|
9434
9497
|
jobId: z.string(),
|
|
9435
9498
|
jobUrl: z.string(),
|
|
@@ -15783,6 +15846,9 @@ const ROUTES = {
|
|
|
15783
15846
|
},
|
|
15784
15847
|
DASHBOARD: {
|
|
15785
15848
|
CAMPAIGN_STATS: 'admin/dashboard/campaign-stats',
|
|
15849
|
+
BIDDER_FAILURES: 'admin/dashboard/bidder-failures',
|
|
15850
|
+
MARK_BIDDER_FAILURE_VIEWED: (eventId) => `admin/dashboard/bidder-failures/${eventId}/viewed`,
|
|
15851
|
+
BIDDER_FAILURE_VIEWS: 'admin/dashboard/bidder-failure-views',
|
|
15786
15852
|
},
|
|
15787
15853
|
ALERTS: {
|
|
15788
15854
|
BASE: 'admin/alerts',
|
|
@@ -24724,6 +24790,7 @@ exports.SearchQueryBuilder = SearchQueryBuilder;
|
|
|
24724
24790
|
exports.SelectAgencyException = SelectAgencyException;
|
|
24725
24791
|
exports.SelectContractorException = SelectContractorException;
|
|
24726
24792
|
exports.SelectorNotFoundError = SelectorNotFoundError;
|
|
24793
|
+
exports.TRACKED_BID_FAILURE_MONITORING_CODES = TRACKED_BID_FAILURE_MONITORING_CODES;
|
|
24727
24794
|
exports.TwoFactorPresentException = TwoFactorPresentException;
|
|
24728
24795
|
exports.TypedValueInFieldNotMatchingException = TypedValueInFieldNotMatchingException;
|
|
24729
24796
|
exports.TypingInputFieldException = TypingInputFieldException;
|
|
@@ -24768,8 +24835,10 @@ exports.bidderAccountProvider = bidderAccountProvider;
|
|
|
24768
24835
|
exports.bidderAccountProviderDisplayMap = bidderAccountProviderDisplayMap;
|
|
24769
24836
|
exports.bidderAccountSchema = bidderAccountSchema;
|
|
24770
24837
|
exports.bidderAccountStatusEnum = bidderAccountStatusEnum;
|
|
24838
|
+
exports.bidderFailureDashboardResponseSchema = bidderFailureDashboardResponseSchema;
|
|
24771
24839
|
exports.bidderInstanceSchema = bidderInstanceSchema;
|
|
24772
24840
|
exports.bidderInstanceStatusEnum = bidderInstanceStatusEnum;
|
|
24841
|
+
exports.bidderMonitoringRowSchema = bidderMonitoringRowSchema;
|
|
24773
24842
|
exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
|
|
24774
24843
|
exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
|
|
24775
24844
|
exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
|
|
@@ -24926,6 +24995,7 @@ exports.isNumeric = isNumeric;
|
|
|
24926
24995
|
exports.isPaymentVerifiedEnum = isPaymentVerifiedEnum;
|
|
24927
24996
|
exports.isPhoneVerifiedEnum = isPhoneVerifiedEnum;
|
|
24928
24997
|
exports.isRoomCrmStatus = isRoomCrmStatus;
|
|
24998
|
+
exports.isTrackedBidFailureMonitoringCode = isTrackedBidFailureMonitoringCode;
|
|
24929
24999
|
exports.isWorkTime = isWorkTime;
|
|
24930
25000
|
exports.jobActivityDeltaSchema = jobActivityDeltaSchema;
|
|
24931
25001
|
exports.jobActivityOffsetEnum = jobActivityOffsetEnum;
|
|
@@ -24962,6 +25032,7 @@ exports.logEventSchema = logEventSchema;
|
|
|
24962
25032
|
exports.loginFailedException = loginFailedException;
|
|
24963
25033
|
exports.loginSchema = loginSchema;
|
|
24964
25034
|
exports.metadataSchema = metadataSchema;
|
|
25035
|
+
exports.monitoringBidFailureRecordSchema = monitoringBidFailureRecordSchema;
|
|
24965
25036
|
exports.multiloginAuthenticationException = multiloginAuthenticationException;
|
|
24966
25037
|
exports.navigationTimeoutException = navigationTimeoutException;
|
|
24967
25038
|
exports.networkRestrictionsException = networkRestrictionsException;
|
|
@@ -25032,6 +25103,7 @@ exports.questionPairNotMatchingException = questionPairNotMatchingException;
|
|
|
25032
25103
|
exports.questionRulesSchema = questionRulesSchema;
|
|
25033
25104
|
exports.reconnectBidderAccountRequestBodySchema = reconnectBidderAccountRequestBodySchema;
|
|
25034
25105
|
exports.reconnectBidderAccountResponseSchema = reconnectBidderAccountResponseSchema;
|
|
25106
|
+
exports.refreshRoomsFailedEventMetadataSchema = refreshRoomsFailedEventMetadataSchema;
|
|
25035
25107
|
exports.refreshRotatingProxiesRequestBodySchema = refreshRotatingProxiesRequestBodySchema;
|
|
25036
25108
|
exports.regionEnum = regionEnum;
|
|
25037
25109
|
exports.regionMapping = regionMapping;
|