@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
package/VerificationToken.cjs
CHANGED
|
@@ -136,13 +136,28 @@ exports.VerificationToken = {
|
|
|
136
136
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
137
137
|
continue;
|
|
138
138
|
}
|
|
139
|
-
// Log structured error details and rethrow
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
// Log structured error details and rethrow.
|
|
140
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
141
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
142
|
+
// from true defects.
|
|
143
|
+
if (isConnectionError) {
|
|
144
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
145
|
+
operation: 'createOneVerificationToken',
|
|
146
|
+
model: 'VerificationToken',
|
|
147
|
+
error: String(error),
|
|
148
|
+
isRetryable: true,
|
|
149
|
+
transient: true,
|
|
150
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
logger_1.logger.error("Database create operation failed", {
|
|
155
|
+
operation: 'createOneVerificationToken',
|
|
156
|
+
model: 'VerificationToken',
|
|
157
|
+
error: String(error),
|
|
158
|
+
isRetryable: false,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
146
161
|
throw error;
|
|
147
162
|
}
|
|
148
163
|
}
|
|
@@ -263,13 +278,25 @@ exports.VerificationToken = {
|
|
|
263
278
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
264
279
|
continue;
|
|
265
280
|
}
|
|
266
|
-
// Log structured error details and rethrow
|
|
267
|
-
|
|
268
|
-
operation
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
281
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
282
|
+
if (isConnectionError) {
|
|
283
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
284
|
+
operation: 'createManyVerificationToken',
|
|
285
|
+
model: 'VerificationToken',
|
|
286
|
+
error: String(error),
|
|
287
|
+
isRetryable: true,
|
|
288
|
+
transient: true,
|
|
289
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
294
|
+
operation: 'createManyVerificationToken',
|
|
295
|
+
model: 'VerificationToken',
|
|
296
|
+
error: String(error),
|
|
297
|
+
isRetryable: false,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
273
300
|
throw error;
|
|
274
301
|
}
|
|
275
302
|
}
|
|
@@ -403,14 +430,27 @@ exports.VerificationToken = {
|
|
|
403
430
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
404
431
|
continue;
|
|
405
432
|
}
|
|
406
|
-
// Log structured error details and rethrow
|
|
407
|
-
|
|
408
|
-
operation
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
433
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
434
|
+
if (isConnectionError) {
|
|
435
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
436
|
+
operation: 'updateOneVerificationToken',
|
|
437
|
+
model: 'VerificationToken',
|
|
438
|
+
error: String(error),
|
|
439
|
+
recordId: props.id,
|
|
440
|
+
isRetryable: true,
|
|
441
|
+
transient: true,
|
|
442
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
logger_1.logger.error("Database update operation failed", {
|
|
447
|
+
operation: 'updateOneVerificationToken',
|
|
448
|
+
model: 'VerificationToken',
|
|
449
|
+
error: String(error),
|
|
450
|
+
recordId: props.id,
|
|
451
|
+
isRetryable: false,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
414
454
|
throw error;
|
|
415
455
|
}
|
|
416
456
|
}
|
|
@@ -546,14 +586,27 @@ exports.VerificationToken = {
|
|
|
546
586
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
547
587
|
continue;
|
|
548
588
|
}
|
|
549
|
-
// Log structured error details and rethrow
|
|
550
|
-
|
|
551
|
-
operation
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
589
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
590
|
+
if (isConnectionError) {
|
|
591
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
592
|
+
operation: 'upsertOneVerificationToken',
|
|
593
|
+
model: 'VerificationToken',
|
|
594
|
+
error: String(error),
|
|
595
|
+
recordId: props.id,
|
|
596
|
+
isRetryable: true,
|
|
597
|
+
transient: true,
|
|
598
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
else {
|
|
602
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
603
|
+
operation: 'upsertOneVerificationToken',
|
|
604
|
+
model: 'VerificationToken',
|
|
605
|
+
error: String(error),
|
|
606
|
+
recordId: props.id,
|
|
607
|
+
isRetryable: false,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
557
610
|
throw error;
|
|
558
611
|
}
|
|
559
612
|
}
|
|
@@ -685,13 +738,25 @@ exports.VerificationToken = {
|
|
|
685
738
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
686
739
|
continue;
|
|
687
740
|
}
|
|
688
|
-
// Log structured error details and rethrow
|
|
689
|
-
|
|
690
|
-
operation
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
741
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
742
|
+
if (isConnectionError) {
|
|
743
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
744
|
+
operation: 'updateManyVerificationToken',
|
|
745
|
+
model: 'VerificationToken',
|
|
746
|
+
error: String(error),
|
|
747
|
+
isRetryable: true,
|
|
748
|
+
transient: true,
|
|
749
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
else {
|
|
753
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
754
|
+
operation: 'updateManyVerificationToken',
|
|
755
|
+
model: 'VerificationToken',
|
|
756
|
+
error: String(error),
|
|
757
|
+
isRetryable: false,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
695
760
|
throw error;
|
|
696
761
|
}
|
|
697
762
|
}
|
|
@@ -814,14 +879,27 @@ exports.VerificationToken = {
|
|
|
814
879
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
815
880
|
continue;
|
|
816
881
|
}
|
|
817
|
-
// Log structured error details and rethrow
|
|
818
|
-
|
|
819
|
-
operation
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
882
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
883
|
+
if (isConnectionError) {
|
|
884
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
885
|
+
operation: 'deleteOneVerificationToken',
|
|
886
|
+
model: 'VerificationToken',
|
|
887
|
+
error: String(error),
|
|
888
|
+
recordId: props.id,
|
|
889
|
+
isRetryable: true,
|
|
890
|
+
transient: true,
|
|
891
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
896
|
+
operation: 'deleteOneVerificationToken',
|
|
897
|
+
model: 'VerificationToken',
|
|
898
|
+
error: String(error),
|
|
899
|
+
recordId: props.id,
|
|
900
|
+
isRetryable: false,
|
|
901
|
+
});
|
|
902
|
+
}
|
|
825
903
|
throw error;
|
|
826
904
|
}
|
|
827
905
|
}
|
|
@@ -917,13 +995,25 @@ exports.VerificationToken = {
|
|
|
917
995
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
918
996
|
continue;
|
|
919
997
|
}
|
|
920
|
-
// Log structured error details and rethrow
|
|
921
|
-
|
|
922
|
-
operation
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
998
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
999
|
+
if (isConnectionError) {
|
|
1000
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
1001
|
+
operation: 'getVerificationToken',
|
|
1002
|
+
model: 'VerificationToken',
|
|
1003
|
+
error: String(error),
|
|
1004
|
+
isRetryable: true,
|
|
1005
|
+
transient: true,
|
|
1006
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
else {
|
|
1010
|
+
logger_1.logger.error("Database get operation failed", {
|
|
1011
|
+
operation: 'getVerificationToken',
|
|
1012
|
+
model: 'VerificationToken',
|
|
1013
|
+
error: String(error),
|
|
1014
|
+
isRetryable: false,
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
927
1017
|
throw error;
|
|
928
1018
|
}
|
|
929
1019
|
}
|
|
@@ -1010,13 +1100,25 @@ exports.VerificationToken = {
|
|
|
1010
1100
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1011
1101
|
continue;
|
|
1012
1102
|
}
|
|
1013
|
-
// Log structured error details and rethrow
|
|
1014
|
-
|
|
1015
|
-
operation
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1103
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1104
|
+
if (isConnectionError) {
|
|
1105
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1106
|
+
operation: 'getAllVerificationToken',
|
|
1107
|
+
model: 'VerificationToken',
|
|
1108
|
+
error: String(error),
|
|
1109
|
+
isRetryable: true,
|
|
1110
|
+
transient: true,
|
|
1111
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
1116
|
+
operation: 'getAllVerificationToken',
|
|
1117
|
+
model: 'VerificationToken',
|
|
1118
|
+
error: String(error),
|
|
1119
|
+
isRetryable: false,
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1020
1122
|
throw error;
|
|
1021
1123
|
}
|
|
1022
1124
|
}
|
|
@@ -1124,13 +1226,25 @@ exports.VerificationToken = {
|
|
|
1124
1226
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1125
1227
|
continue;
|
|
1126
1228
|
}
|
|
1127
|
-
// Log structured error details and rethrow
|
|
1128
|
-
|
|
1129
|
-
operation
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1229
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1230
|
+
if (isConnectionError) {
|
|
1231
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1232
|
+
operation: 'findManyVerificationToken',
|
|
1233
|
+
model: 'VerificationToken',
|
|
1234
|
+
error: String(error),
|
|
1235
|
+
isRetryable: true,
|
|
1236
|
+
transient: true,
|
|
1237
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
1242
|
+
operation: 'findManyVerificationToken',
|
|
1243
|
+
model: 'VerificationToken',
|
|
1244
|
+
error: String(error),
|
|
1245
|
+
isRetryable: false,
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1134
1248
|
throw error;
|
|
1135
1249
|
}
|
|
1136
1250
|
}
|
package/WaitlistEntry.cjs
CHANGED
|
@@ -606,13 +606,28 @@ exports.WaitlistEntry = {
|
|
|
606
606
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
607
607
|
continue;
|
|
608
608
|
}
|
|
609
|
-
// Log structured error details and rethrow
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
609
|
+
// Log structured error details and rethrow.
|
|
610
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
611
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
612
|
+
// from true defects.
|
|
613
|
+
if (isConnectionError) {
|
|
614
|
+
logger_1.logger.warn("Database create operation failed (transient after retries)", {
|
|
615
|
+
operation: 'createOneWaitlistEntry',
|
|
616
|
+
model: 'WaitlistEntry',
|
|
617
|
+
error: String(error),
|
|
618
|
+
isRetryable: true,
|
|
619
|
+
transient: true,
|
|
620
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
logger_1.logger.error("Database create operation failed", {
|
|
625
|
+
operation: 'createOneWaitlistEntry',
|
|
626
|
+
model: 'WaitlistEntry',
|
|
627
|
+
error: String(error),
|
|
628
|
+
isRetryable: false,
|
|
629
|
+
});
|
|
630
|
+
}
|
|
616
631
|
throw error;
|
|
617
632
|
}
|
|
618
633
|
}
|
|
@@ -740,13 +755,25 @@ exports.WaitlistEntry = {
|
|
|
740
755
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
741
756
|
continue;
|
|
742
757
|
}
|
|
743
|
-
// Log structured error details and rethrow
|
|
744
|
-
|
|
745
|
-
operation
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
758
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
759
|
+
if (isConnectionError) {
|
|
760
|
+
logger_1.logger.warn("Database createMany operation failed (transient after retries)", {
|
|
761
|
+
operation: 'createManyWaitlistEntry',
|
|
762
|
+
model: 'WaitlistEntry',
|
|
763
|
+
error: String(error),
|
|
764
|
+
isRetryable: true,
|
|
765
|
+
transient: true,
|
|
766
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
else {
|
|
770
|
+
logger_1.logger.error("Database createMany operation failed", {
|
|
771
|
+
operation: 'createManyWaitlistEntry',
|
|
772
|
+
model: 'WaitlistEntry',
|
|
773
|
+
error: String(error),
|
|
774
|
+
isRetryable: false,
|
|
775
|
+
});
|
|
776
|
+
}
|
|
750
777
|
throw error;
|
|
751
778
|
}
|
|
752
779
|
}
|
|
@@ -2483,14 +2510,27 @@ exports.WaitlistEntry = {
|
|
|
2483
2510
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
2484
2511
|
continue;
|
|
2485
2512
|
}
|
|
2486
|
-
// Log structured error details and rethrow
|
|
2487
|
-
|
|
2488
|
-
operation
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2513
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
2514
|
+
if (isConnectionError) {
|
|
2515
|
+
logger_1.logger.warn("Database update operation failed (transient after retries)", {
|
|
2516
|
+
operation: 'updateOneWaitlistEntry',
|
|
2517
|
+
model: 'WaitlistEntry',
|
|
2518
|
+
error: String(error),
|
|
2519
|
+
recordId: props.id,
|
|
2520
|
+
isRetryable: true,
|
|
2521
|
+
transient: true,
|
|
2522
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
else {
|
|
2526
|
+
logger_1.logger.error("Database update operation failed", {
|
|
2527
|
+
operation: 'updateOneWaitlistEntry',
|
|
2528
|
+
model: 'WaitlistEntry',
|
|
2529
|
+
error: String(error),
|
|
2530
|
+
recordId: props.id,
|
|
2531
|
+
isRetryable: false,
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2494
2534
|
throw error;
|
|
2495
2535
|
}
|
|
2496
2536
|
}
|
|
@@ -4678,14 +4718,27 @@ exports.WaitlistEntry = {
|
|
|
4678
4718
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
4679
4719
|
continue;
|
|
4680
4720
|
}
|
|
4681
|
-
// Log structured error details and rethrow
|
|
4682
|
-
|
|
4683
|
-
operation
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4721
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
4722
|
+
if (isConnectionError) {
|
|
4723
|
+
logger_1.logger.warn("Database upsert operation failed (transient after retries)", {
|
|
4724
|
+
operation: 'upsertOneWaitlistEntry',
|
|
4725
|
+
model: 'WaitlistEntry',
|
|
4726
|
+
error: String(error),
|
|
4727
|
+
recordId: props.id,
|
|
4728
|
+
isRetryable: true,
|
|
4729
|
+
transient: true,
|
|
4730
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
4731
|
+
});
|
|
4732
|
+
}
|
|
4733
|
+
else {
|
|
4734
|
+
logger_1.logger.error("Database upsert operation failed", {
|
|
4735
|
+
operation: 'upsertOneWaitlistEntry',
|
|
4736
|
+
model: 'WaitlistEntry',
|
|
4737
|
+
error: String(error),
|
|
4738
|
+
recordId: props.id,
|
|
4739
|
+
isRetryable: false,
|
|
4740
|
+
});
|
|
4741
|
+
}
|
|
4689
4742
|
throw error;
|
|
4690
4743
|
}
|
|
4691
4744
|
}
|
|
@@ -6420,13 +6473,25 @@ exports.WaitlistEntry = {
|
|
|
6420
6473
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6421
6474
|
continue;
|
|
6422
6475
|
}
|
|
6423
|
-
// Log structured error details and rethrow
|
|
6424
|
-
|
|
6425
|
-
operation
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6476
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6477
|
+
if (isConnectionError) {
|
|
6478
|
+
logger_1.logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
6479
|
+
operation: 'updateManyWaitlistEntry',
|
|
6480
|
+
model: 'WaitlistEntry',
|
|
6481
|
+
error: String(error),
|
|
6482
|
+
isRetryable: true,
|
|
6483
|
+
transient: true,
|
|
6484
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6485
|
+
});
|
|
6486
|
+
}
|
|
6487
|
+
else {
|
|
6488
|
+
logger_1.logger.error("Database updateMany operation failed", {
|
|
6489
|
+
operation: 'updateManyWaitlistEntry',
|
|
6490
|
+
model: 'WaitlistEntry',
|
|
6491
|
+
error: String(error),
|
|
6492
|
+
isRetryable: false,
|
|
6493
|
+
});
|
|
6494
|
+
}
|
|
6430
6495
|
throw error;
|
|
6431
6496
|
}
|
|
6432
6497
|
}
|
|
@@ -6549,14 +6614,27 @@ exports.WaitlistEntry = {
|
|
|
6549
6614
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6550
6615
|
continue;
|
|
6551
6616
|
}
|
|
6552
|
-
// Log structured error details and rethrow
|
|
6553
|
-
|
|
6554
|
-
operation
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6617
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6618
|
+
if (isConnectionError) {
|
|
6619
|
+
logger_1.logger.warn("Database delete operation failed (transient after retries)", {
|
|
6620
|
+
operation: 'deleteOneWaitlistEntry',
|
|
6621
|
+
model: 'WaitlistEntry',
|
|
6622
|
+
error: String(error),
|
|
6623
|
+
recordId: props.id,
|
|
6624
|
+
isRetryable: true,
|
|
6625
|
+
transient: true,
|
|
6626
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6627
|
+
});
|
|
6628
|
+
}
|
|
6629
|
+
else {
|
|
6630
|
+
logger_1.logger.error("Database delete operation failed", {
|
|
6631
|
+
operation: 'deleteOneWaitlistEntry',
|
|
6632
|
+
model: 'WaitlistEntry',
|
|
6633
|
+
error: String(error),
|
|
6634
|
+
recordId: props.id,
|
|
6635
|
+
isRetryable: false,
|
|
6636
|
+
});
|
|
6637
|
+
}
|
|
6560
6638
|
throw error;
|
|
6561
6639
|
}
|
|
6562
6640
|
}
|
|
@@ -6656,13 +6734,25 @@ exports.WaitlistEntry = {
|
|
|
6656
6734
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6657
6735
|
continue;
|
|
6658
6736
|
}
|
|
6659
|
-
// Log structured error details and rethrow
|
|
6660
|
-
|
|
6661
|
-
operation
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6737
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6738
|
+
if (isConnectionError) {
|
|
6739
|
+
logger_1.logger.warn("Database get operation failed (transient after retries)", {
|
|
6740
|
+
operation: 'getWaitlistEntry',
|
|
6741
|
+
model: 'WaitlistEntry',
|
|
6742
|
+
error: String(error),
|
|
6743
|
+
isRetryable: true,
|
|
6744
|
+
transient: true,
|
|
6745
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6746
|
+
});
|
|
6747
|
+
}
|
|
6748
|
+
else {
|
|
6749
|
+
logger_1.logger.error("Database get operation failed", {
|
|
6750
|
+
operation: 'getWaitlistEntry',
|
|
6751
|
+
model: 'WaitlistEntry',
|
|
6752
|
+
error: String(error),
|
|
6753
|
+
isRetryable: false,
|
|
6754
|
+
});
|
|
6755
|
+
}
|
|
6666
6756
|
throw error;
|
|
6667
6757
|
}
|
|
6668
6758
|
}
|
|
@@ -6749,13 +6839,25 @@ exports.WaitlistEntry = {
|
|
|
6749
6839
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6750
6840
|
continue;
|
|
6751
6841
|
}
|
|
6752
|
-
// Log structured error details and rethrow
|
|
6753
|
-
|
|
6754
|
-
operation
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6842
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6843
|
+
if (isConnectionError) {
|
|
6844
|
+
logger_1.logger.warn("Database getAll operation failed (transient after retries)", {
|
|
6845
|
+
operation: 'getAllWaitlistEntry',
|
|
6846
|
+
model: 'WaitlistEntry',
|
|
6847
|
+
error: String(error),
|
|
6848
|
+
isRetryable: true,
|
|
6849
|
+
transient: true,
|
|
6850
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6851
|
+
});
|
|
6852
|
+
}
|
|
6853
|
+
else {
|
|
6854
|
+
logger_1.logger.error("Database getAll operation failed", {
|
|
6855
|
+
operation: 'getAllWaitlistEntry',
|
|
6856
|
+
model: 'WaitlistEntry',
|
|
6857
|
+
error: String(error),
|
|
6858
|
+
isRetryable: false,
|
|
6859
|
+
});
|
|
6860
|
+
}
|
|
6759
6861
|
throw error;
|
|
6760
6862
|
}
|
|
6761
6863
|
}
|
|
@@ -6869,13 +6971,25 @@ exports.WaitlistEntry = {
|
|
|
6869
6971
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
6870
6972
|
continue;
|
|
6871
6973
|
}
|
|
6872
|
-
// Log structured error details and rethrow
|
|
6873
|
-
|
|
6874
|
-
operation
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6974
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
6975
|
+
if (isConnectionError) {
|
|
6976
|
+
logger_1.logger.warn("Database findMany operation failed (transient after retries)", {
|
|
6977
|
+
operation: 'findManyWaitlistEntry',
|
|
6978
|
+
model: 'WaitlistEntry',
|
|
6979
|
+
error: String(error),
|
|
6980
|
+
isRetryable: true,
|
|
6981
|
+
transient: true,
|
|
6982
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
6983
|
+
});
|
|
6984
|
+
}
|
|
6985
|
+
else {
|
|
6986
|
+
logger_1.logger.error("Database findMany operation failed", {
|
|
6987
|
+
operation: 'findManyWaitlistEntry',
|
|
6988
|
+
model: 'WaitlistEntry',
|
|
6989
|
+
error: String(error),
|
|
6990
|
+
isRetryable: false,
|
|
6991
|
+
});
|
|
6992
|
+
}
|
|
6879
6993
|
throw error;
|
|
6880
6994
|
}
|
|
6881
6995
|
}
|