@adaptic/backend-legacy 0.0.945 → 0.0.947

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 (272) hide show
  1. package/ABTest.cjs +5 -24
  2. package/Account.cjs +5 -14
  3. package/AccountDecisionRecord.cjs +5 -32
  4. package/AccountLinkingRequest.cjs +5 -24
  5. package/Action.cjs +5 -20
  6. package/Alert.cjs +5 -24
  7. package/Allocation.cjs +5 -2
  8. package/AlpacaAccount.cjs +5 -12
  9. package/AnalyticsConfiguration.cjs +5 -8
  10. package/AnalyticsSnapshot.cjs +5 -6
  11. package/Asset.cjs +5 -10
  12. package/AuditLog.cjs +5 -6
  13. package/Authenticator.cjs +5 -6
  14. package/Configuration.cjs +5 -8
  15. package/ConflictEvent.cjs +5 -6
  16. package/ConnectionHealthSnapshot.cjs +5 -6
  17. package/Customer.cjs +5 -22
  18. package/DeadLetterMessage.cjs +5 -12
  19. package/DecisionMemorySummary.cjs +5 -24
  20. package/EconomicEvent.cjs +5 -6
  21. package/EquityBar.cjs +5 -10
  22. package/Event.cjs +5 -50
  23. package/EventSnapshot.cjs +5 -6
  24. package/FeatureImportanceAnalysis.cjs +5 -6
  25. package/InstitutionalFlowSignal.cjs +5 -6
  26. package/InstitutionalHolding.cjs +5 -6
  27. package/InstitutionalSentimentAlerts.cjs +5 -6
  28. package/InstitutionalSentimentErrors.cjs +5 -0
  29. package/InstitutionalSentimentHistory.cjs +5 -6
  30. package/InstitutionalSentimentMetrics.cjs +5 -0
  31. package/InviteToken.cjs +5 -8
  32. package/LinkedProvider.cjs +5 -18
  33. package/LlmConfiguration.cjs +5 -2
  34. package/MLModelVersion.cjs +5 -0
  35. package/MLTrainingData.cjs +5 -12
  36. package/MarketSentiment.cjs +5 -0
  37. package/ModelArtifact.cjs +5 -0
  38. package/ModelVersion.cjs +5 -6
  39. package/ModelVersionArtifact.cjs +5 -12
  40. package/NewsArticle.cjs +5 -8
  41. package/NewsArticleAssetSentiment.cjs +5 -8
  42. package/OptionsContract.cjs +5 -6
  43. package/OptionsGreeksHistory.cjs +5 -6
  44. package/OptionsPosition.cjs +5 -18
  45. package/OptionsPositionEvent.cjs +5 -6
  46. package/OptionsTradeExecution.cjs +5 -24
  47. package/PolicyOverlay.cjs +5 -24
  48. package/PortfolioGreeksHistory.cjs +5 -12
  49. package/ScheduledOptionOrder.cjs +5 -6
  50. package/Session.cjs +5 -6
  51. package/SignalGeneratorMetrics.cjs +5 -6
  52. package/SignalLineage.cjs +5 -14
  53. package/SignalOutcome.cjs +5 -12
  54. package/SignalPriorityQueue.cjs +5 -14
  55. package/SyncEvent.cjs +5 -12
  56. package/SystemAlert.cjs +5 -24
  57. package/Trade.cjs +5 -18
  58. package/TradeAuditEvent.cjs +5 -50
  59. package/TradeExecutionHistory.cjs +5 -0
  60. package/TradeOutcome.cjs +5 -18
  61. package/TradingPolicy.cjs +5 -20
  62. package/User.cjs +5 -8
  63. package/VerificationToken.cjs +5 -0
  64. package/WaitlistEntry.cjs +5 -8
  65. package/client.cjs +17 -16
  66. package/esm/ABTest.d.ts.map +1 -1
  67. package/esm/ABTest.js.map +1 -1
  68. package/esm/ABTest.mjs +5 -24
  69. package/esm/Account.d.ts.map +1 -1
  70. package/esm/Account.js.map +1 -1
  71. package/esm/Account.mjs +5 -14
  72. package/esm/AccountDecisionRecord.d.ts.map +1 -1
  73. package/esm/AccountDecisionRecord.js.map +1 -1
  74. package/esm/AccountDecisionRecord.mjs +5 -32
  75. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  76. package/esm/AccountLinkingRequest.js.map +1 -1
  77. package/esm/AccountLinkingRequest.mjs +5 -24
  78. package/esm/Action.d.ts.map +1 -1
  79. package/esm/Action.js.map +1 -1
  80. package/esm/Action.mjs +5 -20
  81. package/esm/Alert.d.ts.map +1 -1
  82. package/esm/Alert.js.map +1 -1
  83. package/esm/Alert.mjs +5 -24
  84. package/esm/Allocation.d.ts.map +1 -1
  85. package/esm/Allocation.js.map +1 -1
  86. package/esm/Allocation.mjs +5 -2
  87. package/esm/AlpacaAccount.d.ts.map +1 -1
  88. package/esm/AlpacaAccount.js.map +1 -1
  89. package/esm/AlpacaAccount.mjs +5 -12
  90. package/esm/AnalyticsConfiguration.d.ts.map +1 -1
  91. package/esm/AnalyticsConfiguration.js.map +1 -1
  92. package/esm/AnalyticsConfiguration.mjs +5 -8
  93. package/esm/AnalyticsSnapshot.d.ts.map +1 -1
  94. package/esm/AnalyticsSnapshot.js.map +1 -1
  95. package/esm/AnalyticsSnapshot.mjs +5 -6
  96. package/esm/Asset.d.ts.map +1 -1
  97. package/esm/Asset.js.map +1 -1
  98. package/esm/Asset.mjs +5 -10
  99. package/esm/AuditLog.d.ts.map +1 -1
  100. package/esm/AuditLog.js.map +1 -1
  101. package/esm/AuditLog.mjs +5 -6
  102. package/esm/Authenticator.d.ts.map +1 -1
  103. package/esm/Authenticator.js.map +1 -1
  104. package/esm/Authenticator.mjs +5 -6
  105. package/esm/Configuration.d.ts.map +1 -1
  106. package/esm/Configuration.js.map +1 -1
  107. package/esm/Configuration.mjs +5 -8
  108. package/esm/ConflictEvent.d.ts.map +1 -1
  109. package/esm/ConflictEvent.js.map +1 -1
  110. package/esm/ConflictEvent.mjs +5 -6
  111. package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
  112. package/esm/ConnectionHealthSnapshot.js.map +1 -1
  113. package/esm/ConnectionHealthSnapshot.mjs +5 -6
  114. package/esm/Customer.d.ts.map +1 -1
  115. package/esm/Customer.js.map +1 -1
  116. package/esm/Customer.mjs +5 -22
  117. package/esm/DeadLetterMessage.d.ts.map +1 -1
  118. package/esm/DeadLetterMessage.js.map +1 -1
  119. package/esm/DeadLetterMessage.mjs +5 -12
  120. package/esm/DecisionMemorySummary.d.ts.map +1 -1
  121. package/esm/DecisionMemorySummary.js.map +1 -1
  122. package/esm/DecisionMemorySummary.mjs +5 -24
  123. package/esm/EconomicEvent.d.ts.map +1 -1
  124. package/esm/EconomicEvent.js.map +1 -1
  125. package/esm/EconomicEvent.mjs +5 -6
  126. package/esm/EquityBar.d.ts.map +1 -1
  127. package/esm/EquityBar.js.map +1 -1
  128. package/esm/EquityBar.mjs +5 -10
  129. package/esm/Event.d.ts.map +1 -1
  130. package/esm/Event.js.map +1 -1
  131. package/esm/Event.mjs +5 -50
  132. package/esm/EventSnapshot.d.ts.map +1 -1
  133. package/esm/EventSnapshot.js.map +1 -1
  134. package/esm/EventSnapshot.mjs +5 -6
  135. package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
  136. package/esm/FeatureImportanceAnalysis.js.map +1 -1
  137. package/esm/FeatureImportanceAnalysis.mjs +5 -6
  138. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  139. package/esm/InstitutionalFlowSignal.js.map +1 -1
  140. package/esm/InstitutionalFlowSignal.mjs +5 -6
  141. package/esm/InstitutionalHolding.d.ts.map +1 -1
  142. package/esm/InstitutionalHolding.js.map +1 -1
  143. package/esm/InstitutionalHolding.mjs +5 -6
  144. package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
  145. package/esm/InstitutionalSentimentAlerts.js.map +1 -1
  146. package/esm/InstitutionalSentimentAlerts.mjs +5 -6
  147. package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
  148. package/esm/InstitutionalSentimentErrors.js.map +1 -1
  149. package/esm/InstitutionalSentimentErrors.mjs +5 -0
  150. package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
  151. package/esm/InstitutionalSentimentHistory.js.map +1 -1
  152. package/esm/InstitutionalSentimentHistory.mjs +5 -6
  153. package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
  154. package/esm/InstitutionalSentimentMetrics.js.map +1 -1
  155. package/esm/InstitutionalSentimentMetrics.mjs +5 -0
  156. package/esm/InviteToken.d.ts.map +1 -1
  157. package/esm/InviteToken.js.map +1 -1
  158. package/esm/InviteToken.mjs +5 -8
  159. package/esm/LinkedProvider.d.ts.map +1 -1
  160. package/esm/LinkedProvider.js.map +1 -1
  161. package/esm/LinkedProvider.mjs +5 -18
  162. package/esm/LlmConfiguration.d.ts.map +1 -1
  163. package/esm/LlmConfiguration.js.map +1 -1
  164. package/esm/LlmConfiguration.mjs +5 -2
  165. package/esm/MLModelVersion.d.ts.map +1 -1
  166. package/esm/MLModelVersion.js.map +1 -1
  167. package/esm/MLModelVersion.mjs +5 -0
  168. package/esm/MLTrainingData.d.ts.map +1 -1
  169. package/esm/MLTrainingData.js.map +1 -1
  170. package/esm/MLTrainingData.mjs +5 -12
  171. package/esm/MarketSentiment.d.ts.map +1 -1
  172. package/esm/MarketSentiment.js.map +1 -1
  173. package/esm/MarketSentiment.mjs +5 -0
  174. package/esm/ModelArtifact.d.ts.map +1 -1
  175. package/esm/ModelArtifact.js.map +1 -1
  176. package/esm/ModelArtifact.mjs +5 -0
  177. package/esm/ModelVersion.d.ts.map +1 -1
  178. package/esm/ModelVersion.js.map +1 -1
  179. package/esm/ModelVersion.mjs +5 -6
  180. package/esm/ModelVersionArtifact.d.ts.map +1 -1
  181. package/esm/ModelVersionArtifact.js.map +1 -1
  182. package/esm/ModelVersionArtifact.mjs +5 -12
  183. package/esm/NewsArticle.d.ts.map +1 -1
  184. package/esm/NewsArticle.js.map +1 -1
  185. package/esm/NewsArticle.mjs +5 -8
  186. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  187. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  188. package/esm/NewsArticleAssetSentiment.mjs +5 -8
  189. package/esm/OptionsContract.d.ts.map +1 -1
  190. package/esm/OptionsContract.js.map +1 -1
  191. package/esm/OptionsContract.mjs +5 -6
  192. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  193. package/esm/OptionsGreeksHistory.js.map +1 -1
  194. package/esm/OptionsGreeksHistory.mjs +5 -6
  195. package/esm/OptionsPosition.d.ts.map +1 -1
  196. package/esm/OptionsPosition.js.map +1 -1
  197. package/esm/OptionsPosition.mjs +5 -18
  198. package/esm/OptionsPositionEvent.d.ts.map +1 -1
  199. package/esm/OptionsPositionEvent.js.map +1 -1
  200. package/esm/OptionsPositionEvent.mjs +5 -6
  201. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  202. package/esm/OptionsTradeExecution.js.map +1 -1
  203. package/esm/OptionsTradeExecution.mjs +5 -24
  204. package/esm/PolicyOverlay.d.ts.map +1 -1
  205. package/esm/PolicyOverlay.js.map +1 -1
  206. package/esm/PolicyOverlay.mjs +5 -24
  207. package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
  208. package/esm/PortfolioGreeksHistory.js.map +1 -1
  209. package/esm/PortfolioGreeksHistory.mjs +5 -12
  210. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  211. package/esm/ScheduledOptionOrder.js.map +1 -1
  212. package/esm/ScheduledOptionOrder.mjs +5 -6
  213. package/esm/Session.d.ts.map +1 -1
  214. package/esm/Session.js.map +1 -1
  215. package/esm/Session.mjs +5 -6
  216. package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
  217. package/esm/SignalGeneratorMetrics.js.map +1 -1
  218. package/esm/SignalGeneratorMetrics.mjs +5 -6
  219. package/esm/SignalLineage.d.ts.map +1 -1
  220. package/esm/SignalLineage.js.map +1 -1
  221. package/esm/SignalLineage.mjs +5 -14
  222. package/esm/SignalOutcome.d.ts.map +1 -1
  223. package/esm/SignalOutcome.js.map +1 -1
  224. package/esm/SignalOutcome.mjs +5 -12
  225. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  226. package/esm/SignalPriorityQueue.js.map +1 -1
  227. package/esm/SignalPriorityQueue.mjs +5 -14
  228. package/esm/SyncEvent.d.ts.map +1 -1
  229. package/esm/SyncEvent.js.map +1 -1
  230. package/esm/SyncEvent.mjs +5 -12
  231. package/esm/SystemAlert.d.ts.map +1 -1
  232. package/esm/SystemAlert.js.map +1 -1
  233. package/esm/SystemAlert.mjs +5 -24
  234. package/esm/Trade.d.ts.map +1 -1
  235. package/esm/Trade.js.map +1 -1
  236. package/esm/Trade.mjs +5 -18
  237. package/esm/TradeAuditEvent.d.ts.map +1 -1
  238. package/esm/TradeAuditEvent.js.map +1 -1
  239. package/esm/TradeAuditEvent.mjs +5 -50
  240. package/esm/TradeExecutionHistory.d.ts.map +1 -1
  241. package/esm/TradeExecutionHistory.js.map +1 -1
  242. package/esm/TradeExecutionHistory.mjs +5 -0
  243. package/esm/TradeOutcome.d.ts.map +1 -1
  244. package/esm/TradeOutcome.js.map +1 -1
  245. package/esm/TradeOutcome.mjs +5 -18
  246. package/esm/TradingPolicy.d.ts.map +1 -1
  247. package/esm/TradingPolicy.js.map +1 -1
  248. package/esm/TradingPolicy.mjs +5 -20
  249. package/esm/User.d.ts.map +1 -1
  250. package/esm/User.js.map +1 -1
  251. package/esm/User.mjs +5 -8
  252. package/esm/VerificationToken.d.ts.map +1 -1
  253. package/esm/VerificationToken.js.map +1 -1
  254. package/esm/VerificationToken.mjs +5 -0
  255. package/esm/WaitlistEntry.d.ts.map +1 -1
  256. package/esm/WaitlistEntry.js.map +1 -1
  257. package/esm/WaitlistEntry.mjs +5 -8
  258. package/esm/apollo-client.server.d.ts.map +1 -1
  259. package/esm/apollo-client.server.js.map +1 -1
  260. package/esm/client.d.ts.map +1 -1
  261. package/esm/client.js.map +1 -1
  262. package/esm/client.mjs +17 -16
  263. package/esm/prismaClient.d.ts.map +1 -1
  264. package/esm/prismaClient.js.map +1 -1
  265. package/esm/prismaClient.mjs +19 -8
  266. package/esm/utils.d.ts.map +1 -1
  267. package/esm/utils.js.map +1 -1
  268. package/esm/utils.mjs +3 -6
  269. package/package.json +1 -1
  270. package/prismaClient.cjs +19 -8
  271. package/server.cjs +12 -4
  272. package/utils.cjs +3 -6
package/Customer.cjs CHANGED
@@ -816,17 +816,6 @@ exports.Customer = {
816
816
  const variables = {
817
817
  where: {
818
818
  id: props.id !== undefined ? props.id : undefined,
819
- stripeCustomerId: props.stripeCustomerId !== undefined ? props.stripeCustomerId : undefined,
820
- stripeSubscriptionId: props.stripeSubscriptionId !== undefined ? props.stripeSubscriptionId : undefined,
821
- authUserId: props.authUserId !== undefined ? {
822
- equals: props.authUserId
823
- } : undefined,
824
- name: props.name !== undefined ? {
825
- equals: props.name
826
- } : undefined,
827
- stripePriceId: props.stripePriceId !== undefined ? {
828
- equals: props.stripePriceId
829
- } : undefined,
830
819
  },
831
820
  data: {
832
821
  authUserId: props.authUserId !== undefined ? {
@@ -4627,17 +4616,6 @@ exports.Customer = {
4627
4616
  const variables = props.map(prop => ({
4628
4617
  where: {
4629
4618
  id: prop.id !== undefined ? prop.id : undefined,
4630
- stripeCustomerId: prop.stripeCustomerId !== undefined ? prop.stripeCustomerId : undefined,
4631
- stripeSubscriptionId: prop.stripeSubscriptionId !== undefined ? prop.stripeSubscriptionId : undefined,
4632
- authUserId: prop.authUserId !== undefined ? {
4633
- equals: prop.authUserId
4634
- } : undefined,
4635
- name: prop.name !== undefined ? {
4636
- equals: prop.name
4637
- } : undefined,
4638
- stripePriceId: prop.stripePriceId !== undefined ? {
4639
- equals: prop.stripePriceId
4640
- } : undefined,
4641
4619
  },
4642
4620
  data: {
4643
4621
  authUserId: prop.authUserId !== undefined ? {
@@ -6611,6 +6589,11 @@ exports.Customer = {
6611
6589
  },
6612
6590
  };
6613
6591
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6592
+ // Validate that we have at least one filter criteria
6593
+ // GraphQL requires a non-empty where clause for findMany
6594
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6595
+ throw new Error(`findManyCustomer requires at least one filter criterion. Received empty where clause.`);
6596
+ }
6614
6597
  const response = await client.query({
6615
6598
  query: FIND_MANY_CUSTOMER,
6616
6599
  variables: filteredVariables,
@@ -356,12 +356,6 @@ exports.DeadLetterMessage = {
356
356
  const variables = {
357
357
  where: {
358
358
  id: props.id !== undefined ? props.id : undefined,
359
- accountId: props.accountId !== undefined ? {
360
- equals: props.accountId
361
- } : undefined,
362
- status: props.status !== undefined ? {
363
- equals: props.status
364
- } : undefined,
365
359
  },
366
360
  data: {
367
361
  id: props.id !== undefined ? {
@@ -798,12 +792,6 @@ exports.DeadLetterMessage = {
798
792
  const variables = props.map(prop => ({
799
793
  where: {
800
794
  id: prop.id !== undefined ? prop.id : undefined,
801
- accountId: prop.accountId !== undefined ? {
802
- equals: prop.accountId
803
- } : undefined,
804
- status: prop.status !== undefined ? {
805
- equals: prop.status
806
- } : undefined,
807
795
  },
808
796
  data: {
809
797
  id: prop.id !== undefined ? {
@@ -1285,6 +1273,11 @@ exports.DeadLetterMessage = {
1285
1273
  },
1286
1274
  };
1287
1275
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1276
+ // Validate that we have at least one filter criteria
1277
+ // GraphQL requires a non-empty where clause for findMany
1278
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1279
+ throw new Error(`findManyDeadLetterMessage requires at least one filter criterion. Received empty where clause.`);
1280
+ }
1288
1281
  const response = await client.query({
1289
1282
  query: FIND_MANY_DEADLETTERMESSAGE,
1290
1283
  variables: filteredVariables,
@@ -289,18 +289,6 @@ exports.DecisionMemorySummary = {
289
289
  const variables = {
290
290
  where: {
291
291
  id: props.id !== undefined ? props.id : undefined,
292
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
293
- equals: props.alpacaAccountId
294
- } : undefined,
295
- symbol: props.symbol !== undefined ? {
296
- equals: props.symbol
297
- } : undefined,
298
- decisionRecordId: props.decisionRecordId !== undefined ? {
299
- equals: props.decisionRecordId
300
- } : undefined,
301
- correlationId: props.correlationId !== undefined ? {
302
- equals: props.correlationId
303
- } : undefined,
304
292
  },
305
293
  data: {
306
294
  id: props.id !== undefined ? {
@@ -618,18 +606,6 @@ exports.DecisionMemorySummary = {
618
606
  const variables = props.map(prop => ({
619
607
  where: {
620
608
  id: prop.id !== undefined ? prop.id : undefined,
621
- alpacaAccountId: prop.alpacaAccountId !== undefined ? {
622
- equals: prop.alpacaAccountId
623
- } : undefined,
624
- symbol: prop.symbol !== undefined ? {
625
- equals: prop.symbol
626
- } : undefined,
627
- decisionRecordId: prop.decisionRecordId !== undefined ? {
628
- equals: prop.decisionRecordId
629
- } : undefined,
630
- correlationId: prop.correlationId !== undefined ? {
631
- equals: prop.correlationId
632
- } : undefined,
633
609
  },
634
610
  data: {
635
611
  id: prop.id !== undefined ? {
@@ -1072,6 +1048,11 @@ exports.DecisionMemorySummary = {
1072
1048
  },
1073
1049
  };
1074
1050
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1051
+ // Validate that we have at least one filter criteria
1052
+ // GraphQL requires a non-empty where clause for findMany
1053
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1054
+ throw new Error(`findManyDecisionMemorySummary requires at least one filter criterion. Received empty where clause.`);
1055
+ }
1075
1056
  const response = await client.query({
1076
1057
  query: FIND_MANY_DECISIONMEMORYSUMMARY,
1077
1058
  variables: filteredVariables,
package/EconomicEvent.cjs CHANGED
@@ -273,9 +273,6 @@ exports.EconomicEvent = {
273
273
  const variables = {
274
274
  where: {
275
275
  id: props.id !== undefined ? props.id : undefined,
276
- title: props.title !== undefined ? {
277
- equals: props.title
278
- } : undefined,
279
276
  },
280
277
  data: {
281
278
  id: props.id !== undefined ? {
@@ -536,9 +533,6 @@ exports.EconomicEvent = {
536
533
  const variables = props.map(prop => ({
537
534
  where: {
538
535
  id: prop.id !== undefined ? prop.id : undefined,
539
- title: prop.title !== undefined ? {
540
- equals: prop.title
541
- } : undefined,
542
536
  },
543
537
  data: {
544
538
  id: prop.id !== undefined ? {
@@ -943,6 +937,11 @@ exports.EconomicEvent = {
943
937
  },
944
938
  };
945
939
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
940
+ // Validate that we have at least one filter criteria
941
+ // GraphQL requires a non-empty where clause for findMany
942
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
943
+ throw new Error(`findManyEconomicEvent requires at least one filter criterion. Received empty where clause.`);
944
+ }
946
945
  const response = await client.query({
947
946
  query: FIND_MANY_ECONOMICEVENT,
948
947
  variables: filteredVariables,
package/EquityBar.cjs CHANGED
@@ -290,13 +290,6 @@ exports.EquityBar = {
290
290
  const variables = {
291
291
  where: {
292
292
  id: props.id !== undefined ? props.id : undefined,
293
- ...(props.symbol !== undefined && props.timeStamp !== undefined && props.timespan !== undefined ? {
294
- symbol_timeStamp_timespan: {
295
- symbol: props.symbol,
296
- timeStamp: props.timeStamp,
297
- timespan: props.timespan,
298
- },
299
- } : {}),
300
293
  },
301
294
  data: {
302
295
  id: props.id !== undefined ? {
@@ -607,9 +600,6 @@ exports.EquityBar = {
607
600
  const variables = props.map(prop => ({
608
601
  where: {
609
602
  id: prop.id !== undefined ? prop.id : undefined,
610
- symbol: prop.symbol !== undefined ? {
611
- equals: prop.symbol
612
- } : undefined,
613
603
  },
614
604
  data: {
615
605
  id: prop.id !== undefined ? {
@@ -1032,6 +1022,11 @@ exports.EquityBar = {
1032
1022
  },
1033
1023
  };
1034
1024
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1025
+ // Validate that we have at least one filter criteria
1026
+ // GraphQL requires a non-empty where clause for findMany
1027
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1028
+ throw new Error(`findManyEquityBar requires at least one filter criterion. Received empty where clause.`);
1029
+ }
1035
1030
  const response = await client.query({
1036
1031
  query: FIND_MANY_EQUITYBAR,
1037
1032
  variables: filteredVariables,
package/Event.cjs CHANGED
@@ -327,31 +327,6 @@ exports.Event = {
327
327
  const variables = {
328
328
  where: {
329
329
  id: props.id !== undefined ? props.id : undefined,
330
- eventId: props.eventId !== undefined ? props.eventId : undefined,
331
- symbol: props.symbol !== undefined ? {
332
- equals: props.symbol
333
- } : undefined,
334
- accountId: props.accountId !== undefined ? {
335
- equals: props.accountId
336
- } : undefined,
337
- tradeId: props.tradeId !== undefined ? {
338
- equals: props.tradeId
339
- } : undefined,
340
- signalId: props.signalId !== undefined ? {
341
- equals: props.signalId
342
- } : undefined,
343
- orderId: props.orderId !== undefined ? {
344
- equals: props.orderId
345
- } : undefined,
346
- userId: props.userId !== undefined ? {
347
- equals: props.userId
348
- } : undefined,
349
- aggregateId: props.aggregateId !== undefined ? {
350
- equals: props.aggregateId
351
- } : undefined,
352
- retentionPolicyId: props.retentionPolicyId !== undefined ? {
353
- equals: props.retentionPolicyId
354
- } : undefined,
355
330
  },
356
331
  data: {
357
332
  id: props.id !== undefined ? {
@@ -744,31 +719,6 @@ exports.Event = {
744
719
  const variables = props.map(prop => ({
745
720
  where: {
746
721
  id: prop.id !== undefined ? prop.id : undefined,
747
- eventId: prop.eventId !== undefined ? prop.eventId : undefined,
748
- symbol: prop.symbol !== undefined ? {
749
- equals: prop.symbol
750
- } : undefined,
751
- accountId: prop.accountId !== undefined ? {
752
- equals: prop.accountId
753
- } : undefined,
754
- tradeId: prop.tradeId !== undefined ? {
755
- equals: prop.tradeId
756
- } : undefined,
757
- signalId: prop.signalId !== undefined ? {
758
- equals: prop.signalId
759
- } : undefined,
760
- orderId: prop.orderId !== undefined ? {
761
- equals: prop.orderId
762
- } : undefined,
763
- userId: prop.userId !== undefined ? {
764
- equals: prop.userId
765
- } : undefined,
766
- aggregateId: prop.aggregateId !== undefined ? {
767
- equals: prop.aggregateId
768
- } : undefined,
769
- retentionPolicyId: prop.retentionPolicyId !== undefined ? {
770
- equals: prop.retentionPolicyId
771
- } : undefined,
772
722
  },
773
723
  data: {
774
724
  id: prop.id !== undefined ? {
@@ -1265,6 +1215,11 @@ exports.Event = {
1265
1215
  },
1266
1216
  };
1267
1217
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1218
+ // Validate that we have at least one filter criteria
1219
+ // GraphQL requires a non-empty where clause for findMany
1220
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1221
+ throw new Error(`findManyEvent requires at least one filter criterion. Received empty where clause.`);
1222
+ }
1268
1223
  const response = await client.query({
1269
1224
  query: FIND_MANY_EVENT,
1270
1225
  variables: filteredVariables,
package/EventSnapshot.cjs CHANGED
@@ -276,9 +276,6 @@ exports.EventSnapshot = {
276
276
  const variables = {
277
277
  where: {
278
278
  id: props.id !== undefined ? props.id : undefined,
279
- aggregateId: props.aggregateId !== undefined ? {
280
- equals: props.aggregateId
281
- } : undefined,
282
279
  },
283
280
  data: {
284
281
  id: props.id !== undefined ? {
@@ -542,9 +539,6 @@ exports.EventSnapshot = {
542
539
  const variables = props.map(prop => ({
543
540
  where: {
544
541
  id: prop.id !== undefined ? prop.id : undefined,
545
- aggregateId: prop.aggregateId !== undefined ? {
546
- equals: prop.aggregateId
547
- } : undefined,
548
542
  },
549
543
  data: {
550
544
  id: prop.id !== undefined ? {
@@ -950,6 +944,11 @@ exports.EventSnapshot = {
950
944
  },
951
945
  };
952
946
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
947
+ // Validate that we have at least one filter criteria
948
+ // GraphQL requires a non-empty where clause for findMany
949
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
950
+ throw new Error(`findManyEventSnapshot requires at least one filter criterion. Received empty where clause.`);
951
+ }
953
952
  const response = await client.query({
954
953
  query: FIND_MANY_EVENTSNAPSHOT,
955
954
  variables: filteredVariables,
@@ -1173,9 +1173,6 @@ exports.FeatureImportanceAnalysis = {
1173
1173
  const variables = {
1174
1174
  where: {
1175
1175
  id: props.id !== undefined ? props.id : undefined,
1176
- modelVersionId: props.modelVersionId !== undefined ? {
1177
- equals: props.modelVersionId
1178
- } : undefined,
1179
1176
  },
1180
1177
  data: {
1181
1178
  id: props.id !== undefined ? {
@@ -8696,9 +8693,6 @@ exports.FeatureImportanceAnalysis = {
8696
8693
  const variables = props.map(prop => ({
8697
8694
  where: {
8698
8695
  id: prop.id !== undefined ? prop.id : undefined,
8699
- modelVersionId: prop.modelVersionId !== undefined ? {
8700
- equals: prop.modelVersionId
8701
- } : undefined,
8702
8696
  },
8703
8697
  data: {
8704
8698
  id: prop.id !== undefined ? {
@@ -12329,6 +12323,11 @@ exports.FeatureImportanceAnalysis = {
12329
12323
  },
12330
12324
  };
12331
12325
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
12326
+ // Validate that we have at least one filter criteria
12327
+ // GraphQL requires a non-empty where clause for findMany
12328
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
12329
+ throw new Error(`findManyFeatureImportanceAnalysis requires at least one filter criterion. Received empty where clause.`);
12330
+ }
12332
12331
  const response = await client.query({
12333
12332
  query: FIND_MANY_FEATUREIMPORTANCEANALYSIS,
12334
12333
  variables: filteredVariables,
@@ -497,9 +497,6 @@ exports.InstitutionalFlowSignal = {
497
497
  const variables = {
498
498
  where: {
499
499
  id: props.id !== undefined ? props.id : undefined,
500
- symbol: props.symbol !== undefined ? {
501
- equals: props.symbol
502
- } : undefined,
503
500
  },
504
501
  data: {
505
502
  id: props.id !== undefined ? {
@@ -2018,9 +2015,6 @@ exports.InstitutionalFlowSignal = {
2018
2015
  const variables = props.map(prop => ({
2019
2016
  where: {
2020
2017
  id: prop.id !== undefined ? prop.id : undefined,
2021
- symbol: prop.symbol !== undefined ? {
2022
- equals: prop.symbol
2023
- } : undefined,
2024
2018
  },
2025
2019
  data: {
2026
2020
  id: prop.id !== undefined ? {
@@ -2973,6 +2967,11 @@ exports.InstitutionalFlowSignal = {
2973
2967
  },
2974
2968
  };
2975
2969
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2970
+ // Validate that we have at least one filter criteria
2971
+ // GraphQL requires a non-empty where clause for findMany
2972
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
2973
+ throw new Error(`findManyInstitutionalFlowSignal requires at least one filter criterion. Received empty where clause.`);
2974
+ }
2976
2975
  const response = await client.query({
2977
2976
  query: FIND_MANY_INSTITUTIONALFLOWSIGNAL,
2978
2977
  variables: filteredVariables,
@@ -504,9 +504,6 @@ exports.InstitutionalHolding = {
504
504
  const variables = {
505
505
  where: {
506
506
  id: props.id !== undefined ? props.id : undefined,
507
- symbol: props.symbol !== undefined ? {
508
- equals: props.symbol
509
- } : undefined,
510
507
  },
511
508
  data: {
512
509
  id: props.id !== undefined ? {
@@ -2016,9 +2013,6 @@ exports.InstitutionalHolding = {
2016
2013
  const variables = props.map(prop => ({
2017
2014
  where: {
2018
2015
  id: prop.id !== undefined ? prop.id : undefined,
2019
- symbol: prop.symbol !== undefined ? {
2020
- equals: prop.symbol
2021
- } : undefined,
2022
2016
  },
2023
2017
  data: {
2024
2018
  id: prop.id !== undefined ? {
@@ -2968,6 +2962,11 @@ exports.InstitutionalHolding = {
2968
2962
  },
2969
2963
  };
2970
2964
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2965
+ // Validate that we have at least one filter criteria
2966
+ // GraphQL requires a non-empty where clause for findMany
2967
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
2968
+ throw new Error(`findManyInstitutionalHolding requires at least one filter criterion. Received empty where clause.`);
2969
+ }
2971
2970
  const response = await client.query({
2972
2971
  query: FIND_MANY_INSTITUTIONALHOLDING,
2973
2972
  variables: filteredVariables,
@@ -288,9 +288,6 @@ exports.InstitutionalSentimentAlerts = {
288
288
  const variables = {
289
289
  where: {
290
290
  id: props.id !== undefined ? props.id : undefined,
291
- type: props.type !== undefined ? {
292
- equals: props.type
293
- } : undefined,
294
291
  },
295
292
  data: {
296
293
  id: props.id !== undefined ? {
@@ -586,9 +583,6 @@ exports.InstitutionalSentimentAlerts = {
586
583
  const variables = props.map(prop => ({
587
584
  where: {
588
585
  id: prop.id !== undefined ? prop.id : undefined,
589
- type: prop.type !== undefined ? {
590
- equals: prop.type
591
- } : undefined,
592
586
  },
593
587
  data: {
594
588
  id: prop.id !== undefined ? {
@@ -1008,6 +1002,11 @@ exports.InstitutionalSentimentAlerts = {
1008
1002
  },
1009
1003
  };
1010
1004
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1005
+ // Validate that we have at least one filter criteria
1006
+ // GraphQL requires a non-empty where clause for findMany
1007
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1008
+ throw new Error(`findManyInstitutionalSentimentAlerts requires at least one filter criterion. Received empty where clause.`);
1009
+ }
1011
1010
  const response = await client.query({
1012
1011
  query: FIND_MANY_INSTITUTIONALSENTIMENTALERTS,
1013
1012
  variables: filteredVariables,
@@ -934,6 +934,11 @@ exports.InstitutionalSentimentErrors = {
934
934
  },
935
935
  };
936
936
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
937
+ // Validate that we have at least one filter criteria
938
+ // GraphQL requires a non-empty where clause for findMany
939
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
940
+ throw new Error(`findManyInstitutionalSentimentErrors requires at least one filter criterion. Received empty where clause.`);
941
+ }
937
942
  const response = await client.query({
938
943
  query: FIND_MANY_INSTITUTIONALSENTIMENTERRORS,
939
944
  variables: filteredVariables,
@@ -393,9 +393,6 @@ exports.InstitutionalSentimentHistory = {
393
393
  const variables = {
394
394
  where: {
395
395
  id: props.id !== undefined ? props.id : undefined,
396
- symbol: props.symbol !== undefined ? {
397
- equals: props.symbol
398
- } : undefined,
399
396
  },
400
397
  data: {
401
398
  id: props.id !== undefined ? {
@@ -936,9 +933,6 @@ exports.InstitutionalSentimentHistory = {
936
933
  const variables = props.map(prop => ({
937
934
  where: {
938
935
  id: prop.id !== undefined ? prop.id : undefined,
939
- symbol: prop.symbol !== undefined ? {
940
- equals: prop.symbol
941
- } : undefined,
942
936
  },
943
937
  data: {
944
938
  id: prop.id !== undefined ? {
@@ -1463,6 +1457,11 @@ exports.InstitutionalSentimentHistory = {
1463
1457
  },
1464
1458
  };
1465
1459
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1460
+ // Validate that we have at least one filter criteria
1461
+ // GraphQL requires a non-empty where clause for findMany
1462
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1463
+ throw new Error(`findManyInstitutionalSentimentHistory requires at least one filter criterion. Received empty where clause.`);
1464
+ }
1466
1465
  const response = await client.query({
1467
1466
  query: FIND_MANY_INSTITUTIONALSENTIMENTHISTORY,
1468
1467
  variables: filteredVariables,
@@ -960,6 +960,11 @@ exports.InstitutionalSentimentMetrics = {
960
960
  },
961
961
  };
962
962
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
963
+ // Validate that we have at least one filter criteria
964
+ // GraphQL requires a non-empty where clause for findMany
965
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
966
+ throw new Error(`findManyInstitutionalSentimentMetrics requires at least one filter criterion. Received empty where clause.`);
967
+ }
963
968
  const response = await client.query({
964
969
  query: FIND_MANY_INSTITUTIONALSENTIMENTMETRICS,
965
970
  variables: filteredVariables,
package/InviteToken.cjs CHANGED
@@ -578,10 +578,6 @@ exports.InviteToken = {
578
578
  const variables = {
579
579
  where: {
580
580
  id: props.id !== undefined ? props.id : undefined,
581
- waitlistEntryId: props.waitlistEntryId !== undefined ? props.waitlistEntryId : undefined,
582
- email: props.email !== undefined ? {
583
- equals: props.email
584
- } : undefined,
585
581
  },
586
582
  data: {
587
583
  id: props.id !== undefined ? {
@@ -3506,10 +3502,6 @@ exports.InviteToken = {
3506
3502
  const variables = props.map(prop => ({
3507
3503
  where: {
3508
3504
  id: prop.id !== undefined ? prop.id : undefined,
3509
- waitlistEntryId: prop.waitlistEntryId !== undefined ? prop.waitlistEntryId : undefined,
3510
- email: prop.email !== undefined ? {
3511
- equals: prop.email
3512
- } : undefined,
3513
3505
  },
3514
3506
  data: {
3515
3507
  id: prop.id !== undefined ? {
@@ -5094,6 +5086,11 @@ exports.InviteToken = {
5094
5086
  },
5095
5087
  };
5096
5088
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
5089
+ // Validate that we have at least one filter criteria
5090
+ // GraphQL requires a non-empty where clause for findMany
5091
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
5092
+ throw new Error(`findManyInviteToken requires at least one filter criterion. Received empty where clause.`);
5093
+ }
5097
5094
  const response = await client.query({
5098
5095
  query: FIND_MANY_INVITETOKEN,
5099
5096
  variables: filteredVariables,
@@ -713,15 +713,6 @@ exports.LinkedProvider = {
713
713
  const variables = {
714
714
  where: {
715
715
  id: props.id !== undefined ? props.id : undefined,
716
- userId: props.userId !== undefined ? {
717
- equals: props.userId
718
- } : undefined,
719
- providerAccountId: props.providerAccountId !== undefined ? {
720
- equals: props.providerAccountId
721
- } : undefined,
722
- email: props.email !== undefined ? {
723
- equals: props.email
724
- } : undefined,
725
716
  },
726
717
  data: {
727
718
  id: props.id !== undefined ? {
@@ -4548,15 +4539,6 @@ exports.LinkedProvider = {
4548
4539
  const variables = props.map(prop => ({
4549
4540
  where: {
4550
4541
  id: prop.id !== undefined ? prop.id : undefined,
4551
- userId: prop.userId !== undefined ? {
4552
- equals: prop.userId
4553
- } : undefined,
4554
- providerAccountId: prop.providerAccountId !== undefined ? {
4555
- equals: prop.providerAccountId
4556
- } : undefined,
4557
- email: prop.email !== undefined ? {
4558
- equals: prop.email
4559
- } : undefined,
4560
4542
  },
4561
4543
  data: {
4562
4544
  id: prop.id !== undefined ? {
@@ -6535,6 +6517,11 @@ exports.LinkedProvider = {
6535
6517
  },
6536
6518
  };
6537
6519
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6520
+ // Validate that we have at least one filter criteria
6521
+ // GraphQL requires a non-empty where clause for findMany
6522
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6523
+ throw new Error(`findManyLinkedProvider requires at least one filter criterion. Received empty where clause.`);
6524
+ }
6538
6525
  const response = await client.query({
6539
6526
  query: FIND_MANY_LINKEDPROVIDER,
6540
6527
  variables: filteredVariables,
@@ -729,7 +729,6 @@ exports.LlmConfiguration = {
729
729
  const variables = {
730
730
  where: {
731
731
  id: props.id !== undefined ? props.id : undefined,
732
- userId: props.userId !== undefined ? props.userId : undefined,
733
732
  },
734
733
  data: {
735
734
  id: props.id !== undefined ? {
@@ -4553,7 +4552,6 @@ exports.LlmConfiguration = {
4553
4552
  const variables = props.map(prop => ({
4554
4553
  where: {
4555
4554
  id: prop.id !== undefined ? prop.id : undefined,
4556
- userId: prop.userId !== undefined ? prop.userId : undefined,
4557
4555
  },
4558
4556
  data: {
4559
4557
  id: prop.id !== undefined ? {
@@ -6518,6 +6516,11 @@ exports.LlmConfiguration = {
6518
6516
  },
6519
6517
  };
6520
6518
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6519
+ // Validate that we have at least one filter criteria
6520
+ // GraphQL requires a non-empty where clause for findMany
6521
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6522
+ throw new Error(`findManyLlmConfiguration requires at least one filter criterion. Received empty where clause.`);
6523
+ }
6521
6524
  const response = await client.query({
6522
6525
  query: FIND_MANY_LLMCONFIGURATION,
6523
6526
  variables: filteredVariables,
@@ -1006,6 +1006,11 @@ exports.MLModelVersion = {
1006
1006
  },
1007
1007
  };
1008
1008
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1009
+ // Validate that we have at least one filter criteria
1010
+ // GraphQL requires a non-empty where clause for findMany
1011
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1012
+ throw new Error(`findManyMLModelVersion requires at least one filter criterion. Received empty where clause.`);
1013
+ }
1009
1014
  const response = await client.query({
1010
1015
  query: FIND_MANY_MLMODELVERSION,
1011
1016
  variables: filteredVariables,
@@ -405,12 +405,6 @@ exports.MLTrainingData = {
405
405
  const variables = {
406
406
  where: {
407
407
  id: props.id !== undefined ? props.id : undefined,
408
- signalId: props.signalId !== undefined ? {
409
- equals: props.signalId
410
- } : undefined,
411
- symbol: props.symbol !== undefined ? {
412
- equals: props.symbol
413
- } : undefined,
414
408
  },
415
409
  data: {
416
410
  id: props.id !== undefined ? {
@@ -974,12 +968,6 @@ exports.MLTrainingData = {
974
968
  const variables = props.map(prop => ({
975
969
  where: {
976
970
  id: prop.id !== undefined ? prop.id : undefined,
977
- signalId: prop.signalId !== undefined ? {
978
- equals: prop.signalId
979
- } : undefined,
980
- symbol: prop.symbol !== undefined ? {
981
- equals: prop.symbol
982
- } : undefined,
983
971
  },
984
972
  data: {
985
973
  id: prop.id !== undefined ? {
@@ -1518,6 +1506,11 @@ exports.MLTrainingData = {
1518
1506
  },
1519
1507
  };
1520
1508
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1509
+ // Validate that we have at least one filter criteria
1510
+ // GraphQL requires a non-empty where clause for findMany
1511
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1512
+ throw new Error(`findManyMLTrainingData requires at least one filter criterion. Received empty where clause.`);
1513
+ }
1521
1514
  const response = await client.query({
1522
1515
  query: FIND_MANY_MLTRAININGDATA,
1523
1516
  variables: filteredVariables,