@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/OptionsPosition.mjs
CHANGED
|
@@ -645,13 +645,28 @@ export const OptionsPosition = {
|
|
|
645
645
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
646
646
|
continue;
|
|
647
647
|
}
|
|
648
|
-
// Log structured error details and rethrow
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
648
|
+
// Log structured error details and rethrow.
|
|
649
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
650
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
651
|
+
// from true defects.
|
|
652
|
+
if (isConnectionError) {
|
|
653
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
654
|
+
operation: 'createOneOptionsPosition',
|
|
655
|
+
model: 'OptionsPosition',
|
|
656
|
+
error: String(error),
|
|
657
|
+
isRetryable: true,
|
|
658
|
+
transient: true,
|
|
659
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
logger.error("Database create operation failed", {
|
|
664
|
+
operation: 'createOneOptionsPosition',
|
|
665
|
+
model: 'OptionsPosition',
|
|
666
|
+
error: String(error),
|
|
667
|
+
isRetryable: false,
|
|
668
|
+
});
|
|
669
|
+
}
|
|
655
670
|
throw error;
|
|
656
671
|
}
|
|
657
672
|
}
|
|
@@ -800,13 +815,25 @@ export const OptionsPosition = {
|
|
|
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: 'createManyOptionsPosition',
|
|
822
|
+
model: 'OptionsPosition',
|
|
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: 'createManyOptionsPosition',
|
|
832
|
+
model: 'OptionsPosition',
|
|
833
|
+
error: String(error),
|
|
834
|
+
isRetryable: false,
|
|
835
|
+
});
|
|
836
|
+
}
|
|
810
837
|
throw error;
|
|
811
838
|
}
|
|
812
839
|
}
|
|
@@ -2454,14 +2481,27 @@ export const OptionsPosition = {
|
|
|
2454
2481
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2455
2482
|
continue;
|
|
2456
2483
|
}
|
|
2457
|
-
// Log structured error details and rethrow
|
|
2458
|
-
|
|
2459
|
-
operation
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2484
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2485
|
+
if (isConnectionError) {
|
|
2486
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2487
|
+
operation: 'updateOneOptionsPosition',
|
|
2488
|
+
model: 'OptionsPosition',
|
|
2489
|
+
error: String(error),
|
|
2490
|
+
recordId: props.id,
|
|
2491
|
+
isRetryable: true,
|
|
2492
|
+
transient: true,
|
|
2493
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2494
|
+
});
|
|
2495
|
+
}
|
|
2496
|
+
else {
|
|
2497
|
+
logger.error("Database update operation failed", {
|
|
2498
|
+
operation: 'updateOneOptionsPosition',
|
|
2499
|
+
model: 'OptionsPosition',
|
|
2500
|
+
error: String(error),
|
|
2501
|
+
recordId: props.id,
|
|
2502
|
+
isRetryable: false,
|
|
2503
|
+
});
|
|
2504
|
+
}
|
|
2465
2505
|
throw error;
|
|
2466
2506
|
}
|
|
2467
2507
|
}
|
|
@@ -4525,14 +4565,27 @@ export const OptionsPosition = {
|
|
|
4525
4565
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4526
4566
|
continue;
|
|
4527
4567
|
}
|
|
4528
|
-
// Log structured error details and rethrow
|
|
4529
|
-
|
|
4530
|
-
operation
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4568
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4569
|
+
if (isConnectionError) {
|
|
4570
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4571
|
+
operation: 'upsertOneOptionsPosition',
|
|
4572
|
+
model: 'OptionsPosition',
|
|
4573
|
+
error: String(error),
|
|
4574
|
+
recordId: props.id,
|
|
4575
|
+
isRetryable: true,
|
|
4576
|
+
transient: true,
|
|
4577
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4578
|
+
});
|
|
4579
|
+
}
|
|
4580
|
+
else {
|
|
4581
|
+
logger.error("Database upsert operation failed", {
|
|
4582
|
+
operation: 'upsertOneOptionsPosition',
|
|
4583
|
+
model: 'OptionsPosition',
|
|
4584
|
+
error: String(error),
|
|
4585
|
+
recordId: props.id,
|
|
4586
|
+
isRetryable: false,
|
|
4587
|
+
});
|
|
4588
|
+
}
|
|
4536
4589
|
throw error;
|
|
4537
4590
|
}
|
|
4538
4591
|
}
|
|
@@ -6178,13 +6231,25 @@ export const OptionsPosition = {
|
|
|
6178
6231
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6179
6232
|
continue;
|
|
6180
6233
|
}
|
|
6181
|
-
// Log structured error details and rethrow
|
|
6182
|
-
|
|
6183
|
-
operation
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6234
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6235
|
+
if (isConnectionError) {
|
|
6236
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6237
|
+
operation: 'updateManyOptionsPosition',
|
|
6238
|
+
model: 'OptionsPosition',
|
|
6239
|
+
error: String(error),
|
|
6240
|
+
isRetryable: true,
|
|
6241
|
+
transient: true,
|
|
6242
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6243
|
+
});
|
|
6244
|
+
}
|
|
6245
|
+
else {
|
|
6246
|
+
logger.error("Database updateMany operation failed", {
|
|
6247
|
+
operation: 'updateManyOptionsPosition',
|
|
6248
|
+
model: 'OptionsPosition',
|
|
6249
|
+
error: String(error),
|
|
6250
|
+
isRetryable: false,
|
|
6251
|
+
});
|
|
6252
|
+
}
|
|
6188
6253
|
throw error;
|
|
6189
6254
|
}
|
|
6190
6255
|
}
|
|
@@ -6306,14 +6371,27 @@ export const OptionsPosition = {
|
|
|
6306
6371
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6307
6372
|
continue;
|
|
6308
6373
|
}
|
|
6309
|
-
// Log structured error details and rethrow
|
|
6310
|
-
|
|
6311
|
-
operation
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6374
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6375
|
+
if (isConnectionError) {
|
|
6376
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
6377
|
+
operation: 'deleteOneOptionsPosition',
|
|
6378
|
+
model: 'OptionsPosition',
|
|
6379
|
+
error: String(error),
|
|
6380
|
+
recordId: props.id,
|
|
6381
|
+
isRetryable: true,
|
|
6382
|
+
transient: true,
|
|
6383
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6384
|
+
});
|
|
6385
|
+
}
|
|
6386
|
+
else {
|
|
6387
|
+
logger.error("Database delete operation failed", {
|
|
6388
|
+
operation: 'deleteOneOptionsPosition',
|
|
6389
|
+
model: 'OptionsPosition',
|
|
6390
|
+
error: String(error),
|
|
6391
|
+
recordId: props.id,
|
|
6392
|
+
isRetryable: false,
|
|
6393
|
+
});
|
|
6394
|
+
}
|
|
6317
6395
|
throw error;
|
|
6318
6396
|
}
|
|
6319
6397
|
}
|
|
@@ -6417,13 +6495,25 @@ export const OptionsPosition = {
|
|
|
6417
6495
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6418
6496
|
continue;
|
|
6419
6497
|
}
|
|
6420
|
-
// Log structured error details and rethrow
|
|
6421
|
-
|
|
6422
|
-
operation
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6498
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6499
|
+
if (isConnectionError) {
|
|
6500
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6501
|
+
operation: 'getOptionsPosition',
|
|
6502
|
+
model: 'OptionsPosition',
|
|
6503
|
+
error: String(error),
|
|
6504
|
+
isRetryable: true,
|
|
6505
|
+
transient: true,
|
|
6506
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6507
|
+
});
|
|
6508
|
+
}
|
|
6509
|
+
else {
|
|
6510
|
+
logger.error("Database get operation failed", {
|
|
6511
|
+
operation: 'getOptionsPosition',
|
|
6512
|
+
model: 'OptionsPosition',
|
|
6513
|
+
error: String(error),
|
|
6514
|
+
isRetryable: false,
|
|
6515
|
+
});
|
|
6516
|
+
}
|
|
6427
6517
|
throw error;
|
|
6428
6518
|
}
|
|
6429
6519
|
}
|
|
@@ -6509,13 +6599,25 @@ export const OptionsPosition = {
|
|
|
6509
6599
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6510
6600
|
continue;
|
|
6511
6601
|
}
|
|
6512
|
-
// Log structured error details and rethrow
|
|
6513
|
-
|
|
6514
|
-
operation
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6602
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6603
|
+
if (isConnectionError) {
|
|
6604
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6605
|
+
operation: 'getAllOptionsPosition',
|
|
6606
|
+
model: 'OptionsPosition',
|
|
6607
|
+
error: String(error),
|
|
6608
|
+
isRetryable: true,
|
|
6609
|
+
transient: true,
|
|
6610
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6611
|
+
});
|
|
6612
|
+
}
|
|
6613
|
+
else {
|
|
6614
|
+
logger.error("Database getAll operation failed", {
|
|
6615
|
+
operation: 'getAllOptionsPosition',
|
|
6616
|
+
model: 'OptionsPosition',
|
|
6617
|
+
error: String(error),
|
|
6618
|
+
isRetryable: false,
|
|
6619
|
+
});
|
|
6620
|
+
}
|
|
6519
6621
|
throw error;
|
|
6520
6622
|
}
|
|
6521
6623
|
}
|
|
@@ -6631,13 +6733,25 @@ export const OptionsPosition = {
|
|
|
6631
6733
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6632
6734
|
continue;
|
|
6633
6735
|
}
|
|
6634
|
-
// Log structured error details and rethrow
|
|
6635
|
-
|
|
6636
|
-
operation
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6736
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6737
|
+
if (isConnectionError) {
|
|
6738
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6739
|
+
operation: 'findManyOptionsPosition',
|
|
6740
|
+
model: 'OptionsPosition',
|
|
6741
|
+
error: String(error),
|
|
6742
|
+
isRetryable: true,
|
|
6743
|
+
transient: true,
|
|
6744
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6745
|
+
});
|
|
6746
|
+
}
|
|
6747
|
+
else {
|
|
6748
|
+
logger.error("Database findMany operation failed", {
|
|
6749
|
+
operation: 'findManyOptionsPosition',
|
|
6750
|
+
model: 'OptionsPosition',
|
|
6751
|
+
error: String(error),
|
|
6752
|
+
isRetryable: false,
|
|
6753
|
+
});
|
|
6754
|
+
}
|
|
6641
6755
|
throw error;
|
|
6642
6756
|
}
|
|
6643
6757
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsPositionEvent.d.ts","sourceRoot":"","sources":["../../src/OptionsPositionEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAyDpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionsPositionEvent.d.ts","sourceRoot":"","sources":["../../src/OptionsPositionEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAyDpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAwa1I;;;;;;;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;IAkJtL;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAsuCxI;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA2/CxI;;;;;;OAMG;sBACqB,wBAAwB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAouC9I;;;;;;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;IAwHlL;;;;;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;CAoI1L,CAAC"}
|