@adaptic/backend-legacy 0.0.918 → 0.0.920
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 +6 -5
- package/ABTest.d.ts +4 -1
- package/Account.cjs +6 -5
- package/Account.d.ts +4 -1
- package/AccountDecisionRecord.cjs +6 -5
- package/AccountDecisionRecord.d.ts +4 -1
- package/AccountLinkingRequest.cjs +6 -5
- package/AccountLinkingRequest.d.ts +4 -1
- package/Action.cjs +6 -5
- package/Action.d.ts +4 -1
- package/Alert.cjs +6 -5
- package/Alert.d.ts +4 -1
- package/Allocation.cjs +6 -5
- package/Allocation.d.ts +4 -1
- package/AlpacaAccount.cjs +6 -5
- package/AlpacaAccount.d.ts +4 -1
- package/AnalyticsConfiguration.cjs +6 -5
- package/AnalyticsConfiguration.d.ts +4 -1
- package/AnalyticsSnapshot.cjs +6 -5
- package/AnalyticsSnapshot.d.ts +4 -1
- package/Asset.cjs +6 -5
- package/Asset.d.ts +4 -1
- package/AuditLog.cjs +6 -5
- package/AuditLog.d.ts +4 -1
- package/Authenticator.cjs +6 -5
- package/Authenticator.d.ts +4 -1
- package/Configuration.cjs +6 -5
- package/Configuration.d.ts +4 -1
- package/ConflictEvent.cjs +6 -5
- package/ConflictEvent.d.ts +4 -1
- package/ConnectionHealthSnapshot.cjs +6 -5
- package/ConnectionHealthSnapshot.d.ts +4 -1
- package/Customer.cjs +6 -5
- package/Customer.d.ts +4 -1
- package/DeadLetterMessage.cjs +6 -5
- package/DeadLetterMessage.d.ts +4 -1
- package/DecisionMemorySummary.cjs +6 -5
- package/DecisionMemorySummary.d.ts +4 -1
- package/EconomicEvent.cjs +6 -5
- package/EconomicEvent.d.ts +4 -1
- package/EquityBar.cjs +6 -5
- package/EquityBar.d.ts +4 -1
- package/Event.cjs +6 -5
- package/Event.d.ts +4 -1
- package/EventSnapshot.cjs +6 -5
- package/EventSnapshot.d.ts +4 -1
- package/FeatureImportanceAnalysis.cjs +6 -5
- package/FeatureImportanceAnalysis.d.ts +4 -1
- package/InstitutionalFlowSignal.cjs +6 -5
- package/InstitutionalFlowSignal.d.ts +4 -1
- package/InstitutionalHolding.cjs +6 -5
- package/InstitutionalHolding.d.ts +4 -1
- package/InstitutionalSentimentAlerts.cjs +6 -5
- package/InstitutionalSentimentAlerts.d.ts +4 -1
- package/InstitutionalSentimentErrors.cjs +6 -5
- package/InstitutionalSentimentErrors.d.ts +4 -1
- package/InstitutionalSentimentHistory.cjs +6 -5
- package/InstitutionalSentimentHistory.d.ts +4 -1
- package/InstitutionalSentimentMetrics.cjs +6 -5
- package/InstitutionalSentimentMetrics.d.ts +4 -1
- package/InviteToken.cjs +6 -5
- package/InviteToken.d.ts +4 -1
- package/LinkedProvider.cjs +6 -5
- package/LinkedProvider.d.ts +4 -1
- package/LlmConfiguration.cjs +6 -5
- package/LlmConfiguration.d.ts +4 -1
- package/MLTrainingData.cjs +6 -5
- package/MLTrainingData.d.ts +4 -1
- package/MarketSentiment.cjs +6 -5
- package/MarketSentiment.d.ts +4 -1
- package/ModelArtifact.cjs +6 -5
- package/ModelArtifact.d.ts +4 -1
- package/ModelVersion.cjs +6 -5
- package/ModelVersion.d.ts +4 -1
- package/ModelVersionArtifact.cjs +6 -5
- package/ModelVersionArtifact.d.ts +4 -1
- package/NewsArticle.cjs +6 -5
- package/NewsArticle.d.ts +4 -1
- package/NewsArticleAssetSentiment.cjs +6 -5
- package/NewsArticleAssetSentiment.d.ts +4 -1
- package/OptionsContract.cjs +6 -5
- package/OptionsContract.d.ts +4 -1
- package/OptionsGreeksHistory.cjs +6 -5
- package/OptionsGreeksHistory.d.ts +4 -1
- package/OptionsPosition.cjs +6 -5
- package/OptionsPosition.d.ts +4 -1
- package/OptionsTradeExecution.cjs +6 -5
- package/OptionsTradeExecution.d.ts +4 -1
- package/PolicyOverlay.cjs +6 -5
- package/PolicyOverlay.d.ts +4 -1
- package/PortfolioGreeksHistory.cjs +6 -5
- package/PortfolioGreeksHistory.d.ts +4 -1
- package/ScheduledOptionOrder.cjs +6 -5
- package/ScheduledOptionOrder.d.ts +4 -1
- package/Session.cjs +6 -5
- package/Session.d.ts +4 -1
- package/SignalGeneratorMetrics.cjs +6 -5
- package/SignalGeneratorMetrics.d.ts +4 -1
- package/SignalLineage.cjs +6 -5
- package/SignalLineage.d.ts +4 -1
- package/SignalOutcome.cjs +6 -5
- package/SignalOutcome.d.ts +4 -1
- package/SignalPriorityQueue.cjs +6 -5
- package/SignalPriorityQueue.d.ts +4 -1
- package/SyncEvent.cjs +6 -5
- package/SyncEvent.d.ts +4 -1
- package/SystemAlert.cjs +6 -5
- package/SystemAlert.d.ts +4 -1
- package/Trade.cjs +6 -5
- package/Trade.d.ts +4 -1
- package/TradeAuditEvent.cjs +6 -5
- package/TradeAuditEvent.d.ts +4 -1
- package/TradeExecutionHistory.cjs +9 -5
- package/TradeExecutionHistory.d.ts +4 -1
- package/TradingPolicy.cjs +6 -5
- package/TradingPolicy.d.ts +4 -1
- package/User.cjs +6 -5
- package/User.d.ts +4 -1
- package/VerificationToken.cjs +6 -5
- package/VerificationToken.d.ts +4 -1
- package/WaitlistEntry.cjs +6 -5
- package/WaitlistEntry.d.ts +4 -1
- package/esm/ABTest.d.ts +4 -1
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +6 -5
- package/esm/Account.d.ts +4 -1
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +6 -5
- package/esm/AccountDecisionRecord.d.ts +4 -1
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +6 -5
- package/esm/AccountLinkingRequest.d.ts +4 -1
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +6 -5
- package/esm/Action.d.ts +4 -1
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +6 -5
- package/esm/Alert.d.ts +4 -1
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +6 -5
- package/esm/Allocation.d.ts +4 -1
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +6 -5
- package/esm/AlpacaAccount.d.ts +4 -1
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +6 -5
- package/esm/AnalyticsConfiguration.d.ts +4 -1
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +6 -5
- package/esm/AnalyticsSnapshot.d.ts +4 -1
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +6 -5
- package/esm/Asset.d.ts +4 -1
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +6 -5
- package/esm/AuditLog.d.ts +4 -1
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +6 -5
- package/esm/Authenticator.d.ts +4 -1
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +6 -5
- package/esm/Configuration.d.ts +4 -1
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +6 -5
- package/esm/ConflictEvent.d.ts +4 -1
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +6 -5
- package/esm/ConnectionHealthSnapshot.d.ts +4 -1
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +6 -5
- package/esm/Customer.d.ts +4 -1
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +6 -5
- package/esm/DeadLetterMessage.d.ts +4 -1
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +6 -5
- package/esm/DecisionMemorySummary.d.ts +4 -1
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +6 -5
- package/esm/EconomicEvent.d.ts +4 -1
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +6 -5
- package/esm/EquityBar.d.ts +4 -1
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +6 -5
- package/esm/Event.d.ts +4 -1
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +6 -5
- package/esm/EventSnapshot.d.ts +4 -1
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +6 -5
- package/esm/FeatureImportanceAnalysis.d.ts +4 -1
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +6 -5
- package/esm/InstitutionalFlowSignal.d.ts +4 -1
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +6 -5
- package/esm/InstitutionalHolding.d.ts +4 -1
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +6 -5
- package/esm/InstitutionalSentimentAlerts.d.ts +4 -1
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +6 -5
- package/esm/InstitutionalSentimentErrors.d.ts +4 -1
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +6 -5
- package/esm/InstitutionalSentimentHistory.d.ts +4 -1
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +6 -5
- package/esm/InstitutionalSentimentMetrics.d.ts +4 -1
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +6 -5
- package/esm/InviteToken.d.ts +4 -1
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +6 -5
- package/esm/LinkedProvider.d.ts +4 -1
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +6 -5
- package/esm/LlmConfiguration.d.ts +4 -1
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +6 -5
- package/esm/MLTrainingData.d.ts +4 -1
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +6 -5
- package/esm/MarketSentiment.d.ts +4 -1
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +6 -5
- package/esm/ModelArtifact.d.ts +4 -1
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +6 -5
- package/esm/ModelVersion.d.ts +4 -1
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +6 -5
- package/esm/ModelVersionArtifact.d.ts +4 -1
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +6 -5
- package/esm/NewsArticle.d.ts +4 -1
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +6 -5
- package/esm/NewsArticleAssetSentiment.d.ts +4 -1
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +6 -5
- package/esm/OptionsContract.d.ts +4 -1
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +6 -5
- package/esm/OptionsGreeksHistory.d.ts +4 -1
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +6 -5
- package/esm/OptionsPosition.d.ts +4 -1
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +6 -5
- package/esm/OptionsTradeExecution.d.ts +4 -1
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +6 -5
- package/esm/PolicyOverlay.d.ts +4 -1
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +6 -5
- package/esm/PortfolioGreeksHistory.d.ts +4 -1
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +6 -5
- package/esm/ScheduledOptionOrder.d.ts +4 -1
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +6 -5
- package/esm/Session.d.ts +4 -1
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +6 -5
- package/esm/SignalGeneratorMetrics.d.ts +4 -1
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +6 -5
- package/esm/SignalLineage.d.ts +4 -1
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +6 -5
- package/esm/SignalOutcome.d.ts +4 -1
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +6 -5
- package/esm/SignalPriorityQueue.d.ts +4 -1
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +6 -5
- package/esm/SyncEvent.d.ts +4 -1
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +6 -5
- package/esm/SystemAlert.d.ts +4 -1
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +6 -5
- package/esm/Trade.d.ts +4 -1
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +6 -5
- package/esm/TradeAuditEvent.d.ts +4 -1
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +6 -5
- package/esm/TradeExecutionHistory.d.ts +4 -1
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +9 -5
- package/esm/TradingPolicy.d.ts +4 -1
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +6 -5
- package/esm/User.d.ts +4 -1
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +6 -5
- package/esm/VerificationToken.d.ts +4 -1
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +6 -5
- package/esm/WaitlistEntry.d.ts +4 -1
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +6 -5
- package/esm/index.d.ts +183 -61
- package/esm/index.d.ts.map +1 -1
- package/index.d.ts +183 -61
- package/package.json +1 -1
package/LinkedProvider.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const LinkedProvider: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of LinkedProvider objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: LinkedProviderType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: LinkedProviderType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/LlmConfiguration.cjs
CHANGED
|
@@ -583,9 +583,10 @@ exports.LlmConfiguration = {
|
|
|
583
583
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
584
584
|
* @param props - Array of LlmConfiguration objects for the new records.
|
|
585
585
|
* @param globalClient - Apollo Client instance.
|
|
586
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
586
587
|
* @returns The count of created records or null.
|
|
587
588
|
*/
|
|
588
|
-
async createMany(props, globalClient) {
|
|
589
|
+
async createMany(props, globalClient, options) {
|
|
589
590
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
590
591
|
// Maximum number of retries for database connection issues
|
|
591
592
|
const MAX_RETRIES = 3;
|
|
@@ -602,8 +603,8 @@ exports.LlmConfiguration = {
|
|
|
602
603
|
]);
|
|
603
604
|
const { gql, ApolloError } = modules;
|
|
604
605
|
const CREATE_MANY_LLMCONFIGURATION = gql `
|
|
605
|
-
mutation createManyLlmConfiguration($data: [LlmConfigurationCreateManyInput!]
|
|
606
|
-
createManyLlmConfiguration(data: $data) {
|
|
606
|
+
mutation createManyLlmConfiguration($data: [LlmConfigurationCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
607
|
+
createManyLlmConfiguration(data: $data, skipDuplicates: $skipDuplicates) {
|
|
607
608
|
count
|
|
608
609
|
}
|
|
609
610
|
}`;
|
|
@@ -625,6 +626,7 @@ exports.LlmConfiguration = {
|
|
|
625
626
|
xaiApiKey: prop.xaiApiKey !== undefined ? prop.xaiApiKey : undefined,
|
|
626
627
|
geminiApiKey: prop.geminiApiKey !== undefined ? prop.geminiApiKey : undefined,
|
|
627
628
|
})),
|
|
629
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
628
630
|
};
|
|
629
631
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
630
632
|
const response = await client.mutate({
|
|
@@ -655,10 +657,9 @@ exports.LlmConfiguration = {
|
|
|
655
657
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
656
658
|
if (isConstraintViolation) {
|
|
657
659
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
658
|
-
logger_1.logger.
|
|
660
|
+
logger_1.logger.warn("Duplicate key in createManyLlmConfiguration (expected during overlapping fetches)", {
|
|
659
661
|
operation: 'createManyLlmConfiguration',
|
|
660
662
|
model: 'LlmConfiguration',
|
|
661
|
-
error: String(error),
|
|
662
663
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
663
664
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
664
665
|
isRetryable: false,
|
package/LlmConfiguration.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const LlmConfiguration: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of LlmConfiguration objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: LlmConfigurationType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: LlmConfigurationType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/MLTrainingData.cjs
CHANGED
|
@@ -226,9 +226,10 @@ exports.MLTrainingData = {
|
|
|
226
226
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
227
227
|
* @param props - Array of MLTrainingData objects for the new records.
|
|
228
228
|
* @param globalClient - Apollo Client instance.
|
|
229
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
229
230
|
* @returns The count of created records or null.
|
|
230
231
|
*/
|
|
231
|
-
async createMany(props, globalClient) {
|
|
232
|
+
async createMany(props, globalClient, options) {
|
|
232
233
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
233
234
|
// Maximum number of retries for database connection issues
|
|
234
235
|
const MAX_RETRIES = 3;
|
|
@@ -245,8 +246,8 @@ exports.MLTrainingData = {
|
|
|
245
246
|
]);
|
|
246
247
|
const { gql, ApolloError } = modules;
|
|
247
248
|
const CREATE_MANY_MLTRAININGDATA = gql `
|
|
248
|
-
mutation createManyMLTrainingData($data: [MLTrainingDataCreateManyInput!]
|
|
249
|
-
createManyMLTrainingData(data: $data) {
|
|
249
|
+
mutation createManyMLTrainingData($data: [MLTrainingDataCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
250
|
+
createManyMLTrainingData(data: $data, skipDuplicates: $skipDuplicates) {
|
|
250
251
|
count
|
|
251
252
|
}
|
|
252
253
|
}`;
|
|
@@ -301,6 +302,7 @@ exports.MLTrainingData = {
|
|
|
301
302
|
attributionSkillVsLuck: prop.attributionSkillVsLuck !== undefined ? prop.attributionSkillVsLuck : undefined,
|
|
302
303
|
attributionInformationRatio: prop.attributionInformationRatio !== undefined ? prop.attributionInformationRatio : undefined,
|
|
303
304
|
})),
|
|
305
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
304
306
|
};
|
|
305
307
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
306
308
|
const response = await client.mutate({
|
|
@@ -331,10 +333,9 @@ exports.MLTrainingData = {
|
|
|
331
333
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
332
334
|
if (isConstraintViolation) {
|
|
333
335
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
334
|
-
logger_1.logger.
|
|
336
|
+
logger_1.logger.warn("Duplicate key in createManyMLTrainingData (expected during overlapping fetches)", {
|
|
335
337
|
operation: 'createManyMLTrainingData',
|
|
336
338
|
model: 'MLTrainingData',
|
|
337
|
-
error: String(error),
|
|
338
339
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
339
340
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
340
341
|
isRetryable: false,
|
package/MLTrainingData.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const MLTrainingData: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of MLTrainingData objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: MLTrainingDataType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: MLTrainingDataType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/MarketSentiment.cjs
CHANGED
|
@@ -136,9 +136,10 @@ exports.MarketSentiment = {
|
|
|
136
136
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
137
137
|
* @param props - Array of MarketSentiment objects for the new records.
|
|
138
138
|
* @param globalClient - Apollo Client instance.
|
|
139
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
139
140
|
* @returns The count of created records or null.
|
|
140
141
|
*/
|
|
141
|
-
async createMany(props, globalClient) {
|
|
142
|
+
async createMany(props, globalClient, options) {
|
|
142
143
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
143
144
|
// Maximum number of retries for database connection issues
|
|
144
145
|
const MAX_RETRIES = 3;
|
|
@@ -155,8 +156,8 @@ exports.MarketSentiment = {
|
|
|
155
156
|
]);
|
|
156
157
|
const { gql, ApolloError } = modules;
|
|
157
158
|
const CREATE_MANY_MARKETSENTIMENT = gql `
|
|
158
|
-
mutation createManyMarketSentiment($data: [MarketSentimentCreateManyInput!]
|
|
159
|
-
createManyMarketSentiment(data: $data) {
|
|
159
|
+
mutation createManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
160
|
+
createManyMarketSentiment(data: $data, skipDuplicates: $skipDuplicates) {
|
|
160
161
|
count
|
|
161
162
|
}
|
|
162
163
|
}`;
|
|
@@ -166,6 +167,7 @@ exports.MarketSentiment = {
|
|
|
166
167
|
description: prop.description !== undefined ? prop.description : undefined,
|
|
167
168
|
longDescription: prop.longDescription !== undefined ? prop.longDescription : undefined,
|
|
168
169
|
})),
|
|
170
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
169
171
|
};
|
|
170
172
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
171
173
|
const response = await client.mutate({
|
|
@@ -196,10 +198,9 @@ exports.MarketSentiment = {
|
|
|
196
198
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
197
199
|
if (isConstraintViolation) {
|
|
198
200
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
199
|
-
logger_1.logger.
|
|
201
|
+
logger_1.logger.warn("Duplicate key in createManyMarketSentiment (expected during overlapping fetches)", {
|
|
200
202
|
operation: 'createManyMarketSentiment',
|
|
201
203
|
model: 'MarketSentiment',
|
|
202
|
-
error: String(error),
|
|
203
204
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
204
205
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
205
206
|
isRetryable: false,
|
package/MarketSentiment.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const MarketSentiment: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of MarketSentiment objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: MarketSentimentType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: MarketSentimentType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/ModelArtifact.cjs
CHANGED
|
@@ -513,9 +513,10 @@ exports.ModelArtifact = {
|
|
|
513
513
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
514
514
|
* @param props - Array of ModelArtifact objects for the new records.
|
|
515
515
|
* @param globalClient - Apollo Client instance.
|
|
516
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
516
517
|
* @returns The count of created records or null.
|
|
517
518
|
*/
|
|
518
|
-
async createMany(props, globalClient) {
|
|
519
|
+
async createMany(props, globalClient, options) {
|
|
519
520
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
520
521
|
// Maximum number of retries for database connection issues
|
|
521
522
|
const MAX_RETRIES = 3;
|
|
@@ -532,8 +533,8 @@ exports.ModelArtifact = {
|
|
|
532
533
|
]);
|
|
533
534
|
const { gql, ApolloError } = modules;
|
|
534
535
|
const CREATE_MANY_MODELARTIFACT = gql `
|
|
535
|
-
mutation createManyModelArtifact($data: [ModelArtifactCreateManyInput!]
|
|
536
|
-
createManyModelArtifact(data: $data) {
|
|
536
|
+
mutation createManyModelArtifact($data: [ModelArtifactCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
537
|
+
createManyModelArtifact(data: $data, skipDuplicates: $skipDuplicates) {
|
|
537
538
|
count
|
|
538
539
|
}
|
|
539
540
|
}`;
|
|
@@ -554,6 +555,7 @@ exports.ModelArtifact = {
|
|
|
554
555
|
metadataDatasetSize: prop.metadataDatasetSize !== undefined ? prop.metadataDatasetSize : undefined,
|
|
555
556
|
metadataHyperparameters: prop.metadataHyperparameters !== undefined ? prop.metadataHyperparameters : undefined,
|
|
556
557
|
})),
|
|
558
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
557
559
|
};
|
|
558
560
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
559
561
|
const response = await client.mutate({
|
|
@@ -584,10 +586,9 @@ exports.ModelArtifact = {
|
|
|
584
586
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
585
587
|
if (isConstraintViolation) {
|
|
586
588
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
587
|
-
logger_1.logger.
|
|
589
|
+
logger_1.logger.warn("Duplicate key in createManyModelArtifact (expected during overlapping fetches)", {
|
|
588
590
|
operation: 'createManyModelArtifact',
|
|
589
591
|
model: 'ModelArtifact',
|
|
590
|
-
error: String(error),
|
|
591
592
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
592
593
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
593
594
|
isRetryable: false,
|
package/ModelArtifact.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const ModelArtifact: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of ModelArtifact objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: ModelArtifactType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: ModelArtifactType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/ModelVersion.cjs
CHANGED
|
@@ -2065,9 +2065,10 @@ exports.ModelVersion = {
|
|
|
2065
2065
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
2066
2066
|
* @param props - Array of ModelVersion objects for the new records.
|
|
2067
2067
|
* @param globalClient - Apollo Client instance.
|
|
2068
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
2068
2069
|
* @returns The count of created records or null.
|
|
2069
2070
|
*/
|
|
2070
|
-
async createMany(props, globalClient) {
|
|
2071
|
+
async createMany(props, globalClient, options) {
|
|
2071
2072
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2072
2073
|
// Maximum number of retries for database connection issues
|
|
2073
2074
|
const MAX_RETRIES = 3;
|
|
@@ -2084,8 +2085,8 @@ exports.ModelVersion = {
|
|
|
2084
2085
|
]);
|
|
2085
2086
|
const { gql, ApolloError } = modules;
|
|
2086
2087
|
const CREATE_MANY_MODELVERSION = gql `
|
|
2087
|
-
mutation createManyModelVersion($data: [ModelVersionCreateManyInput!]
|
|
2088
|
-
createManyModelVersion(data: $data) {
|
|
2088
|
+
mutation createManyModelVersion($data: [ModelVersionCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
2089
|
+
createManyModelVersion(data: $data, skipDuplicates: $skipDuplicates) {
|
|
2089
2090
|
count
|
|
2090
2091
|
}
|
|
2091
2092
|
}`;
|
|
@@ -2126,6 +2127,7 @@ exports.ModelVersion = {
|
|
|
2126
2127
|
deployedAt: prop.deployedAt !== undefined ? prop.deployedAt : undefined,
|
|
2127
2128
|
deprecatedAt: prop.deprecatedAt !== undefined ? prop.deprecatedAt : undefined,
|
|
2128
2129
|
})),
|
|
2130
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
2129
2131
|
};
|
|
2130
2132
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
2131
2133
|
const response = await client.mutate({
|
|
@@ -2156,10 +2158,9 @@ exports.ModelVersion = {
|
|
|
2156
2158
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
2157
2159
|
if (isConstraintViolation) {
|
|
2158
2160
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
2159
|
-
logger_1.logger.
|
|
2161
|
+
logger_1.logger.warn("Duplicate key in createManyModelVersion (expected during overlapping fetches)", {
|
|
2160
2162
|
operation: 'createManyModelVersion',
|
|
2161
2163
|
model: 'ModelVersion',
|
|
2162
|
-
error: String(error),
|
|
2163
2164
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
2164
2165
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
2165
2166
|
isRetryable: false,
|
package/ModelVersion.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const ModelVersion: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of ModelVersion objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: ModelVersionType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: ModelVersionType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/ModelVersionArtifact.cjs
CHANGED
|
@@ -1004,9 +1004,10 @@ exports.ModelVersionArtifact = {
|
|
|
1004
1004
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
1005
1005
|
* @param props - Array of ModelVersionArtifact objects for the new records.
|
|
1006
1006
|
* @param globalClient - Apollo Client instance.
|
|
1007
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
1007
1008
|
* @returns The count of created records or null.
|
|
1008
1009
|
*/
|
|
1009
|
-
async createMany(props, globalClient) {
|
|
1010
|
+
async createMany(props, globalClient, options) {
|
|
1010
1011
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1011
1012
|
// Maximum number of retries for database connection issues
|
|
1012
1013
|
const MAX_RETRIES = 3;
|
|
@@ -1023,8 +1024,8 @@ exports.ModelVersionArtifact = {
|
|
|
1023
1024
|
]);
|
|
1024
1025
|
const { gql, ApolloError } = modules;
|
|
1025
1026
|
const CREATE_MANY_MODELVERSIONARTIFACT = gql `
|
|
1026
|
-
mutation createManyModelVersionArtifact($data: [ModelVersionArtifactCreateManyInput!]
|
|
1027
|
-
createManyModelVersionArtifact(data: $data) {
|
|
1027
|
+
mutation createManyModelVersionArtifact($data: [ModelVersionArtifactCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
1028
|
+
createManyModelVersionArtifact(data: $data, skipDuplicates: $skipDuplicates) {
|
|
1028
1029
|
count
|
|
1029
1030
|
}
|
|
1030
1031
|
}`;
|
|
@@ -1033,6 +1034,7 @@ exports.ModelVersionArtifact = {
|
|
|
1033
1034
|
modelVersionId: prop.modelVersionId !== undefined ? prop.modelVersionId : undefined,
|
|
1034
1035
|
modelArtifactId: prop.modelArtifactId !== undefined ? prop.modelArtifactId : undefined,
|
|
1035
1036
|
})),
|
|
1037
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
1036
1038
|
};
|
|
1037
1039
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
1038
1040
|
const response = await client.mutate({
|
|
@@ -1063,10 +1065,9 @@ exports.ModelVersionArtifact = {
|
|
|
1063
1065
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
1064
1066
|
if (isConstraintViolation) {
|
|
1065
1067
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
1066
|
-
logger_1.logger.
|
|
1068
|
+
logger_1.logger.warn("Duplicate key in createManyModelVersionArtifact (expected during overlapping fetches)", {
|
|
1067
1069
|
operation: 'createManyModelVersionArtifact',
|
|
1068
1070
|
model: 'ModelVersionArtifact',
|
|
1069
|
-
error: String(error),
|
|
1070
1071
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
1071
1072
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
1072
1073
|
isRetryable: false,
|
|
@@ -20,9 +20,12 @@ export declare const ModelVersionArtifact: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of ModelVersionArtifact objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: ModelVersionArtifactType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: ModelVersionArtifactType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/NewsArticle.cjs
CHANGED
|
@@ -299,9 +299,10 @@ exports.NewsArticle = {
|
|
|
299
299
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
300
300
|
* @param props - Array of NewsArticle objects for the new records.
|
|
301
301
|
* @param globalClient - Apollo Client instance.
|
|
302
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
302
303
|
* @returns The count of created records or null.
|
|
303
304
|
*/
|
|
304
|
-
async createMany(props, globalClient) {
|
|
305
|
+
async createMany(props, globalClient, options) {
|
|
305
306
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
306
307
|
// Maximum number of retries for database connection issues
|
|
307
308
|
const MAX_RETRIES = 3;
|
|
@@ -318,8 +319,8 @@ exports.NewsArticle = {
|
|
|
318
319
|
]);
|
|
319
320
|
const { gql, ApolloError } = modules;
|
|
320
321
|
const CREATE_MANY_NEWSARTICLE = gql `
|
|
321
|
-
mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]
|
|
322
|
-
createManyNewsArticle(data: $data) {
|
|
322
|
+
mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
323
|
+
createManyNewsArticle(data: $data, skipDuplicates: $skipDuplicates) {
|
|
323
324
|
count
|
|
324
325
|
}
|
|
325
326
|
}`;
|
|
@@ -343,6 +344,7 @@ exports.NewsArticle = {
|
|
|
343
344
|
} : undefined,
|
|
344
345
|
logo: prop.logo !== undefined ? prop.logo : undefined,
|
|
345
346
|
})),
|
|
347
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
346
348
|
};
|
|
347
349
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
348
350
|
const response = await client.mutate({
|
|
@@ -373,10 +375,9 @@ exports.NewsArticle = {
|
|
|
373
375
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
374
376
|
if (isConstraintViolation) {
|
|
375
377
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
376
|
-
logger_1.logger.
|
|
378
|
+
logger_1.logger.warn("Duplicate key in createManyNewsArticle (expected during overlapping fetches)", {
|
|
377
379
|
operation: 'createManyNewsArticle',
|
|
378
380
|
model: 'NewsArticle',
|
|
379
|
-
error: String(error),
|
|
380
381
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
381
382
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
382
383
|
isRetryable: false,
|
package/NewsArticle.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const NewsArticle: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of NewsArticle objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: NewsArticleType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: NewsArticleType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
|
@@ -290,9 +290,10 @@ exports.NewsArticleAssetSentiment = {
|
|
|
290
290
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
291
291
|
* @param props - Array of NewsArticleAssetSentiment objects for the new records.
|
|
292
292
|
* @param globalClient - Apollo Client instance.
|
|
293
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
293
294
|
* @returns The count of created records or null.
|
|
294
295
|
*/
|
|
295
|
-
async createMany(props, globalClient) {
|
|
296
|
+
async createMany(props, globalClient, options) {
|
|
296
297
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
297
298
|
// Maximum number of retries for database connection issues
|
|
298
299
|
const MAX_RETRIES = 3;
|
|
@@ -309,8 +310,8 @@ exports.NewsArticleAssetSentiment = {
|
|
|
309
310
|
]);
|
|
310
311
|
const { gql, ApolloError } = modules;
|
|
311
312
|
const CREATE_MANY_NEWSARTICLEASSETSENTIMENT = gql `
|
|
312
|
-
mutation createManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]
|
|
313
|
-
createManyNewsArticleAssetSentiment(data: $data) {
|
|
313
|
+
mutation createManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
314
|
+
createManyNewsArticleAssetSentiment(data: $data, skipDuplicates: $skipDuplicates) {
|
|
314
315
|
count
|
|
315
316
|
}
|
|
316
317
|
}`;
|
|
@@ -323,6 +324,7 @@ exports.NewsArticleAssetSentiment = {
|
|
|
323
324
|
sentimentScore: prop.sentimentScore !== undefined ? prop.sentimentScore : undefined,
|
|
324
325
|
sentimentLabel: prop.sentimentLabel !== undefined ? prop.sentimentLabel : undefined,
|
|
325
326
|
})),
|
|
327
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
326
328
|
};
|
|
327
329
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
328
330
|
const response = await client.mutate({
|
|
@@ -353,10 +355,9 @@ exports.NewsArticleAssetSentiment = {
|
|
|
353
355
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
354
356
|
if (isConstraintViolation) {
|
|
355
357
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
356
|
-
logger_1.logger.
|
|
358
|
+
logger_1.logger.warn("Duplicate key in createManyNewsArticleAssetSentiment (expected during overlapping fetches)", {
|
|
357
359
|
operation: 'createManyNewsArticleAssetSentiment',
|
|
358
360
|
model: 'NewsArticleAssetSentiment',
|
|
359
|
-
error: String(error),
|
|
360
361
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
361
362
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
362
363
|
isRetryable: false,
|
|
@@ -20,9 +20,12 @@ export declare const NewsArticleAssetSentiment: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of NewsArticleAssetSentiment objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/OptionsContract.cjs
CHANGED
|
@@ -475,9 +475,10 @@ exports.OptionsContract = {
|
|
|
475
475
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
476
476
|
* @param props - Array of OptionsContract objects for the new records.
|
|
477
477
|
* @param globalClient - Apollo Client instance.
|
|
478
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
478
479
|
* @returns The count of created records or null.
|
|
479
480
|
*/
|
|
480
|
-
async createMany(props, globalClient) {
|
|
481
|
+
async createMany(props, globalClient, options) {
|
|
481
482
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
482
483
|
// Maximum number of retries for database connection issues
|
|
483
484
|
const MAX_RETRIES = 3;
|
|
@@ -494,8 +495,8 @@ exports.OptionsContract = {
|
|
|
494
495
|
]);
|
|
495
496
|
const { gql, ApolloError } = modules;
|
|
496
497
|
const CREATE_MANY_OPTIONSCONTRACT = gql `
|
|
497
|
-
mutation createManyOptionsContract($data: [OptionsContractCreateManyInput!]
|
|
498
|
-
createManyOptionsContract(data: $data) {
|
|
498
|
+
mutation createManyOptionsContract($data: [OptionsContractCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
499
|
+
createManyOptionsContract(data: $data, skipDuplicates: $skipDuplicates) {
|
|
499
500
|
count
|
|
500
501
|
}
|
|
501
502
|
}`;
|
|
@@ -514,6 +515,7 @@ exports.OptionsContract = {
|
|
|
514
515
|
metadata: prop.metadata !== undefined ? prop.metadata : undefined,
|
|
515
516
|
dataTimestamp: prop.dataTimestamp !== undefined ? prop.dataTimestamp : undefined,
|
|
516
517
|
})),
|
|
518
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
517
519
|
};
|
|
518
520
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
519
521
|
const response = await client.mutate({
|
|
@@ -544,10 +546,9 @@ exports.OptionsContract = {
|
|
|
544
546
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
545
547
|
if (isConstraintViolation) {
|
|
546
548
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
547
|
-
logger_1.logger.
|
|
549
|
+
logger_1.logger.warn("Duplicate key in createManyOptionsContract (expected during overlapping fetches)", {
|
|
548
550
|
operation: 'createManyOptionsContract',
|
|
549
551
|
model: 'OptionsContract',
|
|
550
|
-
error: String(error),
|
|
551
552
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
552
553
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
553
554
|
isRetryable: false,
|
package/OptionsContract.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const OptionsContract: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of OptionsContract objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: OptionsContractType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: OptionsContractType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|
package/OptionsGreeksHistory.cjs
CHANGED
|
@@ -353,9 +353,10 @@ exports.OptionsGreeksHistory = {
|
|
|
353
353
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
354
354
|
* @param props - Array of OptionsGreeksHistory objects for the new records.
|
|
355
355
|
* @param globalClient - Apollo Client instance.
|
|
356
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
356
357
|
* @returns The count of created records or null.
|
|
357
358
|
*/
|
|
358
|
-
async createMany(props, globalClient) {
|
|
359
|
+
async createMany(props, globalClient, options) {
|
|
359
360
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
360
361
|
// Maximum number of retries for database connection issues
|
|
361
362
|
const MAX_RETRIES = 3;
|
|
@@ -372,8 +373,8 @@ exports.OptionsGreeksHistory = {
|
|
|
372
373
|
]);
|
|
373
374
|
const { gql, ApolloError } = modules;
|
|
374
375
|
const CREATE_MANY_OPTIONSGREEKSHISTORY = gql `
|
|
375
|
-
mutation createManyOptionsGreeksHistory($data: [OptionsGreeksHistoryCreateManyInput!]
|
|
376
|
-
createManyOptionsGreeksHistory(data: $data) {
|
|
376
|
+
mutation createManyOptionsGreeksHistory($data: [OptionsGreeksHistoryCreateManyInput!]!, $skipDuplicates: Boolean) {
|
|
377
|
+
createManyOptionsGreeksHistory(data: $data, skipDuplicates: $skipDuplicates) {
|
|
377
378
|
count
|
|
378
379
|
}
|
|
379
380
|
}`;
|
|
@@ -386,6 +387,7 @@ exports.OptionsGreeksHistory = {
|
|
|
386
387
|
daysToExpiration: prop.daysToExpiration !== undefined ? prop.daysToExpiration : undefined,
|
|
387
388
|
metadata: prop.metadata !== undefined ? prop.metadata : undefined,
|
|
388
389
|
})),
|
|
390
|
+
...((options === null || options === void 0 ? void 0 : options.skipDuplicates) ? { skipDuplicates: true } : {}),
|
|
389
391
|
};
|
|
390
392
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
391
393
|
const response = await client.mutate({
|
|
@@ -416,10 +418,9 @@ exports.OptionsGreeksHistory = {
|
|
|
416
418
|
((_h = error.message) === null || _h === void 0 ? void 0 : _h.includes('P2003'));
|
|
417
419
|
if (isConstraintViolation) {
|
|
418
420
|
const constraintMatch = (_j = error.message) === null || _j === void 0 ? void 0 : _j.match(/constraint\s+"([^"]+)"/);
|
|
419
|
-
logger_1.logger.
|
|
421
|
+
logger_1.logger.warn("Duplicate key in createManyOptionsGreeksHistory (expected during overlapping fetches)", {
|
|
420
422
|
operation: 'createManyOptionsGreeksHistory',
|
|
421
423
|
model: 'OptionsGreeksHistory',
|
|
422
|
-
error: String(error),
|
|
423
424
|
constraintName: constraintMatch ? constraintMatch[1] : undefined,
|
|
424
425
|
errorCategory: 'CONSTRAINT_VIOLATION',
|
|
425
426
|
isRetryable: false,
|
|
@@ -20,9 +20,12 @@ export declare const OptionsGreeksHistory: {
|
|
|
20
20
|
* Enhanced with connection resilience against Prisma connection errors.
|
|
21
21
|
* @param props - Array of OptionsGreeksHistory objects for the new records.
|
|
22
22
|
* @param globalClient - Apollo Client instance.
|
|
23
|
+
* @param options - Optional control flags (e.g., skipDuplicates).
|
|
23
24
|
* @returns The count of created records or null.
|
|
24
25
|
*/
|
|
25
|
-
createMany(props: OptionsGreeksHistoryType[], globalClient?: ApolloClientType<NormalizedCacheObject
|
|
26
|
+
createMany(props: OptionsGreeksHistoryType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
|
|
27
|
+
skipDuplicates?: boolean;
|
|
28
|
+
}): Promise<{
|
|
26
29
|
count: number;
|
|
27
30
|
} | null>;
|
|
28
31
|
/**
|