@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
|
@@ -361,13 +361,28 @@ exports.InstitutionalFlowSignal = {
|
|
|
361
361
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
362
362
|
continue;
|
|
363
363
|
}
|
|
364
|
-
// Log structured error details and rethrow
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
364
|
+
// Log structured error details and rethrow.
|
|
365
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
366
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
367
|
+
// from true defects.
|
|
368
|
+
if (isConnectionError) {
|
|
369
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
370
|
+
operation: 'createOneInstitutionalFlowSignal',
|
|
371
|
+
model: 'InstitutionalFlowSignal',
|
|
372
|
+
error: String(error),
|
|
373
|
+
isRetryable: true,
|
|
374
|
+
transient: true,
|
|
375
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
logger_1.logger.error("Database create operation failed", {
|
|
380
|
+
operation: 'createOneInstitutionalFlowSignal',
|
|
381
|
+
model: 'InstitutionalFlowSignal',
|
|
382
|
+
error: String(error),
|
|
383
|
+
isRetryable: false,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
371
386
|
throw error;
|
|
372
387
|
}
|
|
373
388
|
}
|
|
@@ -492,13 +507,25 @@ exports.InstitutionalFlowSignal = {
|
|
|
492
507
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
493
508
|
continue;
|
|
494
509
|
}
|
|
495
|
-
// Log structured error details and rethrow
|
|
496
|
-
|
|
497
|
-
operation
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
510
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
511
|
+
if (isConnectionError) {
|
|
512
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
513
|
+
operation: 'createManyInstitutionalFlowSignal',
|
|
514
|
+
model: 'InstitutionalFlowSignal',
|
|
515
|
+
error: String(error),
|
|
516
|
+
isRetryable: true,
|
|
517
|
+
transient: true,
|
|
518
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
523
|
+
operation: 'createManyInstitutionalFlowSignal',
|
|
524
|
+
model: 'InstitutionalFlowSignal',
|
|
525
|
+
error: String(error),
|
|
526
|
+
isRetryable: false,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
502
529
|
throw error;
|
|
503
530
|
}
|
|
504
531
|
}
|
|
@@ -1189,14 +1216,27 @@ exports.InstitutionalFlowSignal = {
|
|
|
1189
1216
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1190
1217
|
continue;
|
|
1191
1218
|
}
|
|
1192
|
-
// Log structured error details and rethrow
|
|
1193
|
-
|
|
1194
|
-
operation
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1219
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1220
|
+
if (isConnectionError) {
|
|
1221
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
1222
|
+
operation: 'updateOneInstitutionalFlowSignal',
|
|
1223
|
+
model: 'InstitutionalFlowSignal',
|
|
1224
|
+
error: String(error),
|
|
1225
|
+
recordId: props.id,
|
|
1226
|
+
isRetryable: true,
|
|
1227
|
+
transient: true,
|
|
1228
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
logger_1.logger.error("Database update operation failed", {
|
|
1233
|
+
operation: 'updateOneInstitutionalFlowSignal',
|
|
1234
|
+
model: 'InstitutionalFlowSignal',
|
|
1235
|
+
error: String(error),
|
|
1236
|
+
recordId: props.id,
|
|
1237
|
+
isRetryable: false,
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1200
1240
|
throw error;
|
|
1201
1241
|
}
|
|
1202
1242
|
}
|
|
@@ -2049,14 +2089,27 @@ exports.InstitutionalFlowSignal = {
|
|
|
2049
2089
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2050
2090
|
continue;
|
|
2051
2091
|
}
|
|
2052
|
-
// Log structured error details and rethrow
|
|
2053
|
-
|
|
2054
|
-
operation
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2092
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2093
|
+
if (isConnectionError) {
|
|
2094
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
2095
|
+
operation: 'upsertOneInstitutionalFlowSignal',
|
|
2096
|
+
model: 'InstitutionalFlowSignal',
|
|
2097
|
+
error: String(error),
|
|
2098
|
+
recordId: props.id,
|
|
2099
|
+
isRetryable: true,
|
|
2100
|
+
transient: true,
|
|
2101
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
else {
|
|
2105
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
2106
|
+
operation: 'upsertOneInstitutionalFlowSignal',
|
|
2107
|
+
model: 'InstitutionalFlowSignal',
|
|
2108
|
+
error: String(error),
|
|
2109
|
+
recordId: props.id,
|
|
2110
|
+
isRetryable: false,
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2060
2113
|
throw error;
|
|
2061
2114
|
}
|
|
2062
2115
|
}
|
|
@@ -2745,13 +2798,25 @@ exports.InstitutionalFlowSignal = {
|
|
|
2745
2798
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2746
2799
|
continue;
|
|
2747
2800
|
}
|
|
2748
|
-
// Log structured error details and rethrow
|
|
2749
|
-
|
|
2750
|
-
operation
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2801
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2802
|
+
if (isConnectionError) {
|
|
2803
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
2804
|
+
operation: 'updateManyInstitutionalFlowSignal',
|
|
2805
|
+
model: 'InstitutionalFlowSignal',
|
|
2806
|
+
error: String(error),
|
|
2807
|
+
isRetryable: true,
|
|
2808
|
+
transient: true,
|
|
2809
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2810
|
+
});
|
|
2811
|
+
}
|
|
2812
|
+
else {
|
|
2813
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
2814
|
+
operation: 'updateManyInstitutionalFlowSignal',
|
|
2815
|
+
model: 'InstitutionalFlowSignal',
|
|
2816
|
+
error: String(error),
|
|
2817
|
+
isRetryable: false,
|
|
2818
|
+
});
|
|
2819
|
+
}
|
|
2755
2820
|
throw error;
|
|
2756
2821
|
}
|
|
2757
2822
|
}
|
|
@@ -2874,14 +2939,27 @@ exports.InstitutionalFlowSignal = {
|
|
|
2874
2939
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2875
2940
|
continue;
|
|
2876
2941
|
}
|
|
2877
|
-
// Log structured error details and rethrow
|
|
2878
|
-
|
|
2879
|
-
operation
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2942
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2943
|
+
if (isConnectionError) {
|
|
2944
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
2945
|
+
operation: 'deleteOneInstitutionalFlowSignal',
|
|
2946
|
+
model: 'InstitutionalFlowSignal',
|
|
2947
|
+
error: String(error),
|
|
2948
|
+
recordId: props.id,
|
|
2949
|
+
isRetryable: true,
|
|
2950
|
+
transient: true,
|
|
2951
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2954
|
+
else {
|
|
2955
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
2956
|
+
operation: 'deleteOneInstitutionalFlowSignal',
|
|
2957
|
+
model: 'InstitutionalFlowSignal',
|
|
2958
|
+
error: String(error),
|
|
2959
|
+
recordId: props.id,
|
|
2960
|
+
isRetryable: false,
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2885
2963
|
throw error;
|
|
2886
2964
|
}
|
|
2887
2965
|
}
|
|
@@ -2980,13 +3058,25 @@ exports.InstitutionalFlowSignal = {
|
|
|
2980
3058
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2981
3059
|
continue;
|
|
2982
3060
|
}
|
|
2983
|
-
// Log structured error details and rethrow
|
|
2984
|
-
|
|
2985
|
-
operation
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3061
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3062
|
+
if (isConnectionError) {
|
|
3063
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
3064
|
+
operation: 'getInstitutionalFlowSignal',
|
|
3065
|
+
model: 'InstitutionalFlowSignal',
|
|
3066
|
+
error: String(error),
|
|
3067
|
+
isRetryable: true,
|
|
3068
|
+
transient: true,
|
|
3069
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
else {
|
|
3073
|
+
logger_1.logger.error("Database get operation failed", {
|
|
3074
|
+
operation: 'getInstitutionalFlowSignal',
|
|
3075
|
+
model: 'InstitutionalFlowSignal',
|
|
3076
|
+
error: String(error),
|
|
3077
|
+
isRetryable: false,
|
|
3078
|
+
});
|
|
3079
|
+
}
|
|
2990
3080
|
throw error;
|
|
2991
3081
|
}
|
|
2992
3082
|
}
|
|
@@ -3073,13 +3163,25 @@ exports.InstitutionalFlowSignal = {
|
|
|
3073
3163
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3074
3164
|
continue;
|
|
3075
3165
|
}
|
|
3076
|
-
// Log structured error details and rethrow
|
|
3077
|
-
|
|
3078
|
-
operation
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3166
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3167
|
+
if (isConnectionError) {
|
|
3168
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
3169
|
+
operation: 'getAllInstitutionalFlowSignal',
|
|
3170
|
+
model: 'InstitutionalFlowSignal',
|
|
3171
|
+
error: String(error),
|
|
3172
|
+
isRetryable: true,
|
|
3173
|
+
transient: true,
|
|
3174
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
else {
|
|
3178
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
3179
|
+
operation: 'getAllInstitutionalFlowSignal',
|
|
3180
|
+
model: 'InstitutionalFlowSignal',
|
|
3181
|
+
error: String(error),
|
|
3182
|
+
isRetryable: false,
|
|
3183
|
+
});
|
|
3184
|
+
}
|
|
3083
3185
|
throw error;
|
|
3084
3186
|
}
|
|
3085
3187
|
}
|
|
@@ -3190,13 +3292,25 @@ exports.InstitutionalFlowSignal = {
|
|
|
3190
3292
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3191
3293
|
continue;
|
|
3192
3294
|
}
|
|
3193
|
-
// Log structured error details and rethrow
|
|
3194
|
-
|
|
3195
|
-
operation
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3295
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3296
|
+
if (isConnectionError) {
|
|
3297
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
3298
|
+
operation: 'findManyInstitutionalFlowSignal',
|
|
3299
|
+
model: 'InstitutionalFlowSignal',
|
|
3300
|
+
error: String(error),
|
|
3301
|
+
isRetryable: true,
|
|
3302
|
+
transient: true,
|
|
3303
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3304
|
+
});
|
|
3305
|
+
}
|
|
3306
|
+
else {
|
|
3307
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
3308
|
+
operation: 'findManyInstitutionalFlowSignal',
|
|
3309
|
+
model: 'InstitutionalFlowSignal',
|
|
3310
|
+
error: String(error),
|
|
3311
|
+
isRetryable: false,
|
|
3312
|
+
});
|
|
3313
|
+
}
|
|
3200
3314
|
throw error;
|
|
3201
3315
|
}
|
|
3202
3316
|
}
|
package/InstitutionalHolding.cjs
CHANGED
|
@@ -365,13 +365,28 @@ exports.InstitutionalHolding = {
|
|
|
365
365
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
366
366
|
continue;
|
|
367
367
|
}
|
|
368
|
-
// Log structured error details and rethrow
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
368
|
+
// Log structured error details and rethrow.
|
|
369
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
370
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
371
|
+
// from true defects.
|
|
372
|
+
if (isConnectionError) {
|
|
373
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
374
|
+
operation: 'createOneInstitutionalHolding',
|
|
375
|
+
model: 'InstitutionalHolding',
|
|
376
|
+
error: String(error),
|
|
377
|
+
isRetryable: true,
|
|
378
|
+
transient: true,
|
|
379
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
logger_1.logger.error("Database create operation failed", {
|
|
384
|
+
operation: 'createOneInstitutionalHolding',
|
|
385
|
+
model: 'InstitutionalHolding',
|
|
386
|
+
error: String(error),
|
|
387
|
+
isRetryable: false,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
375
390
|
throw error;
|
|
376
391
|
}
|
|
377
392
|
}
|
|
@@ -499,13 +514,25 @@ exports.InstitutionalHolding = {
|
|
|
499
514
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
500
515
|
continue;
|
|
501
516
|
}
|
|
502
|
-
// Log structured error details and rethrow
|
|
503
|
-
|
|
504
|
-
operation
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
517
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
518
|
+
if (isConnectionError) {
|
|
519
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
520
|
+
operation: 'createManyInstitutionalHolding',
|
|
521
|
+
model: 'InstitutionalHolding',
|
|
522
|
+
error: String(error),
|
|
523
|
+
isRetryable: true,
|
|
524
|
+
transient: true,
|
|
525
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
530
|
+
operation: 'createManyInstitutionalHolding',
|
|
531
|
+
model: 'InstitutionalHolding',
|
|
532
|
+
error: String(error),
|
|
533
|
+
isRetryable: false,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
509
536
|
throw error;
|
|
510
537
|
}
|
|
511
538
|
}
|
|
@@ -1193,14 +1220,27 @@ exports.InstitutionalHolding = {
|
|
|
1193
1220
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1194
1221
|
continue;
|
|
1195
1222
|
}
|
|
1196
|
-
// Log structured error details and rethrow
|
|
1197
|
-
|
|
1198
|
-
operation
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1223
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1224
|
+
if (isConnectionError) {
|
|
1225
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
1226
|
+
operation: 'updateOneInstitutionalHolding',
|
|
1227
|
+
model: 'InstitutionalHolding',
|
|
1228
|
+
error: String(error),
|
|
1229
|
+
recordId: props.id,
|
|
1230
|
+
isRetryable: true,
|
|
1231
|
+
transient: true,
|
|
1232
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
else {
|
|
1236
|
+
logger_1.logger.error("Database update operation failed", {
|
|
1237
|
+
operation: 'updateOneInstitutionalHolding',
|
|
1238
|
+
model: 'InstitutionalHolding',
|
|
1239
|
+
error: String(error),
|
|
1240
|
+
recordId: props.id,
|
|
1241
|
+
isRetryable: false,
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1204
1244
|
throw error;
|
|
1205
1245
|
}
|
|
1206
1246
|
}
|
|
@@ -2047,14 +2087,27 @@ exports.InstitutionalHolding = {
|
|
|
2047
2087
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2048
2088
|
continue;
|
|
2049
2089
|
}
|
|
2050
|
-
// Log structured error details and rethrow
|
|
2051
|
-
|
|
2052
|
-
operation
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2090
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2091
|
+
if (isConnectionError) {
|
|
2092
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
2093
|
+
operation: 'upsertOneInstitutionalHolding',
|
|
2094
|
+
model: 'InstitutionalHolding',
|
|
2095
|
+
error: String(error),
|
|
2096
|
+
recordId: props.id,
|
|
2097
|
+
isRetryable: true,
|
|
2098
|
+
transient: true,
|
|
2099
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
else {
|
|
2103
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
2104
|
+
operation: 'upsertOneInstitutionalHolding',
|
|
2105
|
+
model: 'InstitutionalHolding',
|
|
2106
|
+
error: String(error),
|
|
2107
|
+
recordId: props.id,
|
|
2108
|
+
isRetryable: false,
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2058
2111
|
throw error;
|
|
2059
2112
|
}
|
|
2060
2113
|
}
|
|
@@ -2740,13 +2793,25 @@ exports.InstitutionalHolding = {
|
|
|
2740
2793
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2741
2794
|
continue;
|
|
2742
2795
|
}
|
|
2743
|
-
// Log structured error details and rethrow
|
|
2744
|
-
|
|
2745
|
-
operation
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2796
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2797
|
+
if (isConnectionError) {
|
|
2798
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
2799
|
+
operation: 'updateManyInstitutionalHolding',
|
|
2800
|
+
model: 'InstitutionalHolding',
|
|
2801
|
+
error: String(error),
|
|
2802
|
+
isRetryable: true,
|
|
2803
|
+
transient: true,
|
|
2804
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2805
|
+
});
|
|
2806
|
+
}
|
|
2807
|
+
else {
|
|
2808
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
2809
|
+
operation: 'updateManyInstitutionalHolding',
|
|
2810
|
+
model: 'InstitutionalHolding',
|
|
2811
|
+
error: String(error),
|
|
2812
|
+
isRetryable: false,
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2750
2815
|
throw error;
|
|
2751
2816
|
}
|
|
2752
2817
|
}
|
|
@@ -2869,14 +2934,27 @@ exports.InstitutionalHolding = {
|
|
|
2869
2934
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2870
2935
|
continue;
|
|
2871
2936
|
}
|
|
2872
|
-
// Log structured error details and rethrow
|
|
2873
|
-
|
|
2874
|
-
operation
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2937
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2938
|
+
if (isConnectionError) {
|
|
2939
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
2940
|
+
operation: 'deleteOneInstitutionalHolding',
|
|
2941
|
+
model: 'InstitutionalHolding',
|
|
2942
|
+
error: String(error),
|
|
2943
|
+
recordId: props.id,
|
|
2944
|
+
isRetryable: true,
|
|
2945
|
+
transient: true,
|
|
2946
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2947
|
+
});
|
|
2948
|
+
}
|
|
2949
|
+
else {
|
|
2950
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
2951
|
+
operation: 'deleteOneInstitutionalHolding',
|
|
2952
|
+
model: 'InstitutionalHolding',
|
|
2953
|
+
error: String(error),
|
|
2954
|
+
recordId: props.id,
|
|
2955
|
+
isRetryable: false,
|
|
2956
|
+
});
|
|
2957
|
+
}
|
|
2880
2958
|
throw error;
|
|
2881
2959
|
}
|
|
2882
2960
|
}
|
|
@@ -2975,13 +3053,25 @@ exports.InstitutionalHolding = {
|
|
|
2975
3053
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2976
3054
|
continue;
|
|
2977
3055
|
}
|
|
2978
|
-
// Log structured error details and rethrow
|
|
2979
|
-
|
|
2980
|
-
operation
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3056
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3057
|
+
if (isConnectionError) {
|
|
3058
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
3059
|
+
operation: 'getInstitutionalHolding',
|
|
3060
|
+
model: 'InstitutionalHolding',
|
|
3061
|
+
error: String(error),
|
|
3062
|
+
isRetryable: true,
|
|
3063
|
+
transient: true,
|
|
3064
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3065
|
+
});
|
|
3066
|
+
}
|
|
3067
|
+
else {
|
|
3068
|
+
logger_1.logger.error("Database get operation failed", {
|
|
3069
|
+
operation: 'getInstitutionalHolding',
|
|
3070
|
+
model: 'InstitutionalHolding',
|
|
3071
|
+
error: String(error),
|
|
3072
|
+
isRetryable: false,
|
|
3073
|
+
});
|
|
3074
|
+
}
|
|
2985
3075
|
throw error;
|
|
2986
3076
|
}
|
|
2987
3077
|
}
|
|
@@ -3068,13 +3158,25 @@ exports.InstitutionalHolding = {
|
|
|
3068
3158
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3069
3159
|
continue;
|
|
3070
3160
|
}
|
|
3071
|
-
// Log structured error details and rethrow
|
|
3072
|
-
|
|
3073
|
-
operation
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3161
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3162
|
+
if (isConnectionError) {
|
|
3163
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
3164
|
+
operation: 'getAllInstitutionalHolding',
|
|
3165
|
+
model: 'InstitutionalHolding',
|
|
3166
|
+
error: String(error),
|
|
3167
|
+
isRetryable: true,
|
|
3168
|
+
transient: true,
|
|
3169
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
else {
|
|
3173
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
3174
|
+
operation: 'getAllInstitutionalHolding',
|
|
3175
|
+
model: 'InstitutionalHolding',
|
|
3176
|
+
error: String(error),
|
|
3177
|
+
isRetryable: false,
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
3078
3180
|
throw error;
|
|
3079
3181
|
}
|
|
3080
3182
|
}
|
|
@@ -3185,13 +3287,25 @@ exports.InstitutionalHolding = {
|
|
|
3185
3287
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3186
3288
|
continue;
|
|
3187
3289
|
}
|
|
3188
|
-
// Log structured error details and rethrow
|
|
3189
|
-
|
|
3190
|
-
operation
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3290
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3291
|
+
if (isConnectionError) {
|
|
3292
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
3293
|
+
operation: 'findManyInstitutionalHolding',
|
|
3294
|
+
model: 'InstitutionalHolding',
|
|
3295
|
+
error: String(error),
|
|
3296
|
+
isRetryable: true,
|
|
3297
|
+
transient: true,
|
|
3298
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3299
|
+
});
|
|
3300
|
+
}
|
|
3301
|
+
else {
|
|
3302
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
3303
|
+
operation: 'findManyInstitutionalHolding',
|
|
3304
|
+
model: 'InstitutionalHolding',
|
|
3305
|
+
error: String(error),
|
|
3306
|
+
isRetryable: false,
|
|
3307
|
+
});
|
|
3308
|
+
}
|
|
3195
3309
|
throw error;
|
|
3196
3310
|
}
|
|
3197
3311
|
}
|