@adaptic/backend-legacy 0.0.918 → 0.0.919

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.
Files changed (370) hide show
  1. package/ABTest.cjs +6 -5
  2. package/ABTest.d.ts +4 -1
  3. package/Account.cjs +6 -5
  4. package/Account.d.ts +4 -1
  5. package/AccountDecisionRecord.cjs +6 -5
  6. package/AccountDecisionRecord.d.ts +4 -1
  7. package/AccountLinkingRequest.cjs +6 -5
  8. package/AccountLinkingRequest.d.ts +4 -1
  9. package/Action.cjs +6 -5
  10. package/Action.d.ts +4 -1
  11. package/Alert.cjs +6 -5
  12. package/Alert.d.ts +4 -1
  13. package/Allocation.cjs +6 -5
  14. package/Allocation.d.ts +4 -1
  15. package/AlpacaAccount.cjs +6 -5
  16. package/AlpacaAccount.d.ts +4 -1
  17. package/AnalyticsConfiguration.cjs +6 -5
  18. package/AnalyticsConfiguration.d.ts +4 -1
  19. package/AnalyticsSnapshot.cjs +6 -5
  20. package/AnalyticsSnapshot.d.ts +4 -1
  21. package/Asset.cjs +6 -5
  22. package/Asset.d.ts +4 -1
  23. package/AuditLog.cjs +6 -5
  24. package/AuditLog.d.ts +4 -1
  25. package/Authenticator.cjs +6 -5
  26. package/Authenticator.d.ts +4 -1
  27. package/Configuration.cjs +6 -5
  28. package/Configuration.d.ts +4 -1
  29. package/ConflictEvent.cjs +6 -5
  30. package/ConflictEvent.d.ts +4 -1
  31. package/ConnectionHealthSnapshot.cjs +6 -5
  32. package/ConnectionHealthSnapshot.d.ts +4 -1
  33. package/Customer.cjs +6 -5
  34. package/Customer.d.ts +4 -1
  35. package/DeadLetterMessage.cjs +6 -5
  36. package/DeadLetterMessage.d.ts +4 -1
  37. package/DecisionMemorySummary.cjs +6 -5
  38. package/DecisionMemorySummary.d.ts +4 -1
  39. package/EconomicEvent.cjs +6 -5
  40. package/EconomicEvent.d.ts +4 -1
  41. package/EquityBar.cjs +6 -5
  42. package/EquityBar.d.ts +4 -1
  43. package/Event.cjs +6 -5
  44. package/Event.d.ts +4 -1
  45. package/EventSnapshot.cjs +6 -5
  46. package/EventSnapshot.d.ts +4 -1
  47. package/FeatureImportanceAnalysis.cjs +6 -5
  48. package/FeatureImportanceAnalysis.d.ts +4 -1
  49. package/InstitutionalFlowSignal.cjs +6 -5
  50. package/InstitutionalFlowSignal.d.ts +4 -1
  51. package/InstitutionalHolding.cjs +6 -5
  52. package/InstitutionalHolding.d.ts +4 -1
  53. package/InstitutionalSentimentAlerts.cjs +6 -5
  54. package/InstitutionalSentimentAlerts.d.ts +4 -1
  55. package/InstitutionalSentimentErrors.cjs +6 -5
  56. package/InstitutionalSentimentErrors.d.ts +4 -1
  57. package/InstitutionalSentimentHistory.cjs +6 -5
  58. package/InstitutionalSentimentHistory.d.ts +4 -1
  59. package/InstitutionalSentimentMetrics.cjs +6 -5
  60. package/InstitutionalSentimentMetrics.d.ts +4 -1
  61. package/InviteToken.cjs +6 -5
  62. package/InviteToken.d.ts +4 -1
  63. package/LinkedProvider.cjs +6 -5
  64. package/LinkedProvider.d.ts +4 -1
  65. package/LlmConfiguration.cjs +6 -5
  66. package/LlmConfiguration.d.ts +4 -1
  67. package/MLTrainingData.cjs +6 -5
  68. package/MLTrainingData.d.ts +4 -1
  69. package/MarketSentiment.cjs +6 -5
  70. package/MarketSentiment.d.ts +4 -1
  71. package/ModelArtifact.cjs +6 -5
  72. package/ModelArtifact.d.ts +4 -1
  73. package/ModelVersion.cjs +6 -5
  74. package/ModelVersion.d.ts +4 -1
  75. package/ModelVersionArtifact.cjs +6 -5
  76. package/ModelVersionArtifact.d.ts +4 -1
  77. package/NewsArticle.cjs +6 -5
  78. package/NewsArticle.d.ts +4 -1
  79. package/NewsArticleAssetSentiment.cjs +6 -5
  80. package/NewsArticleAssetSentiment.d.ts +4 -1
  81. package/OptionsContract.cjs +6 -5
  82. package/OptionsContract.d.ts +4 -1
  83. package/OptionsGreeksHistory.cjs +6 -5
  84. package/OptionsGreeksHistory.d.ts +4 -1
  85. package/OptionsPosition.cjs +6 -5
  86. package/OptionsPosition.d.ts +4 -1
  87. package/OptionsTradeExecution.cjs +6 -5
  88. package/OptionsTradeExecution.d.ts +4 -1
  89. package/PolicyOverlay.cjs +6 -5
  90. package/PolicyOverlay.d.ts +4 -1
  91. package/PortfolioGreeksHistory.cjs +6 -5
  92. package/PortfolioGreeksHistory.d.ts +4 -1
  93. package/ScheduledOptionOrder.cjs +6 -5
  94. package/ScheduledOptionOrder.d.ts +4 -1
  95. package/Session.cjs +6 -5
  96. package/Session.d.ts +4 -1
  97. package/SignalGeneratorMetrics.cjs +6 -5
  98. package/SignalGeneratorMetrics.d.ts +4 -1
  99. package/SignalLineage.cjs +6 -5
  100. package/SignalLineage.d.ts +4 -1
  101. package/SignalOutcome.cjs +6 -5
  102. package/SignalOutcome.d.ts +4 -1
  103. package/SignalPriorityQueue.cjs +6 -5
  104. package/SignalPriorityQueue.d.ts +4 -1
  105. package/SyncEvent.cjs +6 -5
  106. package/SyncEvent.d.ts +4 -1
  107. package/SystemAlert.cjs +6 -5
  108. package/SystemAlert.d.ts +4 -1
  109. package/Trade.cjs +6 -5
  110. package/Trade.d.ts +4 -1
  111. package/TradeAuditEvent.cjs +6 -5
  112. package/TradeAuditEvent.d.ts +4 -1
  113. package/TradeExecutionHistory.cjs +6 -5
  114. package/TradeExecutionHistory.d.ts +4 -1
  115. package/TradingPolicy.cjs +6 -5
  116. package/TradingPolicy.d.ts +4 -1
  117. package/User.cjs +6 -5
  118. package/User.d.ts +4 -1
  119. package/VerificationToken.cjs +6 -5
  120. package/VerificationToken.d.ts +4 -1
  121. package/WaitlistEntry.cjs +6 -5
  122. package/WaitlistEntry.d.ts +4 -1
  123. package/esm/ABTest.d.ts +4 -1
  124. package/esm/ABTest.d.ts.map +1 -1
  125. package/esm/ABTest.js.map +1 -1
  126. package/esm/ABTest.mjs +6 -5
  127. package/esm/Account.d.ts +4 -1
  128. package/esm/Account.d.ts.map +1 -1
  129. package/esm/Account.js.map +1 -1
  130. package/esm/Account.mjs +6 -5
  131. package/esm/AccountDecisionRecord.d.ts +4 -1
  132. package/esm/AccountDecisionRecord.d.ts.map +1 -1
  133. package/esm/AccountDecisionRecord.js.map +1 -1
  134. package/esm/AccountDecisionRecord.mjs +6 -5
  135. package/esm/AccountLinkingRequest.d.ts +4 -1
  136. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  137. package/esm/AccountLinkingRequest.js.map +1 -1
  138. package/esm/AccountLinkingRequest.mjs +6 -5
  139. package/esm/Action.d.ts +4 -1
  140. package/esm/Action.d.ts.map +1 -1
  141. package/esm/Action.js.map +1 -1
  142. package/esm/Action.mjs +6 -5
  143. package/esm/Alert.d.ts +4 -1
  144. package/esm/Alert.d.ts.map +1 -1
  145. package/esm/Alert.js.map +1 -1
  146. package/esm/Alert.mjs +6 -5
  147. package/esm/Allocation.d.ts +4 -1
  148. package/esm/Allocation.d.ts.map +1 -1
  149. package/esm/Allocation.js.map +1 -1
  150. package/esm/Allocation.mjs +6 -5
  151. package/esm/AlpacaAccount.d.ts +4 -1
  152. package/esm/AlpacaAccount.d.ts.map +1 -1
  153. package/esm/AlpacaAccount.js.map +1 -1
  154. package/esm/AlpacaAccount.mjs +6 -5
  155. package/esm/AnalyticsConfiguration.d.ts +4 -1
  156. package/esm/AnalyticsConfiguration.d.ts.map +1 -1
  157. package/esm/AnalyticsConfiguration.js.map +1 -1
  158. package/esm/AnalyticsConfiguration.mjs +6 -5
  159. package/esm/AnalyticsSnapshot.d.ts +4 -1
  160. package/esm/AnalyticsSnapshot.d.ts.map +1 -1
  161. package/esm/AnalyticsSnapshot.js.map +1 -1
  162. package/esm/AnalyticsSnapshot.mjs +6 -5
  163. package/esm/Asset.d.ts +4 -1
  164. package/esm/Asset.d.ts.map +1 -1
  165. package/esm/Asset.js.map +1 -1
  166. package/esm/Asset.mjs +6 -5
  167. package/esm/AuditLog.d.ts +4 -1
  168. package/esm/AuditLog.d.ts.map +1 -1
  169. package/esm/AuditLog.js.map +1 -1
  170. package/esm/AuditLog.mjs +6 -5
  171. package/esm/Authenticator.d.ts +4 -1
  172. package/esm/Authenticator.d.ts.map +1 -1
  173. package/esm/Authenticator.js.map +1 -1
  174. package/esm/Authenticator.mjs +6 -5
  175. package/esm/Configuration.d.ts +4 -1
  176. package/esm/Configuration.d.ts.map +1 -1
  177. package/esm/Configuration.js.map +1 -1
  178. package/esm/Configuration.mjs +6 -5
  179. package/esm/ConflictEvent.d.ts +4 -1
  180. package/esm/ConflictEvent.d.ts.map +1 -1
  181. package/esm/ConflictEvent.js.map +1 -1
  182. package/esm/ConflictEvent.mjs +6 -5
  183. package/esm/ConnectionHealthSnapshot.d.ts +4 -1
  184. package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
  185. package/esm/ConnectionHealthSnapshot.js.map +1 -1
  186. package/esm/ConnectionHealthSnapshot.mjs +6 -5
  187. package/esm/Customer.d.ts +4 -1
  188. package/esm/Customer.d.ts.map +1 -1
  189. package/esm/Customer.js.map +1 -1
  190. package/esm/Customer.mjs +6 -5
  191. package/esm/DeadLetterMessage.d.ts +4 -1
  192. package/esm/DeadLetterMessage.d.ts.map +1 -1
  193. package/esm/DeadLetterMessage.js.map +1 -1
  194. package/esm/DeadLetterMessage.mjs +6 -5
  195. package/esm/DecisionMemorySummary.d.ts +4 -1
  196. package/esm/DecisionMemorySummary.d.ts.map +1 -1
  197. package/esm/DecisionMemorySummary.js.map +1 -1
  198. package/esm/DecisionMemorySummary.mjs +6 -5
  199. package/esm/EconomicEvent.d.ts +4 -1
  200. package/esm/EconomicEvent.d.ts.map +1 -1
  201. package/esm/EconomicEvent.js.map +1 -1
  202. package/esm/EconomicEvent.mjs +6 -5
  203. package/esm/EquityBar.d.ts +4 -1
  204. package/esm/EquityBar.d.ts.map +1 -1
  205. package/esm/EquityBar.js.map +1 -1
  206. package/esm/EquityBar.mjs +6 -5
  207. package/esm/Event.d.ts +4 -1
  208. package/esm/Event.d.ts.map +1 -1
  209. package/esm/Event.js.map +1 -1
  210. package/esm/Event.mjs +6 -5
  211. package/esm/EventSnapshot.d.ts +4 -1
  212. package/esm/EventSnapshot.d.ts.map +1 -1
  213. package/esm/EventSnapshot.js.map +1 -1
  214. package/esm/EventSnapshot.mjs +6 -5
  215. package/esm/FeatureImportanceAnalysis.d.ts +4 -1
  216. package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
  217. package/esm/FeatureImportanceAnalysis.js.map +1 -1
  218. package/esm/FeatureImportanceAnalysis.mjs +6 -5
  219. package/esm/InstitutionalFlowSignal.d.ts +4 -1
  220. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  221. package/esm/InstitutionalFlowSignal.js.map +1 -1
  222. package/esm/InstitutionalFlowSignal.mjs +6 -5
  223. package/esm/InstitutionalHolding.d.ts +4 -1
  224. package/esm/InstitutionalHolding.d.ts.map +1 -1
  225. package/esm/InstitutionalHolding.js.map +1 -1
  226. package/esm/InstitutionalHolding.mjs +6 -5
  227. package/esm/InstitutionalSentimentAlerts.d.ts +4 -1
  228. package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
  229. package/esm/InstitutionalSentimentAlerts.js.map +1 -1
  230. package/esm/InstitutionalSentimentAlerts.mjs +6 -5
  231. package/esm/InstitutionalSentimentErrors.d.ts +4 -1
  232. package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
  233. package/esm/InstitutionalSentimentErrors.js.map +1 -1
  234. package/esm/InstitutionalSentimentErrors.mjs +6 -5
  235. package/esm/InstitutionalSentimentHistory.d.ts +4 -1
  236. package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
  237. package/esm/InstitutionalSentimentHistory.js.map +1 -1
  238. package/esm/InstitutionalSentimentHistory.mjs +6 -5
  239. package/esm/InstitutionalSentimentMetrics.d.ts +4 -1
  240. package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
  241. package/esm/InstitutionalSentimentMetrics.js.map +1 -1
  242. package/esm/InstitutionalSentimentMetrics.mjs +6 -5
  243. package/esm/InviteToken.d.ts +4 -1
  244. package/esm/InviteToken.d.ts.map +1 -1
  245. package/esm/InviteToken.js.map +1 -1
  246. package/esm/InviteToken.mjs +6 -5
  247. package/esm/LinkedProvider.d.ts +4 -1
  248. package/esm/LinkedProvider.d.ts.map +1 -1
  249. package/esm/LinkedProvider.js.map +1 -1
  250. package/esm/LinkedProvider.mjs +6 -5
  251. package/esm/LlmConfiguration.d.ts +4 -1
  252. package/esm/LlmConfiguration.d.ts.map +1 -1
  253. package/esm/LlmConfiguration.js.map +1 -1
  254. package/esm/LlmConfiguration.mjs +6 -5
  255. package/esm/MLTrainingData.d.ts +4 -1
  256. package/esm/MLTrainingData.d.ts.map +1 -1
  257. package/esm/MLTrainingData.js.map +1 -1
  258. package/esm/MLTrainingData.mjs +6 -5
  259. package/esm/MarketSentiment.d.ts +4 -1
  260. package/esm/MarketSentiment.d.ts.map +1 -1
  261. package/esm/MarketSentiment.js.map +1 -1
  262. package/esm/MarketSentiment.mjs +6 -5
  263. package/esm/ModelArtifact.d.ts +4 -1
  264. package/esm/ModelArtifact.d.ts.map +1 -1
  265. package/esm/ModelArtifact.js.map +1 -1
  266. package/esm/ModelArtifact.mjs +6 -5
  267. package/esm/ModelVersion.d.ts +4 -1
  268. package/esm/ModelVersion.d.ts.map +1 -1
  269. package/esm/ModelVersion.js.map +1 -1
  270. package/esm/ModelVersion.mjs +6 -5
  271. package/esm/ModelVersionArtifact.d.ts +4 -1
  272. package/esm/ModelVersionArtifact.d.ts.map +1 -1
  273. package/esm/ModelVersionArtifact.js.map +1 -1
  274. package/esm/ModelVersionArtifact.mjs +6 -5
  275. package/esm/NewsArticle.d.ts +4 -1
  276. package/esm/NewsArticle.d.ts.map +1 -1
  277. package/esm/NewsArticle.js.map +1 -1
  278. package/esm/NewsArticle.mjs +6 -5
  279. package/esm/NewsArticleAssetSentiment.d.ts +4 -1
  280. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  281. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  282. package/esm/NewsArticleAssetSentiment.mjs +6 -5
  283. package/esm/OptionsContract.d.ts +4 -1
  284. package/esm/OptionsContract.d.ts.map +1 -1
  285. package/esm/OptionsContract.js.map +1 -1
  286. package/esm/OptionsContract.mjs +6 -5
  287. package/esm/OptionsGreeksHistory.d.ts +4 -1
  288. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  289. package/esm/OptionsGreeksHistory.js.map +1 -1
  290. package/esm/OptionsGreeksHistory.mjs +6 -5
  291. package/esm/OptionsPosition.d.ts +4 -1
  292. package/esm/OptionsPosition.d.ts.map +1 -1
  293. package/esm/OptionsPosition.js.map +1 -1
  294. package/esm/OptionsPosition.mjs +6 -5
  295. package/esm/OptionsTradeExecution.d.ts +4 -1
  296. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  297. package/esm/OptionsTradeExecution.js.map +1 -1
  298. package/esm/OptionsTradeExecution.mjs +6 -5
  299. package/esm/PolicyOverlay.d.ts +4 -1
  300. package/esm/PolicyOverlay.d.ts.map +1 -1
  301. package/esm/PolicyOverlay.js.map +1 -1
  302. package/esm/PolicyOverlay.mjs +6 -5
  303. package/esm/PortfolioGreeksHistory.d.ts +4 -1
  304. package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
  305. package/esm/PortfolioGreeksHistory.js.map +1 -1
  306. package/esm/PortfolioGreeksHistory.mjs +6 -5
  307. package/esm/ScheduledOptionOrder.d.ts +4 -1
  308. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  309. package/esm/ScheduledOptionOrder.js.map +1 -1
  310. package/esm/ScheduledOptionOrder.mjs +6 -5
  311. package/esm/Session.d.ts +4 -1
  312. package/esm/Session.d.ts.map +1 -1
  313. package/esm/Session.js.map +1 -1
  314. package/esm/Session.mjs +6 -5
  315. package/esm/SignalGeneratorMetrics.d.ts +4 -1
  316. package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
  317. package/esm/SignalGeneratorMetrics.js.map +1 -1
  318. package/esm/SignalGeneratorMetrics.mjs +6 -5
  319. package/esm/SignalLineage.d.ts +4 -1
  320. package/esm/SignalLineage.d.ts.map +1 -1
  321. package/esm/SignalLineage.js.map +1 -1
  322. package/esm/SignalLineage.mjs +6 -5
  323. package/esm/SignalOutcome.d.ts +4 -1
  324. package/esm/SignalOutcome.d.ts.map +1 -1
  325. package/esm/SignalOutcome.js.map +1 -1
  326. package/esm/SignalOutcome.mjs +6 -5
  327. package/esm/SignalPriorityQueue.d.ts +4 -1
  328. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  329. package/esm/SignalPriorityQueue.js.map +1 -1
  330. package/esm/SignalPriorityQueue.mjs +6 -5
  331. package/esm/SyncEvent.d.ts +4 -1
  332. package/esm/SyncEvent.d.ts.map +1 -1
  333. package/esm/SyncEvent.js.map +1 -1
  334. package/esm/SyncEvent.mjs +6 -5
  335. package/esm/SystemAlert.d.ts +4 -1
  336. package/esm/SystemAlert.d.ts.map +1 -1
  337. package/esm/SystemAlert.js.map +1 -1
  338. package/esm/SystemAlert.mjs +6 -5
  339. package/esm/Trade.d.ts +4 -1
  340. package/esm/Trade.d.ts.map +1 -1
  341. package/esm/Trade.js.map +1 -1
  342. package/esm/Trade.mjs +6 -5
  343. package/esm/TradeAuditEvent.d.ts +4 -1
  344. package/esm/TradeAuditEvent.d.ts.map +1 -1
  345. package/esm/TradeAuditEvent.js.map +1 -1
  346. package/esm/TradeAuditEvent.mjs +6 -5
  347. package/esm/TradeExecutionHistory.d.ts +4 -1
  348. package/esm/TradeExecutionHistory.d.ts.map +1 -1
  349. package/esm/TradeExecutionHistory.js.map +1 -1
  350. package/esm/TradeExecutionHistory.mjs +6 -5
  351. package/esm/TradingPolicy.d.ts +4 -1
  352. package/esm/TradingPolicy.d.ts.map +1 -1
  353. package/esm/TradingPolicy.js.map +1 -1
  354. package/esm/TradingPolicy.mjs +6 -5
  355. package/esm/User.d.ts +4 -1
  356. package/esm/User.d.ts.map +1 -1
  357. package/esm/User.js.map +1 -1
  358. package/esm/User.mjs +6 -5
  359. package/esm/VerificationToken.d.ts +4 -1
  360. package/esm/VerificationToken.d.ts.map +1 -1
  361. package/esm/VerificationToken.js.map +1 -1
  362. package/esm/VerificationToken.mjs +6 -5
  363. package/esm/WaitlistEntry.d.ts +4 -1
  364. package/esm/WaitlistEntry.d.ts.map +1 -1
  365. package/esm/WaitlistEntry.js.map +1 -1
  366. package/esm/WaitlistEntry.mjs +6 -5
  367. package/esm/index.d.ts +183 -61
  368. package/esm/index.d.ts.map +1 -1
  369. package/index.d.ts +183 -61
  370. package/package.json +1 -1
@@ -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>): Promise<{
26
+ createMany(props: LinkedProviderType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyLlmConfiguration", {
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,
@@ -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>): Promise<{
26
+ createMany(props: LlmConfigurationType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyMLTrainingData", {
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,
@@ -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>): Promise<{
26
+ createMany(props: MLTrainingDataType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyMarketSentiment", {
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,
@@ -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>): Promise<{
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.error("Non-retryable constraint violation in createManyModelArtifact", {
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,
@@ -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>): Promise<{
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.error("Non-retryable constraint violation in createManyModelVersion", {
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>): Promise<{
26
+ createMany(props: ModelVersionType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyModelVersionArtifact", {
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>): Promise<{
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.error("Non-retryable constraint violation in createManyNewsArticle", {
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>): Promise<{
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.error("Non-retryable constraint violation in createManyNewsArticleAssetSentiment", {
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>): Promise<{
26
+ createMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyOptionsContract", {
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,
@@ -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>): Promise<{
26
+ createMany(props: OptionsContractType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**
@@ -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.error("Non-retryable constraint violation in createManyOptionsGreeksHistory", {
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>): Promise<{
26
+ createMany(props: OptionsGreeksHistoryType[], globalClient?: ApolloClientType<NormalizedCacheObject>, options?: {
27
+ skipDuplicates?: boolean;
28
+ }): Promise<{
26
29
  count: number;
27
30
  } | null>;
28
31
  /**