@adaptic/backend-legacy 0.0.960 → 0.0.961
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ABTest.cjs +180 -66
- package/Account.cjs +180 -66
- package/AccountDecisionRecord.cjs +180 -66
- package/AccountLinkingRequest.cjs +180 -66
- package/Action.cjs +180 -66
- package/Alert.cjs +180 -66
- package/Allocation.cjs +180 -66
- package/AlpacaAccount.cjs +180 -66
- package/AnalyticsConfiguration.cjs +180 -66
- package/AnalyticsSnapshot.cjs +180 -66
- package/Asset.cjs +180 -66
- package/AuditLog.cjs +180 -66
- package/Authenticator.cjs +180 -66
- package/Configuration.cjs +180 -66
- package/ConflictEvent.cjs +180 -66
- package/ConnectionHealthSnapshot.cjs +180 -66
- package/Customer.cjs +180 -66
- package/DeadLetterMessage.cjs +180 -66
- package/DecisionMemorySummary.cjs +180 -66
- package/EconomicEvent.cjs +180 -66
- package/EquityBar.cjs +180 -66
- package/Event.cjs +180 -66
- package/EventSnapshot.cjs +180 -66
- package/FeatureImportanceAnalysis.cjs +180 -66
- package/InstitutionalFlowSignal.cjs +180 -66
- package/InstitutionalHolding.cjs +180 -66
- package/InstitutionalSentimentAlerts.cjs +180 -66
- package/InstitutionalSentimentErrors.cjs +180 -66
- package/InstitutionalSentimentHistory.cjs +180 -66
- package/InstitutionalSentimentMetrics.cjs +180 -66
- package/InviteToken.cjs +180 -66
- package/LinkedProvider.cjs +180 -66
- package/LlmConfiguration.cjs +180 -66
- package/MLModelVersion.cjs +180 -66
- package/MLTrainingData.cjs +180 -66
- package/MarketSentiment.cjs +180 -66
- package/ModelArtifact.cjs +180 -66
- package/ModelVersion.cjs +180 -66
- package/ModelVersionArtifact.cjs +180 -66
- package/NewsArticle.cjs +180 -66
- package/NewsArticleAssetSentiment.cjs +180 -66
- package/OptionsContract.cjs +180 -66
- package/OptionsGreeksHistory.cjs +180 -66
- package/OptionsPosition.cjs +180 -66
- package/OptionsPositionEvent.cjs +180 -66
- package/OptionsTradeExecution.cjs +180 -66
- package/PolicyOverlay.cjs +180 -66
- package/PortfolioGreeksHistory.cjs +180 -66
- package/ScheduledOptionOrder.cjs +180 -66
- package/Session.cjs +180 -66
- package/SignalGeneratorMetrics.cjs +180 -66
- package/SignalLineage.cjs +180 -66
- package/SignalOutcome.cjs +180 -66
- package/SignalPriorityQueue.cjs +180 -66
- package/SyncEvent.cjs +180 -66
- package/SystemAlert.cjs +180 -66
- package/Trade.cjs +180 -66
- package/TradeAuditEvent.cjs +180 -66
- package/TradeExecutionHistory.cjs +180 -66
- package/TradeOutcome.cjs +180 -66
- package/TradingPolicy.cjs +180 -66
- package/User.cjs +180 -66
- package/VerificationToken.cjs +180 -66
- package/WaitlistEntry.cjs +180 -66
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +180 -66
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +180 -66
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +180 -66
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +180 -66
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +180 -66
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +180 -66
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +180 -66
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +180 -66
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +180 -66
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +180 -66
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +180 -66
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +180 -66
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +180 -66
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +180 -66
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +180 -66
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +180 -66
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +180 -66
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +180 -66
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +180 -66
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +180 -66
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +180 -66
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +180 -66
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +180 -66
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +180 -66
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +180 -66
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +180 -66
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +180 -66
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +180 -66
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +180 -66
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +180 -66
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +180 -66
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +180 -66
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +180 -66
- package/esm/MLModelVersion.d.ts.map +1 -1
- package/esm/MLModelVersion.js.map +1 -1
- package/esm/MLModelVersion.mjs +180 -66
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +180 -66
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +180 -66
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +180 -66
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +180 -66
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +180 -66
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +180 -66
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +180 -66
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +180 -66
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +180 -66
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +180 -66
- package/esm/OptionsPositionEvent.d.ts.map +1 -1
- package/esm/OptionsPositionEvent.js.map +1 -1
- package/esm/OptionsPositionEvent.mjs +180 -66
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +180 -66
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +180 -66
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +180 -66
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +180 -66
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +180 -66
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +180 -66
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +180 -66
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +180 -66
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +180 -66
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +180 -66
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +180 -66
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +180 -66
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +180 -66
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +180 -66
- package/esm/TradeOutcome.d.ts.map +1 -1
- package/esm/TradeOutcome.js.map +1 -1
- package/esm/TradeOutcome.mjs +180 -66
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +180 -66
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +180 -66
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +180 -66
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +180 -66
- package/esm/index.d.ts.map +1 -1
- package/package.json +1 -1
package/esm/InviteToken.mjs
CHANGED
|
@@ -439,13 +439,28 @@ export const InviteToken = {
|
|
|
439
439
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
440
440
|
continue;
|
|
441
441
|
}
|
|
442
|
-
// Log structured error details and rethrow
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
442
|
+
// Log structured error details and rethrow.
|
|
443
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
444
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
445
|
+
// from true defects.
|
|
446
|
+
if (isConnectionError) {
|
|
447
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
448
|
+
operation: 'createOneInviteToken',
|
|
449
|
+
model: 'InviteToken',
|
|
450
|
+
error: String(error),
|
|
451
|
+
isRetryable: true,
|
|
452
|
+
transient: true,
|
|
453
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
logger.error("Database create operation failed", {
|
|
458
|
+
operation: 'createOneInviteToken',
|
|
459
|
+
model: 'InviteToken',
|
|
460
|
+
error: String(error),
|
|
461
|
+
isRetryable: false,
|
|
462
|
+
});
|
|
463
|
+
}
|
|
449
464
|
throw error;
|
|
450
465
|
}
|
|
451
466
|
}
|
|
@@ -568,13 +583,25 @@ export const InviteToken = {
|
|
|
568
583
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
569
584
|
continue;
|
|
570
585
|
}
|
|
571
|
-
// Log structured error details and rethrow
|
|
572
|
-
|
|
573
|
-
operation
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
586
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
587
|
+
if (isConnectionError) {
|
|
588
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
589
|
+
operation: 'createManyInviteToken',
|
|
590
|
+
model: 'InviteToken',
|
|
591
|
+
error: String(error),
|
|
592
|
+
isRetryable: true,
|
|
593
|
+
transient: true,
|
|
594
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
logger.error("Database createMany operation failed", {
|
|
599
|
+
operation: 'createManyInviteToken',
|
|
600
|
+
model: 'InviteToken',
|
|
601
|
+
error: String(error),
|
|
602
|
+
isRetryable: false,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
578
605
|
throw error;
|
|
579
606
|
}
|
|
580
607
|
}
|
|
@@ -1895,14 +1922,27 @@ export const InviteToken = {
|
|
|
1895
1922
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1896
1923
|
continue;
|
|
1897
1924
|
}
|
|
1898
|
-
// Log structured error details and rethrow
|
|
1899
|
-
|
|
1900
|
-
operation
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1925
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1926
|
+
if (isConnectionError) {
|
|
1927
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
1928
|
+
operation: 'updateOneInviteToken',
|
|
1929
|
+
model: 'InviteToken',
|
|
1930
|
+
error: String(error),
|
|
1931
|
+
recordId: props.id,
|
|
1932
|
+
isRetryable: true,
|
|
1933
|
+
transient: true,
|
|
1934
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
else {
|
|
1938
|
+
logger.error("Database update operation failed", {
|
|
1939
|
+
operation: 'updateOneInviteToken',
|
|
1940
|
+
model: 'InviteToken',
|
|
1941
|
+
error: String(error),
|
|
1942
|
+
recordId: props.id,
|
|
1943
|
+
isRetryable: false,
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1906
1946
|
throw error;
|
|
1907
1947
|
}
|
|
1908
1948
|
}
|
|
@@ -3529,14 +3569,27 @@ export const InviteToken = {
|
|
|
3529
3569
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
3530
3570
|
continue;
|
|
3531
3571
|
}
|
|
3532
|
-
// Log structured error details and rethrow
|
|
3533
|
-
|
|
3534
|
-
operation
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3572
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
3573
|
+
if (isConnectionError) {
|
|
3574
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
3575
|
+
operation: 'upsertOneInviteToken',
|
|
3576
|
+
model: 'InviteToken',
|
|
3577
|
+
error: String(error),
|
|
3578
|
+
recordId: props.id,
|
|
3579
|
+
isRetryable: true,
|
|
3580
|
+
transient: true,
|
|
3581
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
3582
|
+
});
|
|
3583
|
+
}
|
|
3584
|
+
else {
|
|
3585
|
+
logger.error("Database upsert operation failed", {
|
|
3586
|
+
operation: 'upsertOneInviteToken',
|
|
3587
|
+
model: 'InviteToken',
|
|
3588
|
+
error: String(error),
|
|
3589
|
+
recordId: props.id,
|
|
3590
|
+
isRetryable: false,
|
|
3591
|
+
});
|
|
3592
|
+
}
|
|
3540
3593
|
throw error;
|
|
3541
3594
|
}
|
|
3542
3595
|
}
|
|
@@ -4855,13 +4908,25 @@ export const InviteToken = {
|
|
|
4855
4908
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4856
4909
|
continue;
|
|
4857
4910
|
}
|
|
4858
|
-
// Log structured error details and rethrow
|
|
4859
|
-
|
|
4860
|
-
operation
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4911
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4912
|
+
if (isConnectionError) {
|
|
4913
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
4914
|
+
operation: 'updateManyInviteToken',
|
|
4915
|
+
model: 'InviteToken',
|
|
4916
|
+
error: String(error),
|
|
4917
|
+
isRetryable: true,
|
|
4918
|
+
transient: true,
|
|
4919
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4920
|
+
});
|
|
4921
|
+
}
|
|
4922
|
+
else {
|
|
4923
|
+
logger.error("Database updateMany operation failed", {
|
|
4924
|
+
operation: 'updateManyInviteToken',
|
|
4925
|
+
model: 'InviteToken',
|
|
4926
|
+
error: String(error),
|
|
4927
|
+
isRetryable: false,
|
|
4928
|
+
});
|
|
4929
|
+
}
|
|
4865
4930
|
throw error;
|
|
4866
4931
|
}
|
|
4867
4932
|
}
|
|
@@ -4983,14 +5048,27 @@ export const InviteToken = {
|
|
|
4983
5048
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4984
5049
|
continue;
|
|
4985
5050
|
}
|
|
4986
|
-
// Log structured error details and rethrow
|
|
4987
|
-
|
|
4988
|
-
operation
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
5051
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5052
|
+
if (isConnectionError) {
|
|
5053
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
5054
|
+
operation: 'deleteOneInviteToken',
|
|
5055
|
+
model: 'InviteToken',
|
|
5056
|
+
error: String(error),
|
|
5057
|
+
recordId: props.id,
|
|
5058
|
+
isRetryable: true,
|
|
5059
|
+
transient: true,
|
|
5060
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5061
|
+
});
|
|
5062
|
+
}
|
|
5063
|
+
else {
|
|
5064
|
+
logger.error("Database delete operation failed", {
|
|
5065
|
+
operation: 'deleteOneInviteToken',
|
|
5066
|
+
model: 'InviteToken',
|
|
5067
|
+
error: String(error),
|
|
5068
|
+
recordId: props.id,
|
|
5069
|
+
isRetryable: false,
|
|
5070
|
+
});
|
|
5071
|
+
}
|
|
4994
5072
|
throw error;
|
|
4995
5073
|
}
|
|
4996
5074
|
}
|
|
@@ -5089,13 +5167,25 @@ export const InviteToken = {
|
|
|
5089
5167
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5090
5168
|
continue;
|
|
5091
5169
|
}
|
|
5092
|
-
// Log structured error details and rethrow
|
|
5093
|
-
|
|
5094
|
-
operation
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5170
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5171
|
+
if (isConnectionError) {
|
|
5172
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
5173
|
+
operation: 'getInviteToken',
|
|
5174
|
+
model: 'InviteToken',
|
|
5175
|
+
error: String(error),
|
|
5176
|
+
isRetryable: true,
|
|
5177
|
+
transient: true,
|
|
5178
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5179
|
+
});
|
|
5180
|
+
}
|
|
5181
|
+
else {
|
|
5182
|
+
logger.error("Database get operation failed", {
|
|
5183
|
+
operation: 'getInviteToken',
|
|
5184
|
+
model: 'InviteToken',
|
|
5185
|
+
error: String(error),
|
|
5186
|
+
isRetryable: false,
|
|
5187
|
+
});
|
|
5188
|
+
}
|
|
5099
5189
|
throw error;
|
|
5100
5190
|
}
|
|
5101
5191
|
}
|
|
@@ -5181,13 +5271,25 @@ export const InviteToken = {
|
|
|
5181
5271
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5182
5272
|
continue;
|
|
5183
5273
|
}
|
|
5184
|
-
// Log structured error details and rethrow
|
|
5185
|
-
|
|
5186
|
-
operation
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5274
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5275
|
+
if (isConnectionError) {
|
|
5276
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
5277
|
+
operation: 'getAllInviteToken',
|
|
5278
|
+
model: 'InviteToken',
|
|
5279
|
+
error: String(error),
|
|
5280
|
+
isRetryable: true,
|
|
5281
|
+
transient: true,
|
|
5282
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5283
|
+
});
|
|
5284
|
+
}
|
|
5285
|
+
else {
|
|
5286
|
+
logger.error("Database getAll operation failed", {
|
|
5287
|
+
operation: 'getAllInviteToken',
|
|
5288
|
+
model: 'InviteToken',
|
|
5289
|
+
error: String(error),
|
|
5290
|
+
isRetryable: false,
|
|
5291
|
+
});
|
|
5292
|
+
}
|
|
5191
5293
|
throw error;
|
|
5192
5294
|
}
|
|
5193
5295
|
}
|
|
@@ -5297,13 +5399,25 @@ export const InviteToken = {
|
|
|
5297
5399
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
5298
5400
|
continue;
|
|
5299
5401
|
}
|
|
5300
|
-
// Log structured error details and rethrow
|
|
5301
|
-
|
|
5302
|
-
operation
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5402
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
5403
|
+
if (isConnectionError) {
|
|
5404
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
5405
|
+
operation: 'findManyInviteToken',
|
|
5406
|
+
model: 'InviteToken',
|
|
5407
|
+
error: String(error),
|
|
5408
|
+
isRetryable: true,
|
|
5409
|
+
transient: true,
|
|
5410
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
5411
|
+
});
|
|
5412
|
+
}
|
|
5413
|
+
else {
|
|
5414
|
+
logger.error("Database findMany operation failed", {
|
|
5415
|
+
operation: 'findManyInviteToken',
|
|
5416
|
+
model: 'InviteToken',
|
|
5417
|
+
error: String(error),
|
|
5418
|
+
isRetryable: false,
|
|
5419
|
+
});
|
|
5420
|
+
}
|
|
5307
5421
|
throw error;
|
|
5308
5422
|
}
|
|
5309
5423
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedProvider.d.ts","sourceRoot":"","sources":["../../src/LinkedProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,IA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