@adaptic/backend-legacy 0.0.913 → 0.0.915

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 (205) hide show
  1. package/ABTest.cjs +781 -1
  2. package/Account.cjs +153 -0
  3. package/AccountDecisionRecord.cjs +16 -1
  4. package/AccountLinkingRequest.cjs +154 -1
  5. package/Action.cjs +45 -0
  6. package/Alert.cjs +177 -0
  7. package/Allocation.cjs +195 -0
  8. package/AlpacaAccount.cjs +142 -1
  9. package/AnalyticsConfiguration.cjs +1 -1
  10. package/AnalyticsSnapshot.cjs +1 -1
  11. package/Asset.cjs +25 -0
  12. package/AuditLog.cjs +1 -1
  13. package/Authenticator.cjs +162 -0
  14. package/Configuration.cjs +15 -0
  15. package/ConflictEvent.cjs +1 -1
  16. package/ConnectionHealthSnapshot.cjs +16 -1
  17. package/Customer.cjs +162 -0
  18. package/DeadLetterMessage.cjs +16 -1
  19. package/DecisionMemorySummary.cjs +1 -1
  20. package/EconomicEvent.cjs +1 -1
  21. package/EquityBar.cjs +4 -1
  22. package/EventSnapshot.cjs +1 -1
  23. package/FeatureImportanceAnalysis.cjs +447 -1
  24. package/InstitutionalFlowSignal.cjs +32 -1
  25. package/InstitutionalHolding.cjs +22 -1
  26. package/InstitutionalSentimentAlerts.cjs +16 -1
  27. package/InstitutionalSentimentErrors.cjs +1 -1
  28. package/InstitutionalSentimentHistory.cjs +1 -1
  29. package/InstitutionalSentimentMetrics.cjs +1 -1
  30. package/InviteToken.cjs +115 -1
  31. package/LinkedProvider.cjs +163 -1
  32. package/LlmConfiguration.cjs +163 -1
  33. package/MLTrainingData.cjs +1 -1
  34. package/MarketSentiment.cjs +1 -1
  35. package/ModelArtifact.cjs +182 -1
  36. package/ModelVersion.cjs +934 -1
  37. package/ModelVersionArtifact.cjs +441 -1
  38. package/NewsArticle.cjs +47 -1
  39. package/NewsArticleAssetSentiment.cjs +32 -1
  40. package/OptionsContract.cjs +40 -1
  41. package/OptionsGreeksHistory.cjs +58 -1
  42. package/OptionsPosition.cjs +82 -1
  43. package/OptionsTradeExecution.cjs +40 -1
  44. package/PolicyOverlay.cjs +106 -1
  45. package/PortfolioGreeksHistory.cjs +1 -1
  46. package/ScheduledOptionOrder.cjs +16 -1
  47. package/Session.cjs +162 -0
  48. package/SignalGeneratorMetrics.cjs +1 -1
  49. package/SignalLineage.cjs +4 -1
  50. package/SignalOutcome.cjs +1 -1
  51. package/SignalPriorityQueue.cjs +16 -1
  52. package/SyncEvent.cjs +16 -1
  53. package/SystemAlert.cjs +31 -1
  54. package/Trade.cjs +45 -0
  55. package/TradeAuditEvent.cjs +1 -1
  56. package/TradeExecutionHistory.cjs +1 -1
  57. package/TradingPolicy.cjs +178 -1
  58. package/User.cjs +141 -0
  59. package/VerificationToken.cjs +1 -1
  60. package/WaitlistEntry.cjs +154 -1
  61. package/esm/ABTest.d.ts.map +1 -1
  62. package/esm/ABTest.js.map +1 -1
  63. package/esm/ABTest.mjs +781 -1
  64. package/esm/Account.d.ts.map +1 -1
  65. package/esm/Account.js.map +1 -1
  66. package/esm/Account.mjs +153 -0
  67. package/esm/AccountDecisionRecord.d.ts.map +1 -1
  68. package/esm/AccountDecisionRecord.js.map +1 -1
  69. package/esm/AccountDecisionRecord.mjs +16 -1
  70. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  71. package/esm/AccountLinkingRequest.js.map +1 -1
  72. package/esm/AccountLinkingRequest.mjs +154 -1
  73. package/esm/Action.d.ts.map +1 -1
  74. package/esm/Action.js.map +1 -1
  75. package/esm/Action.mjs +45 -0
  76. package/esm/Alert.d.ts.map +1 -1
  77. package/esm/Alert.js.map +1 -1
  78. package/esm/Alert.mjs +177 -0
  79. package/esm/Allocation.d.ts.map +1 -1
  80. package/esm/Allocation.js.map +1 -1
  81. package/esm/Allocation.mjs +195 -0
  82. package/esm/AlpacaAccount.d.ts.map +1 -1
  83. package/esm/AlpacaAccount.js.map +1 -1
  84. package/esm/AlpacaAccount.mjs +142 -1
  85. package/esm/AnalyticsConfiguration.mjs +1 -1
  86. package/esm/AnalyticsSnapshot.mjs +1 -1
  87. package/esm/Asset.d.ts.map +1 -1
  88. package/esm/Asset.js.map +1 -1
  89. package/esm/Asset.mjs +25 -0
  90. package/esm/AuditLog.mjs +1 -1
  91. package/esm/Authenticator.d.ts.map +1 -1
  92. package/esm/Authenticator.js.map +1 -1
  93. package/esm/Authenticator.mjs +162 -0
  94. package/esm/Configuration.d.ts.map +1 -1
  95. package/esm/Configuration.js.map +1 -1
  96. package/esm/Configuration.mjs +15 -0
  97. package/esm/ConflictEvent.mjs +1 -1
  98. package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
  99. package/esm/ConnectionHealthSnapshot.js.map +1 -1
  100. package/esm/ConnectionHealthSnapshot.mjs +16 -1
  101. package/esm/Customer.d.ts.map +1 -1
  102. package/esm/Customer.js.map +1 -1
  103. package/esm/Customer.mjs +162 -0
  104. package/esm/DeadLetterMessage.d.ts.map +1 -1
  105. package/esm/DeadLetterMessage.js.map +1 -1
  106. package/esm/DeadLetterMessage.mjs +16 -1
  107. package/esm/DecisionMemorySummary.mjs +1 -1
  108. package/esm/EconomicEvent.mjs +1 -1
  109. package/esm/EquityBar.d.ts.map +1 -1
  110. package/esm/EquityBar.js.map +1 -1
  111. package/esm/EquityBar.mjs +4 -1
  112. package/esm/EventSnapshot.mjs +1 -1
  113. package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
  114. package/esm/FeatureImportanceAnalysis.js.map +1 -1
  115. package/esm/FeatureImportanceAnalysis.mjs +447 -1
  116. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  117. package/esm/InstitutionalFlowSignal.js.map +1 -1
  118. package/esm/InstitutionalFlowSignal.mjs +32 -1
  119. package/esm/InstitutionalHolding.d.ts.map +1 -1
  120. package/esm/InstitutionalHolding.js.map +1 -1
  121. package/esm/InstitutionalHolding.mjs +22 -1
  122. package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
  123. package/esm/InstitutionalSentimentAlerts.js.map +1 -1
  124. package/esm/InstitutionalSentimentAlerts.mjs +16 -1
  125. package/esm/InstitutionalSentimentErrors.mjs +1 -1
  126. package/esm/InstitutionalSentimentHistory.mjs +1 -1
  127. package/esm/InstitutionalSentimentMetrics.mjs +1 -1
  128. package/esm/InviteToken.d.ts.map +1 -1
  129. package/esm/InviteToken.js.map +1 -1
  130. package/esm/InviteToken.mjs +115 -1
  131. package/esm/LinkedProvider.d.ts.map +1 -1
  132. package/esm/LinkedProvider.js.map +1 -1
  133. package/esm/LinkedProvider.mjs +163 -1
  134. package/esm/LlmConfiguration.d.ts.map +1 -1
  135. package/esm/LlmConfiguration.js.map +1 -1
  136. package/esm/LlmConfiguration.mjs +163 -1
  137. package/esm/MLTrainingData.mjs +1 -1
  138. package/esm/MarketSentiment.mjs +1 -1
  139. package/esm/ModelArtifact.d.ts.map +1 -1
  140. package/esm/ModelArtifact.js.map +1 -1
  141. package/esm/ModelArtifact.mjs +182 -1
  142. package/esm/ModelVersion.d.ts.map +1 -1
  143. package/esm/ModelVersion.js.map +1 -1
  144. package/esm/ModelVersion.mjs +934 -1
  145. package/esm/ModelVersionArtifact.d.ts.map +1 -1
  146. package/esm/ModelVersionArtifact.js.map +1 -1
  147. package/esm/ModelVersionArtifact.mjs +441 -1
  148. package/esm/NewsArticle.d.ts.map +1 -1
  149. package/esm/NewsArticle.js.map +1 -1
  150. package/esm/NewsArticle.mjs +47 -1
  151. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  152. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  153. package/esm/NewsArticleAssetSentiment.mjs +32 -1
  154. package/esm/OptionsContract.d.ts.map +1 -1
  155. package/esm/OptionsContract.js.map +1 -1
  156. package/esm/OptionsContract.mjs +40 -1
  157. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  158. package/esm/OptionsGreeksHistory.js.map +1 -1
  159. package/esm/OptionsGreeksHistory.mjs +58 -1
  160. package/esm/OptionsPosition.d.ts.map +1 -1
  161. package/esm/OptionsPosition.js.map +1 -1
  162. package/esm/OptionsPosition.mjs +82 -1
  163. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  164. package/esm/OptionsTradeExecution.js.map +1 -1
  165. package/esm/OptionsTradeExecution.mjs +40 -1
  166. package/esm/PolicyOverlay.d.ts.map +1 -1
  167. package/esm/PolicyOverlay.js.map +1 -1
  168. package/esm/PolicyOverlay.mjs +106 -1
  169. package/esm/PortfolioGreeksHistory.mjs +1 -1
  170. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  171. package/esm/ScheduledOptionOrder.js.map +1 -1
  172. package/esm/ScheduledOptionOrder.mjs +16 -1
  173. package/esm/Session.d.ts.map +1 -1
  174. package/esm/Session.js.map +1 -1
  175. package/esm/Session.mjs +162 -0
  176. package/esm/SignalGeneratorMetrics.mjs +1 -1
  177. package/esm/SignalLineage.d.ts.map +1 -1
  178. package/esm/SignalLineage.js.map +1 -1
  179. package/esm/SignalLineage.mjs +4 -1
  180. package/esm/SignalOutcome.mjs +1 -1
  181. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  182. package/esm/SignalPriorityQueue.js.map +1 -1
  183. package/esm/SignalPriorityQueue.mjs +16 -1
  184. package/esm/SyncEvent.d.ts.map +1 -1
  185. package/esm/SyncEvent.js.map +1 -1
  186. package/esm/SyncEvent.mjs +16 -1
  187. package/esm/SystemAlert.d.ts.map +1 -1
  188. package/esm/SystemAlert.js.map +1 -1
  189. package/esm/SystemAlert.mjs +31 -1
  190. package/esm/Trade.d.ts.map +1 -1
  191. package/esm/Trade.js.map +1 -1
  192. package/esm/Trade.mjs +45 -0
  193. package/esm/TradeAuditEvent.mjs +1 -1
  194. package/esm/TradeExecutionHistory.mjs +1 -1
  195. package/esm/TradingPolicy.d.ts.map +1 -1
  196. package/esm/TradingPolicy.js.map +1 -1
  197. package/esm/TradingPolicy.mjs +178 -1
  198. package/esm/User.d.ts.map +1 -1
  199. package/esm/User.js.map +1 -1
  200. package/esm/User.mjs +141 -0
  201. package/esm/VerificationToken.mjs +1 -1
  202. package/esm/WaitlistEntry.d.ts.map +1 -1
  203. package/esm/WaitlistEntry.js.map +1 -1
  204. package/esm/WaitlistEntry.mjs +154 -1
  205. package/package.json +1 -1
@@ -282,6 +282,9 @@ exports.OptionsGreeksHistory = {
282
282
  contractId: item.contractId !== undefined ? {
283
283
  equals: item.contractId
284
284
  } : undefined,
285
+ status: item.status !== undefined ? {
286
+ equals: item.status
287
+ } : undefined,
285
288
  },
286
289
  create: {
287
290
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -382,6 +385,9 @@ exports.OptionsGreeksHistory = {
382
385
  contractId: item.position.contractId !== undefined ? {
383
386
  equals: item.position.contractId
384
387
  } : undefined,
388
+ status: item.position.status !== undefined ? {
389
+ equals: item.position.status
390
+ } : undefined,
385
391
  },
386
392
  create: {
387
393
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -793,6 +799,9 @@ exports.OptionsGreeksHistory = {
793
799
  contractId: item.contractId !== undefined ? {
794
800
  equals: item.contractId
795
801
  } : undefined,
802
+ status: item.status !== undefined ? {
803
+ equals: item.status
804
+ } : undefined,
796
805
  tradeId: item.tradeId !== undefined ? {
797
806
  equals: item.tradeId
798
807
  } : undefined,
@@ -1157,6 +1166,9 @@ exports.OptionsGreeksHistory = {
1157
1166
  contractId: item.position.contractId !== undefined ? {
1158
1167
  equals: item.position.contractId
1159
1168
  } : undefined,
1169
+ status: item.position.status !== undefined ? {
1170
+ equals: item.position.status
1171
+ } : undefined,
1160
1172
  tradeId: item.position.tradeId !== undefined ? {
1161
1173
  equals: item.position.tradeId
1162
1174
  } : undefined,
@@ -1292,6 +1304,9 @@ exports.OptionsGreeksHistory = {
1292
1304
  contractId: item.position.contractId !== undefined ? {
1293
1305
  equals: item.position.contractId
1294
1306
  } : undefined,
1307
+ status: item.position.status !== undefined ? {
1308
+ equals: item.position.status
1309
+ } : undefined,
1295
1310
  },
1296
1311
  create: {
1297
1312
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -1340,6 +1355,9 @@ exports.OptionsGreeksHistory = {
1340
1355
  contractId: item.contractId !== undefined ? {
1341
1356
  equals: item.contractId
1342
1357
  } : undefined,
1358
+ status: item.status !== undefined ? {
1359
+ equals: item.status
1360
+ } : undefined,
1343
1361
  },
1344
1362
  create: {
1345
1363
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -1440,6 +1458,9 @@ exports.OptionsGreeksHistory = {
1440
1458
  contractId: item.position.contractId !== undefined ? {
1441
1459
  equals: item.position.contractId
1442
1460
  } : undefined,
1461
+ status: item.position.status !== undefined ? {
1462
+ equals: item.position.status
1463
+ } : undefined,
1443
1464
  },
1444
1465
  create: {
1445
1466
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -1620,6 +1641,9 @@ exports.OptionsGreeksHistory = {
1620
1641
  contractId: item.contractId !== undefined ? {
1621
1642
  equals: item.contractId
1622
1643
  } : undefined,
1644
+ status: item.status !== undefined ? {
1645
+ equals: item.status
1646
+ } : undefined,
1623
1647
  },
1624
1648
  create: {
1625
1649
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -1720,6 +1744,9 @@ exports.OptionsGreeksHistory = {
1720
1744
  contractId: item.position.contractId !== undefined ? {
1721
1745
  equals: item.position.contractId
1722
1746
  } : undefined,
1747
+ status: item.position.status !== undefined ? {
1748
+ equals: item.position.status
1749
+ } : undefined,
1723
1750
  },
1724
1751
  create: {
1725
1752
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -1909,6 +1936,9 @@ exports.OptionsGreeksHistory = {
1909
1936
  contractId: item.contractId !== undefined ? {
1910
1937
  equals: item.contractId
1911
1938
  } : undefined,
1939
+ status: item.status !== undefined ? {
1940
+ equals: item.status
1941
+ } : undefined,
1912
1942
  tradeId: item.tradeId !== undefined ? {
1913
1943
  equals: item.tradeId
1914
1944
  } : undefined,
@@ -2273,6 +2303,9 @@ exports.OptionsGreeksHistory = {
2273
2303
  contractId: item.position.contractId !== undefined ? {
2274
2304
  equals: item.position.contractId
2275
2305
  } : undefined,
2306
+ status: item.position.status !== undefined ? {
2307
+ equals: item.position.status
2308
+ } : undefined,
2276
2309
  tradeId: item.position.tradeId !== undefined ? {
2277
2310
  equals: item.position.tradeId
2278
2311
  } : undefined,
@@ -2408,6 +2441,9 @@ exports.OptionsGreeksHistory = {
2408
2441
  contractId: item.position.contractId !== undefined ? {
2409
2442
  equals: item.position.contractId
2410
2443
  } : undefined,
2444
+ status: item.position.status !== undefined ? {
2445
+ equals: item.position.status
2446
+ } : undefined,
2411
2447
  },
2412
2448
  create: {
2413
2449
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -2456,6 +2492,9 @@ exports.OptionsGreeksHistory = {
2456
2492
  contractId: item.contractId !== undefined ? {
2457
2493
  equals: item.contractId
2458
2494
  } : undefined,
2495
+ status: item.status !== undefined ? {
2496
+ equals: item.status
2497
+ } : undefined,
2459
2498
  },
2460
2499
  create: {
2461
2500
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -2556,6 +2595,9 @@ exports.OptionsGreeksHistory = {
2556
2595
  contractId: item.position.contractId !== undefined ? {
2557
2596
  equals: item.position.contractId
2558
2597
  } : undefined,
2598
+ status: item.position.status !== undefined ? {
2599
+ equals: item.position.status
2600
+ } : undefined,
2559
2601
  },
2560
2602
  create: {
2561
2603
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -2861,6 +2903,9 @@ exports.OptionsGreeksHistory = {
2861
2903
  contractId: item.contractId !== undefined ? {
2862
2904
  equals: item.contractId
2863
2905
  } : undefined,
2906
+ status: item.status !== undefined ? {
2907
+ equals: item.status
2908
+ } : undefined,
2864
2909
  tradeId: item.tradeId !== undefined ? {
2865
2910
  equals: item.tradeId
2866
2911
  } : undefined,
@@ -3225,6 +3270,9 @@ exports.OptionsGreeksHistory = {
3225
3270
  contractId: item.position.contractId !== undefined ? {
3226
3271
  equals: item.position.contractId
3227
3272
  } : undefined,
3273
+ status: item.position.status !== undefined ? {
3274
+ equals: item.position.status
3275
+ } : undefined,
3228
3276
  tradeId: item.position.tradeId !== undefined ? {
3229
3277
  equals: item.position.tradeId
3230
3278
  } : undefined,
@@ -3360,6 +3408,9 @@ exports.OptionsGreeksHistory = {
3360
3408
  contractId: item.position.contractId !== undefined ? {
3361
3409
  equals: item.position.contractId
3362
3410
  } : undefined,
3411
+ status: item.position.status !== undefined ? {
3412
+ equals: item.position.status
3413
+ } : undefined,
3363
3414
  },
3364
3415
  create: {
3365
3416
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -3408,6 +3459,9 @@ exports.OptionsGreeksHistory = {
3408
3459
  contractId: item.contractId !== undefined ? {
3409
3460
  equals: item.contractId
3410
3461
  } : undefined,
3462
+ status: item.status !== undefined ? {
3463
+ equals: item.status
3464
+ } : undefined,
3411
3465
  },
3412
3466
  create: {
3413
3467
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -3508,6 +3562,9 @@ exports.OptionsGreeksHistory = {
3508
3562
  contractId: item.position.contractId !== undefined ? {
3509
3563
  equals: item.position.contractId
3510
3564
  } : undefined,
3565
+ status: item.position.status !== undefined ? {
3566
+ equals: item.position.status
3567
+ } : undefined,
3511
3568
  },
3512
3569
  create: {
3513
3570
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -3918,7 +3975,7 @@ exports.OptionsGreeksHistory = {
3918
3975
  });
3919
3976
  if (response.errors && response.errors.length > 0)
3920
3977
  throw new Error(response.errors[0].message);
3921
- if (response && response.data && response.data.optionsgreekshistories) {
3978
+ if (response && response.data && response.data.optionsGreeksHistories) {
3922
3979
  return response.data.optionsGreeksHistories;
3923
3980
  }
3924
3981
  else {
@@ -363,6 +363,9 @@ exports.OptionsPosition = {
363
363
  contractId: item.position.contractId !== undefined ? {
364
364
  equals: item.position.contractId
365
365
  } : undefined,
366
+ status: item.position.status !== undefined ? {
367
+ equals: item.position.status
368
+ } : undefined,
366
369
  },
367
370
  create: {
368
371
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -459,6 +462,9 @@ exports.OptionsPosition = {
459
462
  contractId: item.contractId !== undefined ? {
460
463
  equals: item.contractId
461
464
  } : undefined,
465
+ status: item.status !== undefined ? {
466
+ equals: item.status
467
+ } : undefined,
462
468
  },
463
469
  create: {
464
470
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -728,6 +734,9 @@ exports.OptionsPosition = {
728
734
  contractId: props.contractId !== undefined ? {
729
735
  equals: props.contractId
730
736
  } : undefined,
737
+ status: props.status !== undefined ? {
738
+ equals: props.status
739
+ } : undefined,
731
740
  },
732
741
  data: {
733
742
  id: props.id !== undefined ? {
@@ -1111,6 +1120,9 @@ exports.OptionsPosition = {
1111
1120
  contractId: item.position.contractId !== undefined ? {
1112
1121
  equals: item.position.contractId
1113
1122
  } : undefined,
1123
+ status: item.position.status !== undefined ? {
1124
+ equals: item.position.status
1125
+ } : undefined,
1114
1126
  tradeId: item.position.tradeId !== undefined ? {
1115
1127
  equals: item.position.tradeId
1116
1128
  } : undefined,
@@ -1246,6 +1258,9 @@ exports.OptionsPosition = {
1246
1258
  contractId: item.position.contractId !== undefined ? {
1247
1259
  equals: item.position.contractId
1248
1260
  } : undefined,
1261
+ status: item.position.status !== undefined ? {
1262
+ equals: item.position.status
1263
+ } : undefined,
1249
1264
  },
1250
1265
  create: {
1251
1266
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -1349,6 +1364,9 @@ exports.OptionsPosition = {
1349
1364
  contractId: item.position.contractId !== undefined ? {
1350
1365
  equals: item.position.contractId
1351
1366
  } : undefined,
1367
+ status: item.position.status !== undefined ? {
1368
+ equals: item.position.status
1369
+ } : undefined,
1352
1370
  },
1353
1371
  create: {
1354
1372
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -1579,6 +1597,9 @@ exports.OptionsPosition = {
1579
1597
  contractId: item.contractId !== undefined ? {
1580
1598
  equals: item.contractId
1581
1599
  } : undefined,
1600
+ status: item.status !== undefined ? {
1601
+ equals: item.status
1602
+ } : undefined,
1582
1603
  tradeId: item.tradeId !== undefined ? {
1583
1604
  equals: item.tradeId
1584
1605
  } : undefined,
@@ -1793,6 +1814,9 @@ exports.OptionsPosition = {
1793
1814
  contractId: item.contractId !== undefined ? {
1794
1815
  equals: item.contractId
1795
1816
  } : undefined,
1817
+ status: item.status !== undefined ? {
1818
+ equals: item.status
1819
+ } : undefined,
1796
1820
  },
1797
1821
  create: {
1798
1822
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -1887,6 +1911,9 @@ exports.OptionsPosition = {
1887
1911
  contractId: item.contractId !== undefined ? {
1888
1912
  equals: item.contractId
1889
1913
  } : undefined,
1914
+ status: item.status !== undefined ? {
1915
+ equals: item.status
1916
+ } : undefined,
1890
1917
  },
1891
1918
  create: {
1892
1919
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -2044,6 +2071,9 @@ exports.OptionsPosition = {
2044
2071
  contractId: props.contractId !== undefined ? {
2045
2072
  equals: props.contractId
2046
2073
  } : undefined,
2074
+ status: props.status !== undefined ? {
2075
+ equals: props.status
2076
+ } : undefined,
2047
2077
  },
2048
2078
  create: {
2049
2079
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
@@ -2153,6 +2183,9 @@ exports.OptionsPosition = {
2153
2183
  contractId: item.position.contractId !== undefined ? {
2154
2184
  equals: item.position.contractId
2155
2185
  } : undefined,
2186
+ status: item.position.status !== undefined ? {
2187
+ equals: item.position.status
2188
+ } : undefined,
2156
2189
  },
2157
2190
  create: {
2158
2191
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -2249,6 +2282,9 @@ exports.OptionsPosition = {
2249
2282
  contractId: item.contractId !== undefined ? {
2250
2283
  equals: item.contractId
2251
2284
  } : undefined,
2285
+ status: item.status !== undefined ? {
2286
+ equals: item.status
2287
+ } : undefined,
2252
2288
  },
2253
2289
  create: {
2254
2290
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -2667,6 +2703,9 @@ exports.OptionsPosition = {
2667
2703
  contractId: item.position.contractId !== undefined ? {
2668
2704
  equals: item.position.contractId
2669
2705
  } : undefined,
2706
+ status: item.position.status !== undefined ? {
2707
+ equals: item.position.status
2708
+ } : undefined,
2670
2709
  tradeId: item.position.tradeId !== undefined ? {
2671
2710
  equals: item.position.tradeId
2672
2711
  } : undefined,
@@ -2802,6 +2841,9 @@ exports.OptionsPosition = {
2802
2841
  contractId: item.position.contractId !== undefined ? {
2803
2842
  equals: item.position.contractId
2804
2843
  } : undefined,
2844
+ status: item.position.status !== undefined ? {
2845
+ equals: item.position.status
2846
+ } : undefined,
2805
2847
  },
2806
2848
  create: {
2807
2849
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -2905,6 +2947,9 @@ exports.OptionsPosition = {
2905
2947
  contractId: item.position.contractId !== undefined ? {
2906
2948
  equals: item.position.contractId
2907
2949
  } : undefined,
2950
+ status: item.position.status !== undefined ? {
2951
+ equals: item.position.status
2952
+ } : undefined,
2908
2953
  },
2909
2954
  create: {
2910
2955
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -3135,6 +3180,9 @@ exports.OptionsPosition = {
3135
3180
  contractId: item.contractId !== undefined ? {
3136
3181
  equals: item.contractId
3137
3182
  } : undefined,
3183
+ status: item.status !== undefined ? {
3184
+ equals: item.status
3185
+ } : undefined,
3138
3186
  tradeId: item.tradeId !== undefined ? {
3139
3187
  equals: item.tradeId
3140
3188
  } : undefined,
@@ -3349,6 +3397,9 @@ exports.OptionsPosition = {
3349
3397
  contractId: item.contractId !== undefined ? {
3350
3398
  equals: item.contractId
3351
3399
  } : undefined,
3400
+ status: item.status !== undefined ? {
3401
+ equals: item.status
3402
+ } : undefined,
3352
3403
  },
3353
3404
  create: {
3354
3405
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -3443,6 +3494,9 @@ exports.OptionsPosition = {
3443
3494
  contractId: item.contractId !== undefined ? {
3444
3495
  equals: item.contractId
3445
3496
  } : undefined,
3497
+ status: item.status !== undefined ? {
3498
+ equals: item.status
3499
+ } : undefined,
3446
3500
  },
3447
3501
  create: {
3448
3502
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -3600,6 +3654,9 @@ exports.OptionsPosition = {
3600
3654
  contractId: prop.contractId !== undefined ? {
3601
3655
  equals: prop.contractId
3602
3656
  } : undefined,
3657
+ status: prop.status !== undefined ? {
3658
+ equals: prop.status
3659
+ } : undefined,
3603
3660
  },
3604
3661
  data: {
3605
3662
  id: prop.id !== undefined ? {
@@ -3983,6 +4040,9 @@ exports.OptionsPosition = {
3983
4040
  contractId: item.position.contractId !== undefined ? {
3984
4041
  equals: item.position.contractId
3985
4042
  } : undefined,
4043
+ status: item.position.status !== undefined ? {
4044
+ equals: item.position.status
4045
+ } : undefined,
3986
4046
  tradeId: item.position.tradeId !== undefined ? {
3987
4047
  equals: item.position.tradeId
3988
4048
  } : undefined,
@@ -4118,6 +4178,9 @@ exports.OptionsPosition = {
4118
4178
  contractId: item.position.contractId !== undefined ? {
4119
4179
  equals: item.position.contractId
4120
4180
  } : undefined,
4181
+ status: item.position.status !== undefined ? {
4182
+ equals: item.position.status
4183
+ } : undefined,
4121
4184
  },
4122
4185
  create: {
4123
4186
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -4221,6 +4284,9 @@ exports.OptionsPosition = {
4221
4284
  contractId: item.position.contractId !== undefined ? {
4222
4285
  equals: item.position.contractId
4223
4286
  } : undefined,
4287
+ status: item.position.status !== undefined ? {
4288
+ equals: item.position.status
4289
+ } : undefined,
4224
4290
  },
4225
4291
  create: {
4226
4292
  alpacaAccountId: item.position.alpacaAccountId !== undefined ? item.position.alpacaAccountId : undefined,
@@ -4451,6 +4517,9 @@ exports.OptionsPosition = {
4451
4517
  contractId: item.contractId !== undefined ? {
4452
4518
  equals: item.contractId
4453
4519
  } : undefined,
4520
+ status: item.status !== undefined ? {
4521
+ equals: item.status
4522
+ } : undefined,
4454
4523
  tradeId: item.tradeId !== undefined ? {
4455
4524
  equals: item.tradeId
4456
4525
  } : undefined,
@@ -4665,6 +4734,9 @@ exports.OptionsPosition = {
4665
4734
  contractId: item.contractId !== undefined ? {
4666
4735
  equals: item.contractId
4667
4736
  } : undefined,
4737
+ status: item.status !== undefined ? {
4738
+ equals: item.status
4739
+ } : undefined,
4668
4740
  },
4669
4741
  create: {
4670
4742
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -4759,6 +4831,9 @@ exports.OptionsPosition = {
4759
4831
  contractId: item.contractId !== undefined ? {
4760
4832
  equals: item.contractId
4761
4833
  } : undefined,
4834
+ status: item.status !== undefined ? {
4835
+ equals: item.status
4836
+ } : undefined,
4762
4837
  },
4763
4838
  create: {
4764
4839
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -5024,6 +5099,9 @@ exports.OptionsPosition = {
5024
5099
  contractId: props.contractId !== undefined ? {
5025
5100
  equals: props.contractId
5026
5101
  } : undefined,
5102
+ status: props.status !== undefined ? {
5103
+ equals: props.status
5104
+ } : undefined,
5027
5105
  },
5028
5106
  };
5029
5107
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
@@ -5187,6 +5265,9 @@ exports.OptionsPosition = {
5187
5265
  contractId: props.contractId !== undefined ? {
5188
5266
  equals: props.contractId
5189
5267
  } : undefined,
5268
+ status: props.status !== undefined ? {
5269
+ equals: props.status
5270
+ } : undefined,
5190
5271
  },
5191
5272
  };
5192
5273
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
@@ -5197,7 +5278,7 @@ exports.OptionsPosition = {
5197
5278
  });
5198
5279
  if (response.errors && response.errors.length > 0)
5199
5280
  throw new Error(response.errors[0].message);
5200
- if (response && response.data && response.data.optionspositions) {
5281
+ if (response && response.data && response.data.optionsPositions) {
5201
5282
  return response.data.optionsPositions;
5202
5283
  }
5203
5284
  else {
@@ -285,6 +285,9 @@ exports.OptionsTradeExecution = {
285
285
  contractId: props.position.contractId !== undefined ? {
286
286
  equals: props.position.contractId
287
287
  } : undefined,
288
+ status: props.position.status !== undefined ? {
289
+ equals: props.position.status
290
+ } : undefined,
288
291
  },
289
292
  create: {
290
293
  alpacaAccountId: props.position.alpacaAccountId !== undefined ? props.position.alpacaAccountId : undefined,
@@ -429,6 +432,9 @@ exports.OptionsTradeExecution = {
429
432
  contractId: item.contractId !== undefined ? {
430
433
  equals: item.contractId
431
434
  } : undefined,
435
+ status: item.status !== undefined ? {
436
+ equals: item.status
437
+ } : undefined,
432
438
  },
433
439
  create: {
434
440
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -834,6 +840,9 @@ exports.OptionsTradeExecution = {
834
840
  contractId: props.position.contractId !== undefined ? {
835
841
  equals: props.position.contractId
836
842
  } : undefined,
843
+ status: props.position.status !== undefined ? {
844
+ equals: props.position.status
845
+ } : undefined,
837
846
  tradeId: props.position.tradeId !== undefined ? {
838
847
  equals: props.position.tradeId
839
848
  } : undefined,
@@ -1504,6 +1513,9 @@ exports.OptionsTradeExecution = {
1504
1513
  contractId: item.contractId !== undefined ? {
1505
1514
  equals: item.contractId
1506
1515
  } : undefined,
1516
+ status: item.status !== undefined ? {
1517
+ equals: item.status
1518
+ } : undefined,
1507
1519
  tradeId: item.tradeId !== undefined ? {
1508
1520
  equals: item.tradeId
1509
1521
  } : undefined,
@@ -1863,6 +1875,9 @@ exports.OptionsTradeExecution = {
1863
1875
  contractId: item.contractId !== undefined ? {
1864
1876
  equals: item.contractId
1865
1877
  } : undefined,
1878
+ status: item.status !== undefined ? {
1879
+ equals: item.status
1880
+ } : undefined,
1866
1881
  },
1867
1882
  create: {
1868
1883
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -2086,6 +2101,9 @@ exports.OptionsTradeExecution = {
2086
2101
  contractId: props.position.contractId !== undefined ? {
2087
2102
  equals: props.position.contractId
2088
2103
  } : undefined,
2104
+ status: props.position.status !== undefined ? {
2105
+ equals: props.position.status
2106
+ } : undefined,
2089
2107
  },
2090
2108
  create: {
2091
2109
  alpacaAccountId: props.position.alpacaAccountId !== undefined ? props.position.alpacaAccountId : undefined,
@@ -2230,6 +2248,9 @@ exports.OptionsTradeExecution = {
2230
2248
  contractId: item.contractId !== undefined ? {
2231
2249
  equals: item.contractId
2232
2250
  } : undefined,
2251
+ status: item.status !== undefined ? {
2252
+ equals: item.status
2253
+ } : undefined,
2233
2254
  },
2234
2255
  create: {
2235
2256
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -2395,6 +2416,9 @@ exports.OptionsTradeExecution = {
2395
2416
  contractId: props.position.contractId !== undefined ? {
2396
2417
  equals: props.position.contractId
2397
2418
  } : undefined,
2419
+ status: props.position.status !== undefined ? {
2420
+ equals: props.position.status
2421
+ } : undefined,
2398
2422
  tradeId: props.position.tradeId !== undefined ? {
2399
2423
  equals: props.position.tradeId
2400
2424
  } : undefined,
@@ -3065,6 +3089,9 @@ exports.OptionsTradeExecution = {
3065
3089
  contractId: item.contractId !== undefined ? {
3066
3090
  equals: item.contractId
3067
3091
  } : undefined,
3092
+ status: item.status !== undefined ? {
3093
+ equals: item.status
3094
+ } : undefined,
3068
3095
  tradeId: item.tradeId !== undefined ? {
3069
3096
  equals: item.tradeId
3070
3097
  } : undefined,
@@ -3424,6 +3451,9 @@ exports.OptionsTradeExecution = {
3424
3451
  contractId: item.contractId !== undefined ? {
3425
3452
  equals: item.contractId
3426
3453
  } : undefined,
3454
+ status: item.status !== undefined ? {
3455
+ equals: item.status
3456
+ } : undefined,
3427
3457
  },
3428
3458
  create: {
3429
3459
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -3717,6 +3747,9 @@ exports.OptionsTradeExecution = {
3717
3747
  contractId: prop.position.contractId !== undefined ? {
3718
3748
  equals: prop.position.contractId
3719
3749
  } : undefined,
3750
+ status: prop.position.status !== undefined ? {
3751
+ equals: prop.position.status
3752
+ } : undefined,
3720
3753
  tradeId: prop.position.tradeId !== undefined ? {
3721
3754
  equals: prop.position.tradeId
3722
3755
  } : undefined,
@@ -4387,6 +4420,9 @@ exports.OptionsTradeExecution = {
4387
4420
  contractId: item.contractId !== undefined ? {
4388
4421
  equals: item.contractId
4389
4422
  } : undefined,
4423
+ status: item.status !== undefined ? {
4424
+ equals: item.status
4425
+ } : undefined,
4390
4426
  tradeId: item.tradeId !== undefined ? {
4391
4427
  equals: item.tradeId
4392
4428
  } : undefined,
@@ -4746,6 +4782,9 @@ exports.OptionsTradeExecution = {
4746
4782
  contractId: item.contractId !== undefined ? {
4747
4783
  equals: item.contractId
4748
4784
  } : undefined,
4785
+ status: item.status !== undefined ? {
4786
+ equals: item.status
4787
+ } : undefined,
4749
4788
  },
4750
4789
  create: {
4751
4790
  alpacaAccountId: item.alpacaAccountId !== undefined ? item.alpacaAccountId : undefined,
@@ -5229,7 +5268,7 @@ exports.OptionsTradeExecution = {
5229
5268
  });
5230
5269
  if (response.errors && response.errors.length > 0)
5231
5270
  throw new Error(response.errors[0].message);
5232
- if (response && response.data && response.data.optionstradeexecutions) {
5271
+ if (response && response.data && response.data.optionsTradeExecutions) {
5233
5272
  return response.data.optionsTradeExecutions;
5234
5273
  }
5235
5274
  else {