@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
|
@@ -658,13 +658,28 @@ export const OptionsTradeExecution = {
|
|
|
658
658
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
659
659
|
continue;
|
|
660
660
|
}
|
|
661
|
-
// Log structured error details and rethrow
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
661
|
+
// Log structured error details and rethrow.
|
|
662
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
663
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
664
|
+
// from true defects.
|
|
665
|
+
if (isConnectionError) {
|
|
666
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
667
|
+
operation: 'createOneOptionsTradeExecution',
|
|
668
|
+
model: 'OptionsTradeExecution',
|
|
669
|
+
error: String(error),
|
|
670
|
+
isRetryable: true,
|
|
671
|
+
transient: true,
|
|
672
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
else {
|
|
676
|
+
logger.error("Database create operation failed", {
|
|
677
|
+
operation: 'createOneOptionsTradeExecution',
|
|
678
|
+
model: 'OptionsTradeExecution',
|
|
679
|
+
error: String(error),
|
|
680
|
+
isRetryable: false,
|
|
681
|
+
});
|
|
682
|
+
}
|
|
668
683
|
throw error;
|
|
669
684
|
}
|
|
670
685
|
}
|
|
@@ -806,13 +821,25 @@ export const OptionsTradeExecution = {
|
|
|
806
821
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
807
822
|
continue;
|
|
808
823
|
}
|
|
809
|
-
// Log structured error details and rethrow
|
|
810
|
-
|
|
811
|
-
operation
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
824
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
825
|
+
if (isConnectionError) {
|
|
826
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
827
|
+
operation: 'createManyOptionsTradeExecution',
|
|
828
|
+
model: 'OptionsTradeExecution',
|
|
829
|
+
error: String(error),
|
|
830
|
+
isRetryable: true,
|
|
831
|
+
transient: true,
|
|
832
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
logger.error("Database createMany operation failed", {
|
|
837
|
+
operation: 'createManyOptionsTradeExecution',
|
|
838
|
+
model: 'OptionsTradeExecution',
|
|
839
|
+
error: String(error),
|
|
840
|
+
isRetryable: false,
|
|
841
|
+
});
|
|
842
|
+
}
|
|
816
843
|
throw error;
|
|
817
844
|
}
|
|
818
845
|
}
|
|
@@ -2521,14 +2548,27 @@ export const OptionsTradeExecution = {
|
|
|
2521
2548
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2522
2549
|
continue;
|
|
2523
2550
|
}
|
|
2524
|
-
// Log structured error details and rethrow
|
|
2525
|
-
|
|
2526
|
-
operation
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2551
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2552
|
+
if (isConnectionError) {
|
|
2553
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2554
|
+
operation: 'updateOneOptionsTradeExecution',
|
|
2555
|
+
model: 'OptionsTradeExecution',
|
|
2556
|
+
error: String(error),
|
|
2557
|
+
recordId: props.id,
|
|
2558
|
+
isRetryable: true,
|
|
2559
|
+
transient: true,
|
|
2560
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
else {
|
|
2564
|
+
logger.error("Database update operation failed", {
|
|
2565
|
+
operation: 'updateOneOptionsTradeExecution',
|
|
2566
|
+
model: 'OptionsTradeExecution',
|
|
2567
|
+
error: String(error),
|
|
2568
|
+
recordId: props.id,
|
|
2569
|
+
isRetryable: false,
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2532
2572
|
throw error;
|
|
2533
2573
|
}
|
|
2534
2574
|
}
|
|
@@ -4669,14 +4709,27 @@ export const OptionsTradeExecution = {
|
|
|
4669
4709
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4670
4710
|
continue;
|
|
4671
4711
|
}
|
|
4672
|
-
// Log structured error details and rethrow
|
|
4673
|
-
|
|
4674
|
-
operation
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4712
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4713
|
+
if (isConnectionError) {
|
|
4714
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4715
|
+
operation: 'upsertOneOptionsTradeExecution',
|
|
4716
|
+
model: 'OptionsTradeExecution',
|
|
4717
|
+
error: String(error),
|
|
4718
|
+
recordId: props.id,
|
|
4719
|
+
isRetryable: true,
|
|
4720
|
+
transient: true,
|
|
4721
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4722
|
+
});
|
|
4723
|
+
}
|
|
4724
|
+
else {
|
|
4725
|
+
logger.error("Database upsert operation failed", {
|
|
4726
|
+
operation: 'upsertOneOptionsTradeExecution',
|
|
4727
|
+
model: 'OptionsTradeExecution',
|
|
4728
|
+
error: String(error),
|
|
4729
|
+
recordId: props.id,
|
|
4730
|
+
isRetryable: false,
|
|
4731
|
+
});
|
|
4732
|
+
}
|
|
4680
4733
|
throw error;
|
|
4681
4734
|
}
|
|
4682
4735
|
}
|
|
@@ -6383,13 +6436,25 @@ export const OptionsTradeExecution = {
|
|
|
6383
6436
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6384
6437
|
continue;
|
|
6385
6438
|
}
|
|
6386
|
-
// Log structured error details and rethrow
|
|
6387
|
-
|
|
6388
|
-
operation
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6439
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6440
|
+
if (isConnectionError) {
|
|
6441
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6442
|
+
operation: 'updateManyOptionsTradeExecution',
|
|
6443
|
+
model: 'OptionsTradeExecution',
|
|
6444
|
+
error: String(error),
|
|
6445
|
+
isRetryable: true,
|
|
6446
|
+
transient: true,
|
|
6447
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6448
|
+
});
|
|
6449
|
+
}
|
|
6450
|
+
else {
|
|
6451
|
+
logger.error("Database updateMany operation failed", {
|
|
6452
|
+
operation: 'updateManyOptionsTradeExecution',
|
|
6453
|
+
model: 'OptionsTradeExecution',
|
|
6454
|
+
error: String(error),
|
|
6455
|
+
isRetryable: false,
|
|
6456
|
+
});
|
|
6457
|
+
}
|
|
6393
6458
|
throw error;
|
|
6394
6459
|
}
|
|
6395
6460
|
}
|
|
@@ -6511,14 +6576,27 @@ export const OptionsTradeExecution = {
|
|
|
6511
6576
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6512
6577
|
continue;
|
|
6513
6578
|
}
|
|
6514
|
-
// Log structured error details and rethrow
|
|
6515
|
-
|
|
6516
|
-
operation
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6579
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6580
|
+
if (isConnectionError) {
|
|
6581
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
6582
|
+
operation: 'deleteOneOptionsTradeExecution',
|
|
6583
|
+
model: 'OptionsTradeExecution',
|
|
6584
|
+
error: String(error),
|
|
6585
|
+
recordId: props.id,
|
|
6586
|
+
isRetryable: true,
|
|
6587
|
+
transient: true,
|
|
6588
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6589
|
+
});
|
|
6590
|
+
}
|
|
6591
|
+
else {
|
|
6592
|
+
logger.error("Database delete operation failed", {
|
|
6593
|
+
operation: 'deleteOneOptionsTradeExecution',
|
|
6594
|
+
model: 'OptionsTradeExecution',
|
|
6595
|
+
error: String(error),
|
|
6596
|
+
recordId: props.id,
|
|
6597
|
+
isRetryable: false,
|
|
6598
|
+
});
|
|
6599
|
+
}
|
|
6522
6600
|
throw error;
|
|
6523
6601
|
}
|
|
6524
6602
|
}
|
|
@@ -6625,13 +6703,25 @@ export const OptionsTradeExecution = {
|
|
|
6625
6703
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6626
6704
|
continue;
|
|
6627
6705
|
}
|
|
6628
|
-
// Log structured error details and rethrow
|
|
6629
|
-
|
|
6630
|
-
operation
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6706
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6707
|
+
if (isConnectionError) {
|
|
6708
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6709
|
+
operation: 'getOptionsTradeExecution',
|
|
6710
|
+
model: 'OptionsTradeExecution',
|
|
6711
|
+
error: String(error),
|
|
6712
|
+
isRetryable: true,
|
|
6713
|
+
transient: true,
|
|
6714
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6715
|
+
});
|
|
6716
|
+
}
|
|
6717
|
+
else {
|
|
6718
|
+
logger.error("Database get operation failed", {
|
|
6719
|
+
operation: 'getOptionsTradeExecution',
|
|
6720
|
+
model: 'OptionsTradeExecution',
|
|
6721
|
+
error: String(error),
|
|
6722
|
+
isRetryable: false,
|
|
6723
|
+
});
|
|
6724
|
+
}
|
|
6635
6725
|
throw error;
|
|
6636
6726
|
}
|
|
6637
6727
|
}
|
|
@@ -6717,13 +6807,25 @@ export const OptionsTradeExecution = {
|
|
|
6717
6807
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6718
6808
|
continue;
|
|
6719
6809
|
}
|
|
6720
|
-
// Log structured error details and rethrow
|
|
6721
|
-
|
|
6722
|
-
operation
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6810
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6811
|
+
if (isConnectionError) {
|
|
6812
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6813
|
+
operation: 'getAllOptionsTradeExecution',
|
|
6814
|
+
model: 'OptionsTradeExecution',
|
|
6815
|
+
error: String(error),
|
|
6816
|
+
isRetryable: true,
|
|
6817
|
+
transient: true,
|
|
6818
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6819
|
+
});
|
|
6820
|
+
}
|
|
6821
|
+
else {
|
|
6822
|
+
logger.error("Database getAll operation failed", {
|
|
6823
|
+
operation: 'getAllOptionsTradeExecution',
|
|
6824
|
+
model: 'OptionsTradeExecution',
|
|
6825
|
+
error: String(error),
|
|
6826
|
+
isRetryable: false,
|
|
6827
|
+
});
|
|
6828
|
+
}
|
|
6727
6829
|
throw error;
|
|
6728
6830
|
}
|
|
6729
6831
|
}
|
|
@@ -6842,13 +6944,25 @@ export const OptionsTradeExecution = {
|
|
|
6842
6944
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6843
6945
|
continue;
|
|
6844
6946
|
}
|
|
6845
|
-
// Log structured error details and rethrow
|
|
6846
|
-
|
|
6847
|
-
operation
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6947
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6948
|
+
if (isConnectionError) {
|
|
6949
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6950
|
+
operation: 'findManyOptionsTradeExecution',
|
|
6951
|
+
model: 'OptionsTradeExecution',
|
|
6952
|
+
error: String(error),
|
|
6953
|
+
isRetryable: true,
|
|
6954
|
+
transient: true,
|
|
6955
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6956
|
+
});
|
|
6957
|
+
}
|
|
6958
|
+
else {
|
|
6959
|
+
logger.error("Database findMany operation failed", {
|
|
6960
|
+
operation: 'findManyOptionsTradeExecution',
|
|
6961
|
+
model: 'OptionsTradeExecution',
|
|
6962
|
+
error: String(error),
|
|
6963
|
+
isRetryable: false,
|
|
6964
|
+
});
|
|
6965
|
+
}
|
|
6852
6966
|
throw error;
|
|
6853
6967
|
}
|
|
6854
6968
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../src/PolicyOverlay.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA8BpG,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../src/PolicyOverlay.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA8BpG,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+X5H;;;;;;;OAOG;sBACqB,iBAAiB,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;IA2J/K;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4/B1H;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA8uC1H;;;;;;OAMG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA0/BvI;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAqJ1H;;;;;;;OAOG;eACc,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAiIpK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IA6GzG;;;;;;;OAOG;oBACmB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CA6I5K,CAAC"}
|