@adaptic/backend-legacy 0.0.960 → 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
package/ModelArtifact.cjs
CHANGED
|
@@ -515,13 +515,28 @@ exports.ModelArtifact = {
|
|
|
515
515
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
516
516
|
continue;
|
|
517
517
|
}
|
|
518
|
-
// Log structured error details and rethrow
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
518
|
+
// Log structured error details and rethrow.
|
|
519
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
520
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
521
|
+
// from true defects.
|
|
522
|
+
if (isConnectionError) {
|
|
523
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
524
|
+
operation: 'createOneModelArtifact',
|
|
525
|
+
model: 'ModelArtifact',
|
|
526
|
+
error: String(error),
|
|
527
|
+
isRetryable: true,
|
|
528
|
+
transient: true,
|
|
529
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
logger_1.logger.error("Database create operation failed", {
|
|
534
|
+
operation: 'createOneModelArtifact',
|
|
535
|
+
model: 'ModelArtifact',
|
|
536
|
+
error: String(error),
|
|
537
|
+
isRetryable: false,
|
|
538
|
+
});
|
|
539
|
+
}
|
|
525
540
|
throw error;
|
|
526
541
|
}
|
|
527
542
|
}
|
|
@@ -653,13 +668,25 @@ exports.ModelArtifact = {
|
|
|
653
668
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
654
669
|
continue;
|
|
655
670
|
}
|
|
656
|
-
// Log structured error details and rethrow
|
|
657
|
-
|
|
658
|
-
operation
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
671
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
672
|
+
if (isConnectionError) {
|
|
673
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
674
|
+
operation: 'createManyModelArtifact',
|
|
675
|
+
model: 'ModelArtifact',
|
|
676
|
+
error: String(error),
|
|
677
|
+
isRetryable: true,
|
|
678
|
+
transient: true,
|
|
679
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
684
|
+
operation: 'createManyModelArtifact',
|
|
685
|
+
model: 'ModelArtifact',
|
|
686
|
+
error: String(error),
|
|
687
|
+
isRetryable: false,
|
|
688
|
+
});
|
|
689
|
+
}
|
|
663
690
|
throw error;
|
|
664
691
|
}
|
|
665
692
|
}
|
|
@@ -2079,14 +2106,27 @@ exports.ModelArtifact = {
|
|
|
2079
2106
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2080
2107
|
continue;
|
|
2081
2108
|
}
|
|
2082
|
-
// Log structured error details and rethrow
|
|
2083
|
-
|
|
2084
|
-
operation
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2109
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2110
|
+
if (isConnectionError) {
|
|
2111
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
2112
|
+
operation: 'updateOneModelArtifact',
|
|
2113
|
+
model: 'ModelArtifact',
|
|
2114
|
+
error: String(error),
|
|
2115
|
+
recordId: props.id,
|
|
2116
|
+
isRetryable: true,
|
|
2117
|
+
transient: true,
|
|
2118
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
else {
|
|
2122
|
+
logger_1.logger.error("Database update operation failed", {
|
|
2123
|
+
operation: 'updateOneModelArtifact',
|
|
2124
|
+
model: 'ModelArtifact',
|
|
2125
|
+
error: String(error),
|
|
2126
|
+
recordId: props.id,
|
|
2127
|
+
isRetryable: false,
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2090
2130
|
throw error;
|
|
2091
2131
|
}
|
|
2092
2132
|
}
|
|
@@ -3814,14 +3854,27 @@ exports.ModelArtifact = {
|
|
|
3814
3854
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3815
3855
|
continue;
|
|
3816
3856
|
}
|
|
3817
|
-
// Log structured error details and rethrow
|
|
3818
|
-
|
|
3819
|
-
operation
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3857
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3858
|
+
if (isConnectionError) {
|
|
3859
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
3860
|
+
operation: 'upsertOneModelArtifact',
|
|
3861
|
+
model: 'ModelArtifact',
|
|
3862
|
+
error: String(error),
|
|
3863
|
+
recordId: props.id,
|
|
3864
|
+
isRetryable: true,
|
|
3865
|
+
transient: true,
|
|
3866
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3867
|
+
});
|
|
3868
|
+
}
|
|
3869
|
+
else {
|
|
3870
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
3871
|
+
operation: 'upsertOneModelArtifact',
|
|
3872
|
+
model: 'ModelArtifact',
|
|
3873
|
+
error: String(error),
|
|
3874
|
+
recordId: props.id,
|
|
3875
|
+
isRetryable: false,
|
|
3876
|
+
});
|
|
3877
|
+
}
|
|
3825
3878
|
throw error;
|
|
3826
3879
|
}
|
|
3827
3880
|
}
|
|
@@ -5239,13 +5292,25 @@ exports.ModelArtifact = {
|
|
|
5239
5292
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5240
5293
|
continue;
|
|
5241
5294
|
}
|
|
5242
|
-
// Log structured error details and rethrow
|
|
5243
|
-
|
|
5244
|
-
operation
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5295
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5296
|
+
if (isConnectionError) {
|
|
5297
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
5298
|
+
operation: 'updateManyModelArtifact',
|
|
5299
|
+
model: 'ModelArtifact',
|
|
5300
|
+
error: String(error),
|
|
5301
|
+
isRetryable: true,
|
|
5302
|
+
transient: true,
|
|
5303
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5306
|
+
else {
|
|
5307
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
5308
|
+
operation: 'updateManyModelArtifact',
|
|
5309
|
+
model: 'ModelArtifact',
|
|
5310
|
+
error: String(error),
|
|
5311
|
+
isRetryable: false,
|
|
5312
|
+
});
|
|
5313
|
+
}
|
|
5249
5314
|
throw error;
|
|
5250
5315
|
}
|
|
5251
5316
|
}
|
|
@@ -5368,14 +5433,27 @@ exports.ModelArtifact = {
|
|
|
5368
5433
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5369
5434
|
continue;
|
|
5370
5435
|
}
|
|
5371
|
-
// Log structured error details and rethrow
|
|
5372
|
-
|
|
5373
|
-
operation
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5436
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5437
|
+
if (isConnectionError) {
|
|
5438
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
5439
|
+
operation: 'deleteOneModelArtifact',
|
|
5440
|
+
model: 'ModelArtifact',
|
|
5441
|
+
error: String(error),
|
|
5442
|
+
recordId: props.id,
|
|
5443
|
+
isRetryable: true,
|
|
5444
|
+
transient: true,
|
|
5445
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5446
|
+
});
|
|
5447
|
+
}
|
|
5448
|
+
else {
|
|
5449
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
5450
|
+
operation: 'deleteOneModelArtifact',
|
|
5451
|
+
model: 'ModelArtifact',
|
|
5452
|
+
error: String(error),
|
|
5453
|
+
recordId: props.id,
|
|
5454
|
+
isRetryable: false,
|
|
5455
|
+
});
|
|
5456
|
+
}
|
|
5379
5457
|
throw error;
|
|
5380
5458
|
}
|
|
5381
5459
|
}
|
|
@@ -5471,13 +5549,25 @@ exports.ModelArtifact = {
|
|
|
5471
5549
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5472
5550
|
continue;
|
|
5473
5551
|
}
|
|
5474
|
-
// Log structured error details and rethrow
|
|
5475
|
-
|
|
5476
|
-
operation
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5552
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5553
|
+
if (isConnectionError) {
|
|
5554
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
5555
|
+
operation: 'getModelArtifact',
|
|
5556
|
+
model: 'ModelArtifact',
|
|
5557
|
+
error: String(error),
|
|
5558
|
+
isRetryable: true,
|
|
5559
|
+
transient: true,
|
|
5560
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5561
|
+
});
|
|
5562
|
+
}
|
|
5563
|
+
else {
|
|
5564
|
+
logger_1.logger.error("Database get operation failed", {
|
|
5565
|
+
operation: 'getModelArtifact',
|
|
5566
|
+
model: 'ModelArtifact',
|
|
5567
|
+
error: String(error),
|
|
5568
|
+
isRetryable: false,
|
|
5569
|
+
});
|
|
5570
|
+
}
|
|
5481
5571
|
throw error;
|
|
5482
5572
|
}
|
|
5483
5573
|
}
|
|
@@ -5564,13 +5654,25 @@ exports.ModelArtifact = {
|
|
|
5564
5654
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5565
5655
|
continue;
|
|
5566
5656
|
}
|
|
5567
|
-
// Log structured error details and rethrow
|
|
5568
|
-
|
|
5569
|
-
operation
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5657
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5658
|
+
if (isConnectionError) {
|
|
5659
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
5660
|
+
operation: 'getAllModelArtifact',
|
|
5661
|
+
model: 'ModelArtifact',
|
|
5662
|
+
error: String(error),
|
|
5663
|
+
isRetryable: true,
|
|
5664
|
+
transient: true,
|
|
5665
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5666
|
+
});
|
|
5667
|
+
}
|
|
5668
|
+
else {
|
|
5669
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
5670
|
+
operation: 'getAllModelArtifact',
|
|
5671
|
+
model: 'ModelArtifact',
|
|
5672
|
+
error: String(error),
|
|
5673
|
+
isRetryable: false,
|
|
5674
|
+
});
|
|
5675
|
+
}
|
|
5574
5676
|
throw error;
|
|
5575
5677
|
}
|
|
5576
5678
|
}
|
|
@@ -5678,13 +5780,25 @@ exports.ModelArtifact = {
|
|
|
5678
5780
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5679
5781
|
continue;
|
|
5680
5782
|
}
|
|
5681
|
-
// Log structured error details and rethrow
|
|
5682
|
-
|
|
5683
|
-
operation
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5783
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5784
|
+
if (isConnectionError) {
|
|
5785
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
5786
|
+
operation: 'findManyModelArtifact',
|
|
5787
|
+
model: 'ModelArtifact',
|
|
5788
|
+
error: String(error),
|
|
5789
|
+
isRetryable: true,
|
|
5790
|
+
transient: true,
|
|
5791
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5792
|
+
});
|
|
5793
|
+
}
|
|
5794
|
+
else {
|
|
5795
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
5796
|
+
operation: 'findManyModelArtifact',
|
|
5797
|
+
model: 'ModelArtifact',
|
|
5798
|
+
error: String(error),
|
|
5799
|
+
isRetryable: false,
|
|
5800
|
+
});
|
|
5801
|
+
}
|
|
5688
5802
|
throw error;
|
|
5689
5803
|
}
|
|
5690
5804
|
}
|
package/ModelVersion.cjs
CHANGED
|
@@ -2067,13 +2067,28 @@ exports.ModelVersion = {
|
|
|
2067
2067
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2068
2068
|
continue;
|
|
2069
2069
|
}
|
|
2070
|
-
// Log structured error details and rethrow
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2070
|
+
// Log structured error details and rethrow.
|
|
2071
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
2072
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
2073
|
+
// from true defects.
|
|
2074
|
+
if (isConnectionError) {
|
|
2075
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
2076
|
+
operation: 'createOneModelVersion',
|
|
2077
|
+
model: 'ModelVersion',
|
|
2078
|
+
error: String(error),
|
|
2079
|
+
isRetryable: true,
|
|
2080
|
+
transient: true,
|
|
2081
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
else {
|
|
2085
|
+
logger_1.logger.error("Database create operation failed", {
|
|
2086
|
+
operation: 'createOneModelVersion',
|
|
2087
|
+
model: 'ModelVersion',
|
|
2088
|
+
error: String(error),
|
|
2089
|
+
isRetryable: false,
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2077
2092
|
throw error;
|
|
2078
2093
|
}
|
|
2079
2094
|
}
|
|
@@ -2225,13 +2240,25 @@ exports.ModelVersion = {
|
|
|
2225
2240
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2226
2241
|
continue;
|
|
2227
2242
|
}
|
|
2228
|
-
// Log structured error details and rethrow
|
|
2229
|
-
|
|
2230
|
-
operation
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2243
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2244
|
+
if (isConnectionError) {
|
|
2245
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
2246
|
+
operation: 'createManyModelVersion',
|
|
2247
|
+
model: 'ModelVersion',
|
|
2248
|
+
error: String(error),
|
|
2249
|
+
isRetryable: true,
|
|
2250
|
+
transient: true,
|
|
2251
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2254
|
+
else {
|
|
2255
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
2256
|
+
operation: 'createManyModelVersion',
|
|
2257
|
+
model: 'ModelVersion',
|
|
2258
|
+
error: String(error),
|
|
2259
|
+
isRetryable: false,
|
|
2260
|
+
});
|
|
2261
|
+
}
|
|
2235
2262
|
throw error;
|
|
2236
2263
|
}
|
|
2237
2264
|
}
|
|
@@ -9534,14 +9561,27 @@ exports.ModelVersion = {
|
|
|
9534
9561
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
9535
9562
|
continue;
|
|
9536
9563
|
}
|
|
9537
|
-
// Log structured error details and rethrow
|
|
9538
|
-
|
|
9539
|
-
operation
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9564
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
9565
|
+
if (isConnectionError) {
|
|
9566
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
9567
|
+
operation: 'updateOneModelVersion',
|
|
9568
|
+
model: 'ModelVersion',
|
|
9569
|
+
error: String(error),
|
|
9570
|
+
recordId: props.id,
|
|
9571
|
+
isRetryable: true,
|
|
9572
|
+
transient: true,
|
|
9573
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
9574
|
+
});
|
|
9575
|
+
}
|
|
9576
|
+
else {
|
|
9577
|
+
logger_1.logger.error("Database update operation failed", {
|
|
9578
|
+
operation: 'updateOneModelVersion',
|
|
9579
|
+
model: 'ModelVersion',
|
|
9580
|
+
error: String(error),
|
|
9581
|
+
recordId: props.id,
|
|
9582
|
+
isRetryable: false,
|
|
9583
|
+
});
|
|
9584
|
+
}
|
|
9545
9585
|
throw error;
|
|
9546
9586
|
}
|
|
9547
9587
|
}
|
|
@@ -18710,14 +18750,27 @@ exports.ModelVersion = {
|
|
|
18710
18750
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
18711
18751
|
continue;
|
|
18712
18752
|
}
|
|
18713
|
-
// Log structured error details and rethrow
|
|
18714
|
-
|
|
18715
|
-
operation
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18753
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
18754
|
+
if (isConnectionError) {
|
|
18755
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
18756
|
+
operation: 'upsertOneModelVersion',
|
|
18757
|
+
model: 'ModelVersion',
|
|
18758
|
+
error: String(error),
|
|
18759
|
+
recordId: props.id,
|
|
18760
|
+
isRetryable: true,
|
|
18761
|
+
transient: true,
|
|
18762
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
18763
|
+
});
|
|
18764
|
+
}
|
|
18765
|
+
else {
|
|
18766
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
18767
|
+
operation: 'upsertOneModelVersion',
|
|
18768
|
+
model: 'ModelVersion',
|
|
18769
|
+
error: String(error),
|
|
18770
|
+
recordId: props.id,
|
|
18771
|
+
isRetryable: false,
|
|
18772
|
+
});
|
|
18773
|
+
}
|
|
18721
18774
|
throw error;
|
|
18722
18775
|
}
|
|
18723
18776
|
}
|
|
@@ -26018,13 +26071,25 @@ exports.ModelVersion = {
|
|
|
26018
26071
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26019
26072
|
continue;
|
|
26020
26073
|
}
|
|
26021
|
-
// Log structured error details and rethrow
|
|
26022
|
-
|
|
26023
|
-
operation
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
|
|
26027
|
-
|
|
26074
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26075
|
+
if (isConnectionError) {
|
|
26076
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
26077
|
+
operation: 'updateManyModelVersion',
|
|
26078
|
+
model: 'ModelVersion',
|
|
26079
|
+
error: String(error),
|
|
26080
|
+
isRetryable: true,
|
|
26081
|
+
transient: true,
|
|
26082
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26083
|
+
});
|
|
26084
|
+
}
|
|
26085
|
+
else {
|
|
26086
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
26087
|
+
operation: 'updateManyModelVersion',
|
|
26088
|
+
model: 'ModelVersion',
|
|
26089
|
+
error: String(error),
|
|
26090
|
+
isRetryable: false,
|
|
26091
|
+
});
|
|
26092
|
+
}
|
|
26028
26093
|
throw error;
|
|
26029
26094
|
}
|
|
26030
26095
|
}
|
|
@@ -26147,14 +26212,27 @@ exports.ModelVersion = {
|
|
|
26147
26212
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26148
26213
|
continue;
|
|
26149
26214
|
}
|
|
26150
|
-
// Log structured error details and rethrow
|
|
26151
|
-
|
|
26152
|
-
operation
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
|
|
26157
|
-
|
|
26215
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26216
|
+
if (isConnectionError) {
|
|
26217
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
26218
|
+
operation: 'deleteOneModelVersion',
|
|
26219
|
+
model: 'ModelVersion',
|
|
26220
|
+
error: String(error),
|
|
26221
|
+
recordId: props.id,
|
|
26222
|
+
isRetryable: true,
|
|
26223
|
+
transient: true,
|
|
26224
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26225
|
+
});
|
|
26226
|
+
}
|
|
26227
|
+
else {
|
|
26228
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
26229
|
+
operation: 'deleteOneModelVersion',
|
|
26230
|
+
model: 'ModelVersion',
|
|
26231
|
+
error: String(error),
|
|
26232
|
+
recordId: props.id,
|
|
26233
|
+
isRetryable: false,
|
|
26234
|
+
});
|
|
26235
|
+
}
|
|
26158
26236
|
throw error;
|
|
26159
26237
|
}
|
|
26160
26238
|
}
|
|
@@ -26253,13 +26331,25 @@ exports.ModelVersion = {
|
|
|
26253
26331
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26254
26332
|
continue;
|
|
26255
26333
|
}
|
|
26256
|
-
// Log structured error details and rethrow
|
|
26257
|
-
|
|
26258
|
-
operation
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26262
|
-
|
|
26334
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26335
|
+
if (isConnectionError) {
|
|
26336
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
26337
|
+
operation: 'getModelVersion',
|
|
26338
|
+
model: 'ModelVersion',
|
|
26339
|
+
error: String(error),
|
|
26340
|
+
isRetryable: true,
|
|
26341
|
+
transient: true,
|
|
26342
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26343
|
+
});
|
|
26344
|
+
}
|
|
26345
|
+
else {
|
|
26346
|
+
logger_1.logger.error("Database get operation failed", {
|
|
26347
|
+
operation: 'getModelVersion',
|
|
26348
|
+
model: 'ModelVersion',
|
|
26349
|
+
error: String(error),
|
|
26350
|
+
isRetryable: false,
|
|
26351
|
+
});
|
|
26352
|
+
}
|
|
26263
26353
|
throw error;
|
|
26264
26354
|
}
|
|
26265
26355
|
}
|
|
@@ -26346,13 +26436,25 @@ exports.ModelVersion = {
|
|
|
26346
26436
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26347
26437
|
continue;
|
|
26348
26438
|
}
|
|
26349
|
-
// Log structured error details and rethrow
|
|
26350
|
-
|
|
26351
|
-
operation
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26439
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26440
|
+
if (isConnectionError) {
|
|
26441
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
26442
|
+
operation: 'getAllModelVersion',
|
|
26443
|
+
model: 'ModelVersion',
|
|
26444
|
+
error: String(error),
|
|
26445
|
+
isRetryable: true,
|
|
26446
|
+
transient: true,
|
|
26447
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26448
|
+
});
|
|
26449
|
+
}
|
|
26450
|
+
else {
|
|
26451
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
26452
|
+
operation: 'getAllModelVersion',
|
|
26453
|
+
model: 'ModelVersion',
|
|
26454
|
+
error: String(error),
|
|
26455
|
+
isRetryable: false,
|
|
26456
|
+
});
|
|
26457
|
+
}
|
|
26356
26458
|
throw error;
|
|
26357
26459
|
}
|
|
26358
26460
|
}
|
|
@@ -26463,13 +26565,25 @@ exports.ModelVersion = {
|
|
|
26463
26565
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26464
26566
|
continue;
|
|
26465
26567
|
}
|
|
26466
|
-
// Log structured error details and rethrow
|
|
26467
|
-
|
|
26468
|
-
operation
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26568
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26569
|
+
if (isConnectionError) {
|
|
26570
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
26571
|
+
operation: 'findManyModelVersion',
|
|
26572
|
+
model: 'ModelVersion',
|
|
26573
|
+
error: String(error),
|
|
26574
|
+
isRetryable: true,
|
|
26575
|
+
transient: true,
|
|
26576
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26577
|
+
});
|
|
26578
|
+
}
|
|
26579
|
+
else {
|
|
26580
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
26581
|
+
operation: 'findManyModelVersion',
|
|
26582
|
+
model: 'ModelVersion',
|
|
26583
|
+
error: String(error),
|
|
26584
|
+
isRetryable: false,
|
|
26585
|
+
});
|
|
26586
|
+
}
|
|
26473
26587
|
throw error;
|
|
26474
26588
|
}
|
|
26475
26589
|
}
|