@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
|
@@ -132,13 +132,28 @@ export const VerificationToken = {
|
|
|
132
132
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
133
133
|
continue;
|
|
134
134
|
}
|
|
135
|
-
// Log structured error details and rethrow
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
135
|
+
// Log structured error details and rethrow.
|
|
136
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
137
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
138
|
+
// from true defects.
|
|
139
|
+
if (isConnectionError) {
|
|
140
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
141
|
+
operation: 'createOneVerificationToken',
|
|
142
|
+
model: 'VerificationToken',
|
|
143
|
+
error: String(error),
|
|
144
|
+
isRetryable: true,
|
|
145
|
+
transient: true,
|
|
146
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
logger.error("Database create operation failed", {
|
|
151
|
+
operation: 'createOneVerificationToken',
|
|
152
|
+
model: 'VerificationToken',
|
|
153
|
+
error: String(error),
|
|
154
|
+
isRetryable: false,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
142
157
|
throw error;
|
|
143
158
|
}
|
|
144
159
|
}
|
|
@@ -258,13 +273,25 @@ export const VerificationToken = {
|
|
|
258
273
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
259
274
|
continue;
|
|
260
275
|
}
|
|
261
|
-
// Log structured error details and rethrow
|
|
262
|
-
|
|
263
|
-
operation
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
276
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
277
|
+
if (isConnectionError) {
|
|
278
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
279
|
+
operation: 'createManyVerificationToken',
|
|
280
|
+
model: 'VerificationToken',
|
|
281
|
+
error: String(error),
|
|
282
|
+
isRetryable: true,
|
|
283
|
+
transient: true,
|
|
284
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
logger.error("Database createMany operation failed", {
|
|
289
|
+
operation: 'createManyVerificationToken',
|
|
290
|
+
model: 'VerificationToken',
|
|
291
|
+
error: String(error),
|
|
292
|
+
isRetryable: false,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
268
295
|
throw error;
|
|
269
296
|
}
|
|
270
297
|
}
|
|
@@ -397,14 +424,27 @@ export const VerificationToken = {
|
|
|
397
424
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
398
425
|
continue;
|
|
399
426
|
}
|
|
400
|
-
// Log structured error details and rethrow
|
|
401
|
-
|
|
402
|
-
operation
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
427
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
428
|
+
if (isConnectionError) {
|
|
429
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
430
|
+
operation: 'updateOneVerificationToken',
|
|
431
|
+
model: 'VerificationToken',
|
|
432
|
+
error: String(error),
|
|
433
|
+
recordId: props.id,
|
|
434
|
+
isRetryable: true,
|
|
435
|
+
transient: true,
|
|
436
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
logger.error("Database update operation failed", {
|
|
441
|
+
operation: 'updateOneVerificationToken',
|
|
442
|
+
model: 'VerificationToken',
|
|
443
|
+
error: String(error),
|
|
444
|
+
recordId: props.id,
|
|
445
|
+
isRetryable: false,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
408
448
|
throw error;
|
|
409
449
|
}
|
|
410
450
|
}
|
|
@@ -539,14 +579,27 @@ export const VerificationToken = {
|
|
|
539
579
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
540
580
|
continue;
|
|
541
581
|
}
|
|
542
|
-
// Log structured error details and rethrow
|
|
543
|
-
|
|
544
|
-
operation
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
582
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
583
|
+
if (isConnectionError) {
|
|
584
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
585
|
+
operation: 'upsertOneVerificationToken',
|
|
586
|
+
model: 'VerificationToken',
|
|
587
|
+
error: String(error),
|
|
588
|
+
recordId: props.id,
|
|
589
|
+
isRetryable: true,
|
|
590
|
+
transient: true,
|
|
591
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
logger.error("Database upsert operation failed", {
|
|
596
|
+
operation: 'upsertOneVerificationToken',
|
|
597
|
+
model: 'VerificationToken',
|
|
598
|
+
error: String(error),
|
|
599
|
+
recordId: props.id,
|
|
600
|
+
isRetryable: false,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
550
603
|
throw error;
|
|
551
604
|
}
|
|
552
605
|
}
|
|
@@ -677,13 +730,25 @@ export const VerificationToken = {
|
|
|
677
730
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
678
731
|
continue;
|
|
679
732
|
}
|
|
680
|
-
// Log structured error details and rethrow
|
|
681
|
-
|
|
682
|
-
operation
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
733
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
734
|
+
if (isConnectionError) {
|
|
735
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
736
|
+
operation: 'updateManyVerificationToken',
|
|
737
|
+
model: 'VerificationToken',
|
|
738
|
+
error: String(error),
|
|
739
|
+
isRetryable: true,
|
|
740
|
+
transient: true,
|
|
741
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
logger.error("Database updateMany operation failed", {
|
|
746
|
+
operation: 'updateManyVerificationToken',
|
|
747
|
+
model: 'VerificationToken',
|
|
748
|
+
error: String(error),
|
|
749
|
+
isRetryable: false,
|
|
750
|
+
});
|
|
751
|
+
}
|
|
687
752
|
throw error;
|
|
688
753
|
}
|
|
689
754
|
}
|
|
@@ -805,14 +870,27 @@ export const VerificationToken = {
|
|
|
805
870
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
806
871
|
continue;
|
|
807
872
|
}
|
|
808
|
-
// Log structured error details and rethrow
|
|
809
|
-
|
|
810
|
-
operation
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
873
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
874
|
+
if (isConnectionError) {
|
|
875
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
876
|
+
operation: 'deleteOneVerificationToken',
|
|
877
|
+
model: 'VerificationToken',
|
|
878
|
+
error: String(error),
|
|
879
|
+
recordId: props.id,
|
|
880
|
+
isRetryable: true,
|
|
881
|
+
transient: true,
|
|
882
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
logger.error("Database delete operation failed", {
|
|
887
|
+
operation: 'deleteOneVerificationToken',
|
|
888
|
+
model: 'VerificationToken',
|
|
889
|
+
error: String(error),
|
|
890
|
+
recordId: props.id,
|
|
891
|
+
isRetryable: false,
|
|
892
|
+
});
|
|
893
|
+
}
|
|
816
894
|
throw error;
|
|
817
895
|
}
|
|
818
896
|
}
|
|
@@ -907,13 +985,25 @@ export const VerificationToken = {
|
|
|
907
985
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
908
986
|
continue;
|
|
909
987
|
}
|
|
910
|
-
// Log structured error details and rethrow
|
|
911
|
-
|
|
912
|
-
operation
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
988
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
989
|
+
if (isConnectionError) {
|
|
990
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
991
|
+
operation: 'getVerificationToken',
|
|
992
|
+
model: 'VerificationToken',
|
|
993
|
+
error: String(error),
|
|
994
|
+
isRetryable: true,
|
|
995
|
+
transient: true,
|
|
996
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
else {
|
|
1000
|
+
logger.error("Database get operation failed", {
|
|
1001
|
+
operation: 'getVerificationToken',
|
|
1002
|
+
model: 'VerificationToken',
|
|
1003
|
+
error: String(error),
|
|
1004
|
+
isRetryable: false,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
917
1007
|
throw error;
|
|
918
1008
|
}
|
|
919
1009
|
}
|
|
@@ -999,13 +1089,25 @@ export const VerificationToken = {
|
|
|
999
1089
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1000
1090
|
continue;
|
|
1001
1091
|
}
|
|
1002
|
-
// Log structured error details and rethrow
|
|
1003
|
-
|
|
1004
|
-
operation
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1092
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1093
|
+
if (isConnectionError) {
|
|
1094
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1095
|
+
operation: 'getAllVerificationToken',
|
|
1096
|
+
model: 'VerificationToken',
|
|
1097
|
+
error: String(error),
|
|
1098
|
+
isRetryable: true,
|
|
1099
|
+
transient: true,
|
|
1100
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
else {
|
|
1104
|
+
logger.error("Database getAll operation failed", {
|
|
1105
|
+
operation: 'getAllVerificationToken',
|
|
1106
|
+
model: 'VerificationToken',
|
|
1107
|
+
error: String(error),
|
|
1108
|
+
isRetryable: false,
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1009
1111
|
throw error;
|
|
1010
1112
|
}
|
|
1011
1113
|
}
|
|
@@ -1112,13 +1214,25 @@ export const VerificationToken = {
|
|
|
1112
1214
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1113
1215
|
continue;
|
|
1114
1216
|
}
|
|
1115
|
-
// Log structured error details and rethrow
|
|
1116
|
-
|
|
1117
|
-
operation
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1217
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1218
|
+
if (isConnectionError) {
|
|
1219
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1220
|
+
operation: 'findManyVerificationToken',
|
|
1221
|
+
model: 'VerificationToken',
|
|
1222
|
+
error: String(error),
|
|
1223
|
+
isRetryable: true,
|
|
1224
|
+
transient: true,
|
|
1225
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
else {
|
|
1229
|
+
logger.error("Database findMany operation failed", {
|
|
1230
|
+
operation: 'findManyVerificationToken',
|
|
1231
|
+
model: 'VerificationToken',
|
|
1232
|
+
error: String(error),
|
|
1233
|
+
isRetryable: false,
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1122
1236
|
throw error;
|
|
1123
1237
|
}
|
|
1124
1238
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaitlistEntry.d.ts","sourceRoot":"","sources":["../../src/WaitlistEntry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAoCpG,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"WaitlistEntry.d.ts","sourceRoot":"","sources":["../../src/WaitlistEntry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAoCpG,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAwlB5H;;;;;;;OAOG;sBACqB,iBAAiB,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;IAuJ/K;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmuD1H;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAsqE1H;;;;;;OAMG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAiuDvI;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAqJ1H;;;;;;;OAOG;eACc,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAyHpK;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IA6GzG;;;;;;;OAOG;oBACmB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CAuI5K,CAAC"}
|