@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/ABTest.cjs CHANGED
@@ -1935,18 +1935,6 @@ exports.ABTest = {
1935
1935
  const variables = {
1936
1936
  where: {
1937
1937
  id: props.id !== undefined ? props.id : undefined,
1938
- name: props.name !== undefined ? {
1939
- equals: props.name
1940
- } : undefined,
1941
- status: props.status !== undefined ? {
1942
- equals: props.status
1943
- } : undefined,
1944
- modelVersionAId: props.modelVersionAId !== undefined ? {
1945
- equals: props.modelVersionAId
1946
- } : undefined,
1947
- modelVersionBId: props.modelVersionBId !== undefined ? {
1948
- equals: props.modelVersionBId
1949
- } : undefined,
1950
1938
  },
1951
1939
  data: {
1952
1940
  id: props.id !== undefined ? {
@@ -15374,18 +15362,6 @@ exports.ABTest = {
15374
15362
  const variables = props.map(prop => ({
15375
15363
  where: {
15376
15364
  id: prop.id !== undefined ? prop.id : undefined,
15377
- name: prop.name !== undefined ? {
15378
- equals: prop.name
15379
- } : undefined,
15380
- status: prop.status !== undefined ? {
15381
- equals: prop.status
15382
- } : undefined,
15383
- modelVersionAId: prop.modelVersionAId !== undefined ? {
15384
- equals: prop.modelVersionAId
15385
- } : undefined,
15386
- modelVersionBId: prop.modelVersionBId !== undefined ? {
15387
- equals: prop.modelVersionBId
15388
- } : undefined,
15389
15365
  },
15390
15366
  data: {
15391
15367
  id: prop.id !== undefined ? {
@@ -21648,6 +21624,11 @@ exports.ABTest = {
21648
21624
  },
21649
21625
  };
21650
21626
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
21627
+ // Validate that we have at least one filter criteria
21628
+ // GraphQL requires a non-empty where clause for findMany
21629
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
21630
+ throw new Error(`findManyABTest requires at least one filter criterion. Received empty where clause.`);
21631
+ }
21651
21632
  const response = await client.query({
21652
21633
  query: FIND_MANY_ABTEST,
21653
21634
  variables: filteredVariables,
package/Account.cjs CHANGED
@@ -722,13 +722,6 @@ exports.Account = {
722
722
  const variables = {
723
723
  where: {
724
724
  id: props.id !== undefined ? props.id : undefined,
725
- providerAccountId: props.providerAccountId !== undefined ? props.providerAccountId : undefined,
726
- userId: props.userId !== undefined ? {
727
- equals: props.userId
728
- } : undefined,
729
- type: props.type !== undefined ? {
730
- equals: props.type
731
- } : undefined,
732
725
  },
733
726
  data: {
734
727
  id: props.id !== undefined ? {
@@ -4554,13 +4547,6 @@ exports.Account = {
4554
4547
  const variables = props.map(prop => ({
4555
4548
  where: {
4556
4549
  id: prop.id !== undefined ? prop.id : undefined,
4557
- providerAccountId: prop.providerAccountId !== undefined ? prop.providerAccountId : undefined,
4558
- userId: prop.userId !== undefined ? {
4559
- equals: prop.userId
4560
- } : undefined,
4561
- type: prop.type !== undefined ? {
4562
- equals: prop.type
4563
- } : undefined,
4564
4550
  },
4565
4551
  data: {
4566
4552
  id: prop.id !== undefined ? {
@@ -6538,6 +6524,11 @@ exports.Account = {
6538
6524
  },
6539
6525
  };
6540
6526
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6527
+ // Validate that we have at least one filter criteria
6528
+ // GraphQL requires a non-empty where clause for findMany
6529
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6530
+ throw new Error(`findManyAccount requires at least one filter criterion. Received empty where clause.`);
6531
+ }
6541
6532
  const response = await client.query({
6542
6533
  query: FIND_MANY_ACCOUNT,
6543
6534
  variables: filteredVariables,
@@ -345,22 +345,6 @@ exports.AccountDecisionRecord = {
345
345
  const variables = {
346
346
  where: {
347
347
  id: props.id !== undefined ? props.id : undefined,
348
- correlationId: props.correlationId !== undefined ? props.correlationId : undefined,
349
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
350
- equals: props.alpacaAccountId
351
- } : undefined,
352
- opportunityId: props.opportunityId !== undefined ? {
353
- equals: props.opportunityId
354
- } : undefined,
355
- symbol: props.symbol !== undefined ? {
356
- equals: props.symbol
357
- } : undefined,
358
- modelId: props.modelId !== undefined ? {
359
- equals: props.modelId
360
- } : undefined,
361
- status: props.status !== undefined ? {
362
- equals: props.status
363
- } : undefined,
364
348
  },
365
349
  data: {
366
350
  id: props.id !== undefined ? {
@@ -766,22 +750,6 @@ exports.AccountDecisionRecord = {
766
750
  const variables = props.map(prop => ({
767
751
  where: {
768
752
  id: prop.id !== undefined ? prop.id : undefined,
769
- correlationId: prop.correlationId !== undefined ? prop.correlationId : undefined,
770
- alpacaAccountId: prop.alpacaAccountId !== undefined ? {
771
- equals: prop.alpacaAccountId
772
- } : undefined,
773
- opportunityId: prop.opportunityId !== undefined ? {
774
- equals: prop.opportunityId
775
- } : undefined,
776
- symbol: prop.symbol !== undefined ? {
777
- equals: prop.symbol
778
- } : undefined,
779
- modelId: prop.modelId !== undefined ? {
780
- equals: prop.modelId
781
- } : undefined,
782
- status: prop.status !== undefined ? {
783
- equals: prop.status
784
- } : undefined,
785
753
  },
786
754
  data: {
787
755
  id: prop.id !== undefined ? {
@@ -1268,6 +1236,11 @@ exports.AccountDecisionRecord = {
1268
1236
  },
1269
1237
  };
1270
1238
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1239
+ // Validate that we have at least one filter criteria
1240
+ // GraphQL requires a non-empty where clause for findMany
1241
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1242
+ throw new Error(`findManyAccountDecisionRecord requires at least one filter criterion. Received empty where clause.`);
1243
+ }
1271
1244
  const response = await client.query({
1272
1245
  query: FIND_MANY_ACCOUNTDECISIONRECORD,
1273
1246
  variables: filteredVariables,
@@ -718,18 +718,6 @@ exports.AccountLinkingRequest = {
718
718
  const variables = {
719
719
  where: {
720
720
  id: props.id !== undefined ? props.id : undefined,
721
- userId: props.userId !== undefined ? {
722
- equals: props.userId
723
- } : undefined,
724
- email: props.email !== undefined ? {
725
- equals: props.email
726
- } : undefined,
727
- providerAccountId: props.providerAccountId !== undefined ? {
728
- equals: props.providerAccountId
729
- } : undefined,
730
- status: props.status !== undefined ? {
731
- equals: props.status
732
- } : undefined,
733
721
  },
734
722
  data: {
735
723
  id: props.id !== undefined ? {
@@ -4528,18 +4516,6 @@ exports.AccountLinkingRequest = {
4528
4516
  const variables = props.map(prop => ({
4529
4517
  where: {
4530
4518
  id: prop.id !== undefined ? prop.id : undefined,
4531
- userId: prop.userId !== undefined ? {
4532
- equals: prop.userId
4533
- } : undefined,
4534
- email: prop.email !== undefined ? {
4535
- equals: prop.email
4536
- } : undefined,
4537
- providerAccountId: prop.providerAccountId !== undefined ? {
4538
- equals: prop.providerAccountId
4539
- } : undefined,
4540
- status: prop.status !== undefined ? {
4541
- equals: prop.status
4542
- } : undefined,
4543
4519
  },
4544
4520
  data: {
4545
4521
  id: prop.id !== undefined ? {
@@ -6510,6 +6486,11 @@ exports.AccountLinkingRequest = {
6510
6486
  },
6511
6487
  };
6512
6488
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6489
+ // Validate that we have at least one filter criteria
6490
+ // GraphQL requires a non-empty where clause for findMany
6491
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6492
+ throw new Error(`findManyAccountLinkingRequest requires at least one filter criterion. Received empty where clause.`);
6493
+ }
6513
6494
  const response = await client.query({
6514
6495
  query: FIND_MANY_ACCOUNTLINKINGREQUEST,
6515
6496
  variables: filteredVariables,
package/Action.cjs CHANGED
@@ -341,16 +341,6 @@ exports.Action = {
341
341
  const variables = {
342
342
  where: {
343
343
  id: props.id !== undefined ? props.id : undefined,
344
- alpacaOrderId: props.alpacaOrderId !== undefined ? props.alpacaOrderId : undefined,
345
- tradeId: props.tradeId !== undefined ? {
346
- equals: props.tradeId
347
- } : undefined,
348
- type: props.type !== undefined ? {
349
- equals: props.type
350
- } : undefined,
351
- status: props.status !== undefined ? {
352
- equals: props.status
353
- } : undefined,
354
344
  },
355
345
  data: {
356
346
  id: props.id !== undefined ? {
@@ -994,16 +984,6 @@ exports.Action = {
994
984
  const variables = props.map(prop => ({
995
985
  where: {
996
986
  id: prop.id !== undefined ? prop.id : undefined,
997
- alpacaOrderId: prop.alpacaOrderId !== undefined ? prop.alpacaOrderId : undefined,
998
- tradeId: prop.tradeId !== undefined ? {
999
- equals: prop.tradeId
1000
- } : undefined,
1001
- type: prop.type !== undefined ? {
1002
- equals: prop.type
1003
- } : undefined,
1004
- status: prop.status !== undefined ? {
1005
- equals: prop.status
1006
- } : undefined,
1007
987
  },
1008
988
  data: {
1009
989
  id: prop.id !== undefined ? {
@@ -1581,6 +1561,11 @@ exports.Action = {
1581
1561
  },
1582
1562
  };
1583
1563
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1564
+ // Validate that we have at least one filter criteria
1565
+ // GraphQL requires a non-empty where clause for findMany
1566
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1567
+ throw new Error(`findManyAction requires at least one filter criterion. Received empty where clause.`);
1568
+ }
1584
1569
  const response = await client.query({
1585
1570
  query: FIND_MANY_ACTION,
1586
1571
  variables: filteredVariables,
package/Alert.cjs CHANGED
@@ -735,18 +735,6 @@ exports.Alert = {
735
735
  const variables = {
736
736
  where: {
737
737
  id: props.id !== undefined ? props.id : undefined,
738
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
739
- equals: props.alpacaAccountId
740
- } : undefined,
741
- title: props.title !== undefined ? {
742
- equals: props.title
743
- } : undefined,
744
- type: props.type !== undefined ? {
745
- equals: props.type
746
- } : undefined,
747
- status: props.status !== undefined ? {
748
- equals: props.status
749
- } : undefined,
750
738
  },
751
739
  data: {
752
740
  id: props.id !== undefined ? {
@@ -4842,18 +4830,6 @@ exports.Alert = {
4842
4830
  const variables = props.map(prop => ({
4843
4831
  where: {
4844
4832
  id: prop.id !== undefined ? prop.id : undefined,
4845
- alpacaAccountId: prop.alpacaAccountId !== undefined ? {
4846
- equals: prop.alpacaAccountId
4847
- } : undefined,
4848
- title: prop.title !== undefined ? {
4849
- equals: prop.title
4850
- } : undefined,
4851
- type: prop.type !== undefined ? {
4852
- equals: prop.type
4853
- } : undefined,
4854
- status: prop.status !== undefined ? {
4855
- equals: prop.status
4856
- } : undefined,
4857
4833
  },
4858
4834
  data: {
4859
4835
  id: prop.id !== undefined ? {
@@ -6966,6 +6942,11 @@ exports.Alert = {
6966
6942
  },
6967
6943
  };
6968
6944
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6945
+ // Validate that we have at least one filter criteria
6946
+ // GraphQL requires a non-empty where clause for findMany
6947
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6948
+ throw new Error(`findManyAlert requires at least one filter criterion. Received empty where clause.`);
6949
+ }
6969
6950
  const response = await client.query({
6970
6951
  query: FIND_MANY_ALERT,
6971
6952
  variables: filteredVariables,
package/Allocation.cjs CHANGED
@@ -759,7 +759,6 @@ exports.Allocation = {
759
759
  const variables = {
760
760
  where: {
761
761
  id: props.id !== undefined ? props.id : undefined,
762
- alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
763
762
  },
764
763
  data: {
765
764
  id: props.id !== undefined ? {
@@ -4905,7 +4904,6 @@ exports.Allocation = {
4905
4904
  const variables = props.map(prop => ({
4906
4905
  where: {
4907
4906
  id: prop.id !== undefined ? prop.id : undefined,
4908
- alpacaAccountId: prop.alpacaAccountId !== undefined ? prop.alpacaAccountId : undefined,
4909
4907
  },
4910
4908
  data: {
4911
4909
  id: prop.id !== undefined ? {
@@ -7023,6 +7021,11 @@ exports.Allocation = {
7023
7021
  },
7024
7022
  };
7025
7023
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
7024
+ // Validate that we have at least one filter criteria
7025
+ // GraphQL requires a non-empty where clause for findMany
7026
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
7027
+ throw new Error(`findManyAllocation requires at least one filter criterion. Received empty where clause.`);
7028
+ }
7026
7029
  const response = await client.query({
7027
7030
  query: FIND_MANY_ALLOCATION,
7028
7031
  variables: filteredVariables,
package/AlpacaAccount.cjs CHANGED
@@ -840,12 +840,6 @@ exports.AlpacaAccount = {
840
840
  const variables = {
841
841
  where: {
842
842
  id: props.id !== undefined ? props.id : undefined,
843
- type: props.type !== undefined ? {
844
- equals: props.type
845
- } : undefined,
846
- userId: props.userId !== undefined ? {
847
- equals: props.userId
848
- } : undefined,
849
843
  },
850
844
  data: {
851
845
  id: props.id !== undefined ? {
@@ -4344,12 +4338,6 @@ exports.AlpacaAccount = {
4344
4338
  const variables = props.map(prop => ({
4345
4339
  where: {
4346
4340
  id: prop.id !== undefined ? prop.id : undefined,
4347
- type: prop.type !== undefined ? {
4348
- equals: prop.type
4349
- } : undefined,
4350
- userId: prop.userId !== undefined ? {
4351
- equals: prop.userId
4352
- } : undefined,
4353
4341
  },
4354
4342
  data: {
4355
4343
  id: prop.id !== undefined ? {
@@ -6140,6 +6128,11 @@ exports.AlpacaAccount = {
6140
6128
  },
6141
6129
  };
6142
6130
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6131
+ // Validate that we have at least one filter criteria
6132
+ // GraphQL requires a non-empty where clause for findMany
6133
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6134
+ throw new Error(`findManyAlpacaAccount requires at least one filter criterion. Received empty where clause.`);
6135
+ }
6143
6136
  const response = await client.query({
6144
6137
  query: FIND_MANY_ALPACAACCOUNT,
6145
6138
  variables: filteredVariables,
@@ -276,10 +276,6 @@ exports.AnalyticsConfiguration = {
276
276
  const variables = {
277
277
  where: {
278
278
  id: props.id !== undefined ? props.id : undefined,
279
- configKey: props.configKey !== undefined ? props.configKey : undefined,
280
- symbol: props.symbol !== undefined ? {
281
- equals: props.symbol
282
- } : undefined,
283
279
  },
284
280
  data: {
285
281
  id: props.id !== undefined ? {
@@ -540,10 +536,6 @@ exports.AnalyticsConfiguration = {
540
536
  const variables = props.map(prop => ({
541
537
  where: {
542
538
  id: prop.id !== undefined ? prop.id : undefined,
543
- configKey: prop.configKey !== undefined ? prop.configKey : undefined,
544
- symbol: prop.symbol !== undefined ? {
545
- equals: prop.symbol
546
- } : undefined,
547
539
  },
548
540
  data: {
549
541
  id: prop.id !== undefined ? {
@@ -951,6 +943,11 @@ exports.AnalyticsConfiguration = {
951
943
  },
952
944
  };
953
945
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
946
+ // Validate that we have at least one filter criteria
947
+ // GraphQL requires a non-empty where clause for findMany
948
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
949
+ throw new Error(`findManyAnalyticsConfiguration requires at least one filter criterion. Received empty where clause.`);
950
+ }
954
951
  const response = await client.query({
955
952
  query: FIND_MANY_ANALYTICSCONFIGURATION,
956
953
  variables: filteredVariables,
@@ -273,9 +273,6 @@ exports.AnalyticsSnapshot = {
273
273
  const variables = {
274
274
  where: {
275
275
  id: props.id !== undefined ? props.id : undefined,
276
- symbol: props.symbol !== undefined ? {
277
- equals: props.symbol
278
- } : undefined,
279
276
  },
280
277
  data: {
281
278
  id: props.id !== undefined ? {
@@ -532,9 +529,6 @@ exports.AnalyticsSnapshot = {
532
529
  const variables = props.map(prop => ({
533
530
  where: {
534
531
  id: prop.id !== undefined ? prop.id : undefined,
535
- symbol: prop.symbol !== undefined ? {
536
- equals: prop.symbol
537
- } : undefined,
538
532
  },
539
533
  data: {
540
534
  id: prop.id !== undefined ? {
@@ -937,6 +931,11 @@ exports.AnalyticsSnapshot = {
937
931
  },
938
932
  };
939
933
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
934
+ // Validate that we have at least one filter criteria
935
+ // GraphQL requires a non-empty where clause for findMany
936
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
937
+ throw new Error(`findManyAnalyticsSnapshot requires at least one filter criterion. Received empty where clause.`);
938
+ }
940
939
  const response = await client.query({
941
940
  query: FIND_MANY_ANALYTICSSNAPSHOT,
942
941
  variables: filteredVariables,
package/Asset.cjs CHANGED
@@ -532,11 +532,6 @@ exports.Asset = {
532
532
  const variables = {
533
533
  where: {
534
534
  id: props.id !== undefined ? props.id : undefined,
535
- symbol: props.symbol !== undefined ? props.symbol : undefined,
536
- name: props.name !== undefined ? props.name : undefined,
537
- type: props.type !== undefined ? {
538
- equals: props.type
539
- } : undefined,
540
535
  },
541
536
  data: {
542
537
  id: props.id !== undefined ? {
@@ -1776,11 +1771,6 @@ exports.Asset = {
1776
1771
  const variables = props.map(prop => ({
1777
1772
  where: {
1778
1773
  id: prop.id !== undefined ? prop.id : undefined,
1779
- symbol: prop.symbol !== undefined ? prop.symbol : undefined,
1780
- name: prop.name !== undefined ? prop.name : undefined,
1781
- type: prop.type !== undefined ? {
1782
- equals: prop.type
1783
- } : undefined,
1784
1774
  },
1785
1775
  data: {
1786
1776
  id: prop.id !== undefined ? {
@@ -2603,6 +2593,11 @@ exports.Asset = {
2603
2593
  },
2604
2594
  };
2605
2595
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
2596
+ // Validate that we have at least one filter criteria
2597
+ // GraphQL requires a non-empty where clause for findMany
2598
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
2599
+ throw new Error(`findManyAsset requires at least one filter criterion. Received empty where clause.`);
2600
+ }
2606
2601
  const response = await client.query({
2607
2602
  query: FIND_MANY_ASSET,
2608
2603
  variables: filteredVariables,
package/AuditLog.cjs CHANGED
@@ -286,9 +286,6 @@ exports.AuditLog = {
286
286
  const variables = {
287
287
  where: {
288
288
  id: props.id !== undefined ? props.id : undefined,
289
- recordId: props.recordId !== undefined ? {
290
- equals: props.recordId
291
- } : undefined,
292
289
  },
293
290
  data: {
294
291
  id: props.id !== undefined ? {
@@ -570,9 +567,6 @@ exports.AuditLog = {
570
567
  const variables = props.map(prop => ({
571
568
  where: {
572
569
  id: prop.id !== undefined ? prop.id : undefined,
573
- recordId: prop.recordId !== undefined ? {
574
- equals: prop.recordId
575
- } : undefined,
576
570
  },
577
571
  data: {
578
572
  id: prop.id !== undefined ? {
@@ -982,6 +976,11 @@ exports.AuditLog = {
982
976
  },
983
977
  };
984
978
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
979
+ // Validate that we have at least one filter criteria
980
+ // GraphQL requires a non-empty where clause for findMany
981
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
982
+ throw new Error(`findManyAuditLog requires at least one filter criterion. Received empty where clause.`);
983
+ }
985
984
  const response = await client.query({
986
985
  query: FIND_MANY_AUDITLOG,
987
986
  variables: filteredVariables,
package/Authenticator.cjs CHANGED
@@ -712,9 +712,6 @@ exports.Authenticator = {
712
712
  const variables = {
713
713
  where: {
714
714
  id: props.id !== undefined ? props.id : undefined,
715
- userId: props.userId !== undefined ? {
716
- equals: props.userId
717
- } : undefined,
718
715
  },
719
716
  data: {
720
717
  id: props.id !== undefined ? {
@@ -4584,9 +4581,6 @@ exports.Authenticator = {
4584
4581
  const variables = props.map(prop => ({
4585
4582
  where: {
4586
4583
  id: prop.id !== undefined ? prop.id : undefined,
4587
- userId: prop.userId !== undefined ? {
4588
- equals: prop.userId
4589
- } : undefined,
4590
4584
  },
4591
4585
  data: {
4592
4586
  id: prop.id !== undefined ? {
@@ -6576,6 +6570,11 @@ exports.Authenticator = {
6576
6570
  },
6577
6571
  };
6578
6572
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6573
+ // Validate that we have at least one filter criteria
6574
+ // GraphQL requires a non-empty where clause for findMany
6575
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6576
+ throw new Error(`findManyAuthenticator requires at least one filter criterion. Received empty where clause.`);
6577
+ }
6579
6578
  const response = await client.query({
6580
6579
  query: FIND_MANY_AUTHENTICATOR,
6581
6580
  variables: filteredVariables,
package/Configuration.cjs CHANGED
@@ -281,10 +281,6 @@ exports.Configuration = {
281
281
  const variables = {
282
282
  where: {
283
283
  id: props.id !== undefined ? props.id : undefined,
284
- configKey: props.configKey !== undefined ? props.configKey : undefined,
285
- type: props.type !== undefined ? {
286
- equals: props.type
287
- } : undefined,
288
284
  },
289
285
  data: {
290
286
  id: props.id !== undefined ? {
@@ -570,10 +566,6 @@ exports.Configuration = {
570
566
  const variables = props.map(prop => ({
571
567
  where: {
572
568
  id: prop.id !== undefined ? prop.id : undefined,
573
- configKey: prop.configKey !== undefined ? prop.configKey : undefined,
574
- type: prop.type !== undefined ? {
575
- equals: prop.type
576
- } : undefined,
577
569
  },
578
570
  data: {
579
571
  id: prop.id !== undefined ? {
@@ -992,6 +984,11 @@ exports.Configuration = {
992
984
  },
993
985
  };
994
986
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
987
+ // Validate that we have at least one filter criteria
988
+ // GraphQL requires a non-empty where clause for findMany
989
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
990
+ throw new Error(`findManyConfiguration requires at least one filter criterion. Received empty where clause.`);
991
+ }
995
992
  const response = await client.query({
996
993
  query: FIND_MANY_CONFIGURATION,
997
994
  variables: filteredVariables,
package/ConflictEvent.cjs CHANGED
@@ -279,9 +279,6 @@ exports.ConflictEvent = {
279
279
  const variables = {
280
280
  where: {
281
281
  id: props.id !== undefined ? props.id : undefined,
282
- entityId: props.entityId !== undefined ? {
283
- equals: props.entityId
284
- } : undefined,
285
282
  },
286
283
  data: {
287
284
  id: props.id !== undefined ? {
@@ -559,9 +556,6 @@ exports.ConflictEvent = {
559
556
  const variables = props.map(prop => ({
560
557
  where: {
561
558
  id: prop.id !== undefined ? prop.id : undefined,
562
- entityId: prop.entityId !== undefined ? {
563
- equals: prop.entityId
564
- } : undefined,
565
559
  },
566
560
  data: {
567
561
  id: prop.id !== undefined ? {
@@ -969,6 +963,11 @@ exports.ConflictEvent = {
969
963
  },
970
964
  };
971
965
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
966
+ // Validate that we have at least one filter criteria
967
+ // GraphQL requires a non-empty where clause for findMany
968
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
969
+ throw new Error(`findManyConflictEvent requires at least one filter criterion. Received empty where clause.`);
970
+ }
972
971
  const response = await client.query({
973
972
  query: FIND_MANY_CONFLICTEVENT,
974
973
  variables: filteredVariables,
@@ -278,9 +278,6 @@ exports.ConnectionHealthSnapshot = {
278
278
  const variables = {
279
279
  where: {
280
280
  id: props.id !== undefined ? props.id : undefined,
281
- status: props.status !== undefined ? {
282
- equals: props.status
283
- } : undefined,
284
281
  },
285
282
  data: {
286
283
  id: props.id !== undefined ? {
@@ -544,9 +541,6 @@ exports.ConnectionHealthSnapshot = {
544
541
  const variables = props.map(prop => ({
545
542
  where: {
546
543
  id: prop.id !== undefined ? prop.id : undefined,
547
- status: prop.status !== undefined ? {
548
- equals: prop.status
549
- } : undefined,
550
544
  },
551
545
  data: {
552
546
  id: prop.id !== undefined ? {
@@ -950,6 +944,11 @@ exports.ConnectionHealthSnapshot = {
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(`findManyConnectionHealthSnapshot requires at least one filter criterion. Received empty where clause.`);
951
+ }
953
952
  const response = await client.query({
954
953
  query: FIND_MANY_CONNECTIONHEALTHSNAPSHOT,
955
954
  variables: filteredVariables,