@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
|
@@ -130,13 +130,28 @@ export const ScheduledOptionOrder = {
|
|
|
130
130
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
131
131
|
continue;
|
|
132
132
|
}
|
|
133
|
-
// Log structured error details and rethrow
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
// Log structured error details and rethrow.
|
|
134
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
135
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
136
|
+
// from true defects.
|
|
137
|
+
if (isConnectionError) {
|
|
138
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
139
|
+
operation: 'createOneScheduledOptionOrder',
|
|
140
|
+
model: 'ScheduledOptionOrder',
|
|
141
|
+
error: String(error),
|
|
142
|
+
isRetryable: true,
|
|
143
|
+
transient: true,
|
|
144
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
logger.error("Database create operation failed", {
|
|
149
|
+
operation: 'createOneScheduledOptionOrder',
|
|
150
|
+
model: 'ScheduledOptionOrder',
|
|
151
|
+
error: String(error),
|
|
152
|
+
isRetryable: false,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
140
155
|
throw error;
|
|
141
156
|
}
|
|
142
157
|
}
|
|
@@ -255,13 +270,25 @@ export const ScheduledOptionOrder = {
|
|
|
255
270
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
256
271
|
continue;
|
|
257
272
|
}
|
|
258
|
-
// Log structured error details and rethrow
|
|
259
|
-
|
|
260
|
-
operation
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
273
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
274
|
+
if (isConnectionError) {
|
|
275
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
276
|
+
operation: 'createManyScheduledOptionOrder',
|
|
277
|
+
model: 'ScheduledOptionOrder',
|
|
278
|
+
error: String(error),
|
|
279
|
+
isRetryable: true,
|
|
280
|
+
transient: true,
|
|
281
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
logger.error("Database createMany operation failed", {
|
|
286
|
+
operation: 'createManyScheduledOptionOrder',
|
|
287
|
+
model: 'ScheduledOptionOrder',
|
|
288
|
+
error: String(error),
|
|
289
|
+
isRetryable: false,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
265
292
|
throw error;
|
|
266
293
|
}
|
|
267
294
|
}
|
|
@@ -389,14 +416,27 @@ export const ScheduledOptionOrder = {
|
|
|
389
416
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
390
417
|
continue;
|
|
391
418
|
}
|
|
392
|
-
// Log structured error details and rethrow
|
|
393
|
-
|
|
394
|
-
operation
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
419
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
420
|
+
if (isConnectionError) {
|
|
421
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
422
|
+
operation: 'updateOneScheduledOptionOrder',
|
|
423
|
+
model: 'ScheduledOptionOrder',
|
|
424
|
+
error: String(error),
|
|
425
|
+
recordId: props.id,
|
|
426
|
+
isRetryable: true,
|
|
427
|
+
transient: true,
|
|
428
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
logger.error("Database update operation failed", {
|
|
433
|
+
operation: 'updateOneScheduledOptionOrder',
|
|
434
|
+
model: 'ScheduledOptionOrder',
|
|
435
|
+
error: String(error),
|
|
436
|
+
recordId: props.id,
|
|
437
|
+
isRetryable: false,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
400
440
|
throw error;
|
|
401
441
|
}
|
|
402
442
|
}
|
|
@@ -528,14 +568,27 @@ export const ScheduledOptionOrder = {
|
|
|
528
568
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
529
569
|
continue;
|
|
530
570
|
}
|
|
531
|
-
// Log structured error details and rethrow
|
|
532
|
-
|
|
533
|
-
operation
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
571
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
572
|
+
if (isConnectionError) {
|
|
573
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
574
|
+
operation: 'upsertOneScheduledOptionOrder',
|
|
575
|
+
model: 'ScheduledOptionOrder',
|
|
576
|
+
error: String(error),
|
|
577
|
+
recordId: props.id,
|
|
578
|
+
isRetryable: true,
|
|
579
|
+
transient: true,
|
|
580
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
logger.error("Database upsert operation failed", {
|
|
585
|
+
operation: 'upsertOneScheduledOptionOrder',
|
|
586
|
+
model: 'ScheduledOptionOrder',
|
|
587
|
+
error: String(error),
|
|
588
|
+
recordId: props.id,
|
|
589
|
+
isRetryable: false,
|
|
590
|
+
});
|
|
591
|
+
}
|
|
539
592
|
throw error;
|
|
540
593
|
}
|
|
541
594
|
}
|
|
@@ -661,13 +714,25 @@ export const ScheduledOptionOrder = {
|
|
|
661
714
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
662
715
|
continue;
|
|
663
716
|
}
|
|
664
|
-
// Log structured error details and rethrow
|
|
665
|
-
|
|
666
|
-
operation
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
717
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
718
|
+
if (isConnectionError) {
|
|
719
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
720
|
+
operation: 'updateManyScheduledOptionOrder',
|
|
721
|
+
model: 'ScheduledOptionOrder',
|
|
722
|
+
error: String(error),
|
|
723
|
+
isRetryable: true,
|
|
724
|
+
transient: true,
|
|
725
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
logger.error("Database updateMany operation failed", {
|
|
730
|
+
operation: 'updateManyScheduledOptionOrder',
|
|
731
|
+
model: 'ScheduledOptionOrder',
|
|
732
|
+
error: String(error),
|
|
733
|
+
isRetryable: false,
|
|
734
|
+
});
|
|
735
|
+
}
|
|
671
736
|
throw error;
|
|
672
737
|
}
|
|
673
738
|
}
|
|
@@ -789,14 +854,27 @@ export const ScheduledOptionOrder = {
|
|
|
789
854
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
790
855
|
continue;
|
|
791
856
|
}
|
|
792
|
-
// Log structured error details and rethrow
|
|
793
|
-
|
|
794
|
-
operation
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
857
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
858
|
+
if (isConnectionError) {
|
|
859
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
860
|
+
operation: 'deleteOneScheduledOptionOrder',
|
|
861
|
+
model: 'ScheduledOptionOrder',
|
|
862
|
+
error: String(error),
|
|
863
|
+
recordId: props.id,
|
|
864
|
+
isRetryable: true,
|
|
865
|
+
transient: true,
|
|
866
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
else {
|
|
870
|
+
logger.error("Database delete operation failed", {
|
|
871
|
+
operation: 'deleteOneScheduledOptionOrder',
|
|
872
|
+
model: 'ScheduledOptionOrder',
|
|
873
|
+
error: String(error),
|
|
874
|
+
recordId: props.id,
|
|
875
|
+
isRetryable: false,
|
|
876
|
+
});
|
|
877
|
+
}
|
|
800
878
|
throw error;
|
|
801
879
|
}
|
|
802
880
|
}
|
|
@@ -894,13 +972,25 @@ export const ScheduledOptionOrder = {
|
|
|
894
972
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
895
973
|
continue;
|
|
896
974
|
}
|
|
897
|
-
// Log structured error details and rethrow
|
|
898
|
-
|
|
899
|
-
operation
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
975
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
976
|
+
if (isConnectionError) {
|
|
977
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
978
|
+
operation: 'getScheduledOptionOrder',
|
|
979
|
+
model: 'ScheduledOptionOrder',
|
|
980
|
+
error: String(error),
|
|
981
|
+
isRetryable: true,
|
|
982
|
+
transient: true,
|
|
983
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
logger.error("Database get operation failed", {
|
|
988
|
+
operation: 'getScheduledOptionOrder',
|
|
989
|
+
model: 'ScheduledOptionOrder',
|
|
990
|
+
error: String(error),
|
|
991
|
+
isRetryable: false,
|
|
992
|
+
});
|
|
993
|
+
}
|
|
904
994
|
throw error;
|
|
905
995
|
}
|
|
906
996
|
}
|
|
@@ -986,13 +1076,25 @@ export const ScheduledOptionOrder = {
|
|
|
986
1076
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
987
1077
|
continue;
|
|
988
1078
|
}
|
|
989
|
-
// Log structured error details and rethrow
|
|
990
|
-
|
|
991
|
-
operation
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1079
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1080
|
+
if (isConnectionError) {
|
|
1081
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1082
|
+
operation: 'getAllScheduledOptionOrder',
|
|
1083
|
+
model: 'ScheduledOptionOrder',
|
|
1084
|
+
error: String(error),
|
|
1085
|
+
isRetryable: true,
|
|
1086
|
+
transient: true,
|
|
1087
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
else {
|
|
1091
|
+
logger.error("Database getAll operation failed", {
|
|
1092
|
+
operation: 'getAllScheduledOptionOrder',
|
|
1093
|
+
model: 'ScheduledOptionOrder',
|
|
1094
|
+
error: String(error),
|
|
1095
|
+
isRetryable: false,
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
996
1098
|
throw error;
|
|
997
1099
|
}
|
|
998
1100
|
}
|
|
@@ -1102,13 +1204,25 @@ export const ScheduledOptionOrder = {
|
|
|
1102
1204
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1103
1205
|
continue;
|
|
1104
1206
|
}
|
|
1105
|
-
// Log structured error details and rethrow
|
|
1106
|
-
|
|
1107
|
-
operation
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1207
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1208
|
+
if (isConnectionError) {
|
|
1209
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1210
|
+
operation: 'findManyScheduledOptionOrder',
|
|
1211
|
+
model: 'ScheduledOptionOrder',
|
|
1212
|
+
error: String(error),
|
|
1213
|
+
isRetryable: true,
|
|
1214
|
+
transient: true,
|
|
1215
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
else {
|
|
1219
|
+
logger.error("Database findMany operation failed", {
|
|
1220
|
+
operation: 'findManyScheduledOptionOrder',
|
|
1221
|
+
model: 'ScheduledOptionOrder',
|
|
1222
|
+
error: String(error),
|
|
1223
|
+
isRetryable: false,
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1112
1226
|
throw error;
|
|
1113
1227
|
}
|
|
1114
1228
|
}
|
package/esm/Session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../src/Session.ts"],"names":[],"mappings":"AAE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