@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/ABTest.cjs
CHANGED
|
@@ -1780,13 +1780,28 @@ exports.ABTest = {
|
|
|
1780
1780
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1781
1781
|
continue;
|
|
1782
1782
|
}
|
|
1783
|
-
// Log structured error details and rethrow
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1783
|
+
// Log structured error details and rethrow.
|
|
1784
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
1785
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
1786
|
+
// from true defects.
|
|
1787
|
+
if (isConnectionError) {
|
|
1788
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
1789
|
+
operation: 'createOneABTest',
|
|
1790
|
+
model: 'ABTest',
|
|
1791
|
+
error: String(error),
|
|
1792
|
+
isRetryable: true,
|
|
1793
|
+
transient: true,
|
|
1794
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
else {
|
|
1798
|
+
logger_1.logger.error("Database create operation failed", {
|
|
1799
|
+
operation: 'createOneABTest',
|
|
1800
|
+
model: 'ABTest',
|
|
1801
|
+
error: String(error),
|
|
1802
|
+
isRetryable: false,
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1790
1805
|
throw error;
|
|
1791
1806
|
}
|
|
1792
1807
|
}
|
|
@@ -1930,13 +1945,25 @@ exports.ABTest = {
|
|
|
1930
1945
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1931
1946
|
continue;
|
|
1932
1947
|
}
|
|
1933
|
-
// Log structured error details and rethrow
|
|
1934
|
-
|
|
1935
|
-
operation
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1948
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1949
|
+
if (isConnectionError) {
|
|
1950
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
1951
|
+
operation: 'createManyABTest',
|
|
1952
|
+
model: 'ABTest',
|
|
1953
|
+
error: String(error),
|
|
1954
|
+
isRetryable: true,
|
|
1955
|
+
transient: true,
|
|
1956
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
else {
|
|
1960
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
1961
|
+
operation: 'createManyABTest',
|
|
1962
|
+
model: 'ABTest',
|
|
1963
|
+
error: String(error),
|
|
1964
|
+
isRetryable: false,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1940
1967
|
throw error;
|
|
1941
1968
|
}
|
|
1942
1969
|
}
|
|
@@ -7919,14 +7946,27 @@ exports.ABTest = {
|
|
|
7919
7946
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
7920
7947
|
continue;
|
|
7921
7948
|
}
|
|
7922
|
-
// Log structured error details and rethrow
|
|
7923
|
-
|
|
7924
|
-
operation
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7949
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7950
|
+
if (isConnectionError) {
|
|
7951
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
7952
|
+
operation: 'updateOneABTest',
|
|
7953
|
+
model: 'ABTest',
|
|
7954
|
+
error: String(error),
|
|
7955
|
+
recordId: props.id,
|
|
7956
|
+
isRetryable: true,
|
|
7957
|
+
transient: true,
|
|
7958
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7959
|
+
});
|
|
7960
|
+
}
|
|
7961
|
+
else {
|
|
7962
|
+
logger_1.logger.error("Database update operation failed", {
|
|
7963
|
+
operation: 'updateOneABTest',
|
|
7964
|
+
model: 'ABTest',
|
|
7965
|
+
error: String(error),
|
|
7966
|
+
recordId: props.id,
|
|
7967
|
+
isRetryable: false,
|
|
7968
|
+
});
|
|
7969
|
+
}
|
|
7930
7970
|
throw error;
|
|
7931
7971
|
}
|
|
7932
7972
|
}
|
|
@@ -15396,14 +15436,27 @@ exports.ABTest = {
|
|
|
15396
15436
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
15397
15437
|
continue;
|
|
15398
15438
|
}
|
|
15399
|
-
// Log structured error details and rethrow
|
|
15400
|
-
|
|
15401
|
-
operation
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15439
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
15440
|
+
if (isConnectionError) {
|
|
15441
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
15442
|
+
operation: 'upsertOneABTest',
|
|
15443
|
+
model: 'ABTest',
|
|
15444
|
+
error: String(error),
|
|
15445
|
+
recordId: props.id,
|
|
15446
|
+
isRetryable: true,
|
|
15447
|
+
transient: true,
|
|
15448
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
15449
|
+
});
|
|
15450
|
+
}
|
|
15451
|
+
else {
|
|
15452
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
15453
|
+
operation: 'upsertOneABTest',
|
|
15454
|
+
model: 'ABTest',
|
|
15455
|
+
error: String(error),
|
|
15456
|
+
recordId: props.id,
|
|
15457
|
+
isRetryable: false,
|
|
15458
|
+
});
|
|
15459
|
+
}
|
|
15407
15460
|
throw error;
|
|
15408
15461
|
}
|
|
15409
15462
|
}
|
|
@@ -21384,13 +21437,25 @@ exports.ABTest = {
|
|
|
21384
21437
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21385
21438
|
continue;
|
|
21386
21439
|
}
|
|
21387
|
-
// Log structured error details and rethrow
|
|
21388
|
-
|
|
21389
|
-
operation
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
|
|
21440
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21441
|
+
if (isConnectionError) {
|
|
21442
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
21443
|
+
operation: 'updateManyABTest',
|
|
21444
|
+
model: 'ABTest',
|
|
21445
|
+
error: String(error),
|
|
21446
|
+
isRetryable: true,
|
|
21447
|
+
transient: true,
|
|
21448
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21449
|
+
});
|
|
21450
|
+
}
|
|
21451
|
+
else {
|
|
21452
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
21453
|
+
operation: 'updateManyABTest',
|
|
21454
|
+
model: 'ABTest',
|
|
21455
|
+
error: String(error),
|
|
21456
|
+
isRetryable: false,
|
|
21457
|
+
});
|
|
21458
|
+
}
|
|
21394
21459
|
throw error;
|
|
21395
21460
|
}
|
|
21396
21461
|
}
|
|
@@ -21513,14 +21578,27 @@ exports.ABTest = {
|
|
|
21513
21578
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21514
21579
|
continue;
|
|
21515
21580
|
}
|
|
21516
|
-
// Log structured error details and rethrow
|
|
21517
|
-
|
|
21518
|
-
operation
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
|
|
21581
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21582
|
+
if (isConnectionError) {
|
|
21583
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
21584
|
+
operation: 'deleteOneABTest',
|
|
21585
|
+
model: 'ABTest',
|
|
21586
|
+
error: String(error),
|
|
21587
|
+
recordId: props.id,
|
|
21588
|
+
isRetryable: true,
|
|
21589
|
+
transient: true,
|
|
21590
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21591
|
+
});
|
|
21592
|
+
}
|
|
21593
|
+
else {
|
|
21594
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
21595
|
+
operation: 'deleteOneABTest',
|
|
21596
|
+
model: 'ABTest',
|
|
21597
|
+
error: String(error),
|
|
21598
|
+
recordId: props.id,
|
|
21599
|
+
isRetryable: false,
|
|
21600
|
+
});
|
|
21601
|
+
}
|
|
21524
21602
|
throw error;
|
|
21525
21603
|
}
|
|
21526
21604
|
}
|
|
@@ -21628,13 +21706,25 @@ exports.ABTest = {
|
|
|
21628
21706
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21629
21707
|
continue;
|
|
21630
21708
|
}
|
|
21631
|
-
// Log structured error details and rethrow
|
|
21632
|
-
|
|
21633
|
-
operation
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21709
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21710
|
+
if (isConnectionError) {
|
|
21711
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
21712
|
+
operation: 'getABTest',
|
|
21713
|
+
model: 'ABTest',
|
|
21714
|
+
error: String(error),
|
|
21715
|
+
isRetryable: true,
|
|
21716
|
+
transient: true,
|
|
21717
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21718
|
+
});
|
|
21719
|
+
}
|
|
21720
|
+
else {
|
|
21721
|
+
logger_1.logger.error("Database get operation failed", {
|
|
21722
|
+
operation: 'getABTest',
|
|
21723
|
+
model: 'ABTest',
|
|
21724
|
+
error: String(error),
|
|
21725
|
+
isRetryable: false,
|
|
21726
|
+
});
|
|
21727
|
+
}
|
|
21638
21728
|
throw error;
|
|
21639
21729
|
}
|
|
21640
21730
|
}
|
|
@@ -21721,13 +21811,25 @@ exports.ABTest = {
|
|
|
21721
21811
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21722
21812
|
continue;
|
|
21723
21813
|
}
|
|
21724
|
-
// Log structured error details and rethrow
|
|
21725
|
-
|
|
21726
|
-
operation
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
21814
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21815
|
+
if (isConnectionError) {
|
|
21816
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
21817
|
+
operation: 'getAllABTest',
|
|
21818
|
+
model: 'ABTest',
|
|
21819
|
+
error: String(error),
|
|
21820
|
+
isRetryable: true,
|
|
21821
|
+
transient: true,
|
|
21822
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21823
|
+
});
|
|
21824
|
+
}
|
|
21825
|
+
else {
|
|
21826
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
21827
|
+
operation: 'getAllABTest',
|
|
21828
|
+
model: 'ABTest',
|
|
21829
|
+
error: String(error),
|
|
21830
|
+
isRetryable: false,
|
|
21831
|
+
});
|
|
21832
|
+
}
|
|
21731
21833
|
throw error;
|
|
21732
21834
|
}
|
|
21733
21835
|
}
|
|
@@ -21847,13 +21949,25 @@ exports.ABTest = {
|
|
|
21847
21949
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
21848
21950
|
continue;
|
|
21849
21951
|
}
|
|
21850
|
-
// Log structured error details and rethrow
|
|
21851
|
-
|
|
21852
|
-
operation
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21952
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
21953
|
+
if (isConnectionError) {
|
|
21954
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
21955
|
+
operation: 'findManyABTest',
|
|
21956
|
+
model: 'ABTest',
|
|
21957
|
+
error: String(error),
|
|
21958
|
+
isRetryable: true,
|
|
21959
|
+
transient: true,
|
|
21960
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
21961
|
+
});
|
|
21962
|
+
}
|
|
21963
|
+
else {
|
|
21964
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
21965
|
+
operation: 'findManyABTest',
|
|
21966
|
+
model: 'ABTest',
|
|
21967
|
+
error: String(error),
|
|
21968
|
+
isRetryable: false,
|
|
21969
|
+
});
|
|
21970
|
+
}
|
|
21857
21971
|
throw error;
|
|
21858
21972
|
}
|
|
21859
21973
|
}
|
package/Account.cjs
CHANGED
|
@@ -594,13 +594,28 @@ exports.Account = {
|
|
|
594
594
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
595
595
|
continue;
|
|
596
596
|
}
|
|
597
|
-
// Log structured error details and rethrow
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
597
|
+
// Log structured error details and rethrow.
|
|
598
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
599
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
600
|
+
// from true defects.
|
|
601
|
+
if (isConnectionError) {
|
|
602
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
603
|
+
operation: 'createOneAccount',
|
|
604
|
+
model: 'Account',
|
|
605
|
+
error: String(error),
|
|
606
|
+
isRetryable: true,
|
|
607
|
+
transient: true,
|
|
608
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
logger_1.logger.error("Database create operation failed", {
|
|
613
|
+
operation: 'createOneAccount',
|
|
614
|
+
model: 'Account',
|
|
615
|
+
error: String(error),
|
|
616
|
+
isRetryable: false,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
604
619
|
throw error;
|
|
605
620
|
}
|
|
606
621
|
}
|
|
@@ -729,13 +744,25 @@ exports.Account = {
|
|
|
729
744
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
730
745
|
continue;
|
|
731
746
|
}
|
|
732
|
-
// Log structured error details and rethrow
|
|
733
|
-
|
|
734
|
-
operation
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
747
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
748
|
+
if (isConnectionError) {
|
|
749
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
750
|
+
operation: 'createManyAccount',
|
|
751
|
+
model: 'Account',
|
|
752
|
+
error: String(error),
|
|
753
|
+
isRetryable: true,
|
|
754
|
+
transient: true,
|
|
755
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
760
|
+
operation: 'createManyAccount',
|
|
761
|
+
model: 'Account',
|
|
762
|
+
error: String(error),
|
|
763
|
+
isRetryable: false,
|
|
764
|
+
});
|
|
765
|
+
}
|
|
739
766
|
throw error;
|
|
740
767
|
}
|
|
741
768
|
}
|
|
@@ -2513,14 +2540,27 @@ exports.Account = {
|
|
|
2513
2540
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2514
2541
|
continue;
|
|
2515
2542
|
}
|
|
2516
|
-
// Log structured error details and rethrow
|
|
2517
|
-
|
|
2518
|
-
operation
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2543
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2544
|
+
if (isConnectionError) {
|
|
2545
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
2546
|
+
operation: 'updateOneAccount',
|
|
2547
|
+
model: 'Account',
|
|
2548
|
+
error: String(error),
|
|
2549
|
+
recordId: props.id,
|
|
2550
|
+
isRetryable: true,
|
|
2551
|
+
transient: true,
|
|
2552
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
else {
|
|
2556
|
+
logger_1.logger.error("Database update operation failed", {
|
|
2557
|
+
operation: 'updateOneAccount',
|
|
2558
|
+
model: 'Account',
|
|
2559
|
+
error: String(error),
|
|
2560
|
+
recordId: props.id,
|
|
2561
|
+
isRetryable: false,
|
|
2562
|
+
});
|
|
2563
|
+
}
|
|
2524
2564
|
throw error;
|
|
2525
2565
|
}
|
|
2526
2566
|
}
|
|
@@ -4749,14 +4789,27 @@ exports.Account = {
|
|
|
4749
4789
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4750
4790
|
continue;
|
|
4751
4791
|
}
|
|
4752
|
-
// Log structured error details and rethrow
|
|
4753
|
-
|
|
4754
|
-
operation
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4792
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4793
|
+
if (isConnectionError) {
|
|
4794
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4795
|
+
operation: 'upsertOneAccount',
|
|
4796
|
+
model: 'Account',
|
|
4797
|
+
error: String(error),
|
|
4798
|
+
recordId: props.id,
|
|
4799
|
+
isRetryable: true,
|
|
4800
|
+
transient: true,
|
|
4801
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4802
|
+
});
|
|
4803
|
+
}
|
|
4804
|
+
else {
|
|
4805
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
4806
|
+
operation: 'upsertOneAccount',
|
|
4807
|
+
model: 'Account',
|
|
4808
|
+
error: String(error),
|
|
4809
|
+
recordId: props.id,
|
|
4810
|
+
isRetryable: false,
|
|
4811
|
+
});
|
|
4812
|
+
}
|
|
4760
4813
|
throw error;
|
|
4761
4814
|
}
|
|
4762
4815
|
}
|
|
@@ -6532,13 +6585,25 @@ exports.Account = {
|
|
|
6532
6585
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6533
6586
|
continue;
|
|
6534
6587
|
}
|
|
6535
|
-
// Log structured error details and rethrow
|
|
6536
|
-
|
|
6537
|
-
operation
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6588
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6589
|
+
if (isConnectionError) {
|
|
6590
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6591
|
+
operation: 'updateManyAccount',
|
|
6592
|
+
model: 'Account',
|
|
6593
|
+
error: String(error),
|
|
6594
|
+
isRetryable: true,
|
|
6595
|
+
transient: true,
|
|
6596
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6597
|
+
});
|
|
6598
|
+
}
|
|
6599
|
+
else {
|
|
6600
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
6601
|
+
operation: 'updateManyAccount',
|
|
6602
|
+
model: 'Account',
|
|
6603
|
+
error: String(error),
|
|
6604
|
+
isRetryable: false,
|
|
6605
|
+
});
|
|
6606
|
+
}
|
|
6542
6607
|
throw error;
|
|
6543
6608
|
}
|
|
6544
6609
|
}
|
|
@@ -6661,14 +6726,27 @@ exports.Account = {
|
|
|
6661
6726
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6662
6727
|
continue;
|
|
6663
6728
|
}
|
|
6664
|
-
// Log structured error details and rethrow
|
|
6665
|
-
|
|
6666
|
-
operation
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6729
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6730
|
+
if (isConnectionError) {
|
|
6731
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
6732
|
+
operation: 'deleteOneAccount',
|
|
6733
|
+
model: 'Account',
|
|
6734
|
+
error: String(error),
|
|
6735
|
+
recordId: props.id,
|
|
6736
|
+
isRetryable: true,
|
|
6737
|
+
transient: true,
|
|
6738
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6739
|
+
});
|
|
6740
|
+
}
|
|
6741
|
+
else {
|
|
6742
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
6743
|
+
operation: 'deleteOneAccount',
|
|
6744
|
+
model: 'Account',
|
|
6745
|
+
error: String(error),
|
|
6746
|
+
recordId: props.id,
|
|
6747
|
+
isRetryable: false,
|
|
6748
|
+
});
|
|
6749
|
+
}
|
|
6672
6750
|
throw error;
|
|
6673
6751
|
}
|
|
6674
6752
|
}
|
|
@@ -6771,13 +6849,25 @@ exports.Account = {
|
|
|
6771
6849
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6772
6850
|
continue;
|
|
6773
6851
|
}
|
|
6774
|
-
// Log structured error details and rethrow
|
|
6775
|
-
|
|
6776
|
-
operation
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6852
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6853
|
+
if (isConnectionError) {
|
|
6854
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
6855
|
+
operation: 'getAccount',
|
|
6856
|
+
model: 'Account',
|
|
6857
|
+
error: String(error),
|
|
6858
|
+
isRetryable: true,
|
|
6859
|
+
transient: true,
|
|
6860
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6861
|
+
});
|
|
6862
|
+
}
|
|
6863
|
+
else {
|
|
6864
|
+
logger_1.logger.error("Database get operation failed", {
|
|
6865
|
+
operation: 'getAccount',
|
|
6866
|
+
model: 'Account',
|
|
6867
|
+
error: String(error),
|
|
6868
|
+
isRetryable: false,
|
|
6869
|
+
});
|
|
6870
|
+
}
|
|
6781
6871
|
throw error;
|
|
6782
6872
|
}
|
|
6783
6873
|
}
|
|
@@ -6864,13 +6954,25 @@ exports.Account = {
|
|
|
6864
6954
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6865
6955
|
continue;
|
|
6866
6956
|
}
|
|
6867
|
-
// Log structured error details and rethrow
|
|
6868
|
-
|
|
6869
|
-
operation
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6957
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6958
|
+
if (isConnectionError) {
|
|
6959
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6960
|
+
operation: 'getAllAccount',
|
|
6961
|
+
model: 'Account',
|
|
6962
|
+
error: String(error),
|
|
6963
|
+
isRetryable: true,
|
|
6964
|
+
transient: true,
|
|
6965
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6966
|
+
});
|
|
6967
|
+
}
|
|
6968
|
+
else {
|
|
6969
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
6970
|
+
operation: 'getAllAccount',
|
|
6971
|
+
model: 'Account',
|
|
6972
|
+
error: String(error),
|
|
6973
|
+
isRetryable: false,
|
|
6974
|
+
});
|
|
6975
|
+
}
|
|
6874
6976
|
throw error;
|
|
6875
6977
|
}
|
|
6876
6978
|
}
|
|
@@ -6987,13 +7089,25 @@ exports.Account = {
|
|
|
6987
7089
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6988
7090
|
continue;
|
|
6989
7091
|
}
|
|
6990
|
-
// Log structured error details and rethrow
|
|
6991
|
-
|
|
6992
|
-
operation
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
7092
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7093
|
+
if (isConnectionError) {
|
|
7094
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
7095
|
+
operation: 'findManyAccount',
|
|
7096
|
+
model: 'Account',
|
|
7097
|
+
error: String(error),
|
|
7098
|
+
isRetryable: true,
|
|
7099
|
+
transient: true,
|
|
7100
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7101
|
+
});
|
|
7102
|
+
}
|
|
7103
|
+
else {
|
|
7104
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
7105
|
+
operation: 'findManyAccount',
|
|
7106
|
+
model: 'Account',
|
|
7107
|
+
error: String(error),
|
|
7108
|
+
isRetryable: false,
|
|
7109
|
+
});
|
|
7110
|
+
}
|
|
6997
7111
|
throw error;
|
|
6998
7112
|
}
|
|
6999
7113
|
}
|