adaptic-backend 1.0.70 → 1.0.72

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 (435) hide show
  1. package/Account.cjs +0 -6
  2. package/Action.cjs +0 -24
  3. package/Alert.cjs +0 -32
  4. package/AlpacaAccount.cjs +0 -24
  5. package/Asset.cjs +0 -24
  6. package/Authenticator.cjs +0 -6
  7. package/Customer.cjs +0 -6
  8. package/NewsArticle.cjs +0 -6
  9. package/NewsArticleAssetSentiment.cjs +0 -32
  10. package/Order.cjs +0 -26
  11. package/Position.cjs +0 -58
  12. package/Session.cjs +0 -6
  13. package/Trade.cjs +0 -84
  14. package/User.cjs +0 -32
  15. package/generated/typeStrings/Account.cjs +0 -213
  16. package/generated/typeStrings/Account.d.ts +1 -1
  17. package/generated/typeStrings/Account.d.ts.map +1 -1
  18. package/generated/typeStrings/Account.js.map +1 -1
  19. package/generated/typeStrings/Action.cjs +143 -197
  20. package/generated/typeStrings/Action.d.ts +1 -1
  21. package/generated/typeStrings/Action.d.ts.map +1 -1
  22. package/generated/typeStrings/Action.js.map +1 -1
  23. package/generated/typeStrings/Alert.cjs +100 -268
  24. package/generated/typeStrings/Alert.d.ts +1 -1
  25. package/generated/typeStrings/Alert.d.ts.map +1 -1
  26. package/generated/typeStrings/Alert.js.map +1 -1
  27. package/generated/typeStrings/AlpacaAccount.cjs +31 -179
  28. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  29. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  30. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  31. package/generated/typeStrings/Asset.cjs +31 -201
  32. package/generated/typeStrings/Asset.d.ts +1 -1
  33. package/generated/typeStrings/Asset.d.ts.map +1 -1
  34. package/generated/typeStrings/Asset.js.map +1 -1
  35. package/generated/typeStrings/Authenticator.cjs +0 -213
  36. package/generated/typeStrings/Authenticator.d.ts +1 -1
  37. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  38. package/generated/typeStrings/Authenticator.js.map +1 -1
  39. package/generated/typeStrings/Customer.cjs +0 -213
  40. package/generated/typeStrings/Customer.d.ts +1 -1
  41. package/generated/typeStrings/Customer.d.ts.map +1 -1
  42. package/generated/typeStrings/Customer.js.map +1 -1
  43. package/generated/typeStrings/NewsArticle.cjs +0 -171
  44. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  45. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  46. package/generated/typeStrings/NewsArticle.js.map +1 -1
  47. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +100 -81
  48. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  49. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  50. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  51. package/generated/typeStrings/Order.cjs +31 -280
  52. package/generated/typeStrings/Order.d.ts +1 -1
  53. package/generated/typeStrings/Order.d.ts.map +1 -1
  54. package/generated/typeStrings/Order.js.map +1 -1
  55. package/generated/typeStrings/Position.cjs +67 -114
  56. package/generated/typeStrings/Position.d.ts +1 -1
  57. package/generated/typeStrings/Position.d.ts.map +1 -1
  58. package/generated/typeStrings/Position.js.map +1 -1
  59. package/generated/typeStrings/Session.cjs +0 -213
  60. package/generated/typeStrings/Session.d.ts +1 -1
  61. package/generated/typeStrings/Session.d.ts.map +1 -1
  62. package/generated/typeStrings/Session.js.map +1 -1
  63. package/generated/typeStrings/Trade.cjs +31 -280
  64. package/generated/typeStrings/Trade.d.ts +1 -1
  65. package/generated/typeStrings/Trade.d.ts.map +1 -1
  66. package/generated/typeStrings/Trade.js.map +1 -1
  67. package/generated/typeStrings/User.cjs +100 -222
  68. package/generated/typeStrings/User.d.ts +1 -1
  69. package/generated/typeStrings/User.d.ts.map +1 -1
  70. package/generated/typeStrings/User.js.map +1 -1
  71. package/generated/typeStrings/index.d.ts +14 -14
  72. package/generated/typegraphql-prisma/enhance.cjs +27 -27
  73. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  74. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +0 -1
  75. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
  76. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  77. package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  78. package/generated/typegraphql-prisma/models/Order.cjs +0 -7
  79. package/generated/typegraphql-prisma/models/Order.d.ts +0 -4
  80. package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  81. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  82. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  83. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  84. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  85. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  86. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  87. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  88. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  89. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  90. package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  92. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  94. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +0 -6
  95. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
  96. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  97. package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +0 -6
  99. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
  100. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  101. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +0 -6
  103. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
  104. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  105. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  106. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +0 -6
  107. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
  108. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  109. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +0 -6
  111. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
  112. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  113. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +0 -6
  115. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
  116. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  117. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +0 -6
  119. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
  120. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  121. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +0 -6
  123. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
  124. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  125. package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +0 -6
  127. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
  128. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  129. package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  130. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +0 -6
  131. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
  132. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  133. package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  134. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +0 -6
  135. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
  136. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  138. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +0 -6
  139. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
  140. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  142. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +0 -7
  143. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
  144. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  145. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  146. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +0 -7
  147. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
  148. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  149. package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  150. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +0 -6
  151. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
  152. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  153. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  154. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +0 -6
  155. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
  156. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  157. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  158. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +0 -6
  159. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
  160. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  161. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  162. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +0 -6
  163. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
  164. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  165. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  166. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +0 -6
  167. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
  168. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  169. package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  170. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +0 -7
  171. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
  172. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  173. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  174. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +0 -7
  175. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
  176. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  177. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  178. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +0 -6
  179. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
  180. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  181. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  182. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +0 -6
  183. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
  184. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  185. package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  186. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +0 -6
  187. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
  188. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  189. package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  190. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +0 -6
  191. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
  192. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  193. package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  194. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +0 -6
  195. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
  196. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  197. package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  198. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  199. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  200. package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  201. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  202. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  203. package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
  204. package/package.json +1 -1
  205. package/server/Account.d.ts.map +1 -1
  206. package/server/Account.js.map +1 -1
  207. package/server/Account.mjs +0 -6
  208. package/server/Action.d.ts.map +1 -1
  209. package/server/Action.js.map +1 -1
  210. package/server/Action.mjs +0 -24
  211. package/server/Alert.d.ts.map +1 -1
  212. package/server/Alert.js.map +1 -1
  213. package/server/Alert.mjs +0 -32
  214. package/server/AlpacaAccount.d.ts.map +1 -1
  215. package/server/AlpacaAccount.js.map +1 -1
  216. package/server/AlpacaAccount.mjs +0 -24
  217. package/server/Asset.d.ts.map +1 -1
  218. package/server/Asset.js.map +1 -1
  219. package/server/Asset.mjs +0 -24
  220. package/server/Authenticator.d.ts.map +1 -1
  221. package/server/Authenticator.js.map +1 -1
  222. package/server/Authenticator.mjs +0 -6
  223. package/server/Customer.d.ts.map +1 -1
  224. package/server/Customer.js.map +1 -1
  225. package/server/Customer.mjs +0 -6
  226. package/server/NewsArticle.d.ts.map +1 -1
  227. package/server/NewsArticle.js.map +1 -1
  228. package/server/NewsArticle.mjs +0 -6
  229. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  230. package/server/NewsArticleAssetSentiment.js.map +1 -1
  231. package/server/NewsArticleAssetSentiment.mjs +0 -32
  232. package/server/Order.d.ts.map +1 -1
  233. package/server/Order.js.map +1 -1
  234. package/server/Order.mjs +0 -26
  235. package/server/Position.d.ts.map +1 -1
  236. package/server/Position.js.map +1 -1
  237. package/server/Position.mjs +0 -58
  238. package/server/Session.d.ts.map +1 -1
  239. package/server/Session.js.map +1 -1
  240. package/server/Session.mjs +0 -6
  241. package/server/Trade.d.ts.map +1 -1
  242. package/server/Trade.js.map +1 -1
  243. package/server/Trade.mjs +0 -84
  244. package/server/User.d.ts.map +1 -1
  245. package/server/User.js.map +1 -1
  246. package/server/User.mjs +0 -32
  247. package/server/generated/typeStrings/Account.d.ts +1 -1
  248. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  249. package/server/generated/typeStrings/Account.js.map +1 -1
  250. package/server/generated/typeStrings/Account.mjs +0 -213
  251. package/server/generated/typeStrings/Action.d.ts +1 -1
  252. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  253. package/server/generated/typeStrings/Action.js.map +1 -1
  254. package/server/generated/typeStrings/Action.mjs +143 -197
  255. package/server/generated/typeStrings/Alert.d.ts +1 -1
  256. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  257. package/server/generated/typeStrings/Alert.js.map +1 -1
  258. package/server/generated/typeStrings/Alert.mjs +100 -268
  259. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  260. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  261. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  262. package/server/generated/typeStrings/AlpacaAccount.mjs +31 -179
  263. package/server/generated/typeStrings/Asset.d.ts +1 -1
  264. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  265. package/server/generated/typeStrings/Asset.js.map +1 -1
  266. package/server/generated/typeStrings/Asset.mjs +31 -201
  267. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  268. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  269. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  270. package/server/generated/typeStrings/Authenticator.mjs +0 -213
  271. package/server/generated/typeStrings/Customer.d.ts +1 -1
  272. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  273. package/server/generated/typeStrings/Customer.js.map +1 -1
  274. package/server/generated/typeStrings/Customer.mjs +0 -213
  275. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  276. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  277. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  278. package/server/generated/typeStrings/NewsArticle.mjs +0 -171
  279. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  280. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  281. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  282. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +100 -81
  283. package/server/generated/typeStrings/Order.d.ts +1 -1
  284. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  285. package/server/generated/typeStrings/Order.js.map +1 -1
  286. package/server/generated/typeStrings/Order.mjs +31 -280
  287. package/server/generated/typeStrings/Position.d.ts +1 -1
  288. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  289. package/server/generated/typeStrings/Position.js.map +1 -1
  290. package/server/generated/typeStrings/Position.mjs +67 -114
  291. package/server/generated/typeStrings/Session.d.ts +1 -1
  292. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  293. package/server/generated/typeStrings/Session.js.map +1 -1
  294. package/server/generated/typeStrings/Session.mjs +0 -213
  295. package/server/generated/typeStrings/Trade.d.ts +1 -1
  296. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  297. package/server/generated/typeStrings/Trade.js.map +1 -1
  298. package/server/generated/typeStrings/Trade.mjs +31 -280
  299. package/server/generated/typeStrings/User.d.ts +1 -1
  300. package/server/generated/typeStrings/User.d.ts.map +1 -1
  301. package/server/generated/typeStrings/User.js.map +1 -1
  302. package/server/generated/typeStrings/User.mjs +100 -222
  303. package/server/generated/typeStrings/index.d.ts +14 -14
  304. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  305. package/server/generated/typegraphql-prisma/enhance.mjs +27 -27
  306. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
  307. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
  308. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
  309. package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +0 -1
  310. package/server/generated/typegraphql-prisma/models/Order.d.ts +0 -4
  311. package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
  312. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  313. package/server/generated/typegraphql-prisma/models/Order.mjs +0 -11
  314. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
  315. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
  316. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
  317. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
  318. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
  319. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
  320. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
  321. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
  322. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
  323. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
  324. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
  325. package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
  326. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
  327. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
  328. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
  329. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +0 -7
  330. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
  331. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
  332. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
  333. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +0 -7
  334. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
  335. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
  336. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
  337. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +0 -7
  338. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
  339. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
  340. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
  341. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +0 -7
  342. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
  343. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
  344. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
  345. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +0 -7
  346. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
  347. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
  348. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
  349. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +0 -7
  350. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
  351. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
  352. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
  353. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +0 -7
  354. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
  355. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
  356. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
  357. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +0 -7
  358. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
  359. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
  360. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
  361. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +0 -7
  362. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
  363. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
  364. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
  365. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +0 -7
  366. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
  367. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
  368. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
  369. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +0 -7
  370. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
  371. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
  372. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
  373. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +0 -7
  374. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
  375. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
  376. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
  377. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +0 -8
  378. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
  379. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
  380. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
  381. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +0 -8
  382. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
  383. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
  384. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
  385. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +0 -7
  386. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
  387. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
  388. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
  389. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +0 -7
  390. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
  391. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
  392. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
  393. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +0 -7
  394. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
  395. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  396. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
  397. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +0 -7
  398. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
  399. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
  400. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
  401. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +0 -7
  402. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
  403. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
  404. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
  405. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +0 -8
  406. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
  407. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  408. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  409. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +0 -8
  410. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
  411. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
  412. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
  413. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +0 -7
  414. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
  415. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
  416. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
  417. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +0 -7
  418. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
  419. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
  420. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
  421. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +0 -7
  422. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
  423. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
  424. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
  425. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +0 -7
  426. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
  427. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
  428. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
  429. package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +0 -7
  430. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
  431. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
  432. package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
  433. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
  434. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
  435. package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
1
+ export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,sgUA6U9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+tHAwH9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6UjC,CAAC"}
1
+ {"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHjC,CAAC"}
@@ -61,169 +61,6 @@ export enum AssetType {
61
61
  OTHER = "OTHER"
62
62
  }
63
63
 
64
- export enum TradeStatus {
65
- PENDING = "PENDING",
66
- OPEN = "OPEN",
67
- PARTIAL = "PARTIAL",
68
- COMPLETED = "COMPLETED"
69
- }
70
-
71
- export enum OptionContractType {
72
- CALL = "CALL",
73
- PUT = "PUT"
74
- }
75
-
76
- export type Trade = {
77
- // Reference to the Alpaca account used for the trade.
78
- alpacaAccountId: string;
79
- // Reference to the asset being traded.
80
- assetId: string;
81
- // Quantity of the asset being traded.
82
- qty: number;
83
- // Price at which the asset was traded.
84
- price: number;
85
- // Total value of the trade (qty * price).
86
- total: number;
87
- // Signal that triggered the trade.
88
- signal: string;
89
- // Strategy used to execute the trade.
90
- strategy: string;
91
- // Analysis supporting the trade decision.
92
- analysis: string;
93
- // Confidence level in the trade decision.
94
- confidence: number;
95
- // Timestamp when the trade was executed.
96
- timestamp: Date;
97
- // Current status of the trade.
98
- status: TradeStatus;
99
- // Relation to the AlpacaAccount model.
100
- alpacaAccount: AlpacaAccount;
101
- // Relation to the Asset model.
102
- asset: Asset;
103
- // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
104
- optionContractType?: OptionContractType;
105
- // List of actions associated with this trade.
106
- actions: Action[];
107
- }
108
-
109
- export enum OrderSide {
110
- BUY = "BUY",
111
- SELL = "SELL"
112
- }
113
-
114
- export enum OrderType {
115
- MARKET = "MARKET",
116
- LIMIT = "LIMIT",
117
- STOP = "STOP",
118
- STOP_LIMIT = "STOP_LIMIT",
119
- TRAILING_STOP = "TRAILING_STOP"
120
- }
121
-
122
- // Time in force enum (day, gtc, opg, cls, etc.).
123
- export enum TimeInForce {
124
- DAY = "DAY",
125
- GTC = "GTC",
126
- OPG = "OPG",
127
- CLS = "CLS",
128
- IOC = "IOC",
129
- FOK = "FOK"
130
- }
131
-
132
- export enum OrderStatus {
133
- NEW = "NEW",
134
- PARTIALLY_FILLED = "PARTIALLY_FILLED",
135
- FILLED = "FILLED",
136
- CANCELED = "CANCELED",
137
- REJECTED = "REJECTED",
138
- EXPIRED = "EXPIRED"
139
- }
140
-
141
- export type Order = {
142
- // Reference to the Alpaca account used for the order.
143
- alpacaAccountId: string;
144
- // Reference to the asset being ordered.
145
- assetId: string;
146
- // Symbol of the asset (ticker symbol).
147
- symbol: string;
148
- // Quantity of the asset to be ordered.
149
- qty?: number;
150
- // Notional value of the order. Optional, used if qty is not provided.
151
- notional?: number;
152
- // Side of the order (BUY or SELL).
153
- side: OrderSide;
154
- // Type of order (market, limit, stop, stop_limit, trailing_stop).
155
- type: OrderType;
156
- // Time in force for the order (day, gtc, opg, cls, ioc, fok).
157
- timeInForce: TimeInForce;
158
- // Limit price for limit or stop-limit orders.
159
- limitPrice?: number;
160
- // Stop price for stop or stop-limit orders.
161
- stopPrice?: number;
162
- // Trailing price for trailing stop orders.
163
- trailPrice?: number;
164
- // Trailing percent for trailing stop orders.
165
- trailPercent?: number;
166
- // Whether the order is eligible for extended hours.
167
- extendedHours?: boolean;
168
- // Client-supplied identifier for the order.
169
- clientOrderId?: string;
170
- // Current status of the order.
171
- status: OrderStatus;
172
- // Timestamp when the order was submitted.
173
- submittedAt?: Date;
174
- // Timestamp when the order was filled.
175
- filledAt?: Date;
176
- // Average price at which the order was filled.
177
- filledAvgPrice?: number;
178
- // Reference to the action associated with the order.
179
- actionId: string;
180
- // The Alpaca account this order is associated with.
181
- alpacaAccount: AlpacaAccount;
182
- // The action this order is associated with.
183
- action: Action;
184
- // The asset this order is for.
185
- asset: Asset;
186
- // Fee associated with the order.
187
- fee?: number;
188
- }
189
-
190
- export type Position = {
191
- // Reference to the associated asset.
192
- assetId: string;
193
- // Relation to the Asset model.
194
- asset: Asset;
195
- // The average price at which the asset was acquired.
196
- averageEntryPrice: number;
197
- // Total quantity of the asset held.
198
- qty: number;
199
- // Quantity of the asset available for trading.
200
- qtyAvailable: number;
201
- // Current market value of the position.
202
- marketValue: number;
203
- // Total cost basis of the position.
204
- costBasis: number;
205
- // Unrealized profit or loss of the position.
206
- unrealizedPL: number;
207
- // Unrealized profit or loss as a percentage.
208
- unrealizedPLPC: number;
209
- // Unrealized intraday profit or loss.
210
- unrealisedIntradayPL: number;
211
- // Unrealized intraday profit or loss as a percentage.
212
- unrealisedIntradayPLPC: number;
213
- // Current price of the asset.
214
- currentPrice: number;
215
- // Last traded price of the asset.
216
- lastTradePrice: number;
217
- // Price change of the asset for the day.
218
- changeToday: number;
219
- // Indicates if the asset is marginable.
220
- assetMarginable: boolean;
221
- // Relation to the AlpacaAccount model, if applicable.
222
- alpacaAccount?: AlpacaAccount;
223
- // Foreign key referencing the AlpacaAccount.
224
- alpacaAccountId: string;
225
- }
226
-
227
64
  export type Asset = {
228
65
  // Ticker symbol of the asset, must be unique.
229
66
  symbol: string;
@@ -341,19 +178,11 @@ export type Asset = {
341
178
  orders: Order[];
342
179
  // List of positions involving this asset.
343
180
  positions: Position[];
344
- // List of news article sentiments related to this asset.
345
- newsMentions: NewsArticleAssetSentiment[];
346
181
  }
347
182
 
348
183
  export type NewsArticleAssetSentiment = {
349
- // Reference to the associated asset.
350
- assetId: string;
351
- // Reference to the associated news article.
352
- newsArticleId: string;
353
184
  // URL of the news article, must be unique.
354
185
  url: string;
355
- // Relation to the NewsArticle model.
356
- news: NewsArticle;
357
186
  // Relation to the Asset model.
358
187
  asset: Asset;
359
188
  // Relevancy score indicating how relevant the news is to the asset.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type, and its nested object types (which include 'NewsArticleAssetSentiment' type).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\n";
1
+ export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type, and its nested object types (which include 'NewsArticleAssetSentiment' type).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n}\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\n";
2
2
  //# sourceMappingURL=NewsArticle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,yzWA2WjC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+xMAgMjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2WpC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMpC,CAAC"}
@@ -7,10 +7,6 @@ Your response should adhere to the following type definition for the "NewsArticl
7
7
  Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
8
8
 
9
9
  export type NewsArticleAssetSentiment = {
10
- // Reference to the associated asset.
11
- assetId: string;
12
- // Reference to the associated news article.
13
- newsArticleId: string;
14
10
  // URL of the news article, must be unique.
15
11
  url: string;
16
12
  // Relation to the NewsArticle model.
@@ -52,8 +48,6 @@ export type NewsArticle = {
52
48
  topics: string[];
53
49
  // URL to the logo image of the news source.
54
50
  logo?: string;
55
- // List of asset sentiments associated with this news article.
56
- assets: NewsArticleAssetSentiment[];
57
51
  }
58
52
 
59
53
  export enum AssetType {
@@ -87,83 +81,12 @@ export enum TradeStatus {
87
81
  COMPLETED = "COMPLETED"
88
82
  }
89
83
 
90
- export enum AlpacaAccountType {
91
- PAPER = "PAPER",
92
- LIVE = "LIVE"
93
- }
94
-
95
- export type AlpacaAccount = {
96
- // The type of Alpaca account (PAPER or LIVE).
97
- type: AlpacaAccountType;
98
- // API key for authenticating requests to Alpaca.
99
- APIKey: string;
100
- // API secret for authenticating requests to Alpaca.
101
- APISecret: string;
102
- // JSON configuration settings for the Alpaca account.
103
- configuration?: any;
104
- // Indicates whether the market is currently open for trading.
105
- marketOpen: boolean;
106
- // Relation to the User model who owns this Alpaca account.
107
- user: User;
108
- // Foreign key referencing the User.
109
- userId: string;
110
- // List of trades executed through this Alpaca account.
111
- trades: Trade[];
112
- // List of orders placed through this Alpaca account.
113
- orders: Order[];
114
- // List of positions held in this Alpaca account.
115
- positions: Position[];
116
- // List of alerts generated for this Alpaca account.
117
- alerts: Alert[];
118
- }
119
-
120
84
  export enum OptionContractType {
121
85
  CALL = "CALL",
122
86
  PUT = "PUT"
123
87
  }
124
88
 
125
- export enum ActionType {
126
- BUY = "BUY",
127
- GET_OPTION_CONTRACTS = "GET_OPTION_CONTRACTS",
128
- EXERCISE_OPTION = "EXERCISE_OPTION",
129
- SELL = "SELL",
130
- CANCEL = "CANCEL",
131
- ADJUST = "ADJUST",
132
- HEDGE = "HEDGE"
133
- }
134
-
135
- export enum ActionStatus {
136
- STAGED = "STAGED",
137
- EXECUTED = "EXECUTED",
138
- COMPLETED = "COMPLETED"
139
- }
140
-
141
- export type Action = {
142
- // Sequence number of the action within the trade.
143
- sequence: number;
144
- // Reference to the trade this action is part of.
145
- tradeId: string;
146
- // Type of trade action, defined by ActionType enum.
147
- type: ActionType;
148
- // Reference to the order ID associated with the action.
149
- orderId?: string;
150
- // Additional notes or comments about the action.
151
- note: string;
152
- // Current status of the trade action.
153
- status: ActionStatus;
154
- // Fees associated with the action.
155
- fee?: number;
156
- // The trade this action is part of.
157
- trade: Trade;
158
- // The order associated with this action.
159
- order?: Order;
160
- }
161
-
162
89
  export type Trade = {
163
- // Reference to the Alpaca account used for the trade.
164
- alpacaAccountId: string;
165
- // Reference to the asset being traded.
166
- assetId: string;
167
90
  // Quantity of the asset being traded.
168
91
  qty: number;
169
92
  // Price at which the asset was traded.
@@ -184,14 +107,112 @@ export type Trade = {
184
107
  status: TradeStatus;
185
108
  // Relation to the AlpacaAccount model.
186
109
  alpacaAccount: AlpacaAccount;
187
- // Relation to the Asset model.
188
- asset: Asset;
189
110
  // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
190
111
  optionContractType?: OptionContractType;
191
112
  // List of actions associated with this trade.
192
113
  actions: Action[];
193
114
  }
194
115
 
116
+ export enum OrderSide {
117
+ BUY = "BUY",
118
+ SELL = "SELL"
119
+ }
120
+
121
+ export enum OrderType {
122
+ MARKET = "MARKET",
123
+ LIMIT = "LIMIT",
124
+ STOP = "STOP",
125
+ STOP_LIMIT = "STOP_LIMIT",
126
+ TRAILING_STOP = "TRAILING_STOP"
127
+ }
128
+
129
+ // Time in force enum (day, gtc, opg, cls, etc.).
130
+ export enum TimeInForce {
131
+ DAY = "DAY",
132
+ GTC = "GTC",
133
+ OPG = "OPG",
134
+ CLS = "CLS",
135
+ IOC = "IOC",
136
+ FOK = "FOK"
137
+ }
138
+
139
+ export enum OrderStatus {
140
+ NEW = "NEW",
141
+ PARTIALLY_FILLED = "PARTIALLY_FILLED",
142
+ FILLED = "FILLED",
143
+ CANCELED = "CANCELED",
144
+ REJECTED = "REJECTED",
145
+ EXPIRED = "EXPIRED"
146
+ }
147
+
148
+ export type Order = {
149
+ // Quantity of the asset to be ordered.
150
+ qty?: number;
151
+ // Notional value of the order. Optional, used if qty is not provided.
152
+ notional?: number;
153
+ // Side of the order (BUY or SELL).
154
+ side: OrderSide;
155
+ // Type of order (market, limit, stop, stop_limit, trailing_stop).
156
+ type: OrderType;
157
+ // Time in force for the order (day, gtc, opg, cls, ioc, fok).
158
+ timeInForce: TimeInForce;
159
+ // Limit price for limit or stop-limit orders.
160
+ limitPrice?: number;
161
+ // Stop price for stop or stop-limit orders.
162
+ stopPrice?: number;
163
+ // Trailing price for trailing stop orders.
164
+ trailPrice?: number;
165
+ // Trailing percent for trailing stop orders.
166
+ trailPercent?: number;
167
+ // Whether the order is eligible for extended hours.
168
+ extendedHours?: boolean;
169
+ // Current status of the order.
170
+ status: OrderStatus;
171
+ // Timestamp when the order was submitted.
172
+ submittedAt?: Date;
173
+ // Timestamp when the order was filled.
174
+ filledAt?: Date;
175
+ // Average price at which the order was filled.
176
+ filledAvgPrice?: number;
177
+ // The Alpaca account this order is associated with.
178
+ alpacaAccount: AlpacaAccount;
179
+ // The action this order is associated with.
180
+ action: Action;
181
+ // Fee associated with the order.
182
+ fee?: number;
183
+ }
184
+
185
+ export type Position = {
186
+ // The average price at which the asset was acquired.
187
+ averageEntryPrice: number;
188
+ // Total quantity of the asset held.
189
+ qty: number;
190
+ // Quantity of the asset available for trading.
191
+ qtyAvailable: number;
192
+ // Current market value of the position.
193
+ marketValue: number;
194
+ // Total cost basis of the position.
195
+ costBasis: number;
196
+ // Unrealized profit or loss of the position.
197
+ unrealizedPL: number;
198
+ // Unrealized profit or loss as a percentage.
199
+ unrealizedPLPC: number;
200
+ // Unrealized intraday profit or loss.
201
+ unrealisedIntradayPL: number;
202
+ // Unrealized intraday profit or loss as a percentage.
203
+ unrealisedIntradayPLPC: number;
204
+ // Current price of the asset.
205
+ currentPrice: number;
206
+ // Last traded price of the asset.
207
+ lastTradePrice: number;
208
+ // Price change of the asset for the day.
209
+ changeToday: number;
210
+ // Indicates if the asset is marginable.
211
+ assetMarginable: boolean;
212
+ // Relation to the AlpacaAccount model, if applicable.
213
+ alpacaAccount?: AlpacaAccount;
214
+ }
215
+
195
216
  export type Asset = {
196
217
  // Ticker symbol of the asset, must be unique.
197
218
  symbol: string;
@@ -309,8 +330,6 @@ export type Asset = {
309
330
  orders: Order[];
310
331
  // List of positions involving this asset.
311
332
  positions: Position[];
312
- // List of news article sentiments related to this asset.
313
- newsMentions: NewsArticleAssetSentiment[];
314
333
  }
315
334
 
316
335
  `;
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type, and its nested object types (which include 'NewsArticle', 'Asset' types).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // Reference to the associated asset.\n assetId: string;\n // Reference to the associated news article.\n newsArticleId: string;\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n // List of asset sentiments associated with this news article.\n assets: NewsArticleAssetSentiment[];\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum ActionType {\n BUY = \"BUY\",\n GET_OPTION_CONTRACTS = \"GET_OPTION_CONTRACTS\",\n EXERCISE_OPTION = \"EXERCISE_OPTION\",\n SELL = \"SELL\",\n CANCEL = \"CANCEL\",\n ADJUST = \"ADJUST\",\n HEDGE = \"HEDGE\"\n}\n\nexport enum ActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Reference to the order ID associated with the action.\n orderId?: string;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The trade this action is part of.\n trade: Trade;\n // The order associated with this action.\n order?: Order;\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n // List of news article sentiments related to this asset.\n newsMentions: NewsArticleAssetSentiment[];\n}\n\n";
1
+ export declare const NewsArticleAssetSentimentTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticleAssetSentiment\" type, and its nested object types (which include 'NewsArticle', 'Asset' types).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type NewsArticleAssetSentiment = {\n // URL of the news article, must be unique.\n url: string;\n // Relation to the NewsArticle model.\n news: NewsArticle;\n // Relation to the Asset model.\n asset: Asset;\n // Relevancy score indicating how relevant the news is to the asset.\n relevancyScore?: string;\n // Sentiment score derived from the news content.\n sentimentScore?: string;\n // Label indicating the overall sentiment (e.g., Positive, Negative, Neutral).\n sentimentLabel?: string;\n}\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n}\n\nexport enum AssetType {\n STOCK = \"STOCK\",\n ETF = \"ETF\",\n MUTUAL_FUND = \"MUTUAL_FUND\",\n CRYPTOCURRENCY = \"CRYPTOCURRENCY\",\n INDEX = \"INDEX\",\n COMMODITY = \"COMMODITY\",\n CURRENCY = \"CURRENCY\",\n OPTION = \"OPTION\",\n FUTURE = \"FUTURE\",\n BOND = \"BOND\",\n WARRANT = \"WARRANT\",\n ADR = \"ADR\",\n GDR = \"GDR\",\n UNIT = \"UNIT\",\n RIGHT = \"RIGHT\",\n REIT = \"REIT\",\n STRUCTURED_PRODUCT = \"STRUCTURED_PRODUCT\",\n SWAP = \"SWAP\",\n SPOT = \"SPOT\",\n FORWARD = \"FORWARD\",\n OTHER = \"OTHER\"\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n}\n\nexport type Asset = {\n // Ticker symbol of the asset, must be unique.\n symbol: string;\n // Full name of the asset, must be unique.\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n // URL to the asset's logo image.\n logoUrl?: string;\n // Description of the asset.\n description?: string;\n // Central Index Key for the asset.\n cik?: string;\n // Stock exchange where the asset is listed.\n exchange?: string;\n // Currency in which the asset is traded.\n currency?: string;\n // Country where the asset is based.\n country?: string;\n // Sector classification of the asset.\n sector?: string;\n // Industry classification of the asset.\n industry?: string;\n // Physical address associated with the asset.\n address?: string;\n // Official website of the asset.\n officialSite?: string;\n // Fiscal year-end date of the asset.\n fiscalYearEnd?: string;\n // Date of the latest financial quarter.\n latestQuarter?: string;\n // Market capitalization of the asset.\n marketCapitalization?: string;\n // Earnings Before Interest, Taxes, Depreciation, and Amortization.\n ebitda?: string;\n // Price-to-Earnings ratio.\n peRatio?: string;\n // Price/Earnings to Growth ratio.\n pegRatio?: string;\n // Book value per share.\n bookValue?: string;\n // Dividend per share.\n dividendPerShare?: string;\n // Dividend yield percentage.\n dividendYield?: string;\n // Earnings per share.\n eps?: string;\n // Revenue per share over the trailing twelve months.\n revenuePerShareTTM?: string;\n // Profit margin percentage.\n profitMargin?: string;\n // Operating margin over the trailing twelve months.\n operatingMarginTTM?: string;\n // Return on assets over the trailing twelve months.\n returnOnAssetsTTM?: string;\n // Return on equity over the trailing twelve months.\n returnOnEquityTTM?: string;\n // Total revenue over the trailing twelve months.\n revenueTTM?: string;\n // Gross profit over the trailing twelve months.\n grossProfitTTM?: string;\n // Diluted earnings per share over the trailing twelve months.\n dilutedEPSTTM?: string;\n // Year-over-year growth in quarterly earnings.\n quarterlyEarningsGrowthYOY?: string;\n // Year-over-year growth in quarterly revenue.\n quarterlyRevenueGrowthYOY?: string;\n // Analyst target price for the asset.\n analystTargetPrice?: string;\n // Percentage of analysts rating the asset as Strong Buy.\n analystRatingStrongBuy?: string;\n // Percentage of analysts rating the asset as Buy.\n analystRatingBuy?: string;\n // Percentage of analysts rating the asset as Hold.\n analystRatingHold?: string;\n // Percentage of analysts rating the asset as Sell.\n analystRatingSell?: string;\n // Percentage of analysts rating the asset as Strong Sell.\n analystRatingStrongSell?: string;\n // Trailing Price-to-Earnings ratio.\n trailingPE?: string;\n // Forward Price-to-Earnings ratio.\n forwardPE?: string;\n // Price-to-Sales ratio over the trailing twelve months.\n priceToSalesRatioTTM?: string;\n // Price-to-Book ratio.\n priceToBookRatio?: string;\n // Enterprise Value to Revenue ratio.\n evToRevenue?: string;\n // Enterprise Value to EBITDA ratio.\n evToEbitda?: string;\n // Beta coefficient measuring volatility.\n beta?: string;\n // 52-week high price of the asset.\n week52High?: string;\n // 52-week low price of the asset.\n week52Low?: string;\n // 50-day moving average price.\n day50MovingAverage?: string;\n // 200-day moving average price.\n day200MovingAverage?: string;\n // Total number of shares outstanding.\n sharesOutstanding?: string;\n // Date when the next dividend is paid.\n dividendDate?: string;\n // Date when the asset goes ex-dividend.\n exDividendDate?: string;\n // Last sell price of the asset.\n sellPrice?: string;\n // Last buy price of the asset.\n buyPrice?: string;\n // List of trades involving this asset.\n trades: Trade[];\n // List of orders involving this asset.\n orders: Order[];\n // List of positions involving this asset.\n positions: Position[];\n}\n\n";
2
2
  //# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,yvTAwT/C,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,+rUA2U/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwTlD,CAAC"}
1
+ {"version":3,"file":"NewsArticleAssetSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticleAssetSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2UlD,CAAC"}