@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
|
@@ -184,13 +184,28 @@ export const AccountDecisionRecord = {
|
|
|
184
184
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
185
185
|
continue;
|
|
186
186
|
}
|
|
187
|
-
// Log structured error details and rethrow
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
187
|
+
// Log structured error details and rethrow.
|
|
188
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
189
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
190
|
+
// from true defects.
|
|
191
|
+
if (isConnectionError) {
|
|
192
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
193
|
+
operation: 'createOneAccountDecisionRecord',
|
|
194
|
+
model: 'AccountDecisionRecord',
|
|
195
|
+
error: String(error),
|
|
196
|
+
isRetryable: true,
|
|
197
|
+
transient: true,
|
|
198
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
logger.error("Database create operation failed", {
|
|
203
|
+
operation: 'createOneAccountDecisionRecord',
|
|
204
|
+
model: 'AccountDecisionRecord',
|
|
205
|
+
error: String(error),
|
|
206
|
+
isRetryable: false,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
194
209
|
throw error;
|
|
195
210
|
}
|
|
196
211
|
}
|
|
@@ -335,13 +350,25 @@ export const AccountDecisionRecord = {
|
|
|
335
350
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
336
351
|
continue;
|
|
337
352
|
}
|
|
338
|
-
// Log structured error details and rethrow
|
|
339
|
-
|
|
340
|
-
operation
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
353
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
354
|
+
if (isConnectionError) {
|
|
355
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
356
|
+
operation: 'createManyAccountDecisionRecord',
|
|
357
|
+
model: 'AccountDecisionRecord',
|
|
358
|
+
error: String(error),
|
|
359
|
+
isRetryable: true,
|
|
360
|
+
transient: true,
|
|
361
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
logger.error("Database createMany operation failed", {
|
|
366
|
+
operation: 'createManyAccountDecisionRecord',
|
|
367
|
+
model: 'AccountDecisionRecord',
|
|
368
|
+
error: String(error),
|
|
369
|
+
isRetryable: false,
|
|
370
|
+
});
|
|
371
|
+
}
|
|
345
372
|
throw error;
|
|
346
373
|
}
|
|
347
374
|
}
|
|
@@ -537,14 +564,27 @@ export const AccountDecisionRecord = {
|
|
|
537
564
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
538
565
|
continue;
|
|
539
566
|
}
|
|
540
|
-
// Log structured error details and rethrow
|
|
541
|
-
|
|
542
|
-
operation
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
567
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
568
|
+
if (isConnectionError) {
|
|
569
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
570
|
+
operation: 'updateOneAccountDecisionRecord',
|
|
571
|
+
model: 'AccountDecisionRecord',
|
|
572
|
+
error: String(error),
|
|
573
|
+
recordId: props.id,
|
|
574
|
+
isRetryable: true,
|
|
575
|
+
transient: true,
|
|
576
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
logger.error("Database update operation failed", {
|
|
581
|
+
operation: 'updateOneAccountDecisionRecord',
|
|
582
|
+
model: 'AccountDecisionRecord',
|
|
583
|
+
error: String(error),
|
|
584
|
+
recordId: props.id,
|
|
585
|
+
isRetryable: false,
|
|
586
|
+
});
|
|
587
|
+
}
|
|
548
588
|
throw error;
|
|
549
589
|
}
|
|
550
590
|
}
|
|
@@ -777,14 +817,27 @@ export const AccountDecisionRecord = {
|
|
|
777
817
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
778
818
|
continue;
|
|
779
819
|
}
|
|
780
|
-
// Log structured error details and rethrow
|
|
781
|
-
|
|
782
|
-
operation
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
820
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
821
|
+
if (isConnectionError) {
|
|
822
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
823
|
+
operation: 'upsertOneAccountDecisionRecord',
|
|
824
|
+
model: 'AccountDecisionRecord',
|
|
825
|
+
error: String(error),
|
|
826
|
+
recordId: props.id,
|
|
827
|
+
isRetryable: true,
|
|
828
|
+
transient: true,
|
|
829
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
logger.error("Database upsert operation failed", {
|
|
834
|
+
operation: 'upsertOneAccountDecisionRecord',
|
|
835
|
+
model: 'AccountDecisionRecord',
|
|
836
|
+
error: String(error),
|
|
837
|
+
recordId: props.id,
|
|
838
|
+
isRetryable: false,
|
|
839
|
+
});
|
|
840
|
+
}
|
|
788
841
|
throw error;
|
|
789
842
|
}
|
|
790
843
|
}
|
|
@@ -978,13 +1031,25 @@ export const AccountDecisionRecord = {
|
|
|
978
1031
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
979
1032
|
continue;
|
|
980
1033
|
}
|
|
981
|
-
// Log structured error details and rethrow
|
|
982
|
-
|
|
983
|
-
operation
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1034
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1035
|
+
if (isConnectionError) {
|
|
1036
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
1037
|
+
operation: 'updateManyAccountDecisionRecord',
|
|
1038
|
+
model: 'AccountDecisionRecord',
|
|
1039
|
+
error: String(error),
|
|
1040
|
+
isRetryable: true,
|
|
1041
|
+
transient: true,
|
|
1042
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
else {
|
|
1046
|
+
logger.error("Database updateMany operation failed", {
|
|
1047
|
+
operation: 'updateManyAccountDecisionRecord',
|
|
1048
|
+
model: 'AccountDecisionRecord',
|
|
1049
|
+
error: String(error),
|
|
1050
|
+
isRetryable: false,
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
988
1053
|
throw error;
|
|
989
1054
|
}
|
|
990
1055
|
}
|
|
@@ -1106,14 +1171,27 @@ export const AccountDecisionRecord = {
|
|
|
1106
1171
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1107
1172
|
continue;
|
|
1108
1173
|
}
|
|
1109
|
-
// Log structured error details and rethrow
|
|
1110
|
-
|
|
1111
|
-
operation
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1174
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1175
|
+
if (isConnectionError) {
|
|
1176
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
1177
|
+
operation: 'deleteOneAccountDecisionRecord',
|
|
1178
|
+
model: 'AccountDecisionRecord',
|
|
1179
|
+
error: String(error),
|
|
1180
|
+
recordId: props.id,
|
|
1181
|
+
isRetryable: true,
|
|
1182
|
+
transient: true,
|
|
1183
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
else {
|
|
1187
|
+
logger.error("Database delete operation failed", {
|
|
1188
|
+
operation: 'deleteOneAccountDecisionRecord',
|
|
1189
|
+
model: 'AccountDecisionRecord',
|
|
1190
|
+
error: String(error),
|
|
1191
|
+
recordId: props.id,
|
|
1192
|
+
isRetryable: false,
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1117
1195
|
throw error;
|
|
1118
1196
|
}
|
|
1119
1197
|
}
|
|
@@ -1224,13 +1302,25 @@ export const AccountDecisionRecord = {
|
|
|
1224
1302
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1225
1303
|
continue;
|
|
1226
1304
|
}
|
|
1227
|
-
// Log structured error details and rethrow
|
|
1228
|
-
|
|
1229
|
-
operation
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1305
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1306
|
+
if (isConnectionError) {
|
|
1307
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
1308
|
+
operation: 'getAccountDecisionRecord',
|
|
1309
|
+
model: 'AccountDecisionRecord',
|
|
1310
|
+
error: String(error),
|
|
1311
|
+
isRetryable: true,
|
|
1312
|
+
transient: true,
|
|
1313
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
else {
|
|
1317
|
+
logger.error("Database get operation failed", {
|
|
1318
|
+
operation: 'getAccountDecisionRecord',
|
|
1319
|
+
model: 'AccountDecisionRecord',
|
|
1320
|
+
error: String(error),
|
|
1321
|
+
isRetryable: false,
|
|
1322
|
+
});
|
|
1323
|
+
}
|
|
1234
1324
|
throw error;
|
|
1235
1325
|
}
|
|
1236
1326
|
}
|
|
@@ -1316,13 +1406,25 @@ export const AccountDecisionRecord = {
|
|
|
1316
1406
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1317
1407
|
continue;
|
|
1318
1408
|
}
|
|
1319
|
-
// Log structured error details and rethrow
|
|
1320
|
-
|
|
1321
|
-
operation
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1409
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1410
|
+
if (isConnectionError) {
|
|
1411
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1412
|
+
operation: 'getAllAccountDecisionRecord',
|
|
1413
|
+
model: 'AccountDecisionRecord',
|
|
1414
|
+
error: String(error),
|
|
1415
|
+
isRetryable: true,
|
|
1416
|
+
transient: true,
|
|
1417
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
else {
|
|
1421
|
+
logger.error("Database getAll operation failed", {
|
|
1422
|
+
operation: 'getAllAccountDecisionRecord',
|
|
1423
|
+
model: 'AccountDecisionRecord',
|
|
1424
|
+
error: String(error),
|
|
1425
|
+
isRetryable: false,
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1326
1428
|
throw error;
|
|
1327
1429
|
}
|
|
1328
1430
|
}
|
|
@@ -1447,13 +1549,25 @@ export const AccountDecisionRecord = {
|
|
|
1447
1549
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1448
1550
|
continue;
|
|
1449
1551
|
}
|
|
1450
|
-
// Log structured error details and rethrow
|
|
1451
|
-
|
|
1452
|
-
operation
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1552
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1553
|
+
if (isConnectionError) {
|
|
1554
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1555
|
+
operation: 'findManyAccountDecisionRecord',
|
|
1556
|
+
model: 'AccountDecisionRecord',
|
|
1557
|
+
error: String(error),
|
|
1558
|
+
isRetryable: true,
|
|
1559
|
+
transient: true,
|
|
1560
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
else {
|
|
1564
|
+
logger.error("Database findMany operation failed", {
|
|
1565
|
+
operation: 'findManyAccountDecisionRecord',
|
|
1566
|
+
model: 'AccountDecisionRecord',
|
|
1567
|
+
error: String(error),
|
|
1568
|
+
isRetryable: false,
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1457
1571
|
throw error;
|
|
1458
1572
|
}
|
|
1459
1573
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountLinkingRequest.d.ts","sourceRoot":"","sources":["../../src/AccountLinkingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACjI,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA2BpG,eAAO,MAAM,qBAAqB;IAEhC;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountLinkingRequest.d.ts","sourceRoot":"","sources":["../../src/AccountLinkingRequest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACjI,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA2BpG,eAAO,MAAM,qBAAqB;IAEhC;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAglB5I;;;;;;;OAOG;sBACqB,yBAAyB,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;IAyJvL;;;;;;OAMG;kBACiB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IA6vD1I;;;;;;OAMG;kBACiB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAmsE1I;;;;;;OAMG;sBACqB,yBAAyB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA2vD/I;;;;;;OAMG;kBACiB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAqJ1I;;;;;;;OAOG;eACc,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAiIpL;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAC;IA6GjH;;;;;;;OAOG;oBACmB,yBAAyB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAC;CA6I5L,CAAC"}
|