@adaptic/backend-legacy 0.0.946 → 0.0.948

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 (269) hide show
  1. package/ABTest.cjs +14 -9
  2. package/Account.cjs +14 -9
  3. package/AccountDecisionRecord.cjs +14 -9
  4. package/AccountLinkingRequest.cjs +14 -9
  5. package/Action.cjs +14 -9
  6. package/Alert.cjs +14 -9
  7. package/Allocation.cjs +14 -9
  8. package/AlpacaAccount.cjs +14 -9
  9. package/AnalyticsConfiguration.cjs +14 -9
  10. package/AnalyticsSnapshot.cjs +14 -9
  11. package/Asset.cjs +14 -9
  12. package/AuditLog.cjs +14 -9
  13. package/Authenticator.cjs +14 -9
  14. package/Configuration.cjs +14 -9
  15. package/ConflictEvent.cjs +14 -9
  16. package/ConnectionHealthSnapshot.cjs +14 -9
  17. package/Customer.cjs +14 -9
  18. package/DeadLetterMessage.cjs +14 -9
  19. package/DecisionMemorySummary.cjs +14 -9
  20. package/EconomicEvent.cjs +14 -9
  21. package/EquityBar.cjs +14 -9
  22. package/Event.cjs +14 -9
  23. package/EventSnapshot.cjs +14 -9
  24. package/FeatureImportanceAnalysis.cjs +14 -9
  25. package/InstitutionalFlowSignal.cjs +14 -9
  26. package/InstitutionalHolding.cjs +14 -9
  27. package/InstitutionalSentimentAlerts.cjs +14 -9
  28. package/InstitutionalSentimentErrors.cjs +14 -9
  29. package/InstitutionalSentimentHistory.cjs +14 -9
  30. package/InstitutionalSentimentMetrics.cjs +14 -9
  31. package/InviteToken.cjs +14 -9
  32. package/LinkedProvider.cjs +14 -9
  33. package/LlmConfiguration.cjs +14 -9
  34. package/MLModelVersion.cjs +14 -9
  35. package/MLTrainingData.cjs +14 -9
  36. package/MarketSentiment.cjs +14 -9
  37. package/ModelArtifact.cjs +14 -9
  38. package/ModelVersion.cjs +14 -9
  39. package/ModelVersionArtifact.cjs +14 -9
  40. package/NewsArticle.cjs +14 -9
  41. package/NewsArticleAssetSentiment.cjs +14 -9
  42. package/OptionsContract.cjs +14 -9
  43. package/OptionsGreeksHistory.cjs +14 -9
  44. package/OptionsPosition.cjs +14 -9
  45. package/OptionsPositionEvent.cjs +14 -9
  46. package/OptionsTradeExecution.cjs +14 -9
  47. package/PolicyOverlay.cjs +14 -9
  48. package/PortfolioGreeksHistory.cjs +14 -9
  49. package/ScheduledOptionOrder.cjs +14 -9
  50. package/Session.cjs +14 -9
  51. package/SignalGeneratorMetrics.cjs +14 -9
  52. package/SignalLineage.cjs +14 -9
  53. package/SignalOutcome.cjs +14 -9
  54. package/SignalPriorityQueue.cjs +14 -9
  55. package/SyncEvent.cjs +14 -9
  56. package/SystemAlert.cjs +14 -9
  57. package/Trade.cjs +14 -9
  58. package/TradeAuditEvent.cjs +14 -9
  59. package/TradeExecutionHistory.cjs +14 -9
  60. package/TradeOutcome.cjs +14 -9
  61. package/TradingPolicy.cjs +14 -9
  62. package/User.cjs +14 -9
  63. package/VerificationToken.cjs +14 -9
  64. package/WaitlistEntry.cjs +14 -9
  65. package/client.cjs +28 -4
  66. package/client.d.ts +17 -4
  67. package/esm/ABTest.d.ts.map +1 -1
  68. package/esm/ABTest.js.map +1 -1
  69. package/esm/ABTest.mjs +15 -10
  70. package/esm/Account.d.ts.map +1 -1
  71. package/esm/Account.js.map +1 -1
  72. package/esm/Account.mjs +15 -10
  73. package/esm/AccountDecisionRecord.d.ts.map +1 -1
  74. package/esm/AccountDecisionRecord.js.map +1 -1
  75. package/esm/AccountDecisionRecord.mjs +15 -10
  76. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  77. package/esm/AccountLinkingRequest.js.map +1 -1
  78. package/esm/AccountLinkingRequest.mjs +15 -10
  79. package/esm/Action.d.ts.map +1 -1
  80. package/esm/Action.js.map +1 -1
  81. package/esm/Action.mjs +15 -10
  82. package/esm/Alert.d.ts.map +1 -1
  83. package/esm/Alert.js.map +1 -1
  84. package/esm/Alert.mjs +15 -10
  85. package/esm/Allocation.d.ts.map +1 -1
  86. package/esm/Allocation.js.map +1 -1
  87. package/esm/Allocation.mjs +15 -10
  88. package/esm/AlpacaAccount.d.ts.map +1 -1
  89. package/esm/AlpacaAccount.js.map +1 -1
  90. package/esm/AlpacaAccount.mjs +15 -10
  91. package/esm/AnalyticsConfiguration.d.ts.map +1 -1
  92. package/esm/AnalyticsConfiguration.js.map +1 -1
  93. package/esm/AnalyticsConfiguration.mjs +15 -10
  94. package/esm/AnalyticsSnapshot.d.ts.map +1 -1
  95. package/esm/AnalyticsSnapshot.js.map +1 -1
  96. package/esm/AnalyticsSnapshot.mjs +15 -10
  97. package/esm/Asset.d.ts.map +1 -1
  98. package/esm/Asset.js.map +1 -1
  99. package/esm/Asset.mjs +15 -10
  100. package/esm/AuditLog.d.ts.map +1 -1
  101. package/esm/AuditLog.js.map +1 -1
  102. package/esm/AuditLog.mjs +15 -10
  103. package/esm/Authenticator.d.ts.map +1 -1
  104. package/esm/Authenticator.js.map +1 -1
  105. package/esm/Authenticator.mjs +15 -10
  106. package/esm/Configuration.d.ts.map +1 -1
  107. package/esm/Configuration.js.map +1 -1
  108. package/esm/Configuration.mjs +15 -10
  109. package/esm/ConflictEvent.d.ts.map +1 -1
  110. package/esm/ConflictEvent.js.map +1 -1
  111. package/esm/ConflictEvent.mjs +15 -10
  112. package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
  113. package/esm/ConnectionHealthSnapshot.js.map +1 -1
  114. package/esm/ConnectionHealthSnapshot.mjs +15 -10
  115. package/esm/Customer.d.ts.map +1 -1
  116. package/esm/Customer.js.map +1 -1
  117. package/esm/Customer.mjs +15 -10
  118. package/esm/DeadLetterMessage.d.ts.map +1 -1
  119. package/esm/DeadLetterMessage.js.map +1 -1
  120. package/esm/DeadLetterMessage.mjs +15 -10
  121. package/esm/DecisionMemorySummary.d.ts.map +1 -1
  122. package/esm/DecisionMemorySummary.js.map +1 -1
  123. package/esm/DecisionMemorySummary.mjs +15 -10
  124. package/esm/EconomicEvent.d.ts.map +1 -1
  125. package/esm/EconomicEvent.js.map +1 -1
  126. package/esm/EconomicEvent.mjs +15 -10
  127. package/esm/EquityBar.d.ts.map +1 -1
  128. package/esm/EquityBar.js.map +1 -1
  129. package/esm/EquityBar.mjs +15 -10
  130. package/esm/Event.d.ts.map +1 -1
  131. package/esm/Event.js.map +1 -1
  132. package/esm/Event.mjs +15 -10
  133. package/esm/EventSnapshot.d.ts.map +1 -1
  134. package/esm/EventSnapshot.js.map +1 -1
  135. package/esm/EventSnapshot.mjs +15 -10
  136. package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
  137. package/esm/FeatureImportanceAnalysis.js.map +1 -1
  138. package/esm/FeatureImportanceAnalysis.mjs +15 -10
  139. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  140. package/esm/InstitutionalFlowSignal.js.map +1 -1
  141. package/esm/InstitutionalFlowSignal.mjs +15 -10
  142. package/esm/InstitutionalHolding.d.ts.map +1 -1
  143. package/esm/InstitutionalHolding.js.map +1 -1
  144. package/esm/InstitutionalHolding.mjs +15 -10
  145. package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
  146. package/esm/InstitutionalSentimentAlerts.js.map +1 -1
  147. package/esm/InstitutionalSentimentAlerts.mjs +15 -10
  148. package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
  149. package/esm/InstitutionalSentimentErrors.js.map +1 -1
  150. package/esm/InstitutionalSentimentErrors.mjs +15 -10
  151. package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
  152. package/esm/InstitutionalSentimentHistory.js.map +1 -1
  153. package/esm/InstitutionalSentimentHistory.mjs +15 -10
  154. package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
  155. package/esm/InstitutionalSentimentMetrics.js.map +1 -1
  156. package/esm/InstitutionalSentimentMetrics.mjs +15 -10
  157. package/esm/InviteToken.d.ts.map +1 -1
  158. package/esm/InviteToken.js.map +1 -1
  159. package/esm/InviteToken.mjs +15 -10
  160. package/esm/LinkedProvider.d.ts.map +1 -1
  161. package/esm/LinkedProvider.js.map +1 -1
  162. package/esm/LinkedProvider.mjs +15 -10
  163. package/esm/LlmConfiguration.d.ts.map +1 -1
  164. package/esm/LlmConfiguration.js.map +1 -1
  165. package/esm/LlmConfiguration.mjs +15 -10
  166. package/esm/MLModelVersion.d.ts.map +1 -1
  167. package/esm/MLModelVersion.js.map +1 -1
  168. package/esm/MLModelVersion.mjs +15 -10
  169. package/esm/MLTrainingData.d.ts.map +1 -1
  170. package/esm/MLTrainingData.js.map +1 -1
  171. package/esm/MLTrainingData.mjs +15 -10
  172. package/esm/MarketSentiment.d.ts.map +1 -1
  173. package/esm/MarketSentiment.js.map +1 -1
  174. package/esm/MarketSentiment.mjs +15 -10
  175. package/esm/ModelArtifact.d.ts.map +1 -1
  176. package/esm/ModelArtifact.js.map +1 -1
  177. package/esm/ModelArtifact.mjs +15 -10
  178. package/esm/ModelVersion.d.ts.map +1 -1
  179. package/esm/ModelVersion.js.map +1 -1
  180. package/esm/ModelVersion.mjs +15 -10
  181. package/esm/ModelVersionArtifact.d.ts.map +1 -1
  182. package/esm/ModelVersionArtifact.js.map +1 -1
  183. package/esm/ModelVersionArtifact.mjs +15 -10
  184. package/esm/NewsArticle.d.ts.map +1 -1
  185. package/esm/NewsArticle.js.map +1 -1
  186. package/esm/NewsArticle.mjs +15 -10
  187. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  188. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  189. package/esm/NewsArticleAssetSentiment.mjs +15 -10
  190. package/esm/OptionsContract.d.ts.map +1 -1
  191. package/esm/OptionsContract.js.map +1 -1
  192. package/esm/OptionsContract.mjs +15 -10
  193. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  194. package/esm/OptionsGreeksHistory.js.map +1 -1
  195. package/esm/OptionsGreeksHistory.mjs +15 -10
  196. package/esm/OptionsPosition.d.ts.map +1 -1
  197. package/esm/OptionsPosition.js.map +1 -1
  198. package/esm/OptionsPosition.mjs +15 -10
  199. package/esm/OptionsPositionEvent.d.ts.map +1 -1
  200. package/esm/OptionsPositionEvent.js.map +1 -1
  201. package/esm/OptionsPositionEvent.mjs +15 -10
  202. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  203. package/esm/OptionsTradeExecution.js.map +1 -1
  204. package/esm/OptionsTradeExecution.mjs +15 -10
  205. package/esm/PolicyOverlay.d.ts.map +1 -1
  206. package/esm/PolicyOverlay.js.map +1 -1
  207. package/esm/PolicyOverlay.mjs +15 -10
  208. package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
  209. package/esm/PortfolioGreeksHistory.js.map +1 -1
  210. package/esm/PortfolioGreeksHistory.mjs +15 -10
  211. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  212. package/esm/ScheduledOptionOrder.js.map +1 -1
  213. package/esm/ScheduledOptionOrder.mjs +15 -10
  214. package/esm/Session.d.ts.map +1 -1
  215. package/esm/Session.js.map +1 -1
  216. package/esm/Session.mjs +15 -10
  217. package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
  218. package/esm/SignalGeneratorMetrics.js.map +1 -1
  219. package/esm/SignalGeneratorMetrics.mjs +15 -10
  220. package/esm/SignalLineage.d.ts.map +1 -1
  221. package/esm/SignalLineage.js.map +1 -1
  222. package/esm/SignalLineage.mjs +15 -10
  223. package/esm/SignalOutcome.d.ts.map +1 -1
  224. package/esm/SignalOutcome.js.map +1 -1
  225. package/esm/SignalOutcome.mjs +15 -10
  226. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  227. package/esm/SignalPriorityQueue.js.map +1 -1
  228. package/esm/SignalPriorityQueue.mjs +15 -10
  229. package/esm/SyncEvent.d.ts.map +1 -1
  230. package/esm/SyncEvent.js.map +1 -1
  231. package/esm/SyncEvent.mjs +15 -10
  232. package/esm/SystemAlert.d.ts.map +1 -1
  233. package/esm/SystemAlert.js.map +1 -1
  234. package/esm/SystemAlert.mjs +15 -10
  235. package/esm/Trade.d.ts.map +1 -1
  236. package/esm/Trade.js.map +1 -1
  237. package/esm/Trade.mjs +15 -10
  238. package/esm/TradeAuditEvent.d.ts.map +1 -1
  239. package/esm/TradeAuditEvent.js.map +1 -1
  240. package/esm/TradeAuditEvent.mjs +15 -10
  241. package/esm/TradeExecutionHistory.d.ts.map +1 -1
  242. package/esm/TradeExecutionHistory.js.map +1 -1
  243. package/esm/TradeExecutionHistory.mjs +15 -10
  244. package/esm/TradeOutcome.d.ts.map +1 -1
  245. package/esm/TradeOutcome.js.map +1 -1
  246. package/esm/TradeOutcome.mjs +15 -10
  247. package/esm/TradingPolicy.d.ts.map +1 -1
  248. package/esm/TradingPolicy.js.map +1 -1
  249. package/esm/TradingPolicy.mjs +15 -10
  250. package/esm/User.d.ts.map +1 -1
  251. package/esm/User.js.map +1 -1
  252. package/esm/User.mjs +15 -10
  253. package/esm/VerificationToken.d.ts.map +1 -1
  254. package/esm/VerificationToken.js.map +1 -1
  255. package/esm/VerificationToken.mjs +15 -10
  256. package/esm/WaitlistEntry.d.ts.map +1 -1
  257. package/esm/WaitlistEntry.js.map +1 -1
  258. package/esm/WaitlistEntry.mjs +15 -10
  259. package/esm/client.d.ts +17 -4
  260. package/esm/client.d.ts.map +1 -1
  261. package/esm/client.js.map +1 -1
  262. package/esm/client.mjs +27 -4
  263. package/esm/index.d.ts +1 -1
  264. package/esm/index.d.ts.map +1 -1
  265. package/esm/index.js.map +1 -1
  266. package/esm/index.mjs +1 -1
  267. package/index.cjs +2 -1
  268. package/index.d.ts +1 -1
  269. package/package.json +1 -1
@@ -90,7 +90,7 @@ exports.OptionsGreeksHistory = {
90
90
  (0, client_1.getApolloModules)(),
91
91
  globalClient
92
92
  ? Promise.resolve(globalClient)
93
- : client_1.client
93
+ : (0, client_1.getApolloClient)()
94
94
  ]);
95
95
  const { gql, ApolloError } = modules;
96
96
  const CREATE_ONE_OPTIONSGREEKSHISTORY = gql `
@@ -483,7 +483,7 @@ exports.OptionsGreeksHistory = {
483
483
  (0, client_1.getApolloModules)(),
484
484
  globalClient
485
485
  ? Promise.resolve(globalClient)
486
- : client_1.client
486
+ : (0, client_1.getApolloClient)()
487
487
  ]);
488
488
  const { gql, ApolloError } = modules;
489
489
  const CREATE_MANY_OPTIONSGREEKSHISTORY = gql `
@@ -604,7 +604,7 @@ exports.OptionsGreeksHistory = {
604
604
  (0, client_1.getApolloModules)(),
605
605
  globalClient
606
606
  ? Promise.resolve(globalClient)
607
- : client_1.client
607
+ : (0, client_1.getApolloClient)()
608
608
  ]);
609
609
  const { gql, ApolloError } = modules;
610
610
  const UPDATE_ONE_OPTIONSGREEKSHISTORY = gql `
@@ -1833,7 +1833,7 @@ exports.OptionsGreeksHistory = {
1833
1833
  (0, client_1.getApolloModules)(),
1834
1834
  globalClient
1835
1835
  ? Promise.resolve(globalClient)
1836
- : client_1.client
1836
+ : (0, client_1.getApolloClient)()
1837
1837
  ]);
1838
1838
  const { gql, ApolloError } = modules;
1839
1839
  const UPSERT_ONE_OPTIONSGREEKSHISTORY = gql `
@@ -3349,7 +3349,7 @@ exports.OptionsGreeksHistory = {
3349
3349
  (0, client_1.getApolloModules)(),
3350
3350
  globalClient
3351
3351
  ? Promise.resolve(globalClient)
3352
- : client_1.client
3352
+ : (0, client_1.getApolloClient)()
3353
3353
  ]);
3354
3354
  const { gql, ApolloError } = modules;
3355
3355
  const UPDATE_MANY_OPTIONSGREEKSHISTORY = gql `
@@ -4575,7 +4575,7 @@ exports.OptionsGreeksHistory = {
4575
4575
  (0, client_1.getApolloModules)(),
4576
4576
  globalClient
4577
4577
  ? Promise.resolve(globalClient)
4578
- : client_1.client
4578
+ : (0, client_1.getApolloClient)()
4579
4579
  ]);
4580
4580
  const { gql, ApolloError } = modules;
4581
4581
  const DELETE_ONE_OPTIONSGREEKSHISTORY = gql `
@@ -4686,7 +4686,7 @@ exports.OptionsGreeksHistory = {
4686
4686
  (0, client_1.getApolloModules)(),
4687
4687
  globalClient
4688
4688
  ? Promise.resolve(globalClient)
4689
- : client_1.client
4689
+ : (0, client_1.getApolloClient)()
4690
4690
  ]);
4691
4691
  const { gql, ApolloError } = modules;
4692
4692
  const GET_OPTIONSGREEKSHISTORY = gql `
@@ -4769,7 +4769,7 @@ exports.OptionsGreeksHistory = {
4769
4769
  (0, client_1.getApolloModules)(),
4770
4770
  globalClient
4771
4771
  ? Promise.resolve(globalClient)
4772
- : client_1.client
4772
+ : (0, client_1.getApolloClient)()
4773
4773
  ]);
4774
4774
  const { gql, ApolloError } = modules;
4775
4775
  const GET_ALL_OPTIONSGREEKSHISTORY = gql `
@@ -4844,7 +4844,7 @@ exports.OptionsGreeksHistory = {
4844
4844
  (0, client_1.getApolloModules)(),
4845
4845
  globalClient
4846
4846
  ? Promise.resolve(globalClient)
4847
- : client_1.client
4847
+ : (0, client_1.getApolloClient)()
4848
4848
  ]);
4849
4849
  const { gql, ApolloError } = modules;
4850
4850
  const FIND_MANY_OPTIONSGREEKSHISTORY = gql `
@@ -4864,6 +4864,11 @@ exports.OptionsGreeksHistory = {
4864
4864
  },
4865
4865
  };
4866
4866
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
4867
+ // Validate that we have at least one filter criteria
4868
+ // GraphQL requires a non-empty where clause for findMany
4869
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
4870
+ throw new Error(`findManyOptionsGreeksHistory requires at least one filter criterion. Received empty where clause.`);
4871
+ }
4867
4872
  const response = await client.query({
4868
4873
  query: FIND_MANY_OPTIONSGREEKSHISTORY,
4869
4874
  variables: filteredVariables,
@@ -144,7 +144,7 @@ exports.OptionsPosition = {
144
144
  (0, client_1.getApolloModules)(),
145
145
  globalClient
146
146
  ? Promise.resolve(globalClient)
147
- : client_1.client
147
+ : (0, client_1.getApolloClient)()
148
148
  ]);
149
149
  const { gql, ApolloError } = modules;
150
150
  const CREATE_ONE_OPTIONSPOSITION = gql `
@@ -663,7 +663,7 @@ exports.OptionsPosition = {
663
663
  (0, client_1.getApolloModules)(),
664
664
  globalClient
665
665
  ? Promise.resolve(globalClient)
666
- : client_1.client
666
+ : (0, client_1.getApolloClient)()
667
667
  ]);
668
668
  const { gql, ApolloError } = modules;
669
669
  const CREATE_MANY_OPTIONSPOSITION = gql `
@@ -798,7 +798,7 @@ exports.OptionsPosition = {
798
798
  (0, client_1.getApolloModules)(),
799
799
  globalClient
800
800
  ? Promise.resolve(globalClient)
801
- : client_1.client
801
+ : (0, client_1.getApolloClient)()
802
802
  ]);
803
803
  const { gql, ApolloError } = modules;
804
804
  const UPDATE_ONE_OPTIONSPOSITION = gql `
@@ -2434,7 +2434,7 @@ exports.OptionsPosition = {
2434
2434
  (0, client_1.getApolloModules)(),
2435
2435
  globalClient
2436
2436
  ? Promise.resolve(globalClient)
2437
- : client_1.client
2437
+ : (0, client_1.getApolloClient)()
2438
2438
  ]);
2439
2439
  const { gql, ApolloError } = modules;
2440
2440
  const UPSERT_ONE_OPTIONSPOSITION = gql `
@@ -4486,7 +4486,7 @@ exports.OptionsPosition = {
4486
4486
  (0, client_1.getApolloModules)(),
4487
4487
  globalClient
4488
4488
  ? Promise.resolve(globalClient)
4489
- : client_1.client
4489
+ : (0, client_1.getApolloClient)()
4490
4490
  ]);
4491
4491
  const { gql, ApolloError } = modules;
4492
4492
  const UPDATE_MANY_OPTIONSPOSITION = gql `
@@ -6119,7 +6119,7 @@ exports.OptionsPosition = {
6119
6119
  (0, client_1.getApolloModules)(),
6120
6120
  globalClient
6121
6121
  ? Promise.resolve(globalClient)
6122
- : client_1.client
6122
+ : (0, client_1.getApolloClient)()
6123
6123
  ]);
6124
6124
  const { gql, ApolloError } = modules;
6125
6125
  const DELETE_ONE_OPTIONSPOSITION = gql `
@@ -6230,7 +6230,7 @@ exports.OptionsPosition = {
6230
6230
  (0, client_1.getApolloModules)(),
6231
6231
  globalClient
6232
6232
  ? Promise.resolve(globalClient)
6233
- : client_1.client
6233
+ : (0, client_1.getApolloClient)()
6234
6234
  ]);
6235
6235
  const { gql, ApolloError } = modules;
6236
6236
  const GET_OPTIONSPOSITION = gql `
@@ -6319,7 +6319,7 @@ exports.OptionsPosition = {
6319
6319
  (0, client_1.getApolloModules)(),
6320
6320
  globalClient
6321
6321
  ? Promise.resolve(globalClient)
6322
- : client_1.client
6322
+ : (0, client_1.getApolloClient)()
6323
6323
  ]);
6324
6324
  const { gql, ApolloError } = modules;
6325
6325
  const GET_ALL_OPTIONSPOSITION = gql `
@@ -6394,7 +6394,7 @@ exports.OptionsPosition = {
6394
6394
  (0, client_1.getApolloModules)(),
6395
6395
  globalClient
6396
6396
  ? Promise.resolve(globalClient)
6397
- : client_1.client
6397
+ : (0, client_1.getApolloClient)()
6398
6398
  ]);
6399
6399
  const { gql, ApolloError } = modules;
6400
6400
  const FIND_MANY_OPTIONSPOSITION = gql `
@@ -6420,6 +6420,11 @@ exports.OptionsPosition = {
6420
6420
  },
6421
6421
  };
6422
6422
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6423
+ // Validate that we have at least one filter criteria
6424
+ // GraphQL requires a non-empty where clause for findMany
6425
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6426
+ throw new Error(`findManyOptionsPosition requires at least one filter criterion. Received empty where clause.`);
6427
+ }
6423
6428
  const response = await client.query({
6424
6429
  query: FIND_MANY_OPTIONSPOSITION,
6425
6430
  variables: filteredVariables,
@@ -82,7 +82,7 @@ exports.OptionsPositionEvent = {
82
82
  (0, client_1.getApolloModules)(),
83
83
  globalClient
84
84
  ? Promise.resolve(globalClient)
85
- : client_1.client
85
+ : (0, client_1.getApolloClient)()
86
86
  ]);
87
87
  const { gql, ApolloError } = modules;
88
88
  const CREATE_ONE_OPTIONSPOSITIONEVENT = gql `
@@ -465,7 +465,7 @@ exports.OptionsPositionEvent = {
465
465
  (0, client_1.getApolloModules)(),
466
466
  globalClient
467
467
  ? Promise.resolve(globalClient)
468
- : client_1.client
468
+ : (0, client_1.getApolloClient)()
469
469
  ]);
470
470
  const { gql, ApolloError } = modules;
471
471
  const CREATE_MANY_OPTIONSPOSITIONEVENT = gql `
@@ -573,7 +573,7 @@ exports.OptionsPositionEvent = {
573
573
  (0, client_1.getApolloModules)(),
574
574
  globalClient
575
575
  ? Promise.resolve(globalClient)
576
- : client_1.client
576
+ : (0, client_1.getApolloClient)()
577
577
  ]);
578
578
  const { gql, ApolloError } = modules;
579
579
  const UPDATE_ONE_OPTIONSPOSITIONEVENT = gql `
@@ -1788,7 +1788,7 @@ exports.OptionsPositionEvent = {
1788
1788
  (0, client_1.getApolloModules)(),
1789
1789
  globalClient
1790
1790
  ? Promise.resolve(globalClient)
1791
- : client_1.client
1791
+ : (0, client_1.getApolloClient)()
1792
1792
  ]);
1793
1793
  const { gql, ApolloError } = modules;
1794
1794
  const UPSERT_ONE_OPTIONSPOSITIONEVENT = gql `
@@ -3280,7 +3280,7 @@ exports.OptionsPositionEvent = {
3280
3280
  (0, client_1.getApolloModules)(),
3281
3281
  globalClient
3282
3282
  ? Promise.resolve(globalClient)
3283
- : client_1.client
3283
+ : (0, client_1.getApolloClient)()
3284
3284
  ]);
3285
3285
  const { gql, ApolloError } = modules;
3286
3286
  const UPDATE_MANY_OPTIONSPOSITIONEVENT = gql `
@@ -4492,7 +4492,7 @@ exports.OptionsPositionEvent = {
4492
4492
  (0, client_1.getApolloModules)(),
4493
4493
  globalClient
4494
4494
  ? Promise.resolve(globalClient)
4495
- : client_1.client
4495
+ : (0, client_1.getApolloClient)()
4496
4496
  ]);
4497
4497
  const { gql, ApolloError } = modules;
4498
4498
  const DELETE_ONE_OPTIONSPOSITIONEVENT = gql `
@@ -4603,7 +4603,7 @@ exports.OptionsPositionEvent = {
4603
4603
  (0, client_1.getApolloModules)(),
4604
4604
  globalClient
4605
4605
  ? Promise.resolve(globalClient)
4606
- : client_1.client
4606
+ : (0, client_1.getApolloClient)()
4607
4607
  ]);
4608
4608
  const { gql, ApolloError } = modules;
4609
4609
  const GET_OPTIONSPOSITIONEVENT = gql `
@@ -4686,7 +4686,7 @@ exports.OptionsPositionEvent = {
4686
4686
  (0, client_1.getApolloModules)(),
4687
4687
  globalClient
4688
4688
  ? Promise.resolve(globalClient)
4689
- : client_1.client
4689
+ : (0, client_1.getApolloClient)()
4690
4690
  ]);
4691
4691
  const { gql, ApolloError } = modules;
4692
4692
  const GET_ALL_OPTIONSPOSITIONEVENT = gql `
@@ -4761,7 +4761,7 @@ exports.OptionsPositionEvent = {
4761
4761
  (0, client_1.getApolloModules)(),
4762
4762
  globalClient
4763
4763
  ? Promise.resolve(globalClient)
4764
- : client_1.client
4764
+ : (0, client_1.getApolloClient)()
4765
4765
  ]);
4766
4766
  const { gql, ApolloError } = modules;
4767
4767
  const FIND_MANY_OPTIONSPOSITIONEVENT = gql `
@@ -4781,6 +4781,11 @@ exports.OptionsPositionEvent = {
4781
4781
  },
4782
4782
  };
4783
4783
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
4784
+ // Validate that we have at least one filter criteria
4785
+ // GraphQL requires a non-empty where clause for findMany
4786
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
4787
+ throw new Error(`findManyOptionsPositionEvent requires at least one filter criterion. Received empty where clause.`);
4788
+ }
4784
4789
  const response = await client.query({
4785
4790
  query: FIND_MANY_OPTIONSPOSITIONEVENT,
4786
4791
  variables: filteredVariables,
@@ -144,7 +144,7 @@ exports.OptionsTradeExecution = {
144
144
  (0, client_1.getApolloModules)(),
145
145
  globalClient
146
146
  ? Promise.resolve(globalClient)
147
- : client_1.client
147
+ : (0, client_1.getApolloClient)()
148
148
  ]);
149
149
  const { gql, ApolloError } = modules;
150
150
  const CREATE_ONE_OPTIONSTRADEEXECUTION = gql `
@@ -676,7 +676,7 @@ exports.OptionsTradeExecution = {
676
676
  (0, client_1.getApolloModules)(),
677
677
  globalClient
678
678
  ? Promise.resolve(globalClient)
679
- : client_1.client
679
+ : (0, client_1.getApolloClient)()
680
680
  ]);
681
681
  const { gql, ApolloError } = modules;
682
682
  const CREATE_MANY_OPTIONSTRADEEXECUTION = gql `
@@ -804,7 +804,7 @@ exports.OptionsTradeExecution = {
804
804
  (0, client_1.getApolloModules)(),
805
805
  globalClient
806
806
  ? Promise.resolve(globalClient)
807
- : client_1.client
807
+ : (0, client_1.getApolloClient)()
808
808
  ]);
809
809
  const { gql, ApolloError } = modules;
810
810
  const UPDATE_ONE_OPTIONSTRADEEXECUTION = gql `
@@ -2501,7 +2501,7 @@ exports.OptionsTradeExecution = {
2501
2501
  (0, client_1.getApolloModules)(),
2502
2502
  globalClient
2503
2503
  ? Promise.resolve(globalClient)
2504
- : client_1.client
2504
+ : (0, client_1.getApolloClient)()
2505
2505
  ]);
2506
2506
  const { gql, ApolloError } = modules;
2507
2507
  const UPSERT_ONE_OPTIONSTRADEEXECUTION = gql `
@@ -4630,7 +4630,7 @@ exports.OptionsTradeExecution = {
4630
4630
  (0, client_1.getApolloModules)(),
4631
4631
  globalClient
4632
4632
  ? Promise.resolve(globalClient)
4633
- : client_1.client
4633
+ : (0, client_1.getApolloClient)()
4634
4634
  ]);
4635
4635
  const { gql, ApolloError } = modules;
4636
4636
  const UPDATE_MANY_OPTIONSTRADEEXECUTION = gql `
@@ -6324,7 +6324,7 @@ exports.OptionsTradeExecution = {
6324
6324
  (0, client_1.getApolloModules)(),
6325
6325
  globalClient
6326
6326
  ? Promise.resolve(globalClient)
6327
- : client_1.client
6327
+ : (0, client_1.getApolloClient)()
6328
6328
  ]);
6329
6329
  const { gql, ApolloError } = modules;
6330
6330
  const DELETE_ONE_OPTIONSTRADEEXECUTION = gql `
@@ -6435,7 +6435,7 @@ exports.OptionsTradeExecution = {
6435
6435
  (0, client_1.getApolloModules)(),
6436
6436
  globalClient
6437
6437
  ? Promise.resolve(globalClient)
6438
- : client_1.client
6438
+ : (0, client_1.getApolloClient)()
6439
6439
  ]);
6440
6440
  const { gql, ApolloError } = modules;
6441
6441
  const GET_OPTIONSTRADEEXECUTION = gql `
@@ -6527,7 +6527,7 @@ exports.OptionsTradeExecution = {
6527
6527
  (0, client_1.getApolloModules)(),
6528
6528
  globalClient
6529
6529
  ? Promise.resolve(globalClient)
6530
- : client_1.client
6530
+ : (0, client_1.getApolloClient)()
6531
6531
  ]);
6532
6532
  const { gql, ApolloError } = modules;
6533
6533
  const GET_ALL_OPTIONSTRADEEXECUTION = gql `
@@ -6602,7 +6602,7 @@ exports.OptionsTradeExecution = {
6602
6602
  (0, client_1.getApolloModules)(),
6603
6603
  globalClient
6604
6604
  ? Promise.resolve(globalClient)
6605
- : client_1.client
6605
+ : (0, client_1.getApolloClient)()
6606
6606
  ]);
6607
6607
  const { gql, ApolloError } = modules;
6608
6608
  const FIND_MANY_OPTIONSTRADEEXECUTION = gql `
@@ -6631,6 +6631,11 @@ exports.OptionsTradeExecution = {
6631
6631
  },
6632
6632
  };
6633
6633
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
6634
+ // Validate that we have at least one filter criteria
6635
+ // GraphQL requires a non-empty where clause for findMany
6636
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
6637
+ throw new Error(`findManyOptionsTradeExecution requires at least one filter criterion. Received empty where clause.`);
6638
+ }
6634
6639
  const response = await client.query({
6635
6640
  query: FIND_MANY_OPTIONSTRADEEXECUTION,
6636
6641
  variables: filteredVariables,
package/PolicyOverlay.cjs CHANGED
@@ -55,7 +55,7 @@ exports.PolicyOverlay = {
55
55
  (0, client_1.getApolloModules)(),
56
56
  globalClient
57
57
  ? Promise.resolve(globalClient)
58
- : client_1.client
58
+ : (0, client_1.getApolloClient)()
59
59
  ]);
60
60
  const { gql, ApolloError } = modules;
61
61
  const CREATE_ONE_POLICYOVERLAY = gql `
@@ -385,7 +385,7 @@ exports.PolicyOverlay = {
385
385
  (0, client_1.getApolloModules)(),
386
386
  globalClient
387
387
  ? Promise.resolve(globalClient)
388
- : client_1.client
388
+ : (0, client_1.getApolloClient)()
389
389
  ]);
390
390
  const { gql, ApolloError } = modules;
391
391
  const CREATE_MANY_POLICYOVERLAY = gql `
@@ -502,7 +502,7 @@ exports.PolicyOverlay = {
502
502
  (0, client_1.getApolloModules)(),
503
503
  globalClient
504
504
  ? Promise.resolve(globalClient)
505
- : client_1.client
505
+ : (0, client_1.getApolloClient)()
506
506
  ]);
507
507
  const { gql, ApolloError } = modules;
508
508
  const UPDATE_ONE_POLICYOVERLAY = gql `
@@ -1435,7 +1435,7 @@ exports.PolicyOverlay = {
1435
1435
  (0, client_1.getApolloModules)(),
1436
1436
  globalClient
1437
1437
  ? Promise.resolve(globalClient)
1438
- : client_1.client
1438
+ : (0, client_1.getApolloClient)()
1439
1439
  ]);
1440
1440
  const { gql, ApolloError } = modules;
1441
1441
  const UPSERT_ONE_POLICYOVERLAY = gql `
@@ -2598,7 +2598,7 @@ exports.PolicyOverlay = {
2598
2598
  (0, client_1.getApolloModules)(),
2599
2599
  globalClient
2600
2600
  ? Promise.resolve(globalClient)
2601
- : client_1.client
2601
+ : (0, client_1.getApolloClient)()
2602
2602
  ]);
2603
2603
  const { gql, ApolloError } = modules;
2604
2604
  const UPDATE_MANY_POLICYOVERLAY = gql `
@@ -3528,7 +3528,7 @@ exports.PolicyOverlay = {
3528
3528
  (0, client_1.getApolloModules)(),
3529
3529
  globalClient
3530
3530
  ? Promise.resolve(globalClient)
3531
- : client_1.client
3531
+ : (0, client_1.getApolloClient)()
3532
3532
  ]);
3533
3533
  const { gql, ApolloError } = modules;
3534
3534
  const DELETE_ONE_POLICYOVERLAY = gql `
@@ -3639,7 +3639,7 @@ exports.PolicyOverlay = {
3639
3639
  (0, client_1.getApolloModules)(),
3640
3640
  globalClient
3641
3641
  ? Promise.resolve(globalClient)
3642
- : client_1.client
3642
+ : (0, client_1.getApolloClient)()
3643
3643
  ]);
3644
3644
  const { gql, ApolloError } = modules;
3645
3645
  const GET_POLICYOVERLAY = gql `
@@ -3731,7 +3731,7 @@ exports.PolicyOverlay = {
3731
3731
  (0, client_1.getApolloModules)(),
3732
3732
  globalClient
3733
3733
  ? Promise.resolve(globalClient)
3734
- : client_1.client
3734
+ : (0, client_1.getApolloClient)()
3735
3735
  ]);
3736
3736
  const { gql, ApolloError } = modules;
3737
3737
  const GET_ALL_POLICYOVERLAY = gql `
@@ -3806,7 +3806,7 @@ exports.PolicyOverlay = {
3806
3806
  (0, client_1.getApolloModules)(),
3807
3807
  globalClient
3808
3808
  ? Promise.resolve(globalClient)
3809
- : client_1.client
3809
+ : (0, client_1.getApolloClient)()
3810
3810
  ]);
3811
3811
  const { gql, ApolloError } = modules;
3812
3812
  const FIND_MANY_POLICYOVERLAY = gql `
@@ -3835,6 +3835,11 @@ exports.PolicyOverlay = {
3835
3835
  },
3836
3836
  };
3837
3837
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
3838
+ // Validate that we have at least one filter criteria
3839
+ // GraphQL requires a non-empty where clause for findMany
3840
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
3841
+ throw new Error(`findManyPolicyOverlay requires at least one filter criterion. Received empty where clause.`);
3842
+ }
3838
3843
  const response = await client.query({
3839
3844
  query: FIND_MANY_POLICYOVERLAY,
3840
3845
  variables: filteredVariables,
@@ -50,7 +50,7 @@ exports.PortfolioGreeksHistory = {
50
50
  (0, client_1.getApolloModules)(),
51
51
  globalClient
52
52
  ? Promise.resolve(globalClient)
53
- : client_1.client
53
+ : (0, client_1.getApolloClient)()
54
54
  ]);
55
55
  const { gql, ApolloError } = modules;
56
56
  const CREATE_ONE_PORTFOLIOGREEKSHISTORY = gql `
@@ -177,7 +177,7 @@ exports.PortfolioGreeksHistory = {
177
177
  (0, client_1.getApolloModules)(),
178
178
  globalClient
179
179
  ? Promise.resolve(globalClient)
180
- : client_1.client
180
+ : (0, client_1.getApolloClient)()
181
181
  ]);
182
182
  const { gql, ApolloError } = modules;
183
183
  const CREATE_MANY_PORTFOLIOGREEKSHISTORY = gql `
@@ -302,7 +302,7 @@ exports.PortfolioGreeksHistory = {
302
302
  (0, client_1.getApolloModules)(),
303
303
  globalClient
304
304
  ? Promise.resolve(globalClient)
305
- : client_1.client
305
+ : (0, client_1.getApolloClient)()
306
306
  ]);
307
307
  const { gql, ApolloError } = modules;
308
308
  const UPDATE_ONE_PORTFOLIOGREEKSHISTORY = gql `
@@ -479,7 +479,7 @@ exports.PortfolioGreeksHistory = {
479
479
  (0, client_1.getApolloModules)(),
480
480
  globalClient
481
481
  ? Promise.resolve(globalClient)
482
- : client_1.client
482
+ : (0, client_1.getApolloClient)()
483
483
  ]);
484
484
  const { gql, ApolloError } = modules;
485
485
  const UPSERT_ONE_PORTFOLIOGREEKSHISTORY = gql `
@@ -680,7 +680,7 @@ exports.PortfolioGreeksHistory = {
680
680
  (0, client_1.getApolloModules)(),
681
681
  globalClient
682
682
  ? Promise.resolve(globalClient)
683
- : client_1.client
683
+ : (0, client_1.getApolloClient)()
684
684
  ]);
685
685
  const { gql, ApolloError } = modules;
686
686
  const UPDATE_MANY_PORTFOLIOGREEKSHISTORY = gql `
@@ -854,7 +854,7 @@ exports.PortfolioGreeksHistory = {
854
854
  (0, client_1.getApolloModules)(),
855
855
  globalClient
856
856
  ? Promise.resolve(globalClient)
857
- : client_1.client
857
+ : (0, client_1.getApolloClient)()
858
858
  ]);
859
859
  const { gql, ApolloError } = modules;
860
860
  const DELETE_ONE_PORTFOLIOGREEKSHISTORY = gql `
@@ -965,7 +965,7 @@ exports.PortfolioGreeksHistory = {
965
965
  (0, client_1.getApolloModules)(),
966
966
  globalClient
967
967
  ? Promise.resolve(globalClient)
968
- : client_1.client
968
+ : (0, client_1.getApolloClient)()
969
969
  ]);
970
970
  const { gql, ApolloError } = modules;
971
971
  const GET_PORTFOLIOGREEKSHISTORY = gql `
@@ -1051,7 +1051,7 @@ exports.PortfolioGreeksHistory = {
1051
1051
  (0, client_1.getApolloModules)(),
1052
1052
  globalClient
1053
1053
  ? Promise.resolve(globalClient)
1054
- : client_1.client
1054
+ : (0, client_1.getApolloClient)()
1055
1055
  ]);
1056
1056
  const { gql, ApolloError } = modules;
1057
1057
  const GET_ALL_PORTFOLIOGREEKSHISTORY = gql `
@@ -1126,7 +1126,7 @@ exports.PortfolioGreeksHistory = {
1126
1126
  (0, client_1.getApolloModules)(),
1127
1127
  globalClient
1128
1128
  ? Promise.resolve(globalClient)
1129
- : client_1.client
1129
+ : (0, client_1.getApolloClient)()
1130
1130
  ]);
1131
1131
  const { gql, ApolloError } = modules;
1132
1132
  const FIND_MANY_PORTFOLIOGREEKSHISTORY = gql `
@@ -1149,6 +1149,11 @@ exports.PortfolioGreeksHistory = {
1149
1149
  },
1150
1150
  };
1151
1151
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
1152
+ // Validate that we have at least one filter criteria
1153
+ // GraphQL requires a non-empty where clause for findMany
1154
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
1155
+ throw new Error(`findManyPortfolioGreeksHistory requires at least one filter criterion. Received empty where clause.`);
1156
+ }
1152
1157
  const response = await client.query({
1153
1158
  query: FIND_MANY_PORTFOLIOGREEKSHISTORY,
1154
1159
  variables: filteredVariables,
@@ -41,7 +41,7 @@ exports.ScheduledOptionOrder = {
41
41
  (0, client_1.getApolloModules)(),
42
42
  globalClient
43
43
  ? Promise.resolve(globalClient)
44
- : client_1.client
44
+ : (0, client_1.getApolloClient)()
45
45
  ]);
46
46
  const { gql, ApolloError } = modules;
47
47
  const CREATE_ONE_SCHEDULEDOPTIONORDER = gql `
@@ -148,7 +148,7 @@ exports.ScheduledOptionOrder = {
148
148
  (0, client_1.getApolloModules)(),
149
149
  globalClient
150
150
  ? Promise.resolve(globalClient)
151
- : client_1.client
151
+ : (0, client_1.getApolloClient)()
152
152
  ]);
153
153
  const { gql, ApolloError } = modules;
154
154
  const CREATE_MANY_SCHEDULEDOPTIONORDER = gql `
@@ -253,7 +253,7 @@ exports.ScheduledOptionOrder = {
253
253
  (0, client_1.getApolloModules)(),
254
254
  globalClient
255
255
  ? Promise.resolve(globalClient)
256
- : client_1.client
256
+ : (0, client_1.getApolloClient)()
257
257
  ]);
258
258
  const { gql, ApolloError } = modules;
259
259
  const UPDATE_ONE_SCHEDULEDOPTIONORDER = gql `
@@ -369,7 +369,7 @@ exports.ScheduledOptionOrder = {
369
369
  (0, client_1.getApolloModules)(),
370
370
  globalClient
371
371
  ? Promise.resolve(globalClient)
372
- : client_1.client
372
+ : (0, client_1.getApolloClient)()
373
373
  ]);
374
374
  const { gql, ApolloError } = modules;
375
375
  const UPSERT_ONE_SCHEDULEDOPTIONORDER = gql `
@@ -489,7 +489,7 @@ exports.ScheduledOptionOrder = {
489
489
  (0, client_1.getApolloModules)(),
490
490
  globalClient
491
491
  ? Promise.resolve(globalClient)
492
- : client_1.client
492
+ : (0, client_1.getApolloClient)()
493
493
  ]);
494
494
  const { gql, ApolloError } = modules;
495
495
  const UPDATE_MANY_SCHEDULEDOPTIONORDER = gql `
@@ -602,7 +602,7 @@ exports.ScheduledOptionOrder = {
602
602
  (0, client_1.getApolloModules)(),
603
603
  globalClient
604
604
  ? Promise.resolve(globalClient)
605
- : client_1.client
605
+ : (0, client_1.getApolloClient)()
606
606
  ]);
607
607
  const { gql, ApolloError } = modules;
608
608
  const DELETE_ONE_SCHEDULEDOPTIONORDER = gql `
@@ -713,7 +713,7 @@ exports.ScheduledOptionOrder = {
713
713
  (0, client_1.getApolloModules)(),
714
714
  globalClient
715
715
  ? Promise.resolve(globalClient)
716
- : client_1.client
716
+ : (0, client_1.getApolloClient)()
717
717
  ]);
718
718
  const { gql, ApolloError } = modules;
719
719
  const GET_SCHEDULEDOPTIONORDER = gql `
@@ -796,7 +796,7 @@ exports.ScheduledOptionOrder = {
796
796
  (0, client_1.getApolloModules)(),
797
797
  globalClient
798
798
  ? Promise.resolve(globalClient)
799
- : client_1.client
799
+ : (0, client_1.getApolloClient)()
800
800
  ]);
801
801
  const { gql, ApolloError } = modules;
802
802
  const GET_ALL_SCHEDULEDOPTIONORDER = gql `
@@ -871,7 +871,7 @@ exports.ScheduledOptionOrder = {
871
871
  (0, client_1.getApolloModules)(),
872
872
  globalClient
873
873
  ? Promise.resolve(globalClient)
874
- : client_1.client
874
+ : (0, client_1.getApolloClient)()
875
875
  ]);
876
876
  const { gql, ApolloError } = modules;
877
877
  const FIND_MANY_SCHEDULEDOPTIONORDER = gql `
@@ -891,6 +891,11 @@ exports.ScheduledOptionOrder = {
891
891
  },
892
892
  };
893
893
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
894
+ // Validate that we have at least one filter criteria
895
+ // GraphQL requires a non-empty where clause for findMany
896
+ if (!filteredVariables || !filteredVariables.where || Object.keys(filteredVariables.where).length === 0) {
897
+ throw new Error(`findManyScheduledOptionOrder requires at least one filter criterion. Received empty where clause.`);
898
+ }
894
899
  const response = await client.query({
895
900
  query: FIND_MANY_SCHEDULEDOPTIONORDER,
896
901
  variables: filteredVariables,