@adaptic/backend-legacy 0.0.960 → 0.0.962
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/client.cjs +131 -9
- package/client.d.ts +32 -0
- 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/client.d.ts +32 -0
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +130 -9
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/index.mjs +1 -1
- package/index.cjs +2 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -585,13 +585,28 @@ export const AccountLinkingRequest = {
|
|
|
585
585
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
586
586
|
continue;
|
|
587
587
|
}
|
|
588
|
-
// Log structured error details and rethrow
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
588
|
+
// Log structured error details and rethrow.
|
|
589
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
590
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
591
|
+
// from true defects.
|
|
592
|
+
if (isConnectionError) {
|
|
593
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
594
|
+
operation: 'createOneAccountLinkingRequest',
|
|
595
|
+
model: 'AccountLinkingRequest',
|
|
596
|
+
error: String(error),
|
|
597
|
+
isRetryable: true,
|
|
598
|
+
transient: true,
|
|
599
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
logger.error("Database create operation failed", {
|
|
604
|
+
operation: 'createOneAccountLinkingRequest',
|
|
605
|
+
model: 'AccountLinkingRequest',
|
|
606
|
+
error: String(error),
|
|
607
|
+
isRetryable: false,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
595
610
|
throw error;
|
|
596
611
|
}
|
|
597
612
|
}
|
|
@@ -720,13 +735,25 @@ export const AccountLinkingRequest = {
|
|
|
720
735
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
721
736
|
continue;
|
|
722
737
|
}
|
|
723
|
-
// Log structured error details and rethrow
|
|
724
|
-
|
|
725
|
-
operation
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
738
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
739
|
+
if (isConnectionError) {
|
|
740
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
741
|
+
operation: 'createManyAccountLinkingRequest',
|
|
742
|
+
model: 'AccountLinkingRequest',
|
|
743
|
+
error: String(error),
|
|
744
|
+
isRetryable: true,
|
|
745
|
+
transient: true,
|
|
746
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
else {
|
|
750
|
+
logger.error("Database createMany operation failed", {
|
|
751
|
+
operation: 'createManyAccountLinkingRequest',
|
|
752
|
+
model: 'AccountLinkingRequest',
|
|
753
|
+
error: String(error),
|
|
754
|
+
isRetryable: false,
|
|
755
|
+
});
|
|
756
|
+
}
|
|
730
757
|
throw error;
|
|
731
758
|
}
|
|
732
759
|
}
|
|
@@ -2488,14 +2515,27 @@ export const AccountLinkingRequest = {
|
|
|
2488
2515
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2489
2516
|
continue;
|
|
2490
2517
|
}
|
|
2491
|
-
// Log structured error details and rethrow
|
|
2492
|
-
|
|
2493
|
-
operation
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2518
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2519
|
+
if (isConnectionError) {
|
|
2520
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2521
|
+
operation: 'updateOneAccountLinkingRequest',
|
|
2522
|
+
model: 'AccountLinkingRequest',
|
|
2523
|
+
error: String(error),
|
|
2524
|
+
recordId: props.id,
|
|
2525
|
+
isRetryable: true,
|
|
2526
|
+
transient: true,
|
|
2527
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
else {
|
|
2531
|
+
logger.error("Database update operation failed", {
|
|
2532
|
+
operation: 'updateOneAccountLinkingRequest',
|
|
2533
|
+
model: 'AccountLinkingRequest',
|
|
2534
|
+
error: String(error),
|
|
2535
|
+
recordId: props.id,
|
|
2536
|
+
isRetryable: false,
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2499
2539
|
throw error;
|
|
2500
2540
|
}
|
|
2501
2541
|
}
|
|
@@ -4711,14 +4751,27 @@ export const AccountLinkingRequest = {
|
|
|
4711
4751
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4712
4752
|
continue;
|
|
4713
4753
|
}
|
|
4714
|
-
// Log structured error details and rethrow
|
|
4715
|
-
|
|
4716
|
-
operation
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4754
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4755
|
+
if (isConnectionError) {
|
|
4756
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4757
|
+
operation: 'upsertOneAccountLinkingRequest',
|
|
4758
|
+
model: 'AccountLinkingRequest',
|
|
4759
|
+
error: String(error),
|
|
4760
|
+
recordId: props.id,
|
|
4761
|
+
isRetryable: true,
|
|
4762
|
+
transient: true,
|
|
4763
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4764
|
+
});
|
|
4765
|
+
}
|
|
4766
|
+
else {
|
|
4767
|
+
logger.error("Database upsert operation failed", {
|
|
4768
|
+
operation: 'upsertOneAccountLinkingRequest',
|
|
4769
|
+
model: 'AccountLinkingRequest',
|
|
4770
|
+
error: String(error),
|
|
4771
|
+
recordId: props.id,
|
|
4772
|
+
isRetryable: false,
|
|
4773
|
+
});
|
|
4774
|
+
}
|
|
4722
4775
|
throw error;
|
|
4723
4776
|
}
|
|
4724
4777
|
}
|
|
@@ -6478,13 +6531,25 @@ export const AccountLinkingRequest = {
|
|
|
6478
6531
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6479
6532
|
continue;
|
|
6480
6533
|
}
|
|
6481
|
-
// Log structured error details and rethrow
|
|
6482
|
-
|
|
6483
|
-
operation
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6534
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6535
|
+
if (isConnectionError) {
|
|
6536
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6537
|
+
operation: 'updateManyAccountLinkingRequest',
|
|
6538
|
+
model: 'AccountLinkingRequest',
|
|
6539
|
+
error: String(error),
|
|
6540
|
+
isRetryable: true,
|
|
6541
|
+
transient: true,
|
|
6542
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6543
|
+
});
|
|
6544
|
+
}
|
|
6545
|
+
else {
|
|
6546
|
+
logger.error("Database updateMany operation failed", {
|
|
6547
|
+
operation: 'updateManyAccountLinkingRequest',
|
|
6548
|
+
model: 'AccountLinkingRequest',
|
|
6549
|
+
error: String(error),
|
|
6550
|
+
isRetryable: false,
|
|
6551
|
+
});
|
|
6552
|
+
}
|
|
6488
6553
|
throw error;
|
|
6489
6554
|
}
|
|
6490
6555
|
}
|
|
@@ -6606,14 +6671,27 @@ export const AccountLinkingRequest = {
|
|
|
6606
6671
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6607
6672
|
continue;
|
|
6608
6673
|
}
|
|
6609
|
-
// Log structured error details and rethrow
|
|
6610
|
-
|
|
6611
|
-
operation
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6674
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6675
|
+
if (isConnectionError) {
|
|
6676
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
6677
|
+
operation: 'deleteOneAccountLinkingRequest',
|
|
6678
|
+
model: 'AccountLinkingRequest',
|
|
6679
|
+
error: String(error),
|
|
6680
|
+
recordId: props.id,
|
|
6681
|
+
isRetryable: true,
|
|
6682
|
+
transient: true,
|
|
6683
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6684
|
+
});
|
|
6685
|
+
}
|
|
6686
|
+
else {
|
|
6687
|
+
logger.error("Database delete operation failed", {
|
|
6688
|
+
operation: 'deleteOneAccountLinkingRequest',
|
|
6689
|
+
model: 'AccountLinkingRequest',
|
|
6690
|
+
error: String(error),
|
|
6691
|
+
recordId: props.id,
|
|
6692
|
+
isRetryable: false,
|
|
6693
|
+
});
|
|
6694
|
+
}
|
|
6617
6695
|
throw error;
|
|
6618
6696
|
}
|
|
6619
6697
|
}
|
|
@@ -6720,13 +6798,25 @@ export const AccountLinkingRequest = {
|
|
|
6720
6798
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6721
6799
|
continue;
|
|
6722
6800
|
}
|
|
6723
|
-
// Log structured error details and rethrow
|
|
6724
|
-
|
|
6725
|
-
operation
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6801
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6802
|
+
if (isConnectionError) {
|
|
6803
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6804
|
+
operation: 'getAccountLinkingRequest',
|
|
6805
|
+
model: 'AccountLinkingRequest',
|
|
6806
|
+
error: String(error),
|
|
6807
|
+
isRetryable: true,
|
|
6808
|
+
transient: true,
|
|
6809
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6810
|
+
});
|
|
6811
|
+
}
|
|
6812
|
+
else {
|
|
6813
|
+
logger.error("Database get operation failed", {
|
|
6814
|
+
operation: 'getAccountLinkingRequest',
|
|
6815
|
+
model: 'AccountLinkingRequest',
|
|
6816
|
+
error: String(error),
|
|
6817
|
+
isRetryable: false,
|
|
6818
|
+
});
|
|
6819
|
+
}
|
|
6730
6820
|
throw error;
|
|
6731
6821
|
}
|
|
6732
6822
|
}
|
|
@@ -6812,13 +6902,25 @@ export const AccountLinkingRequest = {
|
|
|
6812
6902
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6813
6903
|
continue;
|
|
6814
6904
|
}
|
|
6815
|
-
// Log structured error details and rethrow
|
|
6816
|
-
|
|
6817
|
-
operation
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6905
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6906
|
+
if (isConnectionError) {
|
|
6907
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6908
|
+
operation: 'getAllAccountLinkingRequest',
|
|
6909
|
+
model: 'AccountLinkingRequest',
|
|
6910
|
+
error: String(error),
|
|
6911
|
+
isRetryable: true,
|
|
6912
|
+
transient: true,
|
|
6913
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6914
|
+
});
|
|
6915
|
+
}
|
|
6916
|
+
else {
|
|
6917
|
+
logger.error("Database getAll operation failed", {
|
|
6918
|
+
operation: 'getAllAccountLinkingRequest',
|
|
6919
|
+
model: 'AccountLinkingRequest',
|
|
6920
|
+
error: String(error),
|
|
6921
|
+
isRetryable: false,
|
|
6922
|
+
});
|
|
6923
|
+
}
|
|
6822
6924
|
throw error;
|
|
6823
6925
|
}
|
|
6824
6926
|
}
|
|
@@ -6937,13 +7039,25 @@ export const AccountLinkingRequest = {
|
|
|
6937
7039
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6938
7040
|
continue;
|
|
6939
7041
|
}
|
|
6940
|
-
// Log structured error details and rethrow
|
|
6941
|
-
|
|
6942
|
-
operation
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
7042
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
7043
|
+
if (isConnectionError) {
|
|
7044
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
7045
|
+
operation: 'findManyAccountLinkingRequest',
|
|
7046
|
+
model: 'AccountLinkingRequest',
|
|
7047
|
+
error: String(error),
|
|
7048
|
+
isRetryable: true,
|
|
7049
|
+
transient: true,
|
|
7050
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
7051
|
+
});
|
|
7052
|
+
}
|
|
7053
|
+
else {
|
|
7054
|
+
logger.error("Database findMany operation failed", {
|
|
7055
|
+
operation: 'findManyAccountLinkingRequest',
|
|
7056
|
+
model: 'AccountLinkingRequest',
|
|
7057
|
+
error: String(error),
|
|
7058
|
+
isRetryable: false,
|
|
7059
|
+
});
|
|
7060
|
+
}
|
|
6947
7061
|
throw error;
|
|
6948
7062
|
}
|
|
6949
7063
|
}
|
package/esm/Action.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/Action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA0BpG,eAAO,MAAM,MAAM;IAEjB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/Action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA0BpG,eAAO,MAAM,MAAM;IAEjB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IA8M9G;;;;;;;OAOG;sBACqB,UAAU,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;IAuJxK;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAyU5G;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAwY5G;;;;;;OAMG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAuUhI;;;;;;OAMG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAqJ5G;;;;;;;OAOG;eACc,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IA+HtJ;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;IA6GlG;;;;;;;OAOG;oBACmB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC;CA0I9J,CAAC"}
|