@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
package/esm/ModelVersion.mjs
CHANGED
|
@@ -2063,13 +2063,28 @@ export const ModelVersion = {
|
|
|
2063
2063
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2064
2064
|
continue;
|
|
2065
2065
|
}
|
|
2066
|
-
// Log structured error details and rethrow
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2066
|
+
// Log structured error details and rethrow.
|
|
2067
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
2068
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
2069
|
+
// from true defects.
|
|
2070
|
+
if (isConnectionError) {
|
|
2071
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
2072
|
+
operation: 'createOneModelVersion',
|
|
2073
|
+
model: 'ModelVersion',
|
|
2074
|
+
error: String(error),
|
|
2075
|
+
isRetryable: true,
|
|
2076
|
+
transient: true,
|
|
2077
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
else {
|
|
2081
|
+
logger.error("Database create operation failed", {
|
|
2082
|
+
operation: 'createOneModelVersion',
|
|
2083
|
+
model: 'ModelVersion',
|
|
2084
|
+
error: String(error),
|
|
2085
|
+
isRetryable: false,
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2073
2088
|
throw error;
|
|
2074
2089
|
}
|
|
2075
2090
|
}
|
|
@@ -2220,13 +2235,25 @@ export const ModelVersion = {
|
|
|
2220
2235
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2221
2236
|
continue;
|
|
2222
2237
|
}
|
|
2223
|
-
// Log structured error details and rethrow
|
|
2224
|
-
|
|
2225
|
-
operation
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2238
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2239
|
+
if (isConnectionError) {
|
|
2240
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
2241
|
+
operation: 'createManyModelVersion',
|
|
2242
|
+
model: 'ModelVersion',
|
|
2243
|
+
error: String(error),
|
|
2244
|
+
isRetryable: true,
|
|
2245
|
+
transient: true,
|
|
2246
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2247
|
+
});
|
|
2248
|
+
}
|
|
2249
|
+
else {
|
|
2250
|
+
logger.error("Database createMany operation failed", {
|
|
2251
|
+
operation: 'createManyModelVersion',
|
|
2252
|
+
model: 'ModelVersion',
|
|
2253
|
+
error: String(error),
|
|
2254
|
+
isRetryable: false,
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2230
2257
|
throw error;
|
|
2231
2258
|
}
|
|
2232
2259
|
}
|
|
@@ -9528,14 +9555,27 @@ export const ModelVersion = {
|
|
|
9528
9555
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
9529
9556
|
continue;
|
|
9530
9557
|
}
|
|
9531
|
-
// Log structured error details and rethrow
|
|
9532
|
-
|
|
9533
|
-
operation
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9558
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
9559
|
+
if (isConnectionError) {
|
|
9560
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
9561
|
+
operation: 'updateOneModelVersion',
|
|
9562
|
+
model: 'ModelVersion',
|
|
9563
|
+
error: String(error),
|
|
9564
|
+
recordId: props.id,
|
|
9565
|
+
isRetryable: true,
|
|
9566
|
+
transient: true,
|
|
9567
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
9568
|
+
});
|
|
9569
|
+
}
|
|
9570
|
+
else {
|
|
9571
|
+
logger.error("Database update operation failed", {
|
|
9572
|
+
operation: 'updateOneModelVersion',
|
|
9573
|
+
model: 'ModelVersion',
|
|
9574
|
+
error: String(error),
|
|
9575
|
+
recordId: props.id,
|
|
9576
|
+
isRetryable: false,
|
|
9577
|
+
});
|
|
9578
|
+
}
|
|
9539
9579
|
throw error;
|
|
9540
9580
|
}
|
|
9541
9581
|
}
|
|
@@ -18703,14 +18743,27 @@ export const ModelVersion = {
|
|
|
18703
18743
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
18704
18744
|
continue;
|
|
18705
18745
|
}
|
|
18706
|
-
// Log structured error details and rethrow
|
|
18707
|
-
|
|
18708
|
-
operation
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18746
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
18747
|
+
if (isConnectionError) {
|
|
18748
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
18749
|
+
operation: 'upsertOneModelVersion',
|
|
18750
|
+
model: 'ModelVersion',
|
|
18751
|
+
error: String(error),
|
|
18752
|
+
recordId: props.id,
|
|
18753
|
+
isRetryable: true,
|
|
18754
|
+
transient: true,
|
|
18755
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
18756
|
+
});
|
|
18757
|
+
}
|
|
18758
|
+
else {
|
|
18759
|
+
logger.error("Database upsert operation failed", {
|
|
18760
|
+
operation: 'upsertOneModelVersion',
|
|
18761
|
+
model: 'ModelVersion',
|
|
18762
|
+
error: String(error),
|
|
18763
|
+
recordId: props.id,
|
|
18764
|
+
isRetryable: false,
|
|
18765
|
+
});
|
|
18766
|
+
}
|
|
18714
18767
|
throw error;
|
|
18715
18768
|
}
|
|
18716
18769
|
}
|
|
@@ -26010,13 +26063,25 @@ export const ModelVersion = {
|
|
|
26010
26063
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26011
26064
|
continue;
|
|
26012
26065
|
}
|
|
26013
|
-
// Log structured error details and rethrow
|
|
26014
|
-
|
|
26015
|
-
operation
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
|
|
26066
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26067
|
+
if (isConnectionError) {
|
|
26068
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
26069
|
+
operation: 'updateManyModelVersion',
|
|
26070
|
+
model: 'ModelVersion',
|
|
26071
|
+
error: String(error),
|
|
26072
|
+
isRetryable: true,
|
|
26073
|
+
transient: true,
|
|
26074
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26075
|
+
});
|
|
26076
|
+
}
|
|
26077
|
+
else {
|
|
26078
|
+
logger.error("Database updateMany operation failed", {
|
|
26079
|
+
operation: 'updateManyModelVersion',
|
|
26080
|
+
model: 'ModelVersion',
|
|
26081
|
+
error: String(error),
|
|
26082
|
+
isRetryable: false,
|
|
26083
|
+
});
|
|
26084
|
+
}
|
|
26020
26085
|
throw error;
|
|
26021
26086
|
}
|
|
26022
26087
|
}
|
|
@@ -26138,14 +26203,27 @@ export const ModelVersion = {
|
|
|
26138
26203
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26139
26204
|
continue;
|
|
26140
26205
|
}
|
|
26141
|
-
// Log structured error details and rethrow
|
|
26142
|
-
|
|
26143
|
-
operation
|
|
26144
|
-
|
|
26145
|
-
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
|
|
26206
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26207
|
+
if (isConnectionError) {
|
|
26208
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
26209
|
+
operation: 'deleteOneModelVersion',
|
|
26210
|
+
model: 'ModelVersion',
|
|
26211
|
+
error: String(error),
|
|
26212
|
+
recordId: props.id,
|
|
26213
|
+
isRetryable: true,
|
|
26214
|
+
transient: true,
|
|
26215
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26216
|
+
});
|
|
26217
|
+
}
|
|
26218
|
+
else {
|
|
26219
|
+
logger.error("Database delete operation failed", {
|
|
26220
|
+
operation: 'deleteOneModelVersion',
|
|
26221
|
+
model: 'ModelVersion',
|
|
26222
|
+
error: String(error),
|
|
26223
|
+
recordId: props.id,
|
|
26224
|
+
isRetryable: false,
|
|
26225
|
+
});
|
|
26226
|
+
}
|
|
26149
26227
|
throw error;
|
|
26150
26228
|
}
|
|
26151
26229
|
}
|
|
@@ -26243,13 +26321,25 @@ export const ModelVersion = {
|
|
|
26243
26321
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26244
26322
|
continue;
|
|
26245
26323
|
}
|
|
26246
|
-
// Log structured error details and rethrow
|
|
26247
|
-
|
|
26248
|
-
operation
|
|
26249
|
-
|
|
26250
|
-
|
|
26251
|
-
|
|
26252
|
-
|
|
26324
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26325
|
+
if (isConnectionError) {
|
|
26326
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
26327
|
+
operation: 'getModelVersion',
|
|
26328
|
+
model: 'ModelVersion',
|
|
26329
|
+
error: String(error),
|
|
26330
|
+
isRetryable: true,
|
|
26331
|
+
transient: true,
|
|
26332
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26333
|
+
});
|
|
26334
|
+
}
|
|
26335
|
+
else {
|
|
26336
|
+
logger.error("Database get operation failed", {
|
|
26337
|
+
operation: 'getModelVersion',
|
|
26338
|
+
model: 'ModelVersion',
|
|
26339
|
+
error: String(error),
|
|
26340
|
+
isRetryable: false,
|
|
26341
|
+
});
|
|
26342
|
+
}
|
|
26253
26343
|
throw error;
|
|
26254
26344
|
}
|
|
26255
26345
|
}
|
|
@@ -26335,13 +26425,25 @@ export const ModelVersion = {
|
|
|
26335
26425
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26336
26426
|
continue;
|
|
26337
26427
|
}
|
|
26338
|
-
// Log structured error details and rethrow
|
|
26339
|
-
|
|
26340
|
-
operation
|
|
26341
|
-
|
|
26342
|
-
|
|
26343
|
-
|
|
26344
|
-
|
|
26428
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26429
|
+
if (isConnectionError) {
|
|
26430
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
26431
|
+
operation: 'getAllModelVersion',
|
|
26432
|
+
model: 'ModelVersion',
|
|
26433
|
+
error: String(error),
|
|
26434
|
+
isRetryable: true,
|
|
26435
|
+
transient: true,
|
|
26436
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26437
|
+
});
|
|
26438
|
+
}
|
|
26439
|
+
else {
|
|
26440
|
+
logger.error("Database getAll operation failed", {
|
|
26441
|
+
operation: 'getAllModelVersion',
|
|
26442
|
+
model: 'ModelVersion',
|
|
26443
|
+
error: String(error),
|
|
26444
|
+
isRetryable: false,
|
|
26445
|
+
});
|
|
26446
|
+
}
|
|
26345
26447
|
throw error;
|
|
26346
26448
|
}
|
|
26347
26449
|
}
|
|
@@ -26451,13 +26553,25 @@ export const ModelVersion = {
|
|
|
26451
26553
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
26452
26554
|
continue;
|
|
26453
26555
|
}
|
|
26454
|
-
// Log structured error details and rethrow
|
|
26455
|
-
|
|
26456
|
-
operation
|
|
26457
|
-
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26556
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
26557
|
+
if (isConnectionError) {
|
|
26558
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
26559
|
+
operation: 'findManyModelVersion',
|
|
26560
|
+
model: 'ModelVersion',
|
|
26561
|
+
error: String(error),
|
|
26562
|
+
isRetryable: true,
|
|
26563
|
+
transient: true,
|
|
26564
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
26565
|
+
});
|
|
26566
|
+
}
|
|
26567
|
+
else {
|
|
26568
|
+
logger.error("Database findMany operation failed", {
|
|
26569
|
+
operation: 'findManyModelVersion',
|
|
26570
|
+
model: 'ModelVersion',
|
|
26571
|
+
error: String(error),
|
|
26572
|
+
isRetryable: false,
|
|
26573
|
+
});
|
|
26574
|
+
}
|
|
26461
26575
|
throw error;
|
|
26462
26576
|
}
|
|
26463
26577
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelVersionArtifact.d.ts","sourceRoot":"","sources":["../../src/ModelVersionArtifact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiFpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModelVersionArtifact.d.ts","sourceRoot":"","sources":["../../src/ModelVersionArtifact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiFpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA67B1I;;;;;;;OAOG;sBACqB,wBAAwB,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;IA+ItL;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAoyGxI;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAilIxI;;;;;;OAMG;sBACqB,wBAAwB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAkyG9I;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAqJxI;;;;;;;OAOG;eACc,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC;IA2HlL;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,EAAE,GAAG,IAAI,CAAC;IA6GhH;;;;;;;OAOG;oBACmB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,wBAAwB,EAAE,GAAG,IAAI,CAAC;CAuI1L,CAAC"}
|