@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
|
@@ -357,13 +357,28 @@ export const InstitutionalFlowSignal = {
|
|
|
357
357
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
358
358
|
continue;
|
|
359
359
|
}
|
|
360
|
-
// Log structured error details and rethrow
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
// Log structured error details and rethrow.
|
|
361
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
362
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
363
|
+
// from true defects.
|
|
364
|
+
if (isConnectionError) {
|
|
365
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
366
|
+
operation: 'createOneInstitutionalFlowSignal',
|
|
367
|
+
model: 'InstitutionalFlowSignal',
|
|
368
|
+
error: String(error),
|
|
369
|
+
isRetryable: true,
|
|
370
|
+
transient: true,
|
|
371
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
logger.error("Database create operation failed", {
|
|
376
|
+
operation: 'createOneInstitutionalFlowSignal',
|
|
377
|
+
model: 'InstitutionalFlowSignal',
|
|
378
|
+
error: String(error),
|
|
379
|
+
isRetryable: false,
|
|
380
|
+
});
|
|
381
|
+
}
|
|
367
382
|
throw error;
|
|
368
383
|
}
|
|
369
384
|
}
|
|
@@ -487,13 +502,25 @@ export const InstitutionalFlowSignal = {
|
|
|
487
502
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
488
503
|
continue;
|
|
489
504
|
}
|
|
490
|
-
// Log structured error details and rethrow
|
|
491
|
-
|
|
492
|
-
operation
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
505
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
506
|
+
if (isConnectionError) {
|
|
507
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
508
|
+
operation: 'createManyInstitutionalFlowSignal',
|
|
509
|
+
model: 'InstitutionalFlowSignal',
|
|
510
|
+
error: String(error),
|
|
511
|
+
isRetryable: true,
|
|
512
|
+
transient: true,
|
|
513
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
logger.error("Database createMany operation failed", {
|
|
518
|
+
operation: 'createManyInstitutionalFlowSignal',
|
|
519
|
+
model: 'InstitutionalFlowSignal',
|
|
520
|
+
error: String(error),
|
|
521
|
+
isRetryable: false,
|
|
522
|
+
});
|
|
523
|
+
}
|
|
497
524
|
throw error;
|
|
498
525
|
}
|
|
499
526
|
}
|
|
@@ -1183,14 +1210,27 @@ export const InstitutionalFlowSignal = {
|
|
|
1183
1210
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1184
1211
|
continue;
|
|
1185
1212
|
}
|
|
1186
|
-
// Log structured error details and rethrow
|
|
1187
|
-
|
|
1188
|
-
operation
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1213
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1214
|
+
if (isConnectionError) {
|
|
1215
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
1216
|
+
operation: 'updateOneInstitutionalFlowSignal',
|
|
1217
|
+
model: 'InstitutionalFlowSignal',
|
|
1218
|
+
error: String(error),
|
|
1219
|
+
recordId: props.id,
|
|
1220
|
+
isRetryable: true,
|
|
1221
|
+
transient: true,
|
|
1222
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
else {
|
|
1226
|
+
logger.error("Database update operation failed", {
|
|
1227
|
+
operation: 'updateOneInstitutionalFlowSignal',
|
|
1228
|
+
model: 'InstitutionalFlowSignal',
|
|
1229
|
+
error: String(error),
|
|
1230
|
+
recordId: props.id,
|
|
1231
|
+
isRetryable: false,
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1194
1234
|
throw error;
|
|
1195
1235
|
}
|
|
1196
1236
|
}
|
|
@@ -2042,14 +2082,27 @@ export const InstitutionalFlowSignal = {
|
|
|
2042
2082
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2043
2083
|
continue;
|
|
2044
2084
|
}
|
|
2045
|
-
// Log structured error details and rethrow
|
|
2046
|
-
|
|
2047
|
-
operation
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2085
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2086
|
+
if (isConnectionError) {
|
|
2087
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
2088
|
+
operation: 'upsertOneInstitutionalFlowSignal',
|
|
2089
|
+
model: 'InstitutionalFlowSignal',
|
|
2090
|
+
error: String(error),
|
|
2091
|
+
recordId: props.id,
|
|
2092
|
+
isRetryable: true,
|
|
2093
|
+
transient: true,
|
|
2094
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2095
|
+
});
|
|
2096
|
+
}
|
|
2097
|
+
else {
|
|
2098
|
+
logger.error("Database upsert operation failed", {
|
|
2099
|
+
operation: 'upsertOneInstitutionalFlowSignal',
|
|
2100
|
+
model: 'InstitutionalFlowSignal',
|
|
2101
|
+
error: String(error),
|
|
2102
|
+
recordId: props.id,
|
|
2103
|
+
isRetryable: false,
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2053
2106
|
throw error;
|
|
2054
2107
|
}
|
|
2055
2108
|
}
|
|
@@ -2737,13 +2790,25 @@ export const InstitutionalFlowSignal = {
|
|
|
2737
2790
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2738
2791
|
continue;
|
|
2739
2792
|
}
|
|
2740
|
-
// Log structured error details and rethrow
|
|
2741
|
-
|
|
2742
|
-
operation
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2793
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2794
|
+
if (isConnectionError) {
|
|
2795
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
2796
|
+
operation: 'updateManyInstitutionalFlowSignal',
|
|
2797
|
+
model: 'InstitutionalFlowSignal',
|
|
2798
|
+
error: String(error),
|
|
2799
|
+
isRetryable: true,
|
|
2800
|
+
transient: true,
|
|
2801
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2802
|
+
});
|
|
2803
|
+
}
|
|
2804
|
+
else {
|
|
2805
|
+
logger.error("Database updateMany operation failed", {
|
|
2806
|
+
operation: 'updateManyInstitutionalFlowSignal',
|
|
2807
|
+
model: 'InstitutionalFlowSignal',
|
|
2808
|
+
error: String(error),
|
|
2809
|
+
isRetryable: false,
|
|
2810
|
+
});
|
|
2811
|
+
}
|
|
2747
2812
|
throw error;
|
|
2748
2813
|
}
|
|
2749
2814
|
}
|
|
@@ -2865,14 +2930,27 @@ export const InstitutionalFlowSignal = {
|
|
|
2865
2930
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2866
2931
|
continue;
|
|
2867
2932
|
}
|
|
2868
|
-
// Log structured error details and rethrow
|
|
2869
|
-
|
|
2870
|
-
operation
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2933
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2934
|
+
if (isConnectionError) {
|
|
2935
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
2936
|
+
operation: 'deleteOneInstitutionalFlowSignal',
|
|
2937
|
+
model: 'InstitutionalFlowSignal',
|
|
2938
|
+
error: String(error),
|
|
2939
|
+
recordId: props.id,
|
|
2940
|
+
isRetryable: true,
|
|
2941
|
+
transient: true,
|
|
2942
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2943
|
+
});
|
|
2944
|
+
}
|
|
2945
|
+
else {
|
|
2946
|
+
logger.error("Database delete operation failed", {
|
|
2947
|
+
operation: 'deleteOneInstitutionalFlowSignal',
|
|
2948
|
+
model: 'InstitutionalFlowSignal',
|
|
2949
|
+
error: String(error),
|
|
2950
|
+
recordId: props.id,
|
|
2951
|
+
isRetryable: false,
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2876
2954
|
throw error;
|
|
2877
2955
|
}
|
|
2878
2956
|
}
|
|
@@ -2970,13 +3048,25 @@ export const InstitutionalFlowSignal = {
|
|
|
2970
3048
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2971
3049
|
continue;
|
|
2972
3050
|
}
|
|
2973
|
-
// Log structured error details and rethrow
|
|
2974
|
-
|
|
2975
|
-
operation
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
3051
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3052
|
+
if (isConnectionError) {
|
|
3053
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
3054
|
+
operation: 'getInstitutionalFlowSignal',
|
|
3055
|
+
model: 'InstitutionalFlowSignal',
|
|
3056
|
+
error: String(error),
|
|
3057
|
+
isRetryable: true,
|
|
3058
|
+
transient: true,
|
|
3059
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
else {
|
|
3063
|
+
logger.error("Database get operation failed", {
|
|
3064
|
+
operation: 'getInstitutionalFlowSignal',
|
|
3065
|
+
model: 'InstitutionalFlowSignal',
|
|
3066
|
+
error: String(error),
|
|
3067
|
+
isRetryable: false,
|
|
3068
|
+
});
|
|
3069
|
+
}
|
|
2980
3070
|
throw error;
|
|
2981
3071
|
}
|
|
2982
3072
|
}
|
|
@@ -3062,13 +3152,25 @@ export const InstitutionalFlowSignal = {
|
|
|
3062
3152
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3063
3153
|
continue;
|
|
3064
3154
|
}
|
|
3065
|
-
// Log structured error details and rethrow
|
|
3066
|
-
|
|
3067
|
-
operation
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3155
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3156
|
+
if (isConnectionError) {
|
|
3157
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
3158
|
+
operation: 'getAllInstitutionalFlowSignal',
|
|
3159
|
+
model: 'InstitutionalFlowSignal',
|
|
3160
|
+
error: String(error),
|
|
3161
|
+
isRetryable: true,
|
|
3162
|
+
transient: true,
|
|
3163
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3166
|
+
else {
|
|
3167
|
+
logger.error("Database getAll operation failed", {
|
|
3168
|
+
operation: 'getAllInstitutionalFlowSignal',
|
|
3169
|
+
model: 'InstitutionalFlowSignal',
|
|
3170
|
+
error: String(error),
|
|
3171
|
+
isRetryable: false,
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3072
3174
|
throw error;
|
|
3073
3175
|
}
|
|
3074
3176
|
}
|
|
@@ -3178,13 +3280,25 @@ export const InstitutionalFlowSignal = {
|
|
|
3178
3280
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3179
3281
|
continue;
|
|
3180
3282
|
}
|
|
3181
|
-
// Log structured error details and rethrow
|
|
3182
|
-
|
|
3183
|
-
operation
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3283
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3284
|
+
if (isConnectionError) {
|
|
3285
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
3286
|
+
operation: 'findManyInstitutionalFlowSignal',
|
|
3287
|
+
model: 'InstitutionalFlowSignal',
|
|
3288
|
+
error: String(error),
|
|
3289
|
+
isRetryable: true,
|
|
3290
|
+
transient: true,
|
|
3291
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
else {
|
|
3295
|
+
logger.error("Database findMany operation failed", {
|
|
3296
|
+
operation: 'findManyInstitutionalFlowSignal',
|
|
3297
|
+
model: 'InstitutionalFlowSignal',
|
|
3298
|
+
error: String(error),
|
|
3299
|
+
isRetryable: false,
|
|
3300
|
+
});
|
|
3301
|
+
}
|
|
3188
3302
|
throw error;
|
|
3189
3303
|
}
|
|
3190
3304
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstitutionalHolding.d.ts","sourceRoot":"","sources":["../../src/InstitutionalHolding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsFpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"InstitutionalHolding.d.ts","sourceRoot":"","sources":["../../src/InstitutionalHolding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAC9H,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsFpG,eAAO,MAAM,oBAAoB;IAE/B;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAqT1I;;;;;;;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;IAuJtL;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA0sBxI;;;;;;OAMG;kBACiB,wBAAwB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAy2BxI;;;;;;OAMG;sBACqB,wBAAwB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAwsB9I;;;;;;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"}
|