adaptic-backend 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Account.cjs +0 -6
- package/Action.cjs +0 -24
- package/Alert.cjs +0 -32
- package/AlpacaAccount.cjs +0 -24
- package/Asset.cjs +0 -24
- package/Authenticator.cjs +0 -6
- package/Customer.cjs +0 -6
- package/NewsArticle.cjs +0 -6
- package/NewsArticleAssetSentiment.cjs +0 -32
- package/Order.cjs +0 -26
- package/Position.cjs +0 -58
- package/Session.cjs +0 -6
- package/Trade.cjs +0 -84
- package/User.cjs +0 -32
- package/generated/typeStrings/Account.cjs +0 -213
- package/generated/typeStrings/Account.d.ts +1 -1
- package/generated/typeStrings/Account.d.ts.map +1 -1
- package/generated/typeStrings/Account.js.map +1 -1
- package/generated/typeStrings/Action.cjs +143 -197
- package/generated/typeStrings/Action.d.ts +1 -1
- package/generated/typeStrings/Action.d.ts.map +1 -1
- package/generated/typeStrings/Action.js.map +1 -1
- package/generated/typeStrings/Alert.cjs +100 -268
- package/generated/typeStrings/Alert.d.ts +1 -1
- package/generated/typeStrings/Alert.d.ts.map +1 -1
- package/generated/typeStrings/Alert.js.map +1 -1
- package/generated/typeStrings/AlpacaAccount.cjs +31 -179
- package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/generated/typeStrings/Asset.cjs +31 -201
- package/generated/typeStrings/Asset.d.ts +1 -1
- package/generated/typeStrings/Asset.d.ts.map +1 -1
- package/generated/typeStrings/Asset.js.map +1 -1
- package/generated/typeStrings/Authenticator.cjs +0 -213
- package/generated/typeStrings/Authenticator.d.ts +1 -1
- package/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/generated/typeStrings/Authenticator.js.map +1 -1
- package/generated/typeStrings/Customer.cjs +0 -213
- package/generated/typeStrings/Customer.d.ts +1 -1
- package/generated/typeStrings/Customer.d.ts.map +1 -1
- package/generated/typeStrings/Customer.js.map +1 -1
- package/generated/typeStrings/NewsArticle.cjs +0 -171
- package/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticle.js.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.cjs +100 -81
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/generated/typeStrings/Order.cjs +31 -280
- package/generated/typeStrings/Order.d.ts +1 -1
- package/generated/typeStrings/Order.d.ts.map +1 -1
- package/generated/typeStrings/Order.js.map +1 -1
- package/generated/typeStrings/Position.cjs +67 -114
- package/generated/typeStrings/Position.d.ts +1 -1
- package/generated/typeStrings/Position.d.ts.map +1 -1
- package/generated/typeStrings/Position.js.map +1 -1
- package/generated/typeStrings/Session.cjs +0 -213
- package/generated/typeStrings/Session.d.ts +1 -1
- package/generated/typeStrings/Session.d.ts.map +1 -1
- package/generated/typeStrings/Session.js.map +1 -1
- package/generated/typeStrings/Trade.cjs +31 -280
- package/generated/typeStrings/Trade.d.ts +1 -1
- package/generated/typeStrings/Trade.d.ts.map +1 -1
- package/generated/typeStrings/Trade.js.map +1 -1
- package/generated/typeStrings/User.cjs +100 -222
- package/generated/typeStrings/User.d.ts +1 -1
- package/generated/typeStrings/User.d.ts.map +1 -1
- package/generated/typeStrings/User.js.map +1 -1
- package/generated/typeStrings/index.d.ts +14 -14
- package/generated/typegraphql-prisma/enhance.cjs +27 -27
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.cjs +0 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
- package/generated/typegraphql-prisma/models/Order.cjs +0 -7
- package/generated/typegraphql-prisma/models/Order.d.ts +0 -4
- package/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +0 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.cjs +0 -6
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
- package/package.json +1 -1
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +0 -6
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +0 -24
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +0 -32
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +0 -24
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +0 -24
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +0 -6
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +0 -6
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +0 -6
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +0 -32
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +0 -26
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +0 -58
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +0 -6
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +0 -84
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +0 -32
- package/server/generated/typeStrings/Account.d.ts +1 -1
- package/server/generated/typeStrings/Account.d.ts.map +1 -1
- package/server/generated/typeStrings/Account.js.map +1 -1
- package/server/generated/typeStrings/Account.mjs +0 -213
- package/server/generated/typeStrings/Action.d.ts +1 -1
- package/server/generated/typeStrings/Action.d.ts.map +1 -1
- package/server/generated/typeStrings/Action.js.map +1 -1
- package/server/generated/typeStrings/Action.mjs +143 -197
- package/server/generated/typeStrings/Alert.d.ts +1 -1
- package/server/generated/typeStrings/Alert.d.ts.map +1 -1
- package/server/generated/typeStrings/Alert.js.map +1 -1
- package/server/generated/typeStrings/Alert.mjs +100 -268
- package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
- package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
- package/server/generated/typeStrings/AlpacaAccount.mjs +31 -179
- package/server/generated/typeStrings/Asset.d.ts +1 -1
- package/server/generated/typeStrings/Asset.d.ts.map +1 -1
- package/server/generated/typeStrings/Asset.js.map +1 -1
- package/server/generated/typeStrings/Asset.mjs +31 -201
- package/server/generated/typeStrings/Authenticator.d.ts +1 -1
- package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
- package/server/generated/typeStrings/Authenticator.js.map +1 -1
- package/server/generated/typeStrings/Authenticator.mjs +0 -213
- package/server/generated/typeStrings/Customer.d.ts +1 -1
- package/server/generated/typeStrings/Customer.d.ts.map +1 -1
- package/server/generated/typeStrings/Customer.js.map +1 -1
- package/server/generated/typeStrings/Customer.mjs +0 -213
- package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticle.js.map +1 -1
- package/server/generated/typeStrings/NewsArticle.mjs +0 -171
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
- package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +100 -81
- package/server/generated/typeStrings/Order.d.ts +1 -1
- package/server/generated/typeStrings/Order.d.ts.map +1 -1
- package/server/generated/typeStrings/Order.js.map +1 -1
- package/server/generated/typeStrings/Order.mjs +31 -280
- package/server/generated/typeStrings/Position.d.ts +1 -1
- package/server/generated/typeStrings/Position.d.ts.map +1 -1
- package/server/generated/typeStrings/Position.js.map +1 -1
- package/server/generated/typeStrings/Position.mjs +67 -114
- package/server/generated/typeStrings/Session.d.ts +1 -1
- package/server/generated/typeStrings/Session.d.ts.map +1 -1
- package/server/generated/typeStrings/Session.js.map +1 -1
- package/server/generated/typeStrings/Session.mjs +0 -213
- package/server/generated/typeStrings/Trade.d.ts +1 -1
- package/server/generated/typeStrings/Trade.d.ts.map +1 -1
- package/server/generated/typeStrings/Trade.js.map +1 -1
- package/server/generated/typeStrings/Trade.mjs +31 -280
- package/server/generated/typeStrings/User.d.ts +1 -1
- package/server/generated/typeStrings/User.d.ts.map +1 -1
- package/server/generated/typeStrings/User.js.map +1 -1
- package/server/generated/typeStrings/User.mjs +100 -222
- package/server/generated/typeStrings/index.d.ts +14 -14
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +27 -27
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts +0 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.js.map +1 -1
- package/server/generated/typegraphql-prisma/enums/OrderScalarFieldEnum.mjs +0 -1
- package/server/generated/typegraphql-prisma/models/Order.d.ts +0 -4
- package/server/generated/typegraphql-prisma/models/Order.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.mjs +0 -11
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindFirstOrderOrThrowArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/FindManyOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/crud/Order/args/GroupByOrderArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCountOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateManyInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutActionInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderCreateWithoutAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMaxOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderMinOrderByAggregateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithAggregationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderOrderByWithRelationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderScalarWhereWithAggregatesInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateManyMutationInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutActionInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAlpacaAccountInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderUpdateWithoutAssetInput.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +0 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +0 -8
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/CreateManyOrderAndReturnOutputType.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderCountAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderGroupBy.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMaxAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts +0 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/outputs/OrderMinAggregate.mjs +0 -7
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/args/AlpacaAccountOrdersArgs.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/relations/Asset/args/AssetOrdersArgs.js.map +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" 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 type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport enum 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 type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
|
1
|
+
export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" 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 type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\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 type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\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=Authenticator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
1
|
+
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,soHAwHnC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG
|
1
|
+
{"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHtC,CAAC"}
|
@@ -4,8 +4,6 @@ Your response should adhere to the following type definition for the "Authentica
|
|
4
4
|
Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
|
5
5
|
|
6
6
|
export type Authenticator = {
|
7
|
-
// Reference to the user who owns this authenticator.
|
8
|
-
userId: string;
|
9
7
|
// Unique credential ID for the authenticator.
|
10
8
|
credentialID: string;
|
11
9
|
// Public key associated with the authenticator.
|
@@ -34,33 +32,19 @@ export enum SubscriptionPlan {
|
|
34
32
|
}
|
35
33
|
|
36
34
|
export type Customer = {
|
37
|
-
// Reference to the authenticated user associated with the customer.
|
38
|
-
authUserId: string;
|
39
35
|
// Name of the customer.
|
40
36
|
name?: string;
|
41
37
|
// Subscription plan the customer is enrolled in.
|
42
38
|
plan?: SubscriptionPlan;
|
43
|
-
// Unique Stripe customer ID for billing.
|
44
|
-
stripeCustomerId?: string;
|
45
|
-
// Unique Stripe subscription ID.
|
46
|
-
stripeSubscriptionId?: string;
|
47
|
-
// Stripe price ID associated with the customer's subscription.
|
48
|
-
stripePriceId?: string;
|
49
39
|
// End date of the current billing period in Stripe.
|
50
40
|
stripeCurrentPeriodEnd?: Date;
|
51
|
-
// List of users associated with the customer.
|
52
|
-
users: User[];
|
53
41
|
}
|
54
42
|
|
55
43
|
export type Account = {
|
56
|
-
// Reference to the user who owns this account.
|
57
|
-
userId: string;
|
58
44
|
// Type of the account (e.g., OAuth provider).
|
59
45
|
type: string;
|
60
46
|
// Provider of the account (e.g., Google, GitHub).
|
61
47
|
provider: string;
|
62
|
-
// Unique identifier provided by the external provider.
|
63
|
-
providerAccountId: string;
|
64
48
|
// Refresh token for the external account, if applicable.
|
65
49
|
refresh_token?: string;
|
66
50
|
// Access token for the external account, if applicable.
|
@@ -75,202 +59,13 @@ export type Account = {
|
|
75
59
|
id_token?: string;
|
76
60
|
// State of the session associated with the account.
|
77
61
|
session_state?: string;
|
78
|
-
// Relation to the User model.
|
79
|
-
user: User;
|
80
62
|
}
|
81
63
|
|
82
64
|
export type Session = {
|
83
65
|
// Token associated with the session for authentication.
|
84
66
|
sessionToken: string;
|
85
|
-
// Reference to the user who owns this session.
|
86
|
-
userId: string;
|
87
67
|
// Expiration date and time of the session.
|
88
68
|
expires: Date;
|
89
|
-
// Relation to the User model.
|
90
|
-
user: User;
|
91
|
-
}
|
92
|
-
|
93
|
-
export enum TradeStatus {
|
94
|
-
PENDING = "PENDING",
|
95
|
-
OPEN = "OPEN",
|
96
|
-
PARTIAL = "PARTIAL",
|
97
|
-
COMPLETED = "COMPLETED"
|
98
|
-
}
|
99
|
-
|
100
|
-
export enum OptionContractType {
|
101
|
-
CALL = "CALL",
|
102
|
-
PUT = "PUT"
|
103
|
-
}
|
104
|
-
|
105
|
-
export type Trade = {
|
106
|
-
// Reference to the Alpaca account used for the trade.
|
107
|
-
alpacaAccountId: string;
|
108
|
-
// Reference to the asset being traded.
|
109
|
-
assetId: string;
|
110
|
-
// Quantity of the asset being traded.
|
111
|
-
qty: number;
|
112
|
-
// Price at which the asset was traded.
|
113
|
-
price: number;
|
114
|
-
// Total value of the trade (qty * price).
|
115
|
-
total: number;
|
116
|
-
// Signal that triggered the trade.
|
117
|
-
signal: string;
|
118
|
-
// Strategy used to execute the trade.
|
119
|
-
strategy: string;
|
120
|
-
// Analysis supporting the trade decision.
|
121
|
-
analysis: string;
|
122
|
-
// Confidence level in the trade decision.
|
123
|
-
confidence: number;
|
124
|
-
// Timestamp when the trade was executed.
|
125
|
-
timestamp: Date;
|
126
|
-
// Current status of the trade.
|
127
|
-
status: TradeStatus;
|
128
|
-
// Relation to the AlpacaAccount model.
|
129
|
-
alpacaAccount: AlpacaAccount;
|
130
|
-
// Relation to the Asset model.
|
131
|
-
asset: Asset;
|
132
|
-
// If the asset.type is OPTION, then provide type of contract (CALL or PUT).
|
133
|
-
optionContractType?: OptionContractType;
|
134
|
-
// List of actions associated with this trade.
|
135
|
-
actions: Action[];
|
136
|
-
}
|
137
|
-
|
138
|
-
export enum OrderSide {
|
139
|
-
BUY = "BUY",
|
140
|
-
SELL = "SELL"
|
141
|
-
}
|
142
|
-
|
143
|
-
export enum OrderType {
|
144
|
-
MARKET = "MARKET",
|
145
|
-
LIMIT = "LIMIT",
|
146
|
-
STOP = "STOP",
|
147
|
-
STOP_LIMIT = "STOP_LIMIT",
|
148
|
-
TRAILING_STOP = "TRAILING_STOP"
|
149
|
-
}
|
150
|
-
|
151
|
-
// Time in force enum (day, gtc, opg, cls, etc.).
|
152
|
-
export enum TimeInForce {
|
153
|
-
DAY = "DAY",
|
154
|
-
GTC = "GTC",
|
155
|
-
OPG = "OPG",
|
156
|
-
CLS = "CLS",
|
157
|
-
IOC = "IOC",
|
158
|
-
FOK = "FOK"
|
159
|
-
}
|
160
|
-
|
161
|
-
export enum OrderStatus {
|
162
|
-
NEW = "NEW",
|
163
|
-
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
164
|
-
FILLED = "FILLED",
|
165
|
-
CANCELED = "CANCELED",
|
166
|
-
REJECTED = "REJECTED",
|
167
|
-
EXPIRED = "EXPIRED"
|
168
|
-
}
|
169
|
-
|
170
|
-
export type Order = {
|
171
|
-
// Reference to the Alpaca account used for the order.
|
172
|
-
alpacaAccountId: string;
|
173
|
-
// Reference to the asset being ordered.
|
174
|
-
assetId: string;
|
175
|
-
// Symbol of the asset (ticker symbol).
|
176
|
-
symbol: string;
|
177
|
-
// Quantity of the asset to be ordered.
|
178
|
-
qty?: number;
|
179
|
-
// Notional value of the order. Optional, used if qty is not provided.
|
180
|
-
notional?: number;
|
181
|
-
// Side of the order (BUY or SELL).
|
182
|
-
side: OrderSide;
|
183
|
-
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
184
|
-
type: OrderType;
|
185
|
-
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
186
|
-
timeInForce: TimeInForce;
|
187
|
-
// Limit price for limit or stop-limit orders.
|
188
|
-
limitPrice?: number;
|
189
|
-
// Stop price for stop or stop-limit orders.
|
190
|
-
stopPrice?: number;
|
191
|
-
// Trailing price for trailing stop orders.
|
192
|
-
trailPrice?: number;
|
193
|
-
// Trailing percent for trailing stop orders.
|
194
|
-
trailPercent?: number;
|
195
|
-
// Whether the order is eligible for extended hours.
|
196
|
-
extendedHours?: boolean;
|
197
|
-
// Client-supplied identifier for the order.
|
198
|
-
clientOrderId?: string;
|
199
|
-
// Current status of the order.
|
200
|
-
status: OrderStatus;
|
201
|
-
// Timestamp when the order was submitted.
|
202
|
-
submittedAt?: Date;
|
203
|
-
// Timestamp when the order was filled.
|
204
|
-
filledAt?: Date;
|
205
|
-
// Average price at which the order was filled.
|
206
|
-
filledAvgPrice?: number;
|
207
|
-
// Reference to the action associated with the order.
|
208
|
-
actionId: string;
|
209
|
-
// The Alpaca account this order is associated with.
|
210
|
-
alpacaAccount: AlpacaAccount;
|
211
|
-
// The action this order is associated with.
|
212
|
-
action: Action;
|
213
|
-
// The asset this order is for.
|
214
|
-
asset: Asset;
|
215
|
-
// Fee associated with the order.
|
216
|
-
fee?: number;
|
217
|
-
}
|
218
|
-
|
219
|
-
export type Position = {
|
220
|
-
// Reference to the associated asset.
|
221
|
-
assetId: string;
|
222
|
-
// Relation to the Asset model.
|
223
|
-
asset: Asset;
|
224
|
-
// The average price at which the asset was acquired.
|
225
|
-
averageEntryPrice: number;
|
226
|
-
// Total quantity of the asset held.
|
227
|
-
qty: number;
|
228
|
-
// Quantity of the asset available for trading.
|
229
|
-
qtyAvailable: number;
|
230
|
-
// Current market value of the position.
|
231
|
-
marketValue: number;
|
232
|
-
// Total cost basis of the position.
|
233
|
-
costBasis: number;
|
234
|
-
// Unrealized profit or loss of the position.
|
235
|
-
unrealizedPL: number;
|
236
|
-
// Unrealized profit or loss as a percentage.
|
237
|
-
unrealizedPLPC: number;
|
238
|
-
// Unrealized intraday profit or loss.
|
239
|
-
unrealisedIntradayPL: number;
|
240
|
-
// Unrealized intraday profit or loss as a percentage.
|
241
|
-
unrealisedIntradayPLPC: number;
|
242
|
-
// Current price of the asset.
|
243
|
-
currentPrice: number;
|
244
|
-
// Last traded price of the asset.
|
245
|
-
lastTradePrice: number;
|
246
|
-
// Price change of the asset for the day.
|
247
|
-
changeToday: number;
|
248
|
-
// Indicates if the asset is marginable.
|
249
|
-
assetMarginable: boolean;
|
250
|
-
// Relation to the AlpacaAccount model, if applicable.
|
251
|
-
alpacaAccount?: AlpacaAccount;
|
252
|
-
// Foreign key referencing the AlpacaAccount.
|
253
|
-
alpacaAccountId: string;
|
254
|
-
}
|
255
|
-
|
256
|
-
export enum AlertType {
|
257
|
-
SUCCESS = "SUCCESS",
|
258
|
-
WARNING = "WARNING",
|
259
|
-
ERROR = "ERROR",
|
260
|
-
INFO = "INFO"
|
261
|
-
}
|
262
|
-
|
263
|
-
export type Alert = {
|
264
|
-
// Reference to the Alpaca account associated with the alert.
|
265
|
-
alpacaAccountId: string;
|
266
|
-
// Message content of the alert.
|
267
|
-
message: string;
|
268
|
-
// Type of the alert, defined by AlertType enum.
|
269
|
-
type: AlertType;
|
270
|
-
// Indicates whether the alert has been read by the user.
|
271
|
-
isRead: boolean;
|
272
|
-
// Relation to the AlpacaAccount model.
|
273
|
-
alpacaAccount: AlpacaAccount;
|
274
69
|
}
|
275
70
|
|
276
71
|
export type AlpacaAccount = {
|
@@ -284,10 +79,6 @@ export type AlpacaAccount = {
|
|
284
79
|
configuration?: any;
|
285
80
|
// Indicates whether the market is currently open for trading.
|
286
81
|
marketOpen: boolean;
|
287
|
-
// Relation to the User model who owns this Alpaca account.
|
288
|
-
user: User;
|
289
|
-
// Foreign key referencing the User.
|
290
|
-
userId: string;
|
291
82
|
// List of trades executed through this Alpaca account.
|
292
83
|
trades: Trade[];
|
293
84
|
// List of orders placed through this Alpaca account.
|
@@ -317,14 +108,10 @@ export type User = {
|
|
317
108
|
currentAccount: AlpacaAccountType;
|
318
109
|
// Relation to the Customer model, if applicable.
|
319
110
|
customer?: Customer;
|
320
|
-
// Foreign key referencing the Customer.
|
321
|
-
customerId?: number;
|
322
111
|
// List of accounts associated with the user.
|
323
112
|
accounts: Account[];
|
324
113
|
// List of sessions associated with the user.
|
325
114
|
sessions: Session[];
|
326
|
-
// List of authenticators for the user.
|
327
|
-
authenticators: Authenticator[];
|
328
115
|
// The subscription plan the user is enrolled in.
|
329
116
|
plan?: SubscriptionPlan;
|
330
117
|
// List of Alpaca accounts linked to the user.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Reference to the authenticated user associated with the customer.\n authUserId: string;\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // Unique Stripe customer ID for billing.\n stripeCustomerId?: string;\n // Unique Stripe subscription ID.\n stripeSubscriptionId?: string;\n // Stripe price ID associated with the customer's subscription.\n stripePriceId?: string;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type Account = {\n // Reference to the user who owns this account.\n userId: string;\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Unique identifier provided by the external provider.\n providerAccountId: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n // Relation to the User model.\n user: User;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Reference to the user who owns this session.\n userId: string;\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: User;\n}\n\nexport type Authenticator = {\n // Reference to the user who owns this authenticator.\n userId: string;\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n // Relation to the User model.\n user: User;\n}\n\nexport enum TradeStatus {\n PENDING = \"PENDING\",\n OPEN = \"OPEN\",\n PARTIAL = \"PARTIAL\",\n COMPLETED = \"COMPLETED\"\n}\n\nexport enum OptionContractType {\n CALL = \"CALL\",\n PUT = \"PUT\"\n}\n\nexport type Trade = {\n // Reference to the Alpaca account used for the trade.\n alpacaAccountId: string;\n // Reference to the asset being traded.\n assetId: string;\n // Quantity of the asset being traded.\n qty: number;\n // Price at which the asset was traded.\n price: number;\n // Total value of the trade (qty * price).\n total: number;\n // Signal that triggered the trade.\n signal: string;\n // Strategy used to execute the trade.\n strategy: string;\n // Analysis supporting the trade decision.\n analysis: string;\n // Confidence level in the trade decision.\n confidence: number;\n // Timestamp when the trade was executed.\n timestamp: Date;\n // Current status of the trade.\n status: TradeStatus;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n // Relation to the Asset model.\n asset: Asset;\n // If the asset.type is OPTION, then provide type of contract (CALL or PUT).\n optionContractType?: OptionContractType;\n // List of actions associated with this trade.\n actions: Action[];\n}\n\nexport enum OrderSide {\n BUY = \"BUY\",\n SELL = \"SELL\"\n}\n\nexport enum OrderType {\n MARKET = \"MARKET\",\n LIMIT = \"LIMIT\",\n STOP = \"STOP\",\n STOP_LIMIT = \"STOP_LIMIT\",\n TRAILING_STOP = \"TRAILING_STOP\"\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nexport enum TimeInForce {\n DAY = \"DAY\",\n GTC = \"GTC\",\n OPG = \"OPG\",\n CLS = \"CLS\",\n IOC = \"IOC\",\n FOK = \"FOK\"\n}\n\nexport enum OrderStatus {\n NEW = \"NEW\",\n PARTIALLY_FILLED = \"PARTIALLY_FILLED\",\n FILLED = \"FILLED\",\n CANCELED = \"CANCELED\",\n REJECTED = \"REJECTED\",\n EXPIRED = \"EXPIRED\"\n}\n\nexport type Order = {\n // Reference to the Alpaca account used for the order.\n alpacaAccountId: string;\n // Reference to the asset being ordered.\n assetId: string;\n // Symbol of the asset (ticker symbol).\n symbol: string;\n // Quantity of the asset to be ordered.\n qty?: number;\n // Notional value of the order. Optional, used if qty is not provided.\n notional?: number;\n // Side of the order (BUY or SELL).\n side: OrderSide;\n // Type of order (market, limit, stop, stop_limit, trailing_stop).\n type: OrderType;\n // Time in force for the order (day, gtc, opg, cls, ioc, fok).\n timeInForce: TimeInForce;\n // Limit price for limit or stop-limit orders.\n limitPrice?: number;\n // Stop price for stop or stop-limit orders.\n stopPrice?: number;\n // Trailing price for trailing stop orders.\n trailPrice?: number;\n // Trailing percent for trailing stop orders.\n trailPercent?: number;\n // Whether the order is eligible for extended hours.\n extendedHours?: boolean;\n // Client-supplied identifier for the order.\n clientOrderId?: string;\n // Current status of the order.\n status: OrderStatus;\n // Timestamp when the order was submitted.\n submittedAt?: Date;\n // Timestamp when the order was filled.\n filledAt?: Date;\n // Average price at which the order was filled.\n filledAvgPrice?: number;\n // Reference to the action associated with the order.\n actionId: string;\n // The Alpaca account this order is associated with.\n alpacaAccount: AlpacaAccount;\n // The action this order is associated with.\n action: Action;\n // The asset this order is for.\n asset: Asset;\n // Fee associated with the order.\n fee?: number;\n}\n\nexport type Position = {\n // Reference to the associated asset.\n assetId: string;\n // Relation to the Asset model.\n asset: Asset;\n // The average price at which the asset was acquired.\n averageEntryPrice: number;\n // Total quantity of the asset held.\n qty: number;\n // Quantity of the asset available for trading.\n qtyAvailable: number;\n // Current market value of the position.\n marketValue: number;\n // Total cost basis of the position.\n costBasis: number;\n // Unrealized profit or loss of the position.\n unrealizedPL: number;\n // Unrealized profit or loss as a percentage.\n unrealizedPLPC: number;\n // Unrealized intraday profit or loss.\n unrealisedIntradayPL: number;\n // Unrealized intraday profit or loss as a percentage.\n unrealisedIntradayPLPC: number;\n // Current price of the asset.\n currentPrice: number;\n // Last traded price of the asset.\n lastTradePrice: number;\n // Price change of the asset for the day.\n changeToday: number;\n // Indicates if the asset is marginable.\n assetMarginable: boolean;\n // Relation to the AlpacaAccount model, if applicable.\n alpacaAccount?: AlpacaAccount;\n // Foreign key referencing the AlpacaAccount.\n alpacaAccountId: string;\n}\n\nexport enum AlertType {\n SUCCESS = \"SUCCESS\",\n WARNING = \"WARNING\",\n ERROR = \"ERROR\",\n INFO = \"INFO\"\n}\n\nexport type Alert = {\n // Reference to the Alpaca account associated with the alert.\n alpacaAccountId: string;\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n // Relation to the AlpacaAccount model.\n alpacaAccount: AlpacaAccount;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // Relation to the User model who owns this Alpaca account.\n user: User;\n // Foreign key referencing the User.\n userId: string;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model, if applicable.\n customer?: Customer;\n // Foreign key referencing the Customer.\n customerId?: number;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
|
1
|
+
export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type, and its nested object types (which include 'User' type), as well as any ENUMS used by it (which include 'SubscriptionPlan' enum).\n\nImportantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: User[];\n}\n\nexport enum SubscriptionPlan {\n FREE = \"FREE\",\n PRO = \"PRO\",\n BUSINESS = \"BUSINESS\"\n}\n\nexport enum UserRole {\n OWNER = \"OWNER\",\n ADMIN = \"ADMIN\",\n USER = \"USER\"\n}\n\nexport enum AlpacaAccountType {\n PAPER = \"PAPER\",\n LIVE = \"LIVE\"\n}\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Refresh token for the external account, if applicable.\n refresh_token?: string;\n // Access token for the external account, if applicable.\n access_token?: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // ID token for authentication, if applicable.\n id_token?: string;\n // State of the session associated with the account.\n session_state?: string;\n}\n\nexport type Session = {\n // Token associated with the session for authentication.\n sessionToken: string;\n // Expiration date and time of the session.\n expires: Date;\n}\n\nexport type Authenticator = {\n // Unique credential ID for the authenticator.\n credentialID: string;\n // Public key associated with the authenticator.\n publicKey: string;\n // Counter for the number of authentication attempts.\n counter: number;\n}\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // API key for authenticating requests to Alpaca.\n APIKey: string;\n // API secret for authenticating requests to Alpaca.\n APISecret: string;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of trades executed through this Alpaca account.\n trades: Trade[];\n // List of orders placed through this Alpaca account.\n orders: Order[];\n // List of positions held in this Alpaca account.\n positions: Position[];\n // List of alerts generated for this Alpaca account.\n alerts: Alert[];\n}\n\nexport type User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // Timestamp when the user's email was verified.\n emailVerified?: Date;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // List of accounts associated with the user.\n accounts: Account[];\n // List of sessions associated with the user.\n sessions: Session[];\n // List of authenticators for the user.\n authenticators: Authenticator[];\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: AlpacaAccount[];\n}\n\n";
|
2
2
|
//# sourceMappingURL=Customer.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+tHAwH9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHjC,CAAC"}
|
@@ -4,18 +4,10 @@ Your response should adhere to the following type definition for the "Customer"
|
|
4
4
|
Importantly, DO NOT include any annotations in your response (i.e. remove the ones we have provided for your reference below).
|
5
5
|
|
6
6
|
export type Customer = {
|
7
|
-
// Reference to the authenticated user associated with the customer.
|
8
|
-
authUserId: string;
|
9
7
|
// Name of the customer.
|
10
8
|
name?: string;
|
11
9
|
// Subscription plan the customer is enrolled in.
|
12
10
|
plan?: SubscriptionPlan;
|
13
|
-
// Unique Stripe customer ID for billing.
|
14
|
-
stripeCustomerId?: string;
|
15
|
-
// Unique Stripe subscription ID.
|
16
|
-
stripeSubscriptionId?: string;
|
17
|
-
// Stripe price ID associated with the customer's subscription.
|
18
|
-
stripePriceId?: string;
|
19
11
|
// End date of the current billing period in Stripe.
|
20
12
|
stripeCurrentPeriodEnd?: Date;
|
21
13
|
// List of users associated with the customer.
|
@@ -40,14 +32,10 @@ export enum AlpacaAccountType {
|
|
40
32
|
}
|
41
33
|
|
42
34
|
export type Account = {
|
43
|
-
// Reference to the user who owns this account.
|
44
|
-
userId: string;
|
45
35
|
// Type of the account (e.g., OAuth provider).
|
46
36
|
type: string;
|
47
37
|
// Provider of the account (e.g., Google, GitHub).
|
48
38
|
provider: string;
|
49
|
-
// Unique identifier provided by the external provider.
|
50
|
-
providerAccountId: string;
|
51
39
|
// Refresh token for the external account, if applicable.
|
52
40
|
refresh_token?: string;
|
53
41
|
// Access token for the external account, if applicable.
|
@@ -62,215 +50,22 @@ export type Account = {
|
|
62
50
|
id_token?: string;
|
63
51
|
// State of the session associated with the account.
|
64
52
|
session_state?: string;
|
65
|
-
// Relation to the User model.
|
66
|
-
user: User;
|
67
53
|
}
|
68
54
|
|
69
55
|
export type Session = {
|
70
56
|
// Token associated with the session for authentication.
|
71
57
|
sessionToken: string;
|
72
|
-
// Reference to the user who owns this session.
|
73
|
-
userId: string;
|
74
58
|
// Expiration date and time of the session.
|
75
59
|
expires: Date;
|
76
|
-
// Relation to the User model.
|
77
|
-
user: User;
|
78
60
|
}
|
79
61
|
|
80
62
|
export type Authenticator = {
|
81
|
-
// Reference to the user who owns this authenticator.
|
82
|
-
userId: string;
|
83
63
|
// Unique credential ID for the authenticator.
|
84
64
|
credentialID: string;
|
85
65
|
// Public key associated with the authenticator.
|
86
66
|
publicKey: string;
|
87
67
|
// Counter for the number of authentication attempts.
|
88
68
|
counter: number;
|
89
|
-
// Relation to the User model.
|
90
|
-
user: User;
|
91
|
-
}
|
92
|
-
|
93
|
-
export enum TradeStatus {
|
94
|
-
PENDING = "PENDING",
|
95
|
-
OPEN = "OPEN",
|
96
|
-
PARTIAL = "PARTIAL",
|
97
|
-
COMPLETED = "COMPLETED"
|
98
|
-
}
|
99
|
-
|
100
|
-
export enum OptionContractType {
|
101
|
-
CALL = "CALL",
|
102
|
-
PUT = "PUT"
|
103
|
-
}
|
104
|
-
|
105
|
-
export type Trade = {
|
106
|
-
// Reference to the Alpaca account used for the trade.
|
107
|
-
alpacaAccountId: string;
|
108
|
-
// Reference to the asset being traded.
|
109
|
-
assetId: string;
|
110
|
-
// Quantity of the asset being traded.
|
111
|
-
qty: number;
|
112
|
-
// Price at which the asset was traded.
|
113
|
-
price: number;
|
114
|
-
// Total value of the trade (qty * price).
|
115
|
-
total: number;
|
116
|
-
// Signal that triggered the trade.
|
117
|
-
signal: string;
|
118
|
-
// Strategy used to execute the trade.
|
119
|
-
strategy: string;
|
120
|
-
// Analysis supporting the trade decision.
|
121
|
-
analysis: string;
|
122
|
-
// Confidence level in the trade decision.
|
123
|
-
confidence: number;
|
124
|
-
// Timestamp when the trade was executed.
|
125
|
-
timestamp: Date;
|
126
|
-
// Current status of the trade.
|
127
|
-
status: TradeStatus;
|
128
|
-
// Relation to the AlpacaAccount model.
|
129
|
-
alpacaAccount: AlpacaAccount;
|
130
|
-
// Relation to the Asset model.
|
131
|
-
asset: Asset;
|
132
|
-
// If the asset.type is OPTION, then provide type of contract (CALL or PUT).
|
133
|
-
optionContractType?: OptionContractType;
|
134
|
-
// List of actions associated with this trade.
|
135
|
-
actions: Action[];
|
136
|
-
}
|
137
|
-
|
138
|
-
export enum OrderSide {
|
139
|
-
BUY = "BUY",
|
140
|
-
SELL = "SELL"
|
141
|
-
}
|
142
|
-
|
143
|
-
export enum OrderType {
|
144
|
-
MARKET = "MARKET",
|
145
|
-
LIMIT = "LIMIT",
|
146
|
-
STOP = "STOP",
|
147
|
-
STOP_LIMIT = "STOP_LIMIT",
|
148
|
-
TRAILING_STOP = "TRAILING_STOP"
|
149
|
-
}
|
150
|
-
|
151
|
-
// Time in force enum (day, gtc, opg, cls, etc.).
|
152
|
-
export enum TimeInForce {
|
153
|
-
DAY = "DAY",
|
154
|
-
GTC = "GTC",
|
155
|
-
OPG = "OPG",
|
156
|
-
CLS = "CLS",
|
157
|
-
IOC = "IOC",
|
158
|
-
FOK = "FOK"
|
159
|
-
}
|
160
|
-
|
161
|
-
export enum OrderStatus {
|
162
|
-
NEW = "NEW",
|
163
|
-
PARTIALLY_FILLED = "PARTIALLY_FILLED",
|
164
|
-
FILLED = "FILLED",
|
165
|
-
CANCELED = "CANCELED",
|
166
|
-
REJECTED = "REJECTED",
|
167
|
-
EXPIRED = "EXPIRED"
|
168
|
-
}
|
169
|
-
|
170
|
-
export type Order = {
|
171
|
-
// Reference to the Alpaca account used for the order.
|
172
|
-
alpacaAccountId: string;
|
173
|
-
// Reference to the asset being ordered.
|
174
|
-
assetId: string;
|
175
|
-
// Symbol of the asset (ticker symbol).
|
176
|
-
symbol: string;
|
177
|
-
// Quantity of the asset to be ordered.
|
178
|
-
qty?: number;
|
179
|
-
// Notional value of the order. Optional, used if qty is not provided.
|
180
|
-
notional?: number;
|
181
|
-
// Side of the order (BUY or SELL).
|
182
|
-
side: OrderSide;
|
183
|
-
// Type of order (market, limit, stop, stop_limit, trailing_stop).
|
184
|
-
type: OrderType;
|
185
|
-
// Time in force for the order (day, gtc, opg, cls, ioc, fok).
|
186
|
-
timeInForce: TimeInForce;
|
187
|
-
// Limit price for limit or stop-limit orders.
|
188
|
-
limitPrice?: number;
|
189
|
-
// Stop price for stop or stop-limit orders.
|
190
|
-
stopPrice?: number;
|
191
|
-
// Trailing price for trailing stop orders.
|
192
|
-
trailPrice?: number;
|
193
|
-
// Trailing percent for trailing stop orders.
|
194
|
-
trailPercent?: number;
|
195
|
-
// Whether the order is eligible for extended hours.
|
196
|
-
extendedHours?: boolean;
|
197
|
-
// Client-supplied identifier for the order.
|
198
|
-
clientOrderId?: string;
|
199
|
-
// Current status of the order.
|
200
|
-
status: OrderStatus;
|
201
|
-
// Timestamp when the order was submitted.
|
202
|
-
submittedAt?: Date;
|
203
|
-
// Timestamp when the order was filled.
|
204
|
-
filledAt?: Date;
|
205
|
-
// Average price at which the order was filled.
|
206
|
-
filledAvgPrice?: number;
|
207
|
-
// Reference to the action associated with the order.
|
208
|
-
actionId: string;
|
209
|
-
// The Alpaca account this order is associated with.
|
210
|
-
alpacaAccount: AlpacaAccount;
|
211
|
-
// The action this order is associated with.
|
212
|
-
action: Action;
|
213
|
-
// The asset this order is for.
|
214
|
-
asset: Asset;
|
215
|
-
// Fee associated with the order.
|
216
|
-
fee?: number;
|
217
|
-
}
|
218
|
-
|
219
|
-
export type Position = {
|
220
|
-
// Reference to the associated asset.
|
221
|
-
assetId: string;
|
222
|
-
// Relation to the Asset model.
|
223
|
-
asset: Asset;
|
224
|
-
// The average price at which the asset was acquired.
|
225
|
-
averageEntryPrice: number;
|
226
|
-
// Total quantity of the asset held.
|
227
|
-
qty: number;
|
228
|
-
// Quantity of the asset available for trading.
|
229
|
-
qtyAvailable: number;
|
230
|
-
// Current market value of the position.
|
231
|
-
marketValue: number;
|
232
|
-
// Total cost basis of the position.
|
233
|
-
costBasis: number;
|
234
|
-
// Unrealized profit or loss of the position.
|
235
|
-
unrealizedPL: number;
|
236
|
-
// Unrealized profit or loss as a percentage.
|
237
|
-
unrealizedPLPC: number;
|
238
|
-
// Unrealized intraday profit or loss.
|
239
|
-
unrealisedIntradayPL: number;
|
240
|
-
// Unrealized intraday profit or loss as a percentage.
|
241
|
-
unrealisedIntradayPLPC: number;
|
242
|
-
// Current price of the asset.
|
243
|
-
currentPrice: number;
|
244
|
-
// Last traded price of the asset.
|
245
|
-
lastTradePrice: number;
|
246
|
-
// Price change of the asset for the day.
|
247
|
-
changeToday: number;
|
248
|
-
// Indicates if the asset is marginable.
|
249
|
-
assetMarginable: boolean;
|
250
|
-
// Relation to the AlpacaAccount model, if applicable.
|
251
|
-
alpacaAccount?: AlpacaAccount;
|
252
|
-
// Foreign key referencing the AlpacaAccount.
|
253
|
-
alpacaAccountId: string;
|
254
|
-
}
|
255
|
-
|
256
|
-
export enum AlertType {
|
257
|
-
SUCCESS = "SUCCESS",
|
258
|
-
WARNING = "WARNING",
|
259
|
-
ERROR = "ERROR",
|
260
|
-
INFO = "INFO"
|
261
|
-
}
|
262
|
-
|
263
|
-
export type Alert = {
|
264
|
-
// Reference to the Alpaca account associated with the alert.
|
265
|
-
alpacaAccountId: string;
|
266
|
-
// Message content of the alert.
|
267
|
-
message: string;
|
268
|
-
// Type of the alert, defined by AlertType enum.
|
269
|
-
type: AlertType;
|
270
|
-
// Indicates whether the alert has been read by the user.
|
271
|
-
isRead: boolean;
|
272
|
-
// Relation to the AlpacaAccount model.
|
273
|
-
alpacaAccount: AlpacaAccount;
|
274
69
|
}
|
275
70
|
|
276
71
|
export type AlpacaAccount = {
|
@@ -284,10 +79,6 @@ export type AlpacaAccount = {
|
|
284
79
|
configuration?: any;
|
285
80
|
// Indicates whether the market is currently open for trading.
|
286
81
|
marketOpen: boolean;
|
287
|
-
// Relation to the User model who owns this Alpaca account.
|
288
|
-
user: User;
|
289
|
-
// Foreign key referencing the User.
|
290
|
-
userId: string;
|
291
82
|
// List of trades executed through this Alpaca account.
|
292
83
|
trades: Trade[];
|
293
84
|
// List of orders placed through this Alpaca account.
|
@@ -315,10 +106,6 @@ export type User = {
|
|
315
106
|
jobTitle?: string;
|
316
107
|
// The type of Alpaca account the user currently holds.
|
317
108
|
currentAccount: AlpacaAccountType;
|
318
|
-
// Relation to the Customer model, if applicable.
|
319
|
-
customer?: Customer;
|
320
|
-
// Foreign key referencing the Customer.
|
321
|
-
customerId?: number;
|
322
109
|
// List of accounts associated with the user.
|
323
110
|
accounts: Account[];
|
324
111
|
// List of sessions associated with the user.
|