@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
package/esm/WaitlistEntry.mjs
CHANGED
|
@@ -602,13 +602,28 @@ export const WaitlistEntry = {
|
|
|
602
602
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
603
603
|
continue;
|
|
604
604
|
}
|
|
605
|
-
// Log structured error details and rethrow
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
605
|
+
// Log structured error details and rethrow.
|
|
606
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
607
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
608
|
+
// from true defects.
|
|
609
|
+
if (isConnectionError) {
|
|
610
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
611
|
+
operation: 'createOneWaitlistEntry',
|
|
612
|
+
model: 'WaitlistEntry',
|
|
613
|
+
error: String(error),
|
|
614
|
+
isRetryable: true,
|
|
615
|
+
transient: true,
|
|
616
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
logger.error("Database create operation failed", {
|
|
621
|
+
operation: 'createOneWaitlistEntry',
|
|
622
|
+
model: 'WaitlistEntry',
|
|
623
|
+
error: String(error),
|
|
624
|
+
isRetryable: false,
|
|
625
|
+
});
|
|
626
|
+
}
|
|
612
627
|
throw error;
|
|
613
628
|
}
|
|
614
629
|
}
|
|
@@ -735,13 +750,25 @@ export const WaitlistEntry = {
|
|
|
735
750
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
736
751
|
continue;
|
|
737
752
|
}
|
|
738
|
-
// Log structured error details and rethrow
|
|
739
|
-
|
|
740
|
-
operation
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
753
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
754
|
+
if (isConnectionError) {
|
|
755
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
756
|
+
operation: 'createManyWaitlistEntry',
|
|
757
|
+
model: 'WaitlistEntry',
|
|
758
|
+
error: String(error),
|
|
759
|
+
isRetryable: true,
|
|
760
|
+
transient: true,
|
|
761
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
logger.error("Database createMany operation failed", {
|
|
766
|
+
operation: 'createManyWaitlistEntry',
|
|
767
|
+
model: 'WaitlistEntry',
|
|
768
|
+
error: String(error),
|
|
769
|
+
isRetryable: false,
|
|
770
|
+
});
|
|
771
|
+
}
|
|
745
772
|
throw error;
|
|
746
773
|
}
|
|
747
774
|
}
|
|
@@ -2477,14 +2504,27 @@ export const WaitlistEntry = {
|
|
|
2477
2504
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2478
2505
|
continue;
|
|
2479
2506
|
}
|
|
2480
|
-
// Log structured error details and rethrow
|
|
2481
|
-
|
|
2482
|
-
operation
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2507
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2508
|
+
if (isConnectionError) {
|
|
2509
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
2510
|
+
operation: 'updateOneWaitlistEntry',
|
|
2511
|
+
model: 'WaitlistEntry',
|
|
2512
|
+
error: String(error),
|
|
2513
|
+
recordId: props.id,
|
|
2514
|
+
isRetryable: true,
|
|
2515
|
+
transient: true,
|
|
2516
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
else {
|
|
2520
|
+
logger.error("Database update operation failed", {
|
|
2521
|
+
operation: 'updateOneWaitlistEntry',
|
|
2522
|
+
model: 'WaitlistEntry',
|
|
2523
|
+
error: String(error),
|
|
2524
|
+
recordId: props.id,
|
|
2525
|
+
isRetryable: false,
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2488
2528
|
throw error;
|
|
2489
2529
|
}
|
|
2490
2530
|
}
|
|
@@ -4671,14 +4711,27 @@ export const WaitlistEntry = {
|
|
|
4671
4711
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4672
4712
|
continue;
|
|
4673
4713
|
}
|
|
4674
|
-
// Log structured error details and rethrow
|
|
4675
|
-
|
|
4676
|
-
operation
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4714
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4715
|
+
if (isConnectionError) {
|
|
4716
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4717
|
+
operation: 'upsertOneWaitlistEntry',
|
|
4718
|
+
model: 'WaitlistEntry',
|
|
4719
|
+
error: String(error),
|
|
4720
|
+
recordId: props.id,
|
|
4721
|
+
isRetryable: true,
|
|
4722
|
+
transient: true,
|
|
4723
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4724
|
+
});
|
|
4725
|
+
}
|
|
4726
|
+
else {
|
|
4727
|
+
logger.error("Database upsert operation failed", {
|
|
4728
|
+
operation: 'upsertOneWaitlistEntry',
|
|
4729
|
+
model: 'WaitlistEntry',
|
|
4730
|
+
error: String(error),
|
|
4731
|
+
recordId: props.id,
|
|
4732
|
+
isRetryable: false,
|
|
4733
|
+
});
|
|
4734
|
+
}
|
|
4682
4735
|
throw error;
|
|
4683
4736
|
}
|
|
4684
4737
|
}
|
|
@@ -6412,13 +6465,25 @@ export const WaitlistEntry = {
|
|
|
6412
6465
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6413
6466
|
continue;
|
|
6414
6467
|
}
|
|
6415
|
-
// Log structured error details and rethrow
|
|
6416
|
-
|
|
6417
|
-
operation
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6468
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6469
|
+
if (isConnectionError) {
|
|
6470
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6471
|
+
operation: 'updateManyWaitlistEntry',
|
|
6472
|
+
model: 'WaitlistEntry',
|
|
6473
|
+
error: String(error),
|
|
6474
|
+
isRetryable: true,
|
|
6475
|
+
transient: true,
|
|
6476
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6477
|
+
});
|
|
6478
|
+
}
|
|
6479
|
+
else {
|
|
6480
|
+
logger.error("Database updateMany operation failed", {
|
|
6481
|
+
operation: 'updateManyWaitlistEntry',
|
|
6482
|
+
model: 'WaitlistEntry',
|
|
6483
|
+
error: String(error),
|
|
6484
|
+
isRetryable: false,
|
|
6485
|
+
});
|
|
6486
|
+
}
|
|
6422
6487
|
throw error;
|
|
6423
6488
|
}
|
|
6424
6489
|
}
|
|
@@ -6540,14 +6605,27 @@ export const WaitlistEntry = {
|
|
|
6540
6605
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6541
6606
|
continue;
|
|
6542
6607
|
}
|
|
6543
|
-
// Log structured error details and rethrow
|
|
6544
|
-
|
|
6545
|
-
operation
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6608
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6609
|
+
if (isConnectionError) {
|
|
6610
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
6611
|
+
operation: 'deleteOneWaitlistEntry',
|
|
6612
|
+
model: 'WaitlistEntry',
|
|
6613
|
+
error: String(error),
|
|
6614
|
+
recordId: props.id,
|
|
6615
|
+
isRetryable: true,
|
|
6616
|
+
transient: true,
|
|
6617
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6618
|
+
});
|
|
6619
|
+
}
|
|
6620
|
+
else {
|
|
6621
|
+
logger.error("Database delete operation failed", {
|
|
6622
|
+
operation: 'deleteOneWaitlistEntry',
|
|
6623
|
+
model: 'WaitlistEntry',
|
|
6624
|
+
error: String(error),
|
|
6625
|
+
recordId: props.id,
|
|
6626
|
+
isRetryable: false,
|
|
6627
|
+
});
|
|
6628
|
+
}
|
|
6551
6629
|
throw error;
|
|
6552
6630
|
}
|
|
6553
6631
|
}
|
|
@@ -6646,13 +6724,25 @@ export const WaitlistEntry = {
|
|
|
6646
6724
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6647
6725
|
continue;
|
|
6648
6726
|
}
|
|
6649
|
-
// Log structured error details and rethrow
|
|
6650
|
-
|
|
6651
|
-
operation
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6727
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6728
|
+
if (isConnectionError) {
|
|
6729
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
6730
|
+
operation: 'getWaitlistEntry',
|
|
6731
|
+
model: 'WaitlistEntry',
|
|
6732
|
+
error: String(error),
|
|
6733
|
+
isRetryable: true,
|
|
6734
|
+
transient: true,
|
|
6735
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6736
|
+
});
|
|
6737
|
+
}
|
|
6738
|
+
else {
|
|
6739
|
+
logger.error("Database get operation failed", {
|
|
6740
|
+
operation: 'getWaitlistEntry',
|
|
6741
|
+
model: 'WaitlistEntry',
|
|
6742
|
+
error: String(error),
|
|
6743
|
+
isRetryable: false,
|
|
6744
|
+
});
|
|
6745
|
+
}
|
|
6656
6746
|
throw error;
|
|
6657
6747
|
}
|
|
6658
6748
|
}
|
|
@@ -6738,13 +6828,25 @@ export const WaitlistEntry = {
|
|
|
6738
6828
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6739
6829
|
continue;
|
|
6740
6830
|
}
|
|
6741
|
-
// Log structured error details and rethrow
|
|
6742
|
-
|
|
6743
|
-
operation
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6831
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6832
|
+
if (isConnectionError) {
|
|
6833
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6834
|
+
operation: 'getAllWaitlistEntry',
|
|
6835
|
+
model: 'WaitlistEntry',
|
|
6836
|
+
error: String(error),
|
|
6837
|
+
isRetryable: true,
|
|
6838
|
+
transient: true,
|
|
6839
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6840
|
+
});
|
|
6841
|
+
}
|
|
6842
|
+
else {
|
|
6843
|
+
logger.error("Database getAll operation failed", {
|
|
6844
|
+
operation: 'getAllWaitlistEntry',
|
|
6845
|
+
model: 'WaitlistEntry',
|
|
6846
|
+
error: String(error),
|
|
6847
|
+
isRetryable: false,
|
|
6848
|
+
});
|
|
6849
|
+
}
|
|
6748
6850
|
throw error;
|
|
6749
6851
|
}
|
|
6750
6852
|
}
|
|
@@ -6857,13 +6959,25 @@ export const WaitlistEntry = {
|
|
|
6857
6959
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6858
6960
|
continue;
|
|
6859
6961
|
}
|
|
6860
|
-
// Log structured error details and rethrow
|
|
6861
|
-
|
|
6862
|
-
operation
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6962
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6963
|
+
if (isConnectionError) {
|
|
6964
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6965
|
+
operation: 'findManyWaitlistEntry',
|
|
6966
|
+
model: 'WaitlistEntry',
|
|
6967
|
+
error: String(error),
|
|
6968
|
+
isRetryable: true,
|
|
6969
|
+
transient: true,
|
|
6970
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6971
|
+
});
|
|
6972
|
+
}
|
|
6973
|
+
else {
|
|
6974
|
+
logger.error("Database findMany operation failed", {
|
|
6975
|
+
operation: 'findManyWaitlistEntry',
|
|
6976
|
+
model: 'WaitlistEntry',
|
|
6977
|
+
error: String(error),
|
|
6978
|
+
isRetryable: false,
|
|
6979
|
+
});
|
|
6980
|
+
}
|
|
6867
6981
|
throw error;
|
|
6868
6982
|
}
|
|
6869
6983
|
}
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAE1B,YAAY,KAAK,KAAK,MAAM,kDAAkD,CAAC;AAC/E,OAAO,KAAK,KAAK,MAAM,4CAA4C,CAAC;AACpE,cAAc,+BAA+B,CAAC;AAG9C,cAAc,0BAA0B,CAAC;AAGzC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACV,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,aAAa,GACd,MAAM,UAAU,CAAC;AAoElB,QAAA,MAAM,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptic/backend-legacy",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.961",
|
|
4
4
|
"description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|