@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
|
@@ -465,13 +465,28 @@ export const OptionsGreeksHistory = {
|
|
|
465
465
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
466
466
|
continue;
|
|
467
467
|
}
|
|
468
|
-
// Log structured error details and rethrow
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
// Log structured error details and rethrow.
|
|
469
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
470
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
471
|
+
// from true defects.
|
|
472
|
+
if (isConnectionError) {
|
|
473
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
474
|
+
operation: 'createOneOptionsGreeksHistory',
|
|
475
|
+
model: 'OptionsGreeksHistory',
|
|
476
|
+
error: String(error),
|
|
477
|
+
isRetryable: true,
|
|
478
|
+
transient: true,
|
|
479
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
logger.error("Database create operation failed", {
|
|
484
|
+
operation: 'createOneOptionsGreeksHistory',
|
|
485
|
+
model: 'OptionsGreeksHistory',
|
|
486
|
+
error: String(error),
|
|
487
|
+
isRetryable: false,
|
|
488
|
+
});
|
|
489
|
+
}
|
|
475
490
|
throw error;
|
|
476
491
|
}
|
|
477
492
|
}
|
|
@@ -606,13 +621,25 @@ export const OptionsGreeksHistory = {
|
|
|
606
621
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
607
622
|
continue;
|
|
608
623
|
}
|
|
609
|
-
// Log structured error details and rethrow
|
|
610
|
-
|
|
611
|
-
operation
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
624
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
625
|
+
if (isConnectionError) {
|
|
626
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
627
|
+
operation: 'createManyOptionsGreeksHistory',
|
|
628
|
+
model: 'OptionsGreeksHistory',
|
|
629
|
+
error: String(error),
|
|
630
|
+
isRetryable: true,
|
|
631
|
+
transient: true,
|
|
632
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
logger.error("Database createMany operation failed", {
|
|
637
|
+
operation: 'createManyOptionsGreeksHistory',
|
|
638
|
+
model: 'OptionsGreeksHistory',
|
|
639
|
+
error: String(error),
|
|
640
|
+
isRetryable: false,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
616
643
|
throw error;
|
|
617
644
|
}
|
|
618
645
|
}
|
|
@@ -1853,14 +1880,27 @@ export const OptionsGreeksHistory = {
|
|
|
1853
1880
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1854
1881
|
continue;
|
|
1855
1882
|
}
|
|
1856
|
-
// Log structured error details and rethrow
|
|
1857
|
-
|
|
1858
|
-
operation
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1883
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1884
|
+
if (isConnectionError) {
|
|
1885
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
1886
|
+
operation: 'updateOneOptionsGreeksHistory',
|
|
1887
|
+
model: 'OptionsGreeksHistory',
|
|
1888
|
+
error: String(error),
|
|
1889
|
+
recordId: props.id,
|
|
1890
|
+
isRetryable: true,
|
|
1891
|
+
transient: true,
|
|
1892
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
else {
|
|
1896
|
+
logger.error("Database update operation failed", {
|
|
1897
|
+
operation: 'updateOneOptionsGreeksHistory',
|
|
1898
|
+
model: 'OptionsGreeksHistory',
|
|
1899
|
+
error: String(error),
|
|
1900
|
+
recordId: props.id,
|
|
1901
|
+
isRetryable: false,
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1864
1904
|
throw error;
|
|
1865
1905
|
}
|
|
1866
1906
|
}
|
|
@@ -3388,14 +3428,27 @@ export const OptionsGreeksHistory = {
|
|
|
3388
3428
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3389
3429
|
continue;
|
|
3390
3430
|
}
|
|
3391
|
-
// Log structured error details and rethrow
|
|
3392
|
-
|
|
3393
|
-
operation
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3431
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3432
|
+
if (isConnectionError) {
|
|
3433
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
3434
|
+
operation: 'upsertOneOptionsGreeksHistory',
|
|
3435
|
+
model: 'OptionsGreeksHistory',
|
|
3436
|
+
error: String(error),
|
|
3437
|
+
recordId: props.id,
|
|
3438
|
+
isRetryable: true,
|
|
3439
|
+
transient: true,
|
|
3440
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
else {
|
|
3444
|
+
logger.error("Database upsert operation failed", {
|
|
3445
|
+
operation: 'upsertOneOptionsGreeksHistory',
|
|
3446
|
+
model: 'OptionsGreeksHistory',
|
|
3447
|
+
error: String(error),
|
|
3448
|
+
recordId: props.id,
|
|
3449
|
+
isRetryable: false,
|
|
3450
|
+
});
|
|
3451
|
+
}
|
|
3399
3452
|
throw error;
|
|
3400
3453
|
}
|
|
3401
3454
|
}
|
|
@@ -4634,13 +4687,25 @@ export const OptionsGreeksHistory = {
|
|
|
4634
4687
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4635
4688
|
continue;
|
|
4636
4689
|
}
|
|
4637
|
-
// Log structured error details and rethrow
|
|
4638
|
-
|
|
4639
|
-
operation
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4690
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4691
|
+
if (isConnectionError) {
|
|
4692
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
4693
|
+
operation: 'updateManyOptionsGreeksHistory',
|
|
4694
|
+
model: 'OptionsGreeksHistory',
|
|
4695
|
+
error: String(error),
|
|
4696
|
+
isRetryable: true,
|
|
4697
|
+
transient: true,
|
|
4698
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4699
|
+
});
|
|
4700
|
+
}
|
|
4701
|
+
else {
|
|
4702
|
+
logger.error("Database updateMany operation failed", {
|
|
4703
|
+
operation: 'updateManyOptionsGreeksHistory',
|
|
4704
|
+
model: 'OptionsGreeksHistory',
|
|
4705
|
+
error: String(error),
|
|
4706
|
+
isRetryable: false,
|
|
4707
|
+
});
|
|
4708
|
+
}
|
|
4644
4709
|
throw error;
|
|
4645
4710
|
}
|
|
4646
4711
|
}
|
|
@@ -4762,14 +4827,27 @@ export const OptionsGreeksHistory = {
|
|
|
4762
4827
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4763
4828
|
continue;
|
|
4764
4829
|
}
|
|
4765
|
-
// Log structured error details and rethrow
|
|
4766
|
-
|
|
4767
|
-
operation
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4830
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4831
|
+
if (isConnectionError) {
|
|
4832
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
4833
|
+
operation: 'deleteOneOptionsGreeksHistory',
|
|
4834
|
+
model: 'OptionsGreeksHistory',
|
|
4835
|
+
error: String(error),
|
|
4836
|
+
recordId: props.id,
|
|
4837
|
+
isRetryable: true,
|
|
4838
|
+
transient: true,
|
|
4839
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4840
|
+
});
|
|
4841
|
+
}
|
|
4842
|
+
else {
|
|
4843
|
+
logger.error("Database delete operation failed", {
|
|
4844
|
+
operation: 'deleteOneOptionsGreeksHistory',
|
|
4845
|
+
model: 'OptionsGreeksHistory',
|
|
4846
|
+
error: String(error),
|
|
4847
|
+
recordId: props.id,
|
|
4848
|
+
isRetryable: false,
|
|
4849
|
+
});
|
|
4850
|
+
}
|
|
4773
4851
|
throw error;
|
|
4774
4852
|
}
|
|
4775
4853
|
}
|
|
@@ -4867,13 +4945,25 @@ export const OptionsGreeksHistory = {
|
|
|
4867
4945
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4868
4946
|
continue;
|
|
4869
4947
|
}
|
|
4870
|
-
// Log structured error details and rethrow
|
|
4871
|
-
|
|
4872
|
-
operation
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4948
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4949
|
+
if (isConnectionError) {
|
|
4950
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
4951
|
+
operation: 'getOptionsGreeksHistory',
|
|
4952
|
+
model: 'OptionsGreeksHistory',
|
|
4953
|
+
error: String(error),
|
|
4954
|
+
isRetryable: true,
|
|
4955
|
+
transient: true,
|
|
4956
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4957
|
+
});
|
|
4958
|
+
}
|
|
4959
|
+
else {
|
|
4960
|
+
logger.error("Database get operation failed", {
|
|
4961
|
+
operation: 'getOptionsGreeksHistory',
|
|
4962
|
+
model: 'OptionsGreeksHistory',
|
|
4963
|
+
error: String(error),
|
|
4964
|
+
isRetryable: false,
|
|
4965
|
+
});
|
|
4966
|
+
}
|
|
4877
4967
|
throw error;
|
|
4878
4968
|
}
|
|
4879
4969
|
}
|
|
@@ -4959,13 +5049,25 @@ export const OptionsGreeksHistory = {
|
|
|
4959
5049
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4960
5050
|
continue;
|
|
4961
5051
|
}
|
|
4962
|
-
// Log structured error details and rethrow
|
|
4963
|
-
|
|
4964
|
-
operation
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
5052
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5053
|
+
if (isConnectionError) {
|
|
5054
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
5055
|
+
operation: 'getAllOptionsGreeksHistory',
|
|
5056
|
+
model: 'OptionsGreeksHistory',
|
|
5057
|
+
error: String(error),
|
|
5058
|
+
isRetryable: true,
|
|
5059
|
+
transient: true,
|
|
5060
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5061
|
+
});
|
|
5062
|
+
}
|
|
5063
|
+
else {
|
|
5064
|
+
logger.error("Database getAll operation failed", {
|
|
5065
|
+
operation: 'getAllOptionsGreeksHistory',
|
|
5066
|
+
model: 'OptionsGreeksHistory',
|
|
5067
|
+
error: String(error),
|
|
5068
|
+
isRetryable: false,
|
|
5069
|
+
});
|
|
5070
|
+
}
|
|
4969
5071
|
throw error;
|
|
4970
5072
|
}
|
|
4971
5073
|
}
|
|
@@ -5075,13 +5177,25 @@ export const OptionsGreeksHistory = {
|
|
|
5075
5177
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5076
5178
|
continue;
|
|
5077
5179
|
}
|
|
5078
|
-
// Log structured error details and rethrow
|
|
5079
|
-
|
|
5080
|
-
operation
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5180
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5181
|
+
if (isConnectionError) {
|
|
5182
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
5183
|
+
operation: 'findManyOptionsGreeksHistory',
|
|
5184
|
+
model: 'OptionsGreeksHistory',
|
|
5185
|
+
error: String(error),
|
|
5186
|
+
isRetryable: true,
|
|
5187
|
+
transient: true,
|
|
5188
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5189
|
+
});
|
|
5190
|
+
}
|
|
5191
|
+
else {
|
|
5192
|
+
logger.error("Database findMany operation failed", {
|
|
5193
|
+
operation: 'findManyOptionsGreeksHistory',
|
|
5194
|
+
model: 'OptionsGreeksHistory',
|
|
5195
|
+
error: String(error),
|
|
5196
|
+
isRetryable: false,
|
|
5197
|
+
});
|
|
5198
|
+
}
|
|
5085
5199
|
throw error;
|
|
5086
5200
|
}
|
|
5087
5201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsPosition.d.ts","sourceRoot":"","sources":["../../src/OptionsPosition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAuHpG,eAAO,MAAM,eAAe;IAE1B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"OptionsPosition.d.ts","sourceRoot":"","sources":["../../src/OptionsPosition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAuHpG,eAAO,MAAM,eAAe;IAE1B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAgjBhI;;;;;;;OAOG;sBACqB,mBAAmB,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;IA6KjL;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA2oD9H;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA2iE9H;;;;;;OAMG;sBACqB,mBAAmB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAyoDzI;;;;;;OAMG;kBACiB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqJ9H;;;;;;;OAOG;eACc,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IA8HxK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;IA6G3G;;;;;;;OAOG;oBACmB,mBAAmB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,EAAE,GAAG,IAAI,CAAC;CA0IhL,CAAC"}
|