@adaptic/backend-legacy 0.0.959 → 0.0.961
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/ABTest.cjs +180 -66
- package/Account.cjs +180 -66
- package/AccountDecisionRecord.cjs +180 -66
- package/AccountLinkingRequest.cjs +180 -66
- package/Action.cjs +180 -66
- package/Alert.cjs +180 -66
- package/Allocation.cjs +180 -66
- package/AlpacaAccount.cjs +180 -66
- package/AnalyticsConfiguration.cjs +180 -66
- package/AnalyticsSnapshot.cjs +180 -66
- package/Asset.cjs +180 -66
- package/AuditLog.cjs +180 -66
- package/Authenticator.cjs +180 -66
- package/Configuration.cjs +180 -66
- package/ConflictEvent.cjs +180 -66
- package/ConnectionHealthSnapshot.cjs +180 -66
- package/Customer.cjs +180 -66
- package/DeadLetterMessage.cjs +180 -66
- package/DecisionMemorySummary.cjs +180 -66
- package/EconomicEvent.cjs +180 -66
- package/EquityBar.cjs +180 -66
- package/Event.cjs +180 -66
- package/EventSnapshot.cjs +180 -66
- package/FeatureImportanceAnalysis.cjs +180 -66
- package/InstitutionalFlowSignal.cjs +180 -66
- package/InstitutionalHolding.cjs +180 -66
- package/InstitutionalSentimentAlerts.cjs +180 -66
- package/InstitutionalSentimentErrors.cjs +180 -66
- package/InstitutionalSentimentHistory.cjs +180 -66
- package/InstitutionalSentimentMetrics.cjs +180 -66
- package/InviteToken.cjs +180 -66
- package/LinkedProvider.cjs +180 -66
- package/LlmConfiguration.cjs +180 -66
- package/MLModelVersion.cjs +180 -66
- package/MLTrainingData.cjs +180 -66
- package/MarketSentiment.cjs +180 -66
- package/ModelArtifact.cjs +180 -66
- package/ModelVersion.cjs +180 -66
- package/ModelVersionArtifact.cjs +180 -66
- package/NewsArticle.cjs +180 -66
- package/NewsArticleAssetSentiment.cjs +180 -66
- package/OptionsContract.cjs +180 -66
- package/OptionsGreeksHistory.cjs +180 -66
- package/OptionsPosition.cjs +180 -66
- package/OptionsPositionEvent.cjs +180 -66
- package/OptionsTradeExecution.cjs +180 -66
- package/PolicyOverlay.cjs +180 -66
- package/PortfolioGreeksHistory.cjs +180 -66
- package/ScheduledOptionOrder.cjs +180 -66
- package/Session.cjs +180 -66
- package/SignalGeneratorMetrics.cjs +180 -66
- package/SignalLineage.cjs +180 -66
- package/SignalOutcome.cjs +180 -66
- package/SignalPriorityQueue.cjs +180 -66
- package/SyncEvent.cjs +180 -66
- package/SystemAlert.cjs +180 -66
- package/Trade.cjs +180 -66
- package/TradeAuditEvent.cjs +180 -66
- package/TradeExecutionHistory.cjs +180 -66
- package/TradeOutcome.cjs +180 -66
- package/TradingPolicy.cjs +180 -66
- package/User.cjs +180 -66
- package/VerificationToken.cjs +180 -66
- package/WaitlistEntry.cjs +180 -66
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +180 -66
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +180 -66
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +180 -66
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +180 -66
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +180 -66
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +180 -66
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +180 -66
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +180 -66
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +180 -66
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +180 -66
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +180 -66
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +180 -66
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +180 -66
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +180 -66
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +180 -66
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +180 -66
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +180 -66
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +180 -66
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +180 -66
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +180 -66
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +180 -66
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +180 -66
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +180 -66
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +180 -66
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +180 -66
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +180 -66
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +180 -66
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +180 -66
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +180 -66
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +180 -66
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +180 -66
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +180 -66
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +180 -66
- package/esm/MLModelVersion.d.ts.map +1 -1
- package/esm/MLModelVersion.js.map +1 -1
- package/esm/MLModelVersion.mjs +180 -66
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +180 -66
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +180 -66
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +180 -66
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +180 -66
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +180 -66
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +180 -66
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +180 -66
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +180 -66
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +180 -66
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +180 -66
- package/esm/OptionsPositionEvent.d.ts.map +1 -1
- package/esm/OptionsPositionEvent.js.map +1 -1
- package/esm/OptionsPositionEvent.mjs +180 -66
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +180 -66
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +180 -66
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +180 -66
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +180 -66
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +180 -66
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +180 -66
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +180 -66
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +180 -66
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +180 -66
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +180 -66
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +180 -66
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +180 -66
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +180 -66
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +180 -66
- package/esm/TradeOutcome.d.ts.map +1 -1
- package/esm/TradeOutcome.js.map +1 -1
- package/esm/TradeOutcome.mjs +180 -66
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +180 -66
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +180 -66
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +180 -66
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +180 -66
- package/esm/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -294,13 +294,28 @@ export const NewsArticleAssetSentiment = {
|
|
|
294
294
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
295
295
|
continue;
|
|
296
296
|
}
|
|
297
|
-
// Log structured error details and rethrow
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
// Log structured error details and rethrow.
|
|
298
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
299
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
300
|
+
// from true defects.
|
|
301
|
+
if (isConnectionError) {
|
|
302
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
303
|
+
operation: 'createOneNewsArticleAssetSentiment',
|
|
304
|
+
model: 'NewsArticleAssetSentiment',
|
|
305
|
+
error: String(error),
|
|
306
|
+
isRetryable: true,
|
|
307
|
+
transient: true,
|
|
308
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
logger.error("Database create operation failed", {
|
|
313
|
+
operation: 'createOneNewsArticleAssetSentiment',
|
|
314
|
+
model: 'NewsArticleAssetSentiment',
|
|
315
|
+
error: String(error),
|
|
316
|
+
isRetryable: false,
|
|
317
|
+
});
|
|
318
|
+
}
|
|
304
319
|
throw error;
|
|
305
320
|
}
|
|
306
321
|
}
|
|
@@ -423,13 +438,25 @@ export const NewsArticleAssetSentiment = {
|
|
|
423
438
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
424
439
|
continue;
|
|
425
440
|
}
|
|
426
|
-
// Log structured error details and rethrow
|
|
427
|
-
|
|
428
|
-
operation
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
441
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
442
|
+
if (isConnectionError) {
|
|
443
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
444
|
+
operation: 'createManyNewsArticleAssetSentiment',
|
|
445
|
+
model: 'NewsArticleAssetSentiment',
|
|
446
|
+
error: String(error),
|
|
447
|
+
isRetryable: true,
|
|
448
|
+
transient: true,
|
|
449
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
else {
|
|
453
|
+
logger.error("Database createMany operation failed", {
|
|
454
|
+
operation: 'createManyNewsArticleAssetSentiment',
|
|
455
|
+
model: 'NewsArticleAssetSentiment',
|
|
456
|
+
error: String(error),
|
|
457
|
+
isRetryable: false,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
433
460
|
throw error;
|
|
434
461
|
}
|
|
435
462
|
}
|
|
@@ -1045,14 +1072,27 @@ export const NewsArticleAssetSentiment = {
|
|
|
1045
1072
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1046
1073
|
continue;
|
|
1047
1074
|
}
|
|
1048
|
-
// Log structured error details and rethrow
|
|
1049
|
-
|
|
1050
|
-
operation
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1075
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1076
|
+
if (isConnectionError) {
|
|
1077
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
1078
|
+
operation: 'updateOneNewsArticleAssetSentiment',
|
|
1079
|
+
model: 'NewsArticleAssetSentiment',
|
|
1080
|
+
error: String(error),
|
|
1081
|
+
recordId: props.id,
|
|
1082
|
+
isRetryable: true,
|
|
1083
|
+
transient: true,
|
|
1084
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
else {
|
|
1088
|
+
logger.error("Database update operation failed", {
|
|
1089
|
+
operation: 'updateOneNewsArticleAssetSentiment',
|
|
1090
|
+
model: 'NewsArticleAssetSentiment',
|
|
1091
|
+
error: String(error),
|
|
1092
|
+
recordId: props.id,
|
|
1093
|
+
isRetryable: false,
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1056
1096
|
throw error;
|
|
1057
1097
|
}
|
|
1058
1098
|
}
|
|
@@ -1833,14 +1873,27 @@ export const NewsArticleAssetSentiment = {
|
|
|
1833
1873
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1834
1874
|
continue;
|
|
1835
1875
|
}
|
|
1836
|
-
// Log structured error details and rethrow
|
|
1837
|
-
|
|
1838
|
-
operation
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1876
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1877
|
+
if (isConnectionError) {
|
|
1878
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
1879
|
+
operation: 'upsertOneNewsArticleAssetSentiment',
|
|
1880
|
+
model: 'NewsArticleAssetSentiment',
|
|
1881
|
+
error: String(error),
|
|
1882
|
+
recordId: props.id,
|
|
1883
|
+
isRetryable: true,
|
|
1884
|
+
transient: true,
|
|
1885
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
else {
|
|
1889
|
+
logger.error("Database upsert operation failed", {
|
|
1890
|
+
operation: 'upsertOneNewsArticleAssetSentiment',
|
|
1891
|
+
model: 'NewsArticleAssetSentiment',
|
|
1892
|
+
error: String(error),
|
|
1893
|
+
recordId: props.id,
|
|
1894
|
+
isRetryable: false,
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1844
1897
|
throw error;
|
|
1845
1898
|
}
|
|
1846
1899
|
}
|
|
@@ -2454,13 +2507,25 @@ export const NewsArticleAssetSentiment = {
|
|
|
2454
2507
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2455
2508
|
continue;
|
|
2456
2509
|
}
|
|
2457
|
-
// Log structured error details and rethrow
|
|
2458
|
-
|
|
2459
|
-
operation
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2510
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2511
|
+
if (isConnectionError) {
|
|
2512
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
2513
|
+
operation: 'updateManyNewsArticleAssetSentiment',
|
|
2514
|
+
model: 'NewsArticleAssetSentiment',
|
|
2515
|
+
error: String(error),
|
|
2516
|
+
isRetryable: true,
|
|
2517
|
+
transient: true,
|
|
2518
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2519
|
+
});
|
|
2520
|
+
}
|
|
2521
|
+
else {
|
|
2522
|
+
logger.error("Database updateMany operation failed", {
|
|
2523
|
+
operation: 'updateManyNewsArticleAssetSentiment',
|
|
2524
|
+
model: 'NewsArticleAssetSentiment',
|
|
2525
|
+
error: String(error),
|
|
2526
|
+
isRetryable: false,
|
|
2527
|
+
});
|
|
2528
|
+
}
|
|
2464
2529
|
throw error;
|
|
2465
2530
|
}
|
|
2466
2531
|
}
|
|
@@ -2582,14 +2647,27 @@ export const NewsArticleAssetSentiment = {
|
|
|
2582
2647
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2583
2648
|
continue;
|
|
2584
2649
|
}
|
|
2585
|
-
// Log structured error details and rethrow
|
|
2586
|
-
|
|
2587
|
-
operation
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2650
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2651
|
+
if (isConnectionError) {
|
|
2652
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
2653
|
+
operation: 'deleteOneNewsArticleAssetSentiment',
|
|
2654
|
+
model: 'NewsArticleAssetSentiment',
|
|
2655
|
+
error: String(error),
|
|
2656
|
+
recordId: props.id,
|
|
2657
|
+
isRetryable: true,
|
|
2658
|
+
transient: true,
|
|
2659
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2660
|
+
});
|
|
2661
|
+
}
|
|
2662
|
+
else {
|
|
2663
|
+
logger.error("Database delete operation failed", {
|
|
2664
|
+
operation: 'deleteOneNewsArticleAssetSentiment',
|
|
2665
|
+
model: 'NewsArticleAssetSentiment',
|
|
2666
|
+
error: String(error),
|
|
2667
|
+
recordId: props.id,
|
|
2668
|
+
isRetryable: false,
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2593
2671
|
throw error;
|
|
2594
2672
|
}
|
|
2595
2673
|
}
|
|
@@ -2688,13 +2766,25 @@ export const NewsArticleAssetSentiment = {
|
|
|
2688
2766
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2689
2767
|
continue;
|
|
2690
2768
|
}
|
|
2691
|
-
// Log structured error details and rethrow
|
|
2692
|
-
|
|
2693
|
-
operation
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2769
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2770
|
+
if (isConnectionError) {
|
|
2771
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
2772
|
+
operation: 'getNewsArticleAssetSentiment',
|
|
2773
|
+
model: 'NewsArticleAssetSentiment',
|
|
2774
|
+
error: String(error),
|
|
2775
|
+
isRetryable: true,
|
|
2776
|
+
transient: true,
|
|
2777
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
else {
|
|
2781
|
+
logger.error("Database get operation failed", {
|
|
2782
|
+
operation: 'getNewsArticleAssetSentiment',
|
|
2783
|
+
model: 'NewsArticleAssetSentiment',
|
|
2784
|
+
error: String(error),
|
|
2785
|
+
isRetryable: false,
|
|
2786
|
+
});
|
|
2787
|
+
}
|
|
2698
2788
|
throw error;
|
|
2699
2789
|
}
|
|
2700
2790
|
}
|
|
@@ -2780,13 +2870,25 @@ export const NewsArticleAssetSentiment = {
|
|
|
2780
2870
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2781
2871
|
continue;
|
|
2782
2872
|
}
|
|
2783
|
-
// Log structured error details and rethrow
|
|
2784
|
-
|
|
2785
|
-
operation
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2873
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2874
|
+
if (isConnectionError) {
|
|
2875
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
2876
|
+
operation: 'getAllNewsArticleAssetSentiment',
|
|
2877
|
+
model: 'NewsArticleAssetSentiment',
|
|
2878
|
+
error: String(error),
|
|
2879
|
+
isRetryable: true,
|
|
2880
|
+
transient: true,
|
|
2881
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
else {
|
|
2885
|
+
logger.error("Database getAll operation failed", {
|
|
2886
|
+
operation: 'getAllNewsArticleAssetSentiment',
|
|
2887
|
+
model: 'NewsArticleAssetSentiment',
|
|
2888
|
+
error: String(error),
|
|
2889
|
+
isRetryable: false,
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2790
2892
|
throw error;
|
|
2791
2893
|
}
|
|
2792
2894
|
}
|
|
@@ -2899,13 +3001,25 @@ export const NewsArticleAssetSentiment = {
|
|
|
2899
3001
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2900
3002
|
continue;
|
|
2901
3003
|
}
|
|
2902
|
-
// Log structured error details and rethrow
|
|
2903
|
-
|
|
2904
|
-
operation
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
3004
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3005
|
+
if (isConnectionError) {
|
|
3006
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
3007
|
+
operation: 'findManyNewsArticleAssetSentiment',
|
|
3008
|
+
model: 'NewsArticleAssetSentiment',
|
|
3009
|
+
error: String(error),
|
|
3010
|
+
isRetryable: true,
|
|
3011
|
+
transient: true,
|
|
3012
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3013
|
+
});
|
|
3014
|
+
}
|
|
3015
|
+
else {
|
|
3016
|
+
logger.error("Database findMany operation failed", {
|
|
3017
|
+
operation: 'findManyNewsArticleAssetSentiment',
|
|
3018
|
+
model: 'NewsArticleAssetSentiment',
|
|
3019
|
+
error: String(error),
|
|
3020
|
+
isRetryable: false,
|
|
3021
|
+
});
|
|
3022
|
+
}
|
|
2909
3023
|
throw error;
|
|
2910
3024
|
}
|
|
2911
3025
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsContract.d.ts","sourceRoot":"","sources":["../../src/OptionsContract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA6IpG,eAAO,MAAM,eAAe;IAE1B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionsContract.d.ts","sourceRoot":"","sources":["../../src/OptionsContract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA6IpG,eAAO,MAAM,eAAe;IAE1B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA+hBhI;;;;;;;OAOG;sBACqB,mBAAmB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,YAAY;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAwKjL;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAwgD9H;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAi5D9H;;;;;;OAMG;sBACqB,mBAAmB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAsgDzI;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqJ9H;;;;;;;OAOG;eACc,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAwHxK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IA6G3G;;;;;;;OAOG;oBACmB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;CAoIhL,CAAC"}
|