@adaptic/backend-legacy 0.0.960 → 0.0.962
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/client.cjs +131 -9
- package/client.d.ts +32 -0
- 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/client.d.ts +32 -0
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +130 -9
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/index.mjs +1 -1
- package/index.cjs +2 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -298,13 +298,28 @@ exports.NewsArticleAssetSentiment = {
|
|
|
298
298
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
299
299
|
continue;
|
|
300
300
|
}
|
|
301
|
-
// Log structured error details and rethrow
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
301
|
+
// Log structured error details and rethrow.
|
|
302
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
303
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
304
|
+
// from true defects.
|
|
305
|
+
if (isConnectionError) {
|
|
306
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
307
|
+
operation: 'createOneNewsArticleAssetSentiment',
|
|
308
|
+
model: 'NewsArticleAssetSentiment',
|
|
309
|
+
error: String(error),
|
|
310
|
+
isRetryable: true,
|
|
311
|
+
transient: true,
|
|
312
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
logger_1.logger.error("Database create operation failed", {
|
|
317
|
+
operation: 'createOneNewsArticleAssetSentiment',
|
|
318
|
+
model: 'NewsArticleAssetSentiment',
|
|
319
|
+
error: String(error),
|
|
320
|
+
isRetryable: false,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
308
323
|
throw error;
|
|
309
324
|
}
|
|
310
325
|
}
|
|
@@ -428,13 +443,25 @@ exports.NewsArticleAssetSentiment = {
|
|
|
428
443
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
429
444
|
continue;
|
|
430
445
|
}
|
|
431
|
-
// Log structured error details and rethrow
|
|
432
|
-
|
|
433
|
-
operation
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
446
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
447
|
+
if (isConnectionError) {
|
|
448
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
449
|
+
operation: 'createManyNewsArticleAssetSentiment',
|
|
450
|
+
model: 'NewsArticleAssetSentiment',
|
|
451
|
+
error: String(error),
|
|
452
|
+
isRetryable: true,
|
|
453
|
+
transient: true,
|
|
454
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
459
|
+
operation: 'createManyNewsArticleAssetSentiment',
|
|
460
|
+
model: 'NewsArticleAssetSentiment',
|
|
461
|
+
error: String(error),
|
|
462
|
+
isRetryable: false,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
438
465
|
throw error;
|
|
439
466
|
}
|
|
440
467
|
}
|
|
@@ -1051,14 +1078,27 @@ exports.NewsArticleAssetSentiment = {
|
|
|
1051
1078
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1052
1079
|
continue;
|
|
1053
1080
|
}
|
|
1054
|
-
// Log structured error details and rethrow
|
|
1055
|
-
|
|
1056
|
-
operation
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1081
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1082
|
+
if (isConnectionError) {
|
|
1083
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
1084
|
+
operation: 'updateOneNewsArticleAssetSentiment',
|
|
1085
|
+
model: 'NewsArticleAssetSentiment',
|
|
1086
|
+
error: String(error),
|
|
1087
|
+
recordId: props.id,
|
|
1088
|
+
isRetryable: true,
|
|
1089
|
+
transient: true,
|
|
1090
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
logger_1.logger.error("Database update operation failed", {
|
|
1095
|
+
operation: 'updateOneNewsArticleAssetSentiment',
|
|
1096
|
+
model: 'NewsArticleAssetSentiment',
|
|
1097
|
+
error: String(error),
|
|
1098
|
+
recordId: props.id,
|
|
1099
|
+
isRetryable: false,
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1062
1102
|
throw error;
|
|
1063
1103
|
}
|
|
1064
1104
|
}
|
|
@@ -1840,14 +1880,27 @@ exports.NewsArticleAssetSentiment = {
|
|
|
1840
1880
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1841
1881
|
continue;
|
|
1842
1882
|
}
|
|
1843
|
-
// Log structured error details and rethrow
|
|
1844
|
-
|
|
1845
|
-
operation
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1883
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1884
|
+
if (isConnectionError) {
|
|
1885
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
1886
|
+
operation: 'upsertOneNewsArticleAssetSentiment',
|
|
1887
|
+
model: 'NewsArticleAssetSentiment',
|
|
1888
|
+
error: String(error),
|
|
1889
|
+
recordId: props.id,
|
|
1890
|
+
isRetryable: true,
|
|
1891
|
+
transient: true,
|
|
1892
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
else {
|
|
1896
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
1897
|
+
operation: 'upsertOneNewsArticleAssetSentiment',
|
|
1898
|
+
model: 'NewsArticleAssetSentiment',
|
|
1899
|
+
error: String(error),
|
|
1900
|
+
recordId: props.id,
|
|
1901
|
+
isRetryable: false,
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1851
1904
|
throw error;
|
|
1852
1905
|
}
|
|
1853
1906
|
}
|
|
@@ -2462,13 +2515,25 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2462
2515
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2463
2516
|
continue;
|
|
2464
2517
|
}
|
|
2465
|
-
// Log structured error details and rethrow
|
|
2466
|
-
|
|
2467
|
-
operation
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2518
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2519
|
+
if (isConnectionError) {
|
|
2520
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
2521
|
+
operation: 'updateManyNewsArticleAssetSentiment',
|
|
2522
|
+
model: 'NewsArticleAssetSentiment',
|
|
2523
|
+
error: String(error),
|
|
2524
|
+
isRetryable: true,
|
|
2525
|
+
transient: true,
|
|
2526
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2527
|
+
});
|
|
2528
|
+
}
|
|
2529
|
+
else {
|
|
2530
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
2531
|
+
operation: 'updateManyNewsArticleAssetSentiment',
|
|
2532
|
+
model: 'NewsArticleAssetSentiment',
|
|
2533
|
+
error: String(error),
|
|
2534
|
+
isRetryable: false,
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2472
2537
|
throw error;
|
|
2473
2538
|
}
|
|
2474
2539
|
}
|
|
@@ -2591,14 +2656,27 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2591
2656
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2592
2657
|
continue;
|
|
2593
2658
|
}
|
|
2594
|
-
// Log structured error details and rethrow
|
|
2595
|
-
|
|
2596
|
-
operation
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2659
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2660
|
+
if (isConnectionError) {
|
|
2661
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
2662
|
+
operation: 'deleteOneNewsArticleAssetSentiment',
|
|
2663
|
+
model: 'NewsArticleAssetSentiment',
|
|
2664
|
+
error: String(error),
|
|
2665
|
+
recordId: props.id,
|
|
2666
|
+
isRetryable: true,
|
|
2667
|
+
transient: true,
|
|
2668
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
else {
|
|
2672
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
2673
|
+
operation: 'deleteOneNewsArticleAssetSentiment',
|
|
2674
|
+
model: 'NewsArticleAssetSentiment',
|
|
2675
|
+
error: String(error),
|
|
2676
|
+
recordId: props.id,
|
|
2677
|
+
isRetryable: false,
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2602
2680
|
throw error;
|
|
2603
2681
|
}
|
|
2604
2682
|
}
|
|
@@ -2698,13 +2776,25 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2698
2776
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2699
2777
|
continue;
|
|
2700
2778
|
}
|
|
2701
|
-
// Log structured error details and rethrow
|
|
2702
|
-
|
|
2703
|
-
operation
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2779
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2780
|
+
if (isConnectionError) {
|
|
2781
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
2782
|
+
operation: 'getNewsArticleAssetSentiment',
|
|
2783
|
+
model: 'NewsArticleAssetSentiment',
|
|
2784
|
+
error: String(error),
|
|
2785
|
+
isRetryable: true,
|
|
2786
|
+
transient: true,
|
|
2787
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
else {
|
|
2791
|
+
logger_1.logger.error("Database get operation failed", {
|
|
2792
|
+
operation: 'getNewsArticleAssetSentiment',
|
|
2793
|
+
model: 'NewsArticleAssetSentiment',
|
|
2794
|
+
error: String(error),
|
|
2795
|
+
isRetryable: false,
|
|
2796
|
+
});
|
|
2797
|
+
}
|
|
2708
2798
|
throw error;
|
|
2709
2799
|
}
|
|
2710
2800
|
}
|
|
@@ -2791,13 +2881,25 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2791
2881
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2792
2882
|
continue;
|
|
2793
2883
|
}
|
|
2794
|
-
// Log structured error details and rethrow
|
|
2795
|
-
|
|
2796
|
-
operation
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2884
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2885
|
+
if (isConnectionError) {
|
|
2886
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
2887
|
+
operation: 'getAllNewsArticleAssetSentiment',
|
|
2888
|
+
model: 'NewsArticleAssetSentiment',
|
|
2889
|
+
error: String(error),
|
|
2890
|
+
isRetryable: true,
|
|
2891
|
+
transient: true,
|
|
2892
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2893
|
+
});
|
|
2894
|
+
}
|
|
2895
|
+
else {
|
|
2896
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
2897
|
+
operation: 'getAllNewsArticleAssetSentiment',
|
|
2898
|
+
model: 'NewsArticleAssetSentiment',
|
|
2899
|
+
error: String(error),
|
|
2900
|
+
isRetryable: false,
|
|
2901
|
+
});
|
|
2902
|
+
}
|
|
2801
2903
|
throw error;
|
|
2802
2904
|
}
|
|
2803
2905
|
}
|
|
@@ -2911,13 +3013,25 @@ exports.NewsArticleAssetSentiment = {
|
|
|
2911
3013
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2912
3014
|
continue;
|
|
2913
3015
|
}
|
|
2914
|
-
// Log structured error details and rethrow
|
|
2915
|
-
|
|
2916
|
-
operation
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
3016
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3017
|
+
if (isConnectionError) {
|
|
3018
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
3019
|
+
operation: 'findManyNewsArticleAssetSentiment',
|
|
3020
|
+
model: 'NewsArticleAssetSentiment',
|
|
3021
|
+
error: String(error),
|
|
3022
|
+
isRetryable: true,
|
|
3023
|
+
transient: true,
|
|
3024
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3025
|
+
});
|
|
3026
|
+
}
|
|
3027
|
+
else {
|
|
3028
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
3029
|
+
operation: 'findManyNewsArticleAssetSentiment',
|
|
3030
|
+
model: 'NewsArticleAssetSentiment',
|
|
3031
|
+
error: String(error),
|
|
3032
|
+
isRetryable: false,
|
|
3033
|
+
});
|
|
3034
|
+
}
|
|
2921
3035
|
throw error;
|
|
2922
3036
|
}
|
|
2923
3037
|
}
|
package/OptionsContract.cjs
CHANGED
|
@@ -654,13 +654,28 @@ exports.OptionsContract = {
|
|
|
654
654
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
655
655
|
continue;
|
|
656
656
|
}
|
|
657
|
-
// Log structured error details and rethrow
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
657
|
+
// Log structured error details and rethrow.
|
|
658
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
659
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
660
|
+
// from true defects.
|
|
661
|
+
if (isConnectionError) {
|
|
662
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
663
|
+
operation: 'createOneOptionsContract',
|
|
664
|
+
model: 'OptionsContract',
|
|
665
|
+
error: String(error),
|
|
666
|
+
isRetryable: true,
|
|
667
|
+
transient: true,
|
|
668
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
logger_1.logger.error("Database create operation failed", {
|
|
673
|
+
operation: 'createOneOptionsContract',
|
|
674
|
+
model: 'OptionsContract',
|
|
675
|
+
error: String(error),
|
|
676
|
+
isRetryable: false,
|
|
677
|
+
});
|
|
678
|
+
}
|
|
664
679
|
throw error;
|
|
665
680
|
}
|
|
666
681
|
}
|
|
@@ -805,13 +820,25 @@ exports.OptionsContract = {
|
|
|
805
820
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
806
821
|
continue;
|
|
807
822
|
}
|
|
808
|
-
// Log structured error details and rethrow
|
|
809
|
-
|
|
810
|
-
operation
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
823
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
824
|
+
if (isConnectionError) {
|
|
825
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
826
|
+
operation: 'createManyOptionsContract',
|
|
827
|
+
model: 'OptionsContract',
|
|
828
|
+
error: String(error),
|
|
829
|
+
isRetryable: true,
|
|
830
|
+
transient: true,
|
|
831
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
836
|
+
operation: 'createManyOptionsContract',
|
|
837
|
+
model: 'OptionsContract',
|
|
838
|
+
error: String(error),
|
|
839
|
+
isRetryable: false,
|
|
840
|
+
});
|
|
841
|
+
}
|
|
815
842
|
throw error;
|
|
816
843
|
}
|
|
817
844
|
}
|
|
@@ -2329,14 +2356,27 @@ exports.OptionsContract = {
|
|
|
2329
2356
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2330
2357
|
continue;
|
|
2331
2358
|
}
|
|
2332
|
-
// Log structured error details and rethrow
|
|
2333
|
-
|
|
2334
|
-
operation
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2359
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2360
|
+
if (isConnectionError) {
|
|
2361
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
2362
|
+
operation: 'updateOneOptionsContract',
|
|
2363
|
+
model: 'OptionsContract',
|
|
2364
|
+
error: String(error),
|
|
2365
|
+
recordId: props.id,
|
|
2366
|
+
isRetryable: true,
|
|
2367
|
+
transient: true,
|
|
2368
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
else {
|
|
2372
|
+
logger_1.logger.error("Database update operation failed", {
|
|
2373
|
+
operation: 'updateOneOptionsContract',
|
|
2374
|
+
model: 'OptionsContract',
|
|
2375
|
+
error: String(error),
|
|
2376
|
+
recordId: props.id,
|
|
2377
|
+
isRetryable: false,
|
|
2378
|
+
});
|
|
2379
|
+
}
|
|
2340
2380
|
throw error;
|
|
2341
2381
|
}
|
|
2342
2382
|
}
|
|
@@ -4247,14 +4287,27 @@ exports.OptionsContract = {
|
|
|
4247
4287
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4248
4288
|
continue;
|
|
4249
4289
|
}
|
|
4250
|
-
// Log structured error details and rethrow
|
|
4251
|
-
|
|
4252
|
-
operation
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4290
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4291
|
+
if (isConnectionError) {
|
|
4292
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4293
|
+
operation: 'upsertOneOptionsContract',
|
|
4294
|
+
model: 'OptionsContract',
|
|
4295
|
+
error: String(error),
|
|
4296
|
+
recordId: props.id,
|
|
4297
|
+
isRetryable: true,
|
|
4298
|
+
transient: true,
|
|
4299
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4300
|
+
});
|
|
4301
|
+
}
|
|
4302
|
+
else {
|
|
4303
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
4304
|
+
operation: 'upsertOneOptionsContract',
|
|
4305
|
+
model: 'OptionsContract',
|
|
4306
|
+
error: String(error),
|
|
4307
|
+
recordId: props.id,
|
|
4308
|
+
isRetryable: false,
|
|
4309
|
+
});
|
|
4310
|
+
}
|
|
4258
4311
|
throw error;
|
|
4259
4312
|
}
|
|
4260
4313
|
}
|
|
@@ -5770,13 +5823,25 @@ exports.OptionsContract = {
|
|
|
5770
5823
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5771
5824
|
continue;
|
|
5772
5825
|
}
|
|
5773
|
-
// Log structured error details and rethrow
|
|
5774
|
-
|
|
5775
|
-
operation
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5826
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5827
|
+
if (isConnectionError) {
|
|
5828
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
5829
|
+
operation: 'updateManyOptionsContract',
|
|
5830
|
+
model: 'OptionsContract',
|
|
5831
|
+
error: String(error),
|
|
5832
|
+
isRetryable: true,
|
|
5833
|
+
transient: true,
|
|
5834
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5835
|
+
});
|
|
5836
|
+
}
|
|
5837
|
+
else {
|
|
5838
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
5839
|
+
operation: 'updateManyOptionsContract',
|
|
5840
|
+
model: 'OptionsContract',
|
|
5841
|
+
error: String(error),
|
|
5842
|
+
isRetryable: false,
|
|
5843
|
+
});
|
|
5844
|
+
}
|
|
5780
5845
|
throw error;
|
|
5781
5846
|
}
|
|
5782
5847
|
}
|
|
@@ -5899,14 +5964,27 @@ exports.OptionsContract = {
|
|
|
5899
5964
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5900
5965
|
continue;
|
|
5901
5966
|
}
|
|
5902
|
-
// Log structured error details and rethrow
|
|
5903
|
-
|
|
5904
|
-
operation
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5967
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5968
|
+
if (isConnectionError) {
|
|
5969
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
5970
|
+
operation: 'deleteOneOptionsContract',
|
|
5971
|
+
model: 'OptionsContract',
|
|
5972
|
+
error: String(error),
|
|
5973
|
+
recordId: props.id,
|
|
5974
|
+
isRetryable: true,
|
|
5975
|
+
transient: true,
|
|
5976
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5977
|
+
});
|
|
5978
|
+
}
|
|
5979
|
+
else {
|
|
5980
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
5981
|
+
operation: 'deleteOneOptionsContract',
|
|
5982
|
+
model: 'OptionsContract',
|
|
5983
|
+
error: String(error),
|
|
5984
|
+
recordId: props.id,
|
|
5985
|
+
isRetryable: false,
|
|
5986
|
+
});
|
|
5987
|
+
}
|
|
5910
5988
|
throw error;
|
|
5911
5989
|
}
|
|
5912
5990
|
}
|
|
@@ -6005,13 +6083,25 @@ exports.OptionsContract = {
|
|
|
6005
6083
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6006
6084
|
continue;
|
|
6007
6085
|
}
|
|
6008
|
-
// Log structured error details and rethrow
|
|
6009
|
-
|
|
6010
|
-
operation
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6086
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6087
|
+
if (isConnectionError) {
|
|
6088
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
6089
|
+
operation: 'getOptionsContract',
|
|
6090
|
+
model: 'OptionsContract',
|
|
6091
|
+
error: String(error),
|
|
6092
|
+
isRetryable: true,
|
|
6093
|
+
transient: true,
|
|
6094
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6095
|
+
});
|
|
6096
|
+
}
|
|
6097
|
+
else {
|
|
6098
|
+
logger_1.logger.error("Database get operation failed", {
|
|
6099
|
+
operation: 'getOptionsContract',
|
|
6100
|
+
model: 'OptionsContract',
|
|
6101
|
+
error: String(error),
|
|
6102
|
+
isRetryable: false,
|
|
6103
|
+
});
|
|
6104
|
+
}
|
|
6015
6105
|
throw error;
|
|
6016
6106
|
}
|
|
6017
6107
|
}
|
|
@@ -6098,13 +6188,25 @@ exports.OptionsContract = {
|
|
|
6098
6188
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6099
6189
|
continue;
|
|
6100
6190
|
}
|
|
6101
|
-
// Log structured error details and rethrow
|
|
6102
|
-
|
|
6103
|
-
operation
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6191
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6192
|
+
if (isConnectionError) {
|
|
6193
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6194
|
+
operation: 'getAllOptionsContract',
|
|
6195
|
+
model: 'OptionsContract',
|
|
6196
|
+
error: String(error),
|
|
6197
|
+
isRetryable: true,
|
|
6198
|
+
transient: true,
|
|
6199
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6200
|
+
});
|
|
6201
|
+
}
|
|
6202
|
+
else {
|
|
6203
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
6204
|
+
operation: 'getAllOptionsContract',
|
|
6205
|
+
model: 'OptionsContract',
|
|
6206
|
+
error: String(error),
|
|
6207
|
+
isRetryable: false,
|
|
6208
|
+
});
|
|
6209
|
+
}
|
|
6108
6210
|
throw error;
|
|
6109
6211
|
}
|
|
6110
6212
|
}
|
|
@@ -6215,13 +6317,25 @@ exports.OptionsContract = {
|
|
|
6215
6317
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6216
6318
|
continue;
|
|
6217
6319
|
}
|
|
6218
|
-
// Log structured error details and rethrow
|
|
6219
|
-
|
|
6220
|
-
operation
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6320
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6321
|
+
if (isConnectionError) {
|
|
6322
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6323
|
+
operation: 'findManyOptionsContract',
|
|
6324
|
+
model: 'OptionsContract',
|
|
6325
|
+
error: String(error),
|
|
6326
|
+
isRetryable: true,
|
|
6327
|
+
transient: true,
|
|
6328
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6329
|
+
});
|
|
6330
|
+
}
|
|
6331
|
+
else {
|
|
6332
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
6333
|
+
operation: 'findManyOptionsContract',
|
|
6334
|
+
model: 'OptionsContract',
|
|
6335
|
+
error: String(error),
|
|
6336
|
+
isRetryable: false,
|
|
6337
|
+
});
|
|
6338
|
+
}
|
|
6225
6339
|
throw error;
|
|
6226
6340
|
}
|
|
6227
6341
|
}
|