@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/esm/OptionsContract.mjs
CHANGED
|
@@ -650,13 +650,28 @@ export const OptionsContract = {
|
|
|
650
650
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
651
651
|
continue;
|
|
652
652
|
}
|
|
653
|
-
// Log structured error details and rethrow
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
653
|
+
// Log structured error details and rethrow.
|
|
654
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
655
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
656
|
+
// from true defects.
|
|
657
|
+
if (isConnectionError) {
|
|
658
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
659
|
+
operation: 'createOneOptionsContract',
|
|
660
|
+
model: 'OptionsContract',
|
|
661
|
+
error: String(error),
|
|
662
|
+
isRetryable: true,
|
|
663
|
+
transient: true,
|
|
664
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
logger.error("Database create operation failed", {
|
|
669
|
+
operation: 'createOneOptionsContract',
|
|
670
|
+
model: 'OptionsContract',
|
|
671
|
+
error: String(error),
|
|
672
|
+
isRetryable: false,
|
|
673
|
+
});
|
|
674
|
+
}
|
|
660
675
|
throw error;
|
|
661
676
|
}
|
|
662
677
|
}
|
|
@@ -800,13 +815,25 @@ export const OptionsContract = {
|
|
|
800
815
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
801
816
|
continue;
|
|
802
817
|
}
|
|
803
|
-
// Log structured error details and rethrow
|
|
804
|
-
|
|
805
|
-
operation
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
818
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
819
|
+
if (isConnectionError) {
|
|
820
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
821
|
+
operation: 'createManyOptionsContract',
|
|
822
|
+
model: 'OptionsContract',
|
|
823
|
+
error: String(error),
|
|
824
|
+
isRetryable: true,
|
|
825
|
+
transient: true,
|
|
826
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
logger.error("Database createMany operation failed", {
|
|
831
|
+
operation: 'createManyOptionsContract',
|
|
832
|
+
model: 'OptionsContract',
|
|
833
|
+
error: String(error),
|
|
834
|
+
isRetryable: false,
|
|
835
|
+
});
|
|
836
|
+
}
|
|
810
837
|
throw error;
|
|
811
838
|
}
|
|
812
839
|
}
|
|
@@ -2323,14 +2350,27 @@ export const OptionsContract = {
|
|
|
2323
2350
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2324
2351
|
continue;
|
|
2325
2352
|
}
|
|
2326
|
-
// Log structured error details and rethrow
|
|
2327
|
-
|
|
2328
|
-
operation
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2353
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2354
|
+
if (isConnectionError) {
|
|
2355
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2356
|
+
operation: 'updateOneOptionsContract',
|
|
2357
|
+
model: 'OptionsContract',
|
|
2358
|
+
error: String(error),
|
|
2359
|
+
recordId: props.id,
|
|
2360
|
+
isRetryable: true,
|
|
2361
|
+
transient: true,
|
|
2362
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
else {
|
|
2366
|
+
logger.error("Database update operation failed", {
|
|
2367
|
+
operation: 'updateOneOptionsContract',
|
|
2368
|
+
model: 'OptionsContract',
|
|
2369
|
+
error: String(error),
|
|
2370
|
+
recordId: props.id,
|
|
2371
|
+
isRetryable: false,
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2334
2374
|
throw error;
|
|
2335
2375
|
}
|
|
2336
2376
|
}
|
|
@@ -4240,14 +4280,27 @@ export const OptionsContract = {
|
|
|
4240
4280
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4241
4281
|
continue;
|
|
4242
4282
|
}
|
|
4243
|
-
// Log structured error details and rethrow
|
|
4244
|
-
|
|
4245
|
-
operation
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4283
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4284
|
+
if (isConnectionError) {
|
|
4285
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4286
|
+
operation: 'upsertOneOptionsContract',
|
|
4287
|
+
model: 'OptionsContract',
|
|
4288
|
+
error: String(error),
|
|
4289
|
+
recordId: props.id,
|
|
4290
|
+
isRetryable: true,
|
|
4291
|
+
transient: true,
|
|
4292
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4293
|
+
});
|
|
4294
|
+
}
|
|
4295
|
+
else {
|
|
4296
|
+
logger.error("Database upsert operation failed", {
|
|
4297
|
+
operation: 'upsertOneOptionsContract',
|
|
4298
|
+
model: 'OptionsContract',
|
|
4299
|
+
error: String(error),
|
|
4300
|
+
recordId: props.id,
|
|
4301
|
+
isRetryable: false,
|
|
4302
|
+
});
|
|
4303
|
+
}
|
|
4251
4304
|
throw error;
|
|
4252
4305
|
}
|
|
4253
4306
|
}
|
|
@@ -5762,13 +5815,25 @@ export const OptionsContract = {
|
|
|
5762
5815
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5763
5816
|
continue;
|
|
5764
5817
|
}
|
|
5765
|
-
// Log structured error details and rethrow
|
|
5766
|
-
|
|
5767
|
-
operation
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5818
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5819
|
+
if (isConnectionError) {
|
|
5820
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
5821
|
+
operation: 'updateManyOptionsContract',
|
|
5822
|
+
model: 'OptionsContract',
|
|
5823
|
+
error: String(error),
|
|
5824
|
+
isRetryable: true,
|
|
5825
|
+
transient: true,
|
|
5826
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5827
|
+
});
|
|
5828
|
+
}
|
|
5829
|
+
else {
|
|
5830
|
+
logger.error("Database updateMany operation failed", {
|
|
5831
|
+
operation: 'updateManyOptionsContract',
|
|
5832
|
+
model: 'OptionsContract',
|
|
5833
|
+
error: String(error),
|
|
5834
|
+
isRetryable: false,
|
|
5835
|
+
});
|
|
5836
|
+
}
|
|
5772
5837
|
throw error;
|
|
5773
5838
|
}
|
|
5774
5839
|
}
|
|
@@ -5890,14 +5955,27 @@ export const OptionsContract = {
|
|
|
5890
5955
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5891
5956
|
continue;
|
|
5892
5957
|
}
|
|
5893
|
-
// Log structured error details and rethrow
|
|
5894
|
-
|
|
5895
|
-
operation
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5958
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5959
|
+
if (isConnectionError) {
|
|
5960
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
5961
|
+
operation: 'deleteOneOptionsContract',
|
|
5962
|
+
model: 'OptionsContract',
|
|
5963
|
+
error: String(error),
|
|
5964
|
+
recordId: props.id,
|
|
5965
|
+
isRetryable: true,
|
|
5966
|
+
transient: true,
|
|
5967
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5968
|
+
});
|
|
5969
|
+
}
|
|
5970
|
+
else {
|
|
5971
|
+
logger.error("Database delete operation failed", {
|
|
5972
|
+
operation: 'deleteOneOptionsContract',
|
|
5973
|
+
model: 'OptionsContract',
|
|
5974
|
+
error: String(error),
|
|
5975
|
+
recordId: props.id,
|
|
5976
|
+
isRetryable: false,
|
|
5977
|
+
});
|
|
5978
|
+
}
|
|
5901
5979
|
throw error;
|
|
5902
5980
|
}
|
|
5903
5981
|
}
|
|
@@ -5995,13 +6073,25 @@ export const OptionsContract = {
|
|
|
5995
6073
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5996
6074
|
continue;
|
|
5997
6075
|
}
|
|
5998
|
-
// Log structured error details and rethrow
|
|
5999
|
-
|
|
6000
|
-
operation
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6076
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6077
|
+
if (isConnectionError) {
|
|
6078
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6079
|
+
operation: 'getOptionsContract',
|
|
6080
|
+
model: 'OptionsContract',
|
|
6081
|
+
error: String(error),
|
|
6082
|
+
isRetryable: true,
|
|
6083
|
+
transient: true,
|
|
6084
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6085
|
+
});
|
|
6086
|
+
}
|
|
6087
|
+
else {
|
|
6088
|
+
logger.error("Database get operation failed", {
|
|
6089
|
+
operation: 'getOptionsContract',
|
|
6090
|
+
model: 'OptionsContract',
|
|
6091
|
+
error: String(error),
|
|
6092
|
+
isRetryable: false,
|
|
6093
|
+
});
|
|
6094
|
+
}
|
|
6005
6095
|
throw error;
|
|
6006
6096
|
}
|
|
6007
6097
|
}
|
|
@@ -6087,13 +6177,25 @@ export const OptionsContract = {
|
|
|
6087
6177
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6088
6178
|
continue;
|
|
6089
6179
|
}
|
|
6090
|
-
// Log structured error details and rethrow
|
|
6091
|
-
|
|
6092
|
-
operation
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6180
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6181
|
+
if (isConnectionError) {
|
|
6182
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6183
|
+
operation: 'getAllOptionsContract',
|
|
6184
|
+
model: 'OptionsContract',
|
|
6185
|
+
error: String(error),
|
|
6186
|
+
isRetryable: true,
|
|
6187
|
+
transient: true,
|
|
6188
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6189
|
+
});
|
|
6190
|
+
}
|
|
6191
|
+
else {
|
|
6192
|
+
logger.error("Database getAll operation failed", {
|
|
6193
|
+
operation: 'getAllOptionsContract',
|
|
6194
|
+
model: 'OptionsContract',
|
|
6195
|
+
error: String(error),
|
|
6196
|
+
isRetryable: false,
|
|
6197
|
+
});
|
|
6198
|
+
}
|
|
6097
6199
|
throw error;
|
|
6098
6200
|
}
|
|
6099
6201
|
}
|
|
@@ -6203,13 +6305,25 @@ export const OptionsContract = {
|
|
|
6203
6305
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6204
6306
|
continue;
|
|
6205
6307
|
}
|
|
6206
|
-
// Log structured error details and rethrow
|
|
6207
|
-
|
|
6208
|
-
operation
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6308
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6309
|
+
if (isConnectionError) {
|
|
6310
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6311
|
+
operation: 'findManyOptionsContract',
|
|
6312
|
+
model: 'OptionsContract',
|
|
6313
|
+
error: String(error),
|
|
6314
|
+
isRetryable: true,
|
|
6315
|
+
transient: true,
|
|
6316
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6317
|
+
});
|
|
6318
|
+
}
|
|
6319
|
+
else {
|
|
6320
|
+
logger.error("Database findMany operation failed", {
|
|
6321
|
+
operation: 'findManyOptionsContract',
|
|
6322
|
+
model: 'OptionsContract',
|
|
6323
|
+
error: String(error),
|
|
6324
|
+
isRetryable: false,
|
|
6325
|
+
});
|
|
6326
|
+
}
|
|
6213
6327
|
throw error;
|
|
6214
6328
|
}
|
|
6215
6329
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsGreeksHistory.d.ts","sourceRoot":"","sources":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