@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
|
@@ -1002,13 +1002,28 @@ export const ModelVersionArtifact = {
|
|
|
1002
1002
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1003
1003
|
continue;
|
|
1004
1004
|
}
|
|
1005
|
-
// Log structured error details and rethrow
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1005
|
+
// Log structured error details and rethrow.
|
|
1006
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
1007
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
1008
|
+
// from true defects.
|
|
1009
|
+
if (isConnectionError) {
|
|
1010
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
1011
|
+
operation: 'createOneModelVersionArtifact',
|
|
1012
|
+
model: 'ModelVersionArtifact',
|
|
1013
|
+
error: String(error),
|
|
1014
|
+
isRetryable: true,
|
|
1015
|
+
transient: true,
|
|
1016
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
else {
|
|
1020
|
+
logger.error("Database create operation failed", {
|
|
1021
|
+
operation: 'createOneModelVersionArtifact',
|
|
1022
|
+
model: 'ModelVersionArtifact',
|
|
1023
|
+
error: String(error),
|
|
1024
|
+
isRetryable: false,
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1012
1027
|
throw error;
|
|
1013
1028
|
}
|
|
1014
1029
|
}
|
|
@@ -1127,13 +1142,25 @@ export const ModelVersionArtifact = {
|
|
|
1127
1142
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1128
1143
|
continue;
|
|
1129
1144
|
}
|
|
1130
|
-
// Log structured error details and rethrow
|
|
1131
|
-
|
|
1132
|
-
operation
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1145
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1146
|
+
if (isConnectionError) {
|
|
1147
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
1148
|
+
operation: 'createManyModelVersionArtifact',
|
|
1149
|
+
model: 'ModelVersionArtifact',
|
|
1150
|
+
error: String(error),
|
|
1151
|
+
isRetryable: true,
|
|
1152
|
+
transient: true,
|
|
1153
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
logger.error("Database createMany operation failed", {
|
|
1158
|
+
operation: 'createManyModelVersionArtifact',
|
|
1159
|
+
model: 'ModelVersionArtifact',
|
|
1160
|
+
error: String(error),
|
|
1161
|
+
isRetryable: false,
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1137
1164
|
throw error;
|
|
1138
1165
|
}
|
|
1139
1166
|
}
|
|
@@ -4464,14 +4491,27 @@ export const ModelVersionArtifact = {
|
|
|
4464
4491
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4465
4492
|
continue;
|
|
4466
4493
|
}
|
|
4467
|
-
// Log structured error details and rethrow
|
|
4468
|
-
|
|
4469
|
-
operation
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4494
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4495
|
+
if (isConnectionError) {
|
|
4496
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
4497
|
+
operation: 'updateOneModelVersionArtifact',
|
|
4498
|
+
model: 'ModelVersionArtifact',
|
|
4499
|
+
error: String(error),
|
|
4500
|
+
recordId: props.id,
|
|
4501
|
+
isRetryable: true,
|
|
4502
|
+
transient: true,
|
|
4503
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4504
|
+
});
|
|
4505
|
+
}
|
|
4506
|
+
else {
|
|
4507
|
+
logger.error("Database update operation failed", {
|
|
4508
|
+
operation: 'updateOneModelVersionArtifact',
|
|
4509
|
+
model: 'ModelVersionArtifact',
|
|
4510
|
+
error: String(error),
|
|
4511
|
+
recordId: props.id,
|
|
4512
|
+
isRetryable: false,
|
|
4513
|
+
});
|
|
4514
|
+
}
|
|
4475
4515
|
throw error;
|
|
4476
4516
|
}
|
|
4477
4517
|
}
|
|
@@ -8613,14 +8653,27 @@ export const ModelVersionArtifact = {
|
|
|
8613
8653
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
8614
8654
|
continue;
|
|
8615
8655
|
}
|
|
8616
|
-
// Log structured error details and rethrow
|
|
8617
|
-
|
|
8618
|
-
operation
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8656
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
8657
|
+
if (isConnectionError) {
|
|
8658
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
8659
|
+
operation: 'upsertOneModelVersionArtifact',
|
|
8660
|
+
model: 'ModelVersionArtifact',
|
|
8661
|
+
error: String(error),
|
|
8662
|
+
recordId: props.id,
|
|
8663
|
+
isRetryable: true,
|
|
8664
|
+
transient: true,
|
|
8665
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
8666
|
+
});
|
|
8667
|
+
}
|
|
8668
|
+
else {
|
|
8669
|
+
logger.error("Database upsert operation failed", {
|
|
8670
|
+
operation: 'upsertOneModelVersionArtifact',
|
|
8671
|
+
model: 'ModelVersionArtifact',
|
|
8672
|
+
error: String(error),
|
|
8673
|
+
recordId: props.id,
|
|
8674
|
+
isRetryable: false,
|
|
8675
|
+
});
|
|
8676
|
+
}
|
|
8624
8677
|
throw error;
|
|
8625
8678
|
}
|
|
8626
8679
|
}
|
|
@@ -11949,13 +12002,25 @@ export const ModelVersionArtifact = {
|
|
|
11949
12002
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
11950
12003
|
continue;
|
|
11951
12004
|
}
|
|
11952
|
-
// Log structured error details and rethrow
|
|
11953
|
-
|
|
11954
|
-
operation
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
12005
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
12006
|
+
if (isConnectionError) {
|
|
12007
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
12008
|
+
operation: 'updateManyModelVersionArtifact',
|
|
12009
|
+
model: 'ModelVersionArtifact',
|
|
12010
|
+
error: String(error),
|
|
12011
|
+
isRetryable: true,
|
|
12012
|
+
transient: true,
|
|
12013
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
12014
|
+
});
|
|
12015
|
+
}
|
|
12016
|
+
else {
|
|
12017
|
+
logger.error("Database updateMany operation failed", {
|
|
12018
|
+
operation: 'updateManyModelVersionArtifact',
|
|
12019
|
+
model: 'ModelVersionArtifact',
|
|
12020
|
+
error: String(error),
|
|
12021
|
+
isRetryable: false,
|
|
12022
|
+
});
|
|
12023
|
+
}
|
|
11959
12024
|
throw error;
|
|
11960
12025
|
}
|
|
11961
12026
|
}
|
|
@@ -12077,14 +12142,27 @@ export const ModelVersionArtifact = {
|
|
|
12077
12142
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
12078
12143
|
continue;
|
|
12079
12144
|
}
|
|
12080
|
-
// Log structured error details and rethrow
|
|
12081
|
-
|
|
12082
|
-
operation
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12145
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
12146
|
+
if (isConnectionError) {
|
|
12147
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
12148
|
+
operation: 'deleteOneModelVersionArtifact',
|
|
12149
|
+
model: 'ModelVersionArtifact',
|
|
12150
|
+
error: String(error),
|
|
12151
|
+
recordId: props.id,
|
|
12152
|
+
isRetryable: true,
|
|
12153
|
+
transient: true,
|
|
12154
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
12155
|
+
});
|
|
12156
|
+
}
|
|
12157
|
+
else {
|
|
12158
|
+
logger.error("Database delete operation failed", {
|
|
12159
|
+
operation: 'deleteOneModelVersionArtifact',
|
|
12160
|
+
model: 'ModelVersionArtifact',
|
|
12161
|
+
error: String(error),
|
|
12162
|
+
recordId: props.id,
|
|
12163
|
+
isRetryable: false,
|
|
12164
|
+
});
|
|
12165
|
+
}
|
|
12088
12166
|
throw error;
|
|
12089
12167
|
}
|
|
12090
12168
|
}
|
|
@@ -12185,13 +12263,25 @@ export const ModelVersionArtifact = {
|
|
|
12185
12263
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
12186
12264
|
continue;
|
|
12187
12265
|
}
|
|
12188
|
-
// Log structured error details and rethrow
|
|
12189
|
-
|
|
12190
|
-
operation
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12266
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
12267
|
+
if (isConnectionError) {
|
|
12268
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
12269
|
+
operation: 'getModelVersionArtifact',
|
|
12270
|
+
model: 'ModelVersionArtifact',
|
|
12271
|
+
error: String(error),
|
|
12272
|
+
isRetryable: true,
|
|
12273
|
+
transient: true,
|
|
12274
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
12275
|
+
});
|
|
12276
|
+
}
|
|
12277
|
+
else {
|
|
12278
|
+
logger.error("Database get operation failed", {
|
|
12279
|
+
operation: 'getModelVersionArtifact',
|
|
12280
|
+
model: 'ModelVersionArtifact',
|
|
12281
|
+
error: String(error),
|
|
12282
|
+
isRetryable: false,
|
|
12283
|
+
});
|
|
12284
|
+
}
|
|
12195
12285
|
throw error;
|
|
12196
12286
|
}
|
|
12197
12287
|
}
|
|
@@ -12277,13 +12367,25 @@ export const ModelVersionArtifact = {
|
|
|
12277
12367
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
12278
12368
|
continue;
|
|
12279
12369
|
}
|
|
12280
|
-
// Log structured error details and rethrow
|
|
12281
|
-
|
|
12282
|
-
operation
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12370
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
12371
|
+
if (isConnectionError) {
|
|
12372
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
12373
|
+
operation: 'getAllModelVersionArtifact',
|
|
12374
|
+
model: 'ModelVersionArtifact',
|
|
12375
|
+
error: String(error),
|
|
12376
|
+
isRetryable: true,
|
|
12377
|
+
transient: true,
|
|
12378
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
12379
|
+
});
|
|
12380
|
+
}
|
|
12381
|
+
else {
|
|
12382
|
+
logger.error("Database getAll operation failed", {
|
|
12383
|
+
operation: 'getAllModelVersionArtifact',
|
|
12384
|
+
model: 'ModelVersionArtifact',
|
|
12385
|
+
error: String(error),
|
|
12386
|
+
isRetryable: false,
|
|
12387
|
+
});
|
|
12388
|
+
}
|
|
12287
12389
|
throw error;
|
|
12288
12390
|
}
|
|
12289
12391
|
}
|
|
@@ -12396,13 +12498,25 @@ export const ModelVersionArtifact = {
|
|
|
12396
12498
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
12397
12499
|
continue;
|
|
12398
12500
|
}
|
|
12399
|
-
// Log structured error details and rethrow
|
|
12400
|
-
|
|
12401
|
-
operation
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12501
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
12502
|
+
if (isConnectionError) {
|
|
12503
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
12504
|
+
operation: 'findManyModelVersionArtifact',
|
|
12505
|
+
model: 'ModelVersionArtifact',
|
|
12506
|
+
error: String(error),
|
|
12507
|
+
isRetryable: true,
|
|
12508
|
+
transient: true,
|
|
12509
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
12510
|
+
});
|
|
12511
|
+
}
|
|
12512
|
+
else {
|
|
12513
|
+
logger.error("Database findMany operation failed", {
|
|
12514
|
+
operation: 'findManyModelVersionArtifact',
|
|
12515
|
+
model: 'ModelVersionArtifact',
|
|
12516
|
+
error: String(error),
|
|
12517
|
+
isRetryable: false,
|
|
12518
|
+
});
|
|
12519
|
+
}
|
|
12406
12520
|
throw error;
|
|
12407
12521
|
}
|
|
12408
12522
|
}
|
package/esm/NewsArticle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../src/NewsArticle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA6BpG,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../src/NewsArticle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA6BpG,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAoTxH;;;;;;;OAOG;sBACqB,eAAe,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;IA8J7K;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAqvBtH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAo5BtH;;;;;;OAMG;sBACqB,eAAe,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAmvBrI;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAqJtH;;;;;;;OAOG;eACc,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAyHhK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IA6GvG;;;;;;;OAOG;oBACmB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;CAuIxK,CAAC"}
|