adaptic-backend 1.0.63 → 1.0.64

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 (323) hide show
  1. package/README.md +1 -1
  2. package/generated/typeStrings/Account.cjs +2 -2
  3. package/generated/typeStrings/Account.d.ts +1 -1
  4. package/generated/typeStrings/Account.d.ts.map +1 -1
  5. package/generated/typeStrings/Action.cjs +2 -2
  6. package/generated/typeStrings/Action.d.ts +1 -1
  7. package/generated/typeStrings/Action.d.ts.map +1 -1
  8. package/generated/typeStrings/Alert.cjs +2 -2
  9. package/generated/typeStrings/Alert.d.ts +1 -1
  10. package/generated/typeStrings/Alert.d.ts.map +1 -1
  11. package/generated/typeStrings/AlpacaAccount.cjs +2 -2
  12. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  13. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  14. package/generated/typeStrings/Asset.cjs +2 -2
  15. package/generated/typeStrings/Asset.d.ts +1 -1
  16. package/generated/typeStrings/Asset.d.ts.map +1 -1
  17. package/generated/typeStrings/Authenticator.cjs +2 -2
  18. package/generated/typeStrings/Authenticator.d.ts +1 -1
  19. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  20. package/generated/typeStrings/Customer.cjs +2 -2
  21. package/generated/typeStrings/Customer.d.ts +1 -1
  22. package/generated/typeStrings/Customer.d.ts.map +1 -1
  23. package/generated/typeStrings/NewsArticle.cjs +2 -2
  24. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  25. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  26. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +2 -2
  27. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  28. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  29. package/generated/typeStrings/Order.cjs +2 -2
  30. package/generated/typeStrings/Order.d.ts +1 -1
  31. package/generated/typeStrings/Order.d.ts.map +1 -1
  32. package/generated/typeStrings/Position.cjs +2 -2
  33. package/generated/typeStrings/Position.d.ts +1 -1
  34. package/generated/typeStrings/Position.d.ts.map +1 -1
  35. package/generated/typeStrings/Session.cjs +2 -2
  36. package/generated/typeStrings/Session.d.ts +1 -1
  37. package/generated/typeStrings/Session.d.ts.map +1 -1
  38. package/generated/typeStrings/Trade.cjs +3 -3
  39. package/generated/typeStrings/Trade.d.ts +1 -1
  40. package/generated/typeStrings/Trade.d.ts.map +1 -1
  41. package/generated/typeStrings/User.cjs +2 -2
  42. package/generated/typeStrings/User.d.ts +1 -1
  43. package/generated/typeStrings/User.d.ts.map +1 -1
  44. package/generated/typeStrings/enums.cjs +6 -6
  45. package/generated/typeStrings/enums.d.ts +1 -1
  46. package/generated/typeStrings/enums.d.ts.map +1 -1
  47. package/generated/typeStrings/enums.js.map +1 -1
  48. package/generated/typeStrings/index.d.ts +14 -14
  49. package/generated/typegraphql-prisma/enhance.cjs +5 -5
  50. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  51. package/generated/typegraphql-prisma/enums/{OptionType.cjs → OptionContractType.cjs} +9 -9
  52. package/generated/typegraphql-prisma/enums/OptionContractType.d.ts +5 -0
  53. package/generated/typegraphql-prisma/enums/OptionContractType.d.ts.map +1 -0
  54. package/generated/typegraphql-prisma/enums/OptionContractType.js.map +1 -0
  55. package/generated/typegraphql-prisma/enums/index.cjs +3 -3
  56. package/generated/typegraphql-prisma/enums/index.d.ts +1 -1
  57. package/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
  58. package/generated/typegraphql-prisma/enums/index.js.map +1 -1
  59. package/generated/typegraphql-prisma/models/Trade.cjs +2 -2
  60. package/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  61. package/generated/typegraphql-prisma/resolvers/inputs/{NestedEnumOptionTypeNullableFilter.cjs → EnumOptionContractTypeNullableFilter.cjs} +17 -16
  62. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.d.ts +8 -0
  63. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.d.ts.map +1 -0
  64. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.js.map +1 -0
  65. package/generated/typegraphql-prisma/resolvers/inputs/{NestedEnumOptionTypeNullableWithAggregatesFilter.cjs → EnumOptionContractTypeNullableWithAggregatesFilter.cjs} +23 -22
  66. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.d.ts +13 -0
  67. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.d.ts.map +1 -0
  68. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.js.map +1 -0
  69. package/generated/typegraphql-prisma/resolvers/inputs/{EnumOptionTypeNullableFilter.cjs → NestedEnumOptionContractTypeNullableFilter.cjs} +16 -17
  70. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.d.ts +7 -0
  71. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.d.ts.map +1 -0
  72. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.js.map +1 -0
  73. package/generated/typegraphql-prisma/resolvers/inputs/{EnumOptionTypeNullableWithAggregatesFilter.cjs → NestedEnumOptionContractTypeNullableWithAggregatesFilter.cjs} +22 -23
  74. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.d.ts +12 -0
  75. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.d.ts.map +1 -0
  76. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.js.map +1 -0
  77. package/generated/typegraphql-prisma/resolvers/inputs/{NullableEnumOptionTypeFieldUpdateOperationsInput.cjs → NullableEnumOptionContractTypeFieldUpdateOperationsInput.cjs} +10 -10
  78. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.d.ts +4 -0
  79. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.d.ts.map +1 -0
  80. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.js.map +1 -0
  81. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.cjs +2 -2
  82. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.cjs +2 -2
  84. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.js.map +1 -1
  85. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.cjs +2 -2
  86. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.js.map +1 -1
  87. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.cjs +2 -2
  88. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  89. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.cjs +2 -2
  90. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.cjs +2 -2
  92. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.js.map +1 -1
  93. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.cjs +2 -2
  94. package/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.js.map +1 -1
  95. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.cjs +2 -2
  96. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts +2 -2
  97. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts.map +1 -1
  98. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.js.map +1 -1
  99. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.cjs +2 -2
  100. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +2 -2
  101. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  102. package/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  103. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.cjs +2 -2
  104. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +2 -2
  105. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  106. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  107. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.cjs +2 -2
  108. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +2 -2
  109. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  110. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  111. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.cjs +2 -2
  112. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +2 -2
  113. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  114. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  115. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.cjs +2 -2
  116. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts +2 -2
  117. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  118. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.js.map +1 -1
  119. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.cjs +2 -2
  120. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts +2 -2
  121. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts.map +1 -1
  122. package/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.js.map +1 -1
  123. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.cjs +2 -2
  124. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +2 -2
  125. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  126. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  127. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.cjs +2 -2
  128. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +2 -2
  129. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  130. package/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  131. package/generated/typegraphql-prisma/resolvers/inputs/index.cjs +13 -13
  132. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +5 -5
  133. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  134. package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  135. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.cjs +2 -2
  136. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.js.map +1 -1
  137. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.cjs +2 -2
  138. package/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  139. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.cjs +2 -2
  140. package/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  141. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.cjs +2 -2
  142. package/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  143. package/package.json +1 -1
  144. package/server/generated/typeStrings/Account.d.ts +1 -1
  145. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  146. package/server/generated/typeStrings/Account.mjs +2 -2
  147. package/server/generated/typeStrings/Action.d.ts +1 -1
  148. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  149. package/server/generated/typeStrings/Action.mjs +2 -2
  150. package/server/generated/typeStrings/Alert.d.ts +1 -1
  151. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  152. package/server/generated/typeStrings/Alert.mjs +2 -2
  153. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  154. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  155. package/server/generated/typeStrings/AlpacaAccount.mjs +2 -2
  156. package/server/generated/typeStrings/Asset.d.ts +1 -1
  157. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  158. package/server/generated/typeStrings/Asset.mjs +2 -2
  159. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  160. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  161. package/server/generated/typeStrings/Authenticator.mjs +2 -2
  162. package/server/generated/typeStrings/Customer.d.ts +1 -1
  163. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  164. package/server/generated/typeStrings/Customer.mjs +2 -2
  165. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  166. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  167. package/server/generated/typeStrings/NewsArticle.mjs +2 -2
  168. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  169. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  170. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +2 -2
  171. package/server/generated/typeStrings/Order.d.ts +1 -1
  172. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  173. package/server/generated/typeStrings/Order.mjs +2 -2
  174. package/server/generated/typeStrings/Position.d.ts +1 -1
  175. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  176. package/server/generated/typeStrings/Position.mjs +2 -2
  177. package/server/generated/typeStrings/Session.d.ts +1 -1
  178. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  179. package/server/generated/typeStrings/Session.mjs +2 -2
  180. package/server/generated/typeStrings/Trade.d.ts +1 -1
  181. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  182. package/server/generated/typeStrings/Trade.mjs +3 -3
  183. package/server/generated/typeStrings/User.d.ts +1 -1
  184. package/server/generated/typeStrings/User.d.ts.map +1 -1
  185. package/server/generated/typeStrings/User.mjs +2 -2
  186. package/server/generated/typeStrings/enums.d.ts +1 -1
  187. package/server/generated/typeStrings/enums.d.ts.map +1 -1
  188. package/server/generated/typeStrings/enums.js.map +1 -1
  189. package/server/generated/typeStrings/enums.mjs +5 -5
  190. package/server/generated/typeStrings/index.d.ts +14 -14
  191. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  192. package/server/generated/typegraphql-prisma/enhance.mjs +5 -5
  193. package/server/generated/typegraphql-prisma/enums/OptionContractType.d.ts +5 -0
  194. package/server/generated/typegraphql-prisma/enums/OptionContractType.d.ts.map +1 -0
  195. package/server/generated/typegraphql-prisma/enums/OptionContractType.js.map +1 -0
  196. package/server/generated/typegraphql-prisma/enums/OptionContractType.mjs +11 -0
  197. package/server/generated/typegraphql-prisma/enums/index.d.ts +1 -1
  198. package/server/generated/typegraphql-prisma/enums/index.d.ts.map +1 -1
  199. package/server/generated/typegraphql-prisma/enums/index.js.map +1 -1
  200. package/server/generated/typegraphql-prisma/enums/index.mjs +1 -1
  201. package/server/generated/typegraphql-prisma/models/Trade.js.map +1 -1
  202. package/server/generated/typegraphql-prisma/models/Trade.mjs +2 -2
  203. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.d.ts +8 -0
  204. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.d.ts.map +1 -0
  205. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableFilter.js.map +1 -0
  206. package/server/generated/typegraphql-prisma/resolvers/inputs/{NestedEnumOptionTypeNullableFilter.mjs → EnumOptionContractTypeNullableFilter.mjs} +16 -15
  207. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.d.ts +13 -0
  208. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.d.ts.map +1 -0
  209. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.js.map +1 -0
  210. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionContractTypeNullableWithAggregatesFilter.mjs +70 -0
  211. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.d.ts +7 -0
  212. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.d.ts.map +1 -0
  213. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableFilter.js.map +1 -0
  214. package/server/generated/typegraphql-prisma/resolvers/inputs/{EnumOptionTypeNullableFilter.mjs → NestedEnumOptionContractTypeNullableFilter.mjs} +15 -16
  215. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.d.ts +12 -0
  216. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.d.ts.map +1 -0
  217. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.js.map +1 -0
  218. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionContractTypeNullableWithAggregatesFilter.mjs +69 -0
  219. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.d.ts +4 -0
  220. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.d.ts.map +1 -0
  221. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionContractTypeFieldUpdateOperationsInput.js.map +1 -0
  222. package/server/generated/typegraphql-prisma/resolvers/inputs/{NullableEnumOptionTypeFieldUpdateOperationsInput.mjs → NullableEnumOptionContractTypeFieldUpdateOperationsInput.mjs} +9 -9
  223. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.js.map +1 -1
  224. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateInput.mjs +2 -2
  225. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.js.map +1 -1
  226. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAlpacaAccountInput.mjs +2 -2
  227. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.js.map +1 -1
  228. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyAssetInput.mjs +2 -2
  229. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.js.map +1 -1
  230. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateManyInput.mjs +2 -2
  231. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.js.map +1 -1
  232. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutActionsInput.mjs +2 -2
  233. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.js.map +1 -1
  234. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAlpacaAccountInput.mjs +2 -2
  235. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.js.map +1 -1
  236. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeCreateWithoutAssetInput.mjs +2 -2
  237. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts +2 -2
  238. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.d.ts.map +1 -1
  239. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.js.map +1 -1
  240. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereInput.mjs +2 -2
  241. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts +2 -2
  242. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.d.ts.map +1 -1
  243. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.js.map +1 -1
  244. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeScalarWhereWithAggregatesInput.mjs +2 -2
  245. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts +2 -2
  246. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.d.ts.map +1 -1
  247. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.js.map +1 -1
  248. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateInput.mjs +2 -2
  249. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts +2 -2
  250. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.d.ts.map +1 -1
  251. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.js.map +1 -1
  252. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateManyMutationInput.mjs +2 -2
  253. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts +2 -2
  254. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.d.ts.map +1 -1
  255. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.js.map +1 -1
  256. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutActionsInput.mjs +2 -2
  257. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts +2 -2
  258. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
  259. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.js.map +1 -1
  260. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAlpacaAccountInput.mjs +2 -2
  261. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts +2 -2
  262. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.d.ts.map +1 -1
  263. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.js.map +1 -1
  264. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeUpdateWithoutAssetInput.mjs +2 -2
  265. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts +2 -2
  266. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.d.ts.map +1 -1
  267. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.js.map +1 -1
  268. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereInput.mjs +2 -2
  269. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts +2 -2
  270. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.d.ts.map +1 -1
  271. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.js.map +1 -1
  272. package/server/generated/typegraphql-prisma/resolvers/inputs/TradeWhereUniqueInput.mjs +2 -2
  273. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +5 -5
  274. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  275. package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  276. package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +5 -5
  277. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.js.map +1 -1
  278. package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyTradeAndReturnOutputType.mjs +2 -2
  279. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.js.map +1 -1
  280. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeGroupBy.mjs +2 -2
  281. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.js.map +1 -1
  282. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMaxAggregate.mjs +2 -2
  283. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.js.map +1 -1
  284. package/server/generated/typegraphql-prisma/resolvers/outputs/TradeMinAggregate.mjs +2 -2
  285. package/generated/typegraphql-prisma/enums/OptionType.d.ts +0 -5
  286. package/generated/typegraphql-prisma/enums/OptionType.d.ts.map +0 -1
  287. package/generated/typegraphql-prisma/enums/OptionType.js.map +0 -1
  288. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.d.ts +0 -8
  289. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.d.ts.map +0 -1
  290. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.js.map +0 -1
  291. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.d.ts +0 -13
  292. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.d.ts.map +0 -1
  293. package/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.js.map +0 -1
  294. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.d.ts +0 -7
  295. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.d.ts.map +0 -1
  296. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.js.map +0 -1
  297. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.d.ts +0 -12
  298. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.d.ts.map +0 -1
  299. package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.js.map +0 -1
  300. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.d.ts +0 -4
  301. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.d.ts.map +0 -1
  302. package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.js.map +0 -1
  303. package/server/generated/typegraphql-prisma/enums/OptionType.d.ts +0 -5
  304. package/server/generated/typegraphql-prisma/enums/OptionType.d.ts.map +0 -1
  305. package/server/generated/typegraphql-prisma/enums/OptionType.js.map +0 -1
  306. package/server/generated/typegraphql-prisma/enums/OptionType.mjs +0 -11
  307. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.d.ts +0 -8
  308. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.d.ts.map +0 -1
  309. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableFilter.js.map +0 -1
  310. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.d.ts +0 -13
  311. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.d.ts.map +0 -1
  312. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.js.map +0 -1
  313. package/server/generated/typegraphql-prisma/resolvers/inputs/EnumOptionTypeNullableWithAggregatesFilter.mjs +0 -70
  314. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.d.ts +0 -7
  315. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.d.ts.map +0 -1
  316. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableFilter.js.map +0 -1
  317. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.d.ts +0 -12
  318. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.d.ts.map +0 -1
  319. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.js.map +0 -1
  320. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedEnumOptionTypeNullableWithAggregatesFilter.mjs +0 -69
  321. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.d.ts +0 -4
  322. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.d.ts.map +0 -1
  323. package/server/generated/typegraphql-prisma/resolvers/inputs/NullableEnumOptionTypeFieldUpdateOperationsInput.js.map +0 -1
@@ -1,2 +1,2 @@
1
- export declare const SessionTypeString = "\nYour response should adhere to the following type definition for the \"Session\" type, and its nested object types (which include 'User' 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 interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\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 enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\n// Simplified reference to Asset.\nexport interface Asset {\n// Unique identifier for the asset.\n id: string;\n}\n\nexport enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n// Simplified reference to Action.\nexport interface Action {\n// Unique identifier for the action.\n id: string;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\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 interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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 SessionTypeString = "\nYour response should adhere to the following type definition for the \"Session\" type, and its nested object types (which include 'User' 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 interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\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 enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\n// Simplified reference to Asset.\nexport interface Asset {\n// Unique identifier for the asset.\n id: string;\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\n// Simplified reference to Action.\nexport interface Action {\n// Unique identifier for the action.\n id: string;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\n}\n\nexport interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport interface Position {\n // Unique identifier for the position.\n id: string;\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 interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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";
2
2
  //# sourceMappingURL=Session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,q2VA6W7B,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,q3VA6W7B,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TradeTypeString = void 0;
4
4
  exports.TradeTypeString = `
5
- Your response should adhere to the following type definition for the "Trade" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionType' enums).
5
+ Your response should adhere to the following type definition for the "Trade" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).
6
6
 
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
 
@@ -40,7 +40,7 @@ export interface Trade {
40
40
  // Relation to the Asset model.
41
41
  asset: Asset;
42
42
  // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
43
- optionType?: OptionType;
43
+ optionType?: OptionContractType;
44
44
  // List of actions associated with this trade.
45
45
  actions: Action[];
46
46
  }
@@ -469,7 +469,7 @@ export interface AlpacaAccount {
469
469
  alerts: Alert[];
470
470
  }
471
471
 
472
- export enum OptionType {
472
+ export enum OptionContractType {
473
473
  CALL = "CALL",
474
474
  PUT = "PUT"
475
475
  }
@@ -1,2 +1,2 @@
1
- export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionType;\n // List of actions associated with this trade.\n actions: Action[];\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 enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\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\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeActionSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\n";
1
+ export declare const TradeTypeString = "\nYour response should adhere to the following type definition for the \"Trade\" type, and its nested object types (which include 'AlpacaAccount', 'Asset', 'Action' types), as well as any ENUMS used by it (which include 'TradeStatus', 'OptionContractType' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\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 enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\"\n}\n\nexport enum TradeAction {\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 OrderStatus {\n PENDING = \"PENDING\",\n FILLED = \"FILLED\",\n CANCELLED = \"CANCELLED\",\n REJECTED = \"REJECTED\"\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\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 interface Order {\n // Unique identifier for the order.\n id: string;\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Type of order, defined by OrderType enum.\n type: OrderType;\n // Action of the order, defined by TradeAction enum.\n action: TradeAction;\n // Quantity of the asset to be ordered.\n qty: number;\n // Price at which the asset is to be bought or sold.\n price: number;\n // Current status of the order, defined by OrderStatus enum.\n status: OrderStatus;\n // Timestamp when the order was created.\n createdAt: Date;\n // Timestamp when the order was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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 TradeActionSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\n";
2
2
  //# sourceMappingURL=Trade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,k6fA2gB3B,CAAC"}
1
+ {"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Trade.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,07fA2gB3B,CAAC"}
@@ -328,7 +328,7 @@ export interface Asset {
328
328
  newsMentions: NewsArticleAssetSentiment[];
329
329
  }
330
330
 
331
- export enum OptionType {
331
+ export enum OptionContractType {
332
332
  CALL = "CALL",
333
333
  PUT = "PUT"
334
334
  }
@@ -434,7 +434,7 @@ export interface Trade {
434
434
  // Relation to the Asset model.
435
435
  asset: Asset;
436
436
  // If the asset.type is OPTION, then provide type of contract (CALL or PUT).
437
- optionType?: OptionType;
437
+ optionType?: OptionContractType;
438
438
  // List of actions associated with this trade.
439
439
  actions: Action[];
440
440
  }
@@ -1,2 +1,2 @@
1
- export declare const UserTypeString = "\nYour response should adhere to the following type definition for the \"User\" type, and its nested object types (which include 'Customer', 'Account', 'Session', 'Authenticator', 'AlpacaAccount' types), as well as any ENUMS used by it (which include 'UserRole', 'AlpacaAccountType', 'SubscriptionPlan' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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\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 enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 enum OptionType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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\n";
1
+ export declare const UserTypeString = "\nYour response should adhere to the following type definition for the \"User\" type, and its nested object types (which include 'Customer', 'Account', 'Session', 'Authenticator', 'AlpacaAccount' types), as well as any ENUMS used by it (which include 'UserRole', 'AlpacaAccountType', 'SubscriptionPlan' enums).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport interface User {\n // Unique identifier for the user.\n id: string;\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 // Timestamp when the user account was created.\n createdAt: Date;\n // Timestamp when the user account was last updated.\n updatedAt: Date;\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\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 enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport interface Customer {\n // Unique identifier for the customer.\n id: number;\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 // Timestamp when the customer was created.\n createdAt: Date;\n // Timestamp when the customer was last updated.\n updatedAt: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport interface Account {\n // Unique identifier for the account.\n id: string;\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 // Timestamp when the account was created.\n createdAt: Date;\n // Timestamp when the account was last updated.\n updatedAt: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport interface Session {\n // Unique identifier for the session.\n id: string;\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 // Timestamp when the session was created.\n createdAt: Date;\n // Timestamp when the session was last updated.\n updatedAt: Date;\n}\n\nexport interface Authenticator {\n // Unique identifier for the authenticator.\n id: string;\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 // Timestamp when the authenticator was created.\n createdAt: Date;\n // Timestamp when the authenticator was last updated.\n updatedAt: Date;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\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\n// Simplified reference to Order.\nexport interface Order {\n// Unique identifier for the order.\n id: string;\n}\n\n// Simplified reference to Position.\nexport interface Position {\n// Unique identifier for the position.\n id: string;\n}\n\n// Simplified reference to NewsArticleAssetSentiment.\nexport interface NewsArticleAssetSentiment {\n// Unique identifier for the sentiment record.\n id: string;\n}\n\nexport interface Asset {\n // Unique identifier for the asset.\n id: string;\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 // Timestamp when the asset was created in the database.\n createdAt: Date;\n // Timestamp when the asset was last updated in the database.\n updatedAt: Date;\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 enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport enum TradeAction {\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 TradeActionSide {\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}\n\nexport enum TradeActionStatus {\n STAGED = \"STAGED\",\n EXECUTED = \"EXECUTED\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport interface Action {\n // Unique identifier for the action.\n id: string;\n // Reference to the trade this action is part of.\n tradeId: string;\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by TradeAction enum.\n action: TradeAction;\n // Type of hedge applied, if any.\n hedgeType?: string;\n // Price at which the hedge was executed.\n hedgePrice?: number;\n // Price at which the asset was bought.\n buyPrice?: number;\n // Price at which the asset was sold.\n sellPrice?: number;\n // Quantity of the asset involved in the action.\n qty: number;\n // Side of the trade action (BUY or SELL).\n side: TradeActionSide;\n // Type of order used in the action, defined by OrderType enum.\n type: OrderType;\n // Stop-loss price set for the action.\n stopLoss?: number;\n // Target price set for the action.\n targetPrice?: number;\n // Additional notes or comments about the action.\n note: string;\n // Timestamp when the action was executed.\n executionTime?: Date;\n // Current status of the trade action.\n status: TradeActionStatus;\n // Fees associated with the action.\n fee?: number;\n // Relation to the Trade model.\n trade: Trade;\n}\n\nexport interface Trade {\n // Unique identifier for the trade.\n id: string;\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 // Timestamp when the trade record was created.\n createdAt: Date;\n // Timestamp when the trade record was last updated.\n updatedAt: 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 optionType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport interface Alert {\n // Unique identifier for the alert.\n id: string;\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 // Timestamp when the alert was created.\n createdAt: Date;\n // Timestamp when the alert was last updated.\n updatedAt: Date;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport interface AlpacaAccount {\n // Unique identifier for the Alpaca account.\n id: string;\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 // Timestamp when the Alpaca account was created.\n createdAt: Date;\n // Timestamp when the Alpaca account was last updated.\n updatedAt: Date;\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\n";
2
2
  //# sourceMappingURL=User.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mmeA+e1B,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/User.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mneA+e1B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionPlan = exports.EventImportance = exports.AlertType = exports.OrderStatus = exports.OptionType = exports.OrderType = exports.TradeStatus = exports.TradeActionStatus = exports.TradeActionSide = exports.TradeAction = exports.AlpacaAccountType = exports.AssetType = exports.UserRole = void 0;
3
+ exports.SubscriptionPlan = exports.EventImportance = exports.AlertType = exports.OrderStatus = exports.OptionContractType = exports.OrderType = exports.TradeStatus = exports.TradeActionStatus = exports.TradeActionSide = exports.TradeAction = exports.AlpacaAccountType = exports.AssetType = exports.UserRole = void 0;
4
4
  var UserRole;
5
5
  (function (UserRole) {
6
6
  UserRole["OWNER"] = "OWNER";
@@ -71,11 +71,11 @@ var OrderType;
71
71
  OrderType["STOP"] = "STOP";
72
72
  OrderType["STOP_LIMIT"] = "STOP_LIMIT";
73
73
  })(OrderType || (exports.OrderType = OrderType = {}));
74
- var OptionType;
75
- (function (OptionType) {
76
- OptionType["CALL"] = "CALL";
77
- OptionType["PUT"] = "PUT";
78
- })(OptionType || (exports.OptionType = OptionType = {}));
74
+ var OptionContractType;
75
+ (function (OptionContractType) {
76
+ OptionContractType["CALL"] = "CALL";
77
+ OptionContractType["PUT"] = "PUT";
78
+ })(OptionContractType || (exports.OptionContractType = OptionContractType = {}));
79
79
  var OrderStatus;
80
80
  (function (OrderStatus) {
81
81
  OrderStatus["PENDING"] = "PENDING";
@@ -60,7 +60,7 @@ export declare enum OrderType {
60
60
  STOP = "STOP",
61
61
  STOP_LIMIT = "STOP_LIMIT"
62
62
  }
63
- export declare enum OptionType {
63
+ export declare enum OptionContractType {
64
64
  CALL = "CALL",
65
65
  PUT = "PUT"
66
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,kBAAkB,uBAAuB;IACzC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,kBAAkB,uBAAuB;IACzC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAY,SAsBX;AAtBD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,wCAA2B,CAAA;IAC3B,8CAAiC,CAAA;IACjC,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAtBW,SAAS,yBAAT,SAAS,QAsBpB;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,4DAA6C,CAAA;IAC7C,kDAAmC,CAAA;IACnC,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,sCAAyB,CAAA;AAC3B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,yBAAW,CAAA;AACb,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,+BAAW,CAAA;IACX,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAY,SAsBX;AAtBD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,wCAA2B,CAAA;IAC3B,8CAAiC,CAAA;IACjC,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAtBW,SAAS,yBAAT,SAAS,QAsBpB;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,4DAA6C,CAAA;IAC7C,kDAAmC,CAAA;IACnC,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EARW,WAAW,2BAAX,WAAW,QAQtB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,sCAAyB,CAAA;AAC3B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,iCAAW,CAAA;AACb,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;AACvB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,+BAAW,CAAA;IACX,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}