@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/ABTest.mjs
CHANGED
|
@@ -1776,13 +1776,28 @@ export const ABTest = {
|
|
|
1776
1776
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1777
1777
|
continue;
|
|
1778
1778
|
}
|
|
1779
|
-
// Log structured error details and rethrow
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1779
|
+
// Log structured error details and rethrow.
|
|
1780
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
1781
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
1782
|
+
// from true defects.
|
|
1783
|
+
if (isConnectionError) {
|
|
1784
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
1785
|
+
operation: 'createOneABTest',
|
|
1786
|
+
model: 'ABTest',
|
|
1787
|
+
error: String(error),
|
|
1788
|
+
isRetryable: true,
|
|
1789
|
+
transient: true,
|
|
1790
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
else {
|
|
1794
|
+
logger.error("Database create operation failed", {
|
|
1795
|
+
operation: 'createOneABTest',
|
|
1796
|
+
model: 'ABTest',
|
|
1797
|
+
error: String(error),
|
|
1798
|
+
isRetryable: false,
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1786
1801
|
throw error;
|
|
1787
1802
|
}
|
|
1788
1803
|
}
|
|
@@ -1925,13 +1940,25 @@ export const ABTest = {
|
|
|
1925
1940
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1926
1941
|
continue;
|
|
1927
1942
|
}
|
|
1928
|
-
// Log structured error details and rethrow
|
|
1929
|
-
|
|
1930
|
-
operation
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1943
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1944
|
+
if (isConnectionError) {
|
|
1945
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
1946
|
+
operation: 'createManyABTest',
|
|
1947
|
+
model: 'ABTest',
|
|
1948
|
+
error: String(error),
|
|
1949
|
+
isRetryable: true,
|
|
1950
|
+
transient: true,
|
|
1951
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
else {
|
|
1955
|
+
logger.error("Database createMany operation failed", {
|
|
1956
|
+
operation: 'createManyABTest',
|
|
1957
|
+
model: 'ABTest',
|
|
1958
|
+
error: String(error),
|
|
1959
|
+
isRetryable: false,
|
|
1960
|
+
});
|
|
1961
|
+
}
|
|
1935
1962
|
throw error;
|
|
1936
1963
|
}
|
|
1937
1964
|
}
|
|
@@ -7913,14 +7940,27 @@ export const ABTest = {
|
|
|
7913
7940
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
7914
7941
|
continue;
|
|
7915
7942
|
}
|
|
7916
|
-
// Log structured error details and rethrow
|
|
7917
|
-
|
|
7918
|
-
operation
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7943
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7944
|
+
if (isConnectionError) {
|
|
7945
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
7946
|
+
operation: 'updateOneABTest',
|
|
7947
|
+
model: 'ABTest',
|
|
7948
|
+
error: String(error),
|
|
7949
|
+
recordId: props.id,
|
|
7950
|
+
isRetryable: true,
|
|
7951
|
+
transient: true,
|
|
7952
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7953
|
+
});
|
|
7954
|
+
}
|
|
7955
|
+
else {
|
|
7956
|
+
logger.error("Database update operation failed", {
|
|
7957
|
+
operation: 'updateOneABTest',
|
|
7958
|
+
model: 'ABTest',
|
|
7959
|
+
error: String(error),
|
|
7960
|
+
recordId: props.id,
|
|
7961
|
+
isRetryable: false,
|
|
7962
|
+
});
|
|
7963
|
+
}
|
|
7924
7964
|
throw error;
|
|
7925
7965
|
}
|
|
7926
7966
|
}
|
|
@@ -15389,14 +15429,27 @@ export const ABTest = {
|
|
|
15389
15429
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
15390
15430
|
continue;
|
|
15391
15431
|
}
|
|
15392
|
-
// Log structured error details and rethrow
|
|
15393
|
-
|
|
15394
|
-
operation
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15432
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
15433
|
+
if (isConnectionError) {
|
|
15434
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
15435
|
+
operation: 'upsertOneABTest',
|
|
15436
|
+
model: 'ABTest',
|
|
15437
|
+
error: String(error),
|
|
15438
|
+
recordId: props.id,
|
|
15439
|
+
isRetryable: true,
|
|
15440
|
+
transient: true,
|
|
15441
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
15442
|
+
});
|
|
15443
|
+
}
|
|
15444
|
+
else {
|
|
15445
|
+
logger.error("Database upsert operation failed", {
|
|
15446
|
+
operation: 'upsertOneABTest',
|
|
15447
|
+
model: 'ABTest',
|
|
15448
|
+
error: String(error),
|
|
15449
|
+
recordId: props.id,
|
|
15450
|
+
isRetryable: false,
|
|
15451
|
+
});
|
|
15452
|
+
}
|
|
15400
15453
|
throw error;
|
|
15401
15454
|
}
|
|
15402
15455
|
}
|
|
@@ -21376,13 +21429,25 @@ export const ABTest = {
|
|
|
21376
21429
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21377
21430
|
continue;
|
|
21378
21431
|
}
|
|
21379
|
-
// Log structured error details and rethrow
|
|
21380
|
-
|
|
21381
|
-
operation
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21432
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21433
|
+
if (isConnectionError) {
|
|
21434
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
21435
|
+
operation: 'updateManyABTest',
|
|
21436
|
+
model: 'ABTest',
|
|
21437
|
+
error: String(error),
|
|
21438
|
+
isRetryable: true,
|
|
21439
|
+
transient: true,
|
|
21440
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21441
|
+
});
|
|
21442
|
+
}
|
|
21443
|
+
else {
|
|
21444
|
+
logger.error("Database updateMany operation failed", {
|
|
21445
|
+
operation: 'updateManyABTest',
|
|
21446
|
+
model: 'ABTest',
|
|
21447
|
+
error: String(error),
|
|
21448
|
+
isRetryable: false,
|
|
21449
|
+
});
|
|
21450
|
+
}
|
|
21386
21451
|
throw error;
|
|
21387
21452
|
}
|
|
21388
21453
|
}
|
|
@@ -21504,14 +21569,27 @@ export const ABTest = {
|
|
|
21504
21569
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21505
21570
|
continue;
|
|
21506
21571
|
}
|
|
21507
|
-
// Log structured error details and rethrow
|
|
21508
|
-
|
|
21509
|
-
operation
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
|
|
21513
|
-
|
|
21514
|
-
|
|
21572
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21573
|
+
if (isConnectionError) {
|
|
21574
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
21575
|
+
operation: 'deleteOneABTest',
|
|
21576
|
+
model: 'ABTest',
|
|
21577
|
+
error: String(error),
|
|
21578
|
+
recordId: props.id,
|
|
21579
|
+
isRetryable: true,
|
|
21580
|
+
transient: true,
|
|
21581
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21582
|
+
});
|
|
21583
|
+
}
|
|
21584
|
+
else {
|
|
21585
|
+
logger.error("Database delete operation failed", {
|
|
21586
|
+
operation: 'deleteOneABTest',
|
|
21587
|
+
model: 'ABTest',
|
|
21588
|
+
error: String(error),
|
|
21589
|
+
recordId: props.id,
|
|
21590
|
+
isRetryable: false,
|
|
21591
|
+
});
|
|
21592
|
+
}
|
|
21515
21593
|
throw error;
|
|
21516
21594
|
}
|
|
21517
21595
|
}
|
|
@@ -21618,13 +21696,25 @@ export const ABTest = {
|
|
|
21618
21696
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21619
21697
|
continue;
|
|
21620
21698
|
}
|
|
21621
|
-
// Log structured error details and rethrow
|
|
21622
|
-
|
|
21623
|
-
operation
|
|
21624
|
-
|
|
21625
|
-
|
|
21626
|
-
|
|
21627
|
-
|
|
21699
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21700
|
+
if (isConnectionError) {
|
|
21701
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
21702
|
+
operation: 'getABTest',
|
|
21703
|
+
model: 'ABTest',
|
|
21704
|
+
error: String(error),
|
|
21705
|
+
isRetryable: true,
|
|
21706
|
+
transient: true,
|
|
21707
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21708
|
+
});
|
|
21709
|
+
}
|
|
21710
|
+
else {
|
|
21711
|
+
logger.error("Database get operation failed", {
|
|
21712
|
+
operation: 'getABTest',
|
|
21713
|
+
model: 'ABTest',
|
|
21714
|
+
error: String(error),
|
|
21715
|
+
isRetryable: false,
|
|
21716
|
+
});
|
|
21717
|
+
}
|
|
21628
21718
|
throw error;
|
|
21629
21719
|
}
|
|
21630
21720
|
}
|
|
@@ -21710,13 +21800,25 @@ export const ABTest = {
|
|
|
21710
21800
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21711
21801
|
continue;
|
|
21712
21802
|
}
|
|
21713
|
-
// Log structured error details and rethrow
|
|
21714
|
-
|
|
21715
|
-
operation
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21803
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21804
|
+
if (isConnectionError) {
|
|
21805
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
21806
|
+
operation: 'getAllABTest',
|
|
21807
|
+
model: 'ABTest',
|
|
21808
|
+
error: String(error),
|
|
21809
|
+
isRetryable: true,
|
|
21810
|
+
transient: true,
|
|
21811
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21812
|
+
});
|
|
21813
|
+
}
|
|
21814
|
+
else {
|
|
21815
|
+
logger.error("Database getAll operation failed", {
|
|
21816
|
+
operation: 'getAllABTest',
|
|
21817
|
+
model: 'ABTest',
|
|
21818
|
+
error: String(error),
|
|
21819
|
+
isRetryable: false,
|
|
21820
|
+
});
|
|
21821
|
+
}
|
|
21720
21822
|
throw error;
|
|
21721
21823
|
}
|
|
21722
21824
|
}
|
|
@@ -21835,13 +21937,25 @@ export const ABTest = {
|
|
|
21835
21937
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21836
21938
|
continue;
|
|
21837
21939
|
}
|
|
21838
|
-
// Log structured error details and rethrow
|
|
21839
|
-
|
|
21840
|
-
operation
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
|
|
21940
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21941
|
+
if (isConnectionError) {
|
|
21942
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
21943
|
+
operation: 'findManyABTest',
|
|
21944
|
+
model: 'ABTest',
|
|
21945
|
+
error: String(error),
|
|
21946
|
+
isRetryable: true,
|
|
21947
|
+
transient: true,
|
|
21948
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21949
|
+
});
|
|
21950
|
+
}
|
|
21951
|
+
else {
|
|
21952
|
+
logger.error("Database findMany operation failed", {
|
|
21953
|
+
operation: 'findManyABTest',
|
|
21954
|
+
model: 'ABTest',
|
|
21955
|
+
error: String(error),
|
|
21956
|
+
isRetryable: false,
|
|
21957
|
+
});
|
|
21958
|
+
}
|
|
21845
21959
|
throw error;
|
|
21846
21960
|
}
|
|
21847
21961
|
}
|
package/esm/Account.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/Account.ts"],"names":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