@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
|
@@ -141,13 +141,28 @@ export const InstitutionalSentimentMetrics = {
|
|
|
141
141
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
142
142
|
continue;
|
|
143
143
|
}
|
|
144
|
-
// Log structured error details and rethrow
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
// Log structured error details and rethrow.
|
|
145
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
146
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
147
|
+
// from true defects.
|
|
148
|
+
if (isConnectionError) {
|
|
149
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
150
|
+
operation: 'createOneInstitutionalSentimentMetrics',
|
|
151
|
+
model: 'InstitutionalSentimentMetrics',
|
|
152
|
+
error: String(error),
|
|
153
|
+
isRetryable: true,
|
|
154
|
+
transient: true,
|
|
155
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
logger.error("Database create operation failed", {
|
|
160
|
+
operation: 'createOneInstitutionalSentimentMetrics',
|
|
161
|
+
model: 'InstitutionalSentimentMetrics',
|
|
162
|
+
error: String(error),
|
|
163
|
+
isRetryable: false,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
151
166
|
throw error;
|
|
152
167
|
}
|
|
153
168
|
}
|
|
@@ -271,13 +286,25 @@ export const InstitutionalSentimentMetrics = {
|
|
|
271
286
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
272
287
|
continue;
|
|
273
288
|
}
|
|
274
|
-
// Log structured error details and rethrow
|
|
275
|
-
|
|
276
|
-
operation
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
289
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
290
|
+
if (isConnectionError) {
|
|
291
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
292
|
+
operation: 'createManyInstitutionalSentimentMetrics',
|
|
293
|
+
model: 'InstitutionalSentimentMetrics',
|
|
294
|
+
error: String(error),
|
|
295
|
+
isRetryable: true,
|
|
296
|
+
transient: true,
|
|
297
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
logger.error("Database createMany operation failed", {
|
|
302
|
+
operation: 'createManyInstitutionalSentimentMetrics',
|
|
303
|
+
model: 'InstitutionalSentimentMetrics',
|
|
304
|
+
error: String(error),
|
|
305
|
+
isRetryable: false,
|
|
306
|
+
});
|
|
307
|
+
}
|
|
281
308
|
throw error;
|
|
282
309
|
}
|
|
283
310
|
}
|
|
@@ -425,14 +452,27 @@ export const InstitutionalSentimentMetrics = {
|
|
|
425
452
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
426
453
|
continue;
|
|
427
454
|
}
|
|
428
|
-
// Log structured error details and rethrow
|
|
429
|
-
|
|
430
|
-
operation
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
455
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
456
|
+
if (isConnectionError) {
|
|
457
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
458
|
+
operation: 'updateOneInstitutionalSentimentMetrics',
|
|
459
|
+
model: 'InstitutionalSentimentMetrics',
|
|
460
|
+
error: String(error),
|
|
461
|
+
recordId: props.id,
|
|
462
|
+
isRetryable: true,
|
|
463
|
+
transient: true,
|
|
464
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
logger.error("Database update operation failed", {
|
|
469
|
+
operation: 'updateOneInstitutionalSentimentMetrics',
|
|
470
|
+
model: 'InstitutionalSentimentMetrics',
|
|
471
|
+
error: String(error),
|
|
472
|
+
recordId: props.id,
|
|
473
|
+
isRetryable: false,
|
|
474
|
+
});
|
|
475
|
+
}
|
|
436
476
|
throw error;
|
|
437
477
|
}
|
|
438
478
|
}
|
|
@@ -583,14 +623,27 @@ export const InstitutionalSentimentMetrics = {
|
|
|
583
623
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
584
624
|
continue;
|
|
585
625
|
}
|
|
586
|
-
// Log structured error details and rethrow
|
|
587
|
-
|
|
588
|
-
operation
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
626
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
627
|
+
if (isConnectionError) {
|
|
628
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
629
|
+
operation: 'upsertOneInstitutionalSentimentMetrics',
|
|
630
|
+
model: 'InstitutionalSentimentMetrics',
|
|
631
|
+
error: String(error),
|
|
632
|
+
recordId: props.id,
|
|
633
|
+
isRetryable: true,
|
|
634
|
+
transient: true,
|
|
635
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
logger.error("Database upsert operation failed", {
|
|
640
|
+
operation: 'upsertOneInstitutionalSentimentMetrics',
|
|
641
|
+
model: 'InstitutionalSentimentMetrics',
|
|
642
|
+
error: String(error),
|
|
643
|
+
recordId: props.id,
|
|
644
|
+
isRetryable: false,
|
|
645
|
+
});
|
|
646
|
+
}
|
|
594
647
|
throw error;
|
|
595
648
|
}
|
|
596
649
|
}
|
|
@@ -736,13 +789,25 @@ export const InstitutionalSentimentMetrics = {
|
|
|
736
789
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
737
790
|
continue;
|
|
738
791
|
}
|
|
739
|
-
// Log structured error details and rethrow
|
|
740
|
-
|
|
741
|
-
operation
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
792
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
793
|
+
if (isConnectionError) {
|
|
794
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
795
|
+
operation: 'updateManyInstitutionalSentimentMetrics',
|
|
796
|
+
model: 'InstitutionalSentimentMetrics',
|
|
797
|
+
error: String(error),
|
|
798
|
+
isRetryable: true,
|
|
799
|
+
transient: true,
|
|
800
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
else {
|
|
804
|
+
logger.error("Database updateMany operation failed", {
|
|
805
|
+
operation: 'updateManyInstitutionalSentimentMetrics',
|
|
806
|
+
model: 'InstitutionalSentimentMetrics',
|
|
807
|
+
error: String(error),
|
|
808
|
+
isRetryable: false,
|
|
809
|
+
});
|
|
810
|
+
}
|
|
746
811
|
throw error;
|
|
747
812
|
}
|
|
748
813
|
}
|
|
@@ -864,14 +929,27 @@ export const InstitutionalSentimentMetrics = {
|
|
|
864
929
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
865
930
|
continue;
|
|
866
931
|
}
|
|
867
|
-
// Log structured error details and rethrow
|
|
868
|
-
|
|
869
|
-
operation
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
932
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
933
|
+
if (isConnectionError) {
|
|
934
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
935
|
+
operation: 'deleteOneInstitutionalSentimentMetrics',
|
|
936
|
+
model: 'InstitutionalSentimentMetrics',
|
|
937
|
+
error: String(error),
|
|
938
|
+
recordId: props.id,
|
|
939
|
+
isRetryable: true,
|
|
940
|
+
transient: true,
|
|
941
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
logger.error("Database delete operation failed", {
|
|
946
|
+
operation: 'deleteOneInstitutionalSentimentMetrics',
|
|
947
|
+
model: 'InstitutionalSentimentMetrics',
|
|
948
|
+
error: String(error),
|
|
949
|
+
recordId: props.id,
|
|
950
|
+
isRetryable: false,
|
|
951
|
+
});
|
|
952
|
+
}
|
|
875
953
|
throw error;
|
|
876
954
|
}
|
|
877
955
|
}
|
|
@@ -966,13 +1044,25 @@ export const InstitutionalSentimentMetrics = {
|
|
|
966
1044
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
967
1045
|
continue;
|
|
968
1046
|
}
|
|
969
|
-
// Log structured error details and rethrow
|
|
970
|
-
|
|
971
|
-
operation
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1047
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1048
|
+
if (isConnectionError) {
|
|
1049
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
1050
|
+
operation: 'getInstitutionalSentimentMetrics',
|
|
1051
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1052
|
+
error: String(error),
|
|
1053
|
+
isRetryable: true,
|
|
1054
|
+
transient: true,
|
|
1055
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
else {
|
|
1059
|
+
logger.error("Database get operation failed", {
|
|
1060
|
+
operation: 'getInstitutionalSentimentMetrics',
|
|
1061
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1062
|
+
error: String(error),
|
|
1063
|
+
isRetryable: false,
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
976
1066
|
throw error;
|
|
977
1067
|
}
|
|
978
1068
|
}
|
|
@@ -1058,13 +1148,25 @@ export const InstitutionalSentimentMetrics = {
|
|
|
1058
1148
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1059
1149
|
continue;
|
|
1060
1150
|
}
|
|
1061
|
-
// Log structured error details and rethrow
|
|
1062
|
-
|
|
1063
|
-
operation
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1151
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1152
|
+
if (isConnectionError) {
|
|
1153
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1154
|
+
operation: 'getAllInstitutionalSentimentMetrics',
|
|
1155
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1156
|
+
error: String(error),
|
|
1157
|
+
isRetryable: true,
|
|
1158
|
+
transient: true,
|
|
1159
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
else {
|
|
1163
|
+
logger.error("Database getAll operation failed", {
|
|
1164
|
+
operation: 'getAllInstitutionalSentimentMetrics',
|
|
1165
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1166
|
+
error: String(error),
|
|
1167
|
+
isRetryable: false,
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1068
1170
|
throw error;
|
|
1069
1171
|
}
|
|
1070
1172
|
}
|
|
@@ -1171,13 +1273,25 @@ export const InstitutionalSentimentMetrics = {
|
|
|
1171
1273
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1172
1274
|
continue;
|
|
1173
1275
|
}
|
|
1174
|
-
// Log structured error details and rethrow
|
|
1175
|
-
|
|
1176
|
-
operation
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1276
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1277
|
+
if (isConnectionError) {
|
|
1278
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1279
|
+
operation: 'findManyInstitutionalSentimentMetrics',
|
|
1280
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1281
|
+
error: String(error),
|
|
1282
|
+
isRetryable: true,
|
|
1283
|
+
transient: true,
|
|
1284
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
else {
|
|
1288
|
+
logger.error("Database findMany operation failed", {
|
|
1289
|
+
operation: 'findManyInstitutionalSentimentMetrics',
|
|
1290
|
+
model: 'InstitutionalSentimentMetrics',
|
|
1291
|
+
error: String(error),
|
|
1292
|
+
isRetryable: false,
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1181
1295
|
throw error;
|
|
1182
1296
|
}
|
|
1183
1297
|
}
|
package/esm/InviteToken.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InviteToken.d.ts","sourceRoot":"","sources":["../../src/InviteToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAqBpG,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"InviteToken.d.ts","sourceRoot":"","sources":["../../src/InviteToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAqBpG,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAocxH;;;;;;;OAOG;sBACqB,eAAe,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;IAmJ7K;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAo0CtH;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAsnDtH;;;;;;OAMG;sBACqB,eAAe,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAk0CrI;;;;;;OAMG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAqJtH;;;;;;;OAOG;eACc,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAyHhK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IA6GvG;;;;;;;OAOG;oBACmB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;CAoIxK,CAAC"}
|