adaptic-backend 1.0.34 → 1.0.35

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 (230) hide show
  1. package/AIRecommendation.d.ts +7 -8
  2. package/AIRecommendation.js +15 -7
  3. package/Account.d.ts +7 -8
  4. package/Account.js +15 -7
  5. package/Alert.d.ts +7 -8
  6. package/Alert.js +15 -7
  7. package/AlpacaAccount.d.ts +7 -8
  8. package/AlpacaAccount.js +15 -7
  9. package/Asset.d.ts +7 -8
  10. package/Asset.js +15 -7
  11. package/Authenticator.d.ts +7 -8
  12. package/Authenticator.js +15 -7
  13. package/Customer.d.ts +7 -8
  14. package/Customer.js +15 -7
  15. package/EconomicEvent.d.ts +7 -8
  16. package/EconomicEvent.js +15 -7
  17. package/EnvironmentVariable.d.ts +7 -8
  18. package/EnvironmentVariable.js +15 -7
  19. package/Holding.d.ts +7 -8
  20. package/Holding.js +15 -7
  21. package/NewsArticle.d.ts +7 -8
  22. package/NewsArticle.js +15 -7
  23. package/NewsArticleAssetSentiment.d.ts +7 -8
  24. package/NewsArticleAssetSentiment.js +15 -7
  25. package/Order.d.ts +7 -8
  26. package/Order.js +15 -7
  27. package/PerformanceMetric.d.ts +7 -8
  28. package/PerformanceMetric.js +15 -7
  29. package/README.md +5 -8
  30. package/RiskAllocation.d.ts +7 -8
  31. package/RiskAllocation.js +15 -7
  32. package/Session.d.ts +7 -8
  33. package/Session.js +15 -7
  34. package/Trade.d.ts +7 -8
  35. package/Trade.js +15 -7
  36. package/TradeStep.d.ts +7 -8
  37. package/TradeStep.js +15 -7
  38. package/TradingAccount.d.ts +7 -8
  39. package/TradingAccount.js +15 -7
  40. package/User.d.ts +7 -8
  41. package/User.js +15 -7
  42. package/VerificationToken.d.ts +7 -8
  43. package/VerificationToken.js +15 -7
  44. package/client.d.ts +6 -0
  45. package/client.js +80 -0
  46. package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  47. package/generated/typegraphql-prisma/enhance.js +5 -1
  48. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  49. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
  50. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
  51. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js +1 -1
  52. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
  53. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
  54. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
  55. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js +1 -1
  56. package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
  57. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
  58. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
  59. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js +91 -0
  60. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
  61. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
  62. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
  63. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js +111 -0
  64. package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
  65. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
  66. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
  67. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js +2 -1
  68. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
  69. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
  70. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
  71. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js +2 -1
  72. package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
  73. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
  74. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
  75. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js +2 -1
  76. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
  78. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
  79. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js +6 -6
  80. package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
  81. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
  82. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
  83. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js +99 -0
  84. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
  85. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
  86. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
  87. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js +119 -0
  88. package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
  89. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
  90. package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  91. package/generated/typegraphql-prisma/resolvers/inputs/index.js +19 -11
  92. package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  93. package/index.d.ts +147 -147
  94. package/package.json +2 -4
  95. package/server/AIRecommendation.d.ts +7 -8
  96. package/server/AIRecommendation.d.ts.map +1 -1
  97. package/server/AIRecommendation.js.map +1 -1
  98. package/server/AIRecommendation.mjs +15 -7
  99. package/server/Account.d.ts +7 -8
  100. package/server/Account.d.ts.map +1 -1
  101. package/server/Account.js.map +1 -1
  102. package/server/Account.mjs +15 -7
  103. package/server/Alert.d.ts +7 -8
  104. package/server/Alert.d.ts.map +1 -1
  105. package/server/Alert.js.map +1 -1
  106. package/server/Alert.mjs +15 -7
  107. package/server/AlpacaAccount.d.ts +7 -8
  108. package/server/AlpacaAccount.d.ts.map +1 -1
  109. package/server/AlpacaAccount.js.map +1 -1
  110. package/server/AlpacaAccount.mjs +15 -7
  111. package/server/Asset.d.ts +7 -8
  112. package/server/Asset.d.ts.map +1 -1
  113. package/server/Asset.js.map +1 -1
  114. package/server/Asset.mjs +15 -7
  115. package/server/Authenticator.d.ts +7 -8
  116. package/server/Authenticator.d.ts.map +1 -1
  117. package/server/Authenticator.js.map +1 -1
  118. package/server/Authenticator.mjs +15 -7
  119. package/server/Customer.d.ts +7 -8
  120. package/server/Customer.d.ts.map +1 -1
  121. package/server/Customer.js.map +1 -1
  122. package/server/Customer.mjs +15 -7
  123. package/server/EconomicEvent.d.ts +7 -8
  124. package/server/EconomicEvent.d.ts.map +1 -1
  125. package/server/EconomicEvent.js.map +1 -1
  126. package/server/EconomicEvent.mjs +15 -7
  127. package/server/EnvironmentVariable.d.ts +7 -8
  128. package/server/EnvironmentVariable.d.ts.map +1 -1
  129. package/server/EnvironmentVariable.js.map +1 -1
  130. package/server/EnvironmentVariable.mjs +15 -7
  131. package/server/Holding.d.ts +7 -8
  132. package/server/Holding.d.ts.map +1 -1
  133. package/server/Holding.js.map +1 -1
  134. package/server/Holding.mjs +15 -7
  135. package/server/NewsArticle.d.ts +7 -8
  136. package/server/NewsArticle.d.ts.map +1 -1
  137. package/server/NewsArticle.js.map +1 -1
  138. package/server/NewsArticle.mjs +15 -7
  139. package/server/NewsArticleAssetSentiment.d.ts +7 -8
  140. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  141. package/server/NewsArticleAssetSentiment.js.map +1 -1
  142. package/server/NewsArticleAssetSentiment.mjs +15 -7
  143. package/server/Order.d.ts +7 -8
  144. package/server/Order.d.ts.map +1 -1
  145. package/server/Order.js.map +1 -1
  146. package/server/Order.mjs +15 -7
  147. package/server/PerformanceMetric.d.ts +7 -8
  148. package/server/PerformanceMetric.d.ts.map +1 -1
  149. package/server/PerformanceMetric.js.map +1 -1
  150. package/server/PerformanceMetric.mjs +15 -7
  151. package/server/RiskAllocation.d.ts +7 -8
  152. package/server/RiskAllocation.d.ts.map +1 -1
  153. package/server/RiskAllocation.js.map +1 -1
  154. package/server/RiskAllocation.mjs +15 -7
  155. package/server/Session.d.ts +7 -8
  156. package/server/Session.d.ts.map +1 -1
  157. package/server/Session.js.map +1 -1
  158. package/server/Session.mjs +15 -7
  159. package/server/Trade.d.ts +7 -8
  160. package/server/Trade.d.ts.map +1 -1
  161. package/server/Trade.js.map +1 -1
  162. package/server/Trade.mjs +15 -7
  163. package/server/TradeStep.d.ts +7 -8
  164. package/server/TradeStep.d.ts.map +1 -1
  165. package/server/TradeStep.js.map +1 -1
  166. package/server/TradeStep.mjs +15 -7
  167. package/server/TradingAccount.d.ts +7 -8
  168. package/server/TradingAccount.d.ts.map +1 -1
  169. package/server/TradingAccount.js.map +1 -1
  170. package/server/TradingAccount.mjs +15 -7
  171. package/server/User.d.ts +7 -8
  172. package/server/User.d.ts.map +1 -1
  173. package/server/User.js.map +1 -1
  174. package/server/User.mjs +15 -7
  175. package/server/VerificationToken.d.ts +7 -8
  176. package/server/VerificationToken.d.ts.map +1 -1
  177. package/server/VerificationToken.js.map +1 -1
  178. package/server/VerificationToken.mjs +15 -7
  179. package/server/client.d.ts +6 -0
  180. package/server/client.d.ts.map +1 -0
  181. package/server/client.js.map +1 -0
  182. package/server/client.mjs +74 -0
  183. package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
  184. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  185. package/server/generated/typegraphql-prisma/enhance.mjs +5 -1
  186. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
  187. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
  188. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
  189. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.mjs +1 -1
  190. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
  191. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
  192. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
  193. package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.mjs +1 -1
  194. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
  195. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
  196. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
  197. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.mjs +73 -0
  198. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
  199. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
  200. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
  201. package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.mjs +96 -0
  202. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
  203. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
  204. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
  205. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.mjs +2 -1
  206. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
  207. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
  208. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
  209. package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.mjs +2 -1
  210. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
  211. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
  212. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
  213. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.mjs +2 -1
  214. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
  215. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
  216. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
  217. package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.mjs +7 -7
  218. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
  219. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
  220. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
  221. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.mjs +82 -0
  222. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
  223. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
  224. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
  225. package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.mjs +105 -0
  226. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
  227. package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
  228. package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
  229. package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +4 -0
  230. package/server/index.d.ts +147 -147
@@ -1,5 +1,4 @@
1
1
  import { TradingAccount as TradingAccountType } from './generated/typegraphql-prisma/models/TradingAccount';
2
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
2
  /**
4
3
  * CRUD operations for the TradingAccount model.
5
4
  */
@@ -10,14 +9,14 @@ export declare const TradingAccount: {
10
9
  * @param client - Apollo Client instance.
11
10
  * @returns The created TradingAccount or null.
12
11
  */
13
- create(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType>;
12
+ create(props: TradingAccountType): Promise<TradingAccountType>;
14
13
  /**
15
14
  * Create multiple TradingAccount records.
16
15
  * @param props - Array of properties for the new records.
17
16
  * @param client - Apollo Client instance.
18
17
  * @returns The count of created records or null.
19
18
  */
20
- createMany(props: TradingAccountType[], client: ApolloClient<NormalizedCacheObject>): Promise<{
19
+ createMany(props: TradingAccountType[]): Promise<{
21
20
  count: number;
22
21
  } | null>;
23
22
  /**
@@ -26,33 +25,33 @@ export declare const TradingAccount: {
26
25
  * @param client - Apollo Client instance.
27
26
  * @returns The updated TradingAccount or null.
28
27
  */
29
- update(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType>;
28
+ update(props: TradingAccountType): Promise<TradingAccountType>;
30
29
  /**
31
30
  * Delete a single TradingAccount record.
32
31
  * @param props - Properties to update.
33
32
  * @param client - Apollo Client instance.
34
33
  * @returns The deleted TradingAccount or null.
35
34
  */
36
- delete(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType>;
35
+ delete(props: TradingAccountType): Promise<TradingAccountType>;
37
36
  /**
38
37
  * Retrieve a single TradingAccount record by ID.
39
38
  * @param props - Properties to update.
40
39
  * @param client - Apollo Client instance.
41
40
  * @returns The retrieved TradingAccount or null.
42
41
  */
43
- get(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType | null>;
42
+ get(props: TradingAccountType): Promise<TradingAccountType | null>;
44
43
  /**
45
44
  * Retrieve all TradingAccounts records.
46
45
  * @param client - Apollo Client instance.
47
46
  * @returns An array of TradingAccount records or null.
48
47
  */
49
- getAll(client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType[] | null>;
48
+ getAll(): Promise<TradingAccountType[] | null>;
50
49
  /**
51
50
  * Find multiple TradingAccount records based on conditions.
52
51
  * @param where - Conditions to find records.
53
52
  * @param client - Apollo Client instance.
54
53
  * @returns An array of found TradingAccount records or null.
55
54
  */
56
- findMany(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType[] | null>;
55
+ findMany(props: TradingAccountType): Promise<TradingAccountType[] | null>;
57
56
  };
58
57
  //# sourceMappingURL=TradingAccount.d.ts.map
package/TradingAccount.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TradingAccount = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const client_2 = require("./client");
5
6
  const utils_1 = require("./utils");
6
7
  /**
7
8
  * CRUD operations for the TradingAccount model.
@@ -13,7 +14,8 @@ exports.TradingAccount = {
13
14
  * @param client - Apollo Client instance.
14
15
  * @returns The created TradingAccount or null.
15
16
  */
16
- async create(props, client) {
17
+ async create(props) {
18
+ const client = await (0, client_2.initializeApolloServerSide)();
17
19
  const CREATE_ONE_TRADINGACCOUNT = (0, client_1.gql) `
18
20
  mutation createOneTradingAccount($data: TradingAccountCreateInput!) {
19
21
  createOneTradingAccount(data: $data) {
@@ -1079,7 +1081,8 @@ exports.TradingAccount = {
1079
1081
  * @param client - Apollo Client instance.
1080
1082
  * @returns The count of created records or null.
1081
1083
  */
1082
- async createMany(props, client) {
1084
+ async createMany(props) {
1085
+ const client = await (0, client_2.initializeApolloServerSide)();
1083
1086
  const CREATE_MANY_TRADINGACCOUNT = (0, client_1.gql) `
1084
1087
  mutation createManyTradingAccount($data: [TradingAccountCreateManyInput!]!) {
1085
1088
  createManyTradingAccount(data: $data) {
@@ -1117,7 +1120,8 @@ exports.TradingAccount = {
1117
1120
  * @param client - Apollo Client instance.
1118
1121
  * @returns The updated TradingAccount or null.
1119
1122
  */
1120
- async update(props, client) {
1123
+ async update(props) {
1124
+ const client = await (0, client_2.initializeApolloServerSide)();
1121
1125
  const UPDATE_ONE_TRADINGACCOUNT = (0, client_1.gql) `
1122
1126
  mutation updateOneTradingAccount($data: TradingAccountUpdateInput!, $where: TradingAccountWhereUniqueInput!) {
1123
1127
  updateOneTradingAccount(data: $data, where: $where) {
@@ -3973,7 +3977,8 @@ exports.TradingAccount = {
3973
3977
  * @param client - Apollo Client instance.
3974
3978
  * @returns The deleted TradingAccount or null.
3975
3979
  */
3976
- async delete(props, client) {
3980
+ async delete(props) {
3981
+ const client = await (0, client_2.initializeApolloServerSide)();
3977
3982
  const DELETE_ONE_TRADINGACCOUNT = (0, client_1.gql) `
3978
3983
  mutation deleteOneTradingAccount($where: TradingAccountWhereUniqueInput!) {
3979
3984
  deleteOneTradingAccount(where: $where) {
@@ -4348,8 +4353,9 @@ exports.TradingAccount = {
4348
4353
  * @param client - Apollo Client instance.
4349
4354
  * @returns The retrieved TradingAccount or null.
4350
4355
  */
4351
- async get(props, client) {
4356
+ async get(props) {
4352
4357
  var _a, _b;
4358
+ const client = await (0, client_2.initializeApolloServerSide)();
4353
4359
  const GET_TRADINGACCOUNT = (0, client_1.gql) `
4354
4360
  query getTradingAccount($where: TradingAccountWhereUniqueInput!) {
4355
4361
  getTradingAccount(where: $where) {
@@ -4727,8 +4733,9 @@ exports.TradingAccount = {
4727
4733
  * @param client - Apollo Client instance.
4728
4734
  * @returns An array of TradingAccount records or null.
4729
4735
  */
4730
- async getAll(client) {
4736
+ async getAll() {
4731
4737
  var _a, _b;
4738
+ const client = await (0, client_2.initializeApolloServerSide)();
4732
4739
  const GET_ALL_TRADINGACCOUNT = (0, client_1.gql) `
4733
4740
  query getAllTradingAccount {
4734
4741
  tradingAccounts {
@@ -5097,7 +5104,8 @@ exports.TradingAccount = {
5097
5104
  * @param client - Apollo Client instance.
5098
5105
  * @returns An array of found TradingAccount records or null.
5099
5106
  */
5100
- async findMany(props, client) {
5107
+ async findMany(props) {
5108
+ const client = await (0, client_2.initializeApolloServerSide)();
5101
5109
  const FIND_MANY_TRADINGACCOUNT = (0, client_1.gql) `
5102
5110
  query findManyTradingAccount($where: TradingAccountWhereInput!) {
5103
5111
  tradingAccounts(where: $where) {
package/User.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { User as UserType } from './generated/typegraphql-prisma/models/User';
2
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
2
  /**
4
3
  * CRUD operations for the User model.
5
4
  */
@@ -10,14 +9,14 @@ export declare const User: {
10
9
  * @param client - Apollo Client instance.
11
10
  * @returns The created User or null.
12
11
  */
13
- create(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType>;
12
+ create(props: UserType): Promise<UserType>;
14
13
  /**
15
14
  * Create multiple User records.
16
15
  * @param props - Array of properties for the new records.
17
16
  * @param client - Apollo Client instance.
18
17
  * @returns The count of created records or null.
19
18
  */
20
- createMany(props: UserType[], client: ApolloClient<NormalizedCacheObject>): Promise<{
19
+ createMany(props: UserType[]): Promise<{
21
20
  count: number;
22
21
  } | null>;
23
22
  /**
@@ -26,33 +25,33 @@ export declare const User: {
26
25
  * @param client - Apollo Client instance.
27
26
  * @returns The updated User or null.
28
27
  */
29
- update(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType>;
28
+ update(props: UserType): Promise<UserType>;
30
29
  /**
31
30
  * Delete a single User record.
32
31
  * @param props - Properties to update.
33
32
  * @param client - Apollo Client instance.
34
33
  * @returns The deleted User or null.
35
34
  */
36
- delete(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType>;
35
+ delete(props: UserType): Promise<UserType>;
37
36
  /**
38
37
  * Retrieve a single User record by ID.
39
38
  * @param props - Properties to update.
40
39
  * @param client - Apollo Client instance.
41
40
  * @returns The retrieved User or null.
42
41
  */
43
- get(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType | null>;
42
+ get(props: UserType): Promise<UserType | null>;
44
43
  /**
45
44
  * Retrieve all Users records.
46
45
  * @param client - Apollo Client instance.
47
46
  * @returns An array of User records or null.
48
47
  */
49
- getAll(client: ApolloClient<NormalizedCacheObject>): Promise<UserType[] | null>;
48
+ getAll(): Promise<UserType[] | null>;
50
49
  /**
51
50
  * Find multiple User records based on conditions.
52
51
  * @param where - Conditions to find records.
53
52
  * @param client - Apollo Client instance.
54
53
  * @returns An array of found User records or null.
55
54
  */
56
- findMany(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType[] | null>;
55
+ findMany(props: UserType): Promise<UserType[] | null>;
57
56
  };
58
57
  //# sourceMappingURL=User.d.ts.map
package/User.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.User = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const client_2 = require("./client");
5
6
  const utils_1 = require("./utils");
6
7
  /**
7
8
  * CRUD operations for the User model.
@@ -13,7 +14,8 @@ exports.User = {
13
14
  * @param client - Apollo Client instance.
14
15
  * @returns The created User or null.
15
16
  */
16
- async create(props, client) {
17
+ async create(props) {
18
+ const client = await (0, client_2.initializeApolloServerSide)();
17
19
  const CREATE_ONE_USER = (0, client_1.gql) `
18
20
  mutation createOneUser($data: UserCreateInput!) {
19
21
  createOneUser(data: $data) {
@@ -985,7 +987,8 @@ exports.User = {
985
987
  * @param client - Apollo Client instance.
986
988
  * @returns The count of created records or null.
987
989
  */
988
- async createMany(props, client) {
990
+ async createMany(props) {
991
+ const client = await (0, client_2.initializeApolloServerSide)();
989
992
  const CREATE_MANY_USER = (0, client_1.gql) `
990
993
  mutation createManyUser($data: [UserCreateManyInput!]!) {
991
994
  createManyUser(data: $data) {
@@ -1030,7 +1033,8 @@ exports.User = {
1030
1033
  * @param client - Apollo Client instance.
1031
1034
  * @returns The updated User or null.
1032
1035
  */
1033
- async update(props, client) {
1036
+ async update(props) {
1037
+ const client = await (0, client_2.initializeApolloServerSide)();
1034
1038
  const UPDATE_ONE_USER = (0, client_1.gql) `
1035
1039
  mutation updateOneUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) {
1036
1040
  updateOneUser(data: $data, where: $where) {
@@ -3335,7 +3339,8 @@ exports.User = {
3335
3339
  * @param client - Apollo Client instance.
3336
3340
  * @returns The deleted User or null.
3337
3341
  */
3338
- async delete(props, client) {
3342
+ async delete(props) {
3343
+ const client = await (0, client_2.initializeApolloServerSide)();
3339
3344
  const DELETE_ONE_USER = (0, client_1.gql) `
3340
3345
  mutation deleteOneUser($where: UserWhereUniqueInput!) {
3341
3346
  deleteOneUser(where: $where) {
@@ -3722,8 +3727,9 @@ exports.User = {
3722
3727
  * @param client - Apollo Client instance.
3723
3728
  * @returns The retrieved User or null.
3724
3729
  */
3725
- async get(props, client) {
3730
+ async get(props) {
3726
3731
  var _a, _b;
3732
+ const client = await (0, client_2.initializeApolloServerSide)();
3727
3733
  const GET_USER = (0, client_1.gql) `
3728
3734
  query getUser($where: UserWhereUniqueInput!) {
3729
3735
  getUser(where: $where) {
@@ -4113,8 +4119,9 @@ exports.User = {
4113
4119
  * @param client - Apollo Client instance.
4114
4120
  * @returns An array of User records or null.
4115
4121
  */
4116
- async getAll(client) {
4122
+ async getAll() {
4117
4123
  var _a, _b;
4124
+ const client = await (0, client_2.initializeApolloServerSide)();
4118
4125
  const GET_ALL_USER = (0, client_1.gql) `
4119
4126
  query getAllUser {
4120
4127
  users {
@@ -4495,7 +4502,8 @@ exports.User = {
4495
4502
  * @param client - Apollo Client instance.
4496
4503
  * @returns An array of found User records or null.
4497
4504
  */
4498
- async findMany(props, client) {
4505
+ async findMany(props) {
4506
+ const client = await (0, client_2.initializeApolloServerSide)();
4499
4507
  const FIND_MANY_USER = (0, client_1.gql) `
4500
4508
  query findManyUser($where: UserWhereInput!) {
4501
4509
  users(where: $where) {
@@ -1,5 +1,4 @@
1
1
  import { VerificationToken as VerificationTokenType } from './generated/typegraphql-prisma/models/VerificationToken';
2
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
3
2
  /**
4
3
  * CRUD operations for the VerificationToken model.
5
4
  */
@@ -10,14 +9,14 @@ export declare const VerificationToken: {
10
9
  * @param client - Apollo Client instance.
11
10
  * @returns The created VerificationToken or null.
12
11
  */
13
- create(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType>;
12
+ create(props: VerificationTokenType): Promise<VerificationTokenType>;
14
13
  /**
15
14
  * Create multiple VerificationToken records.
16
15
  * @param props - Array of properties for the new records.
17
16
  * @param client - Apollo Client instance.
18
17
  * @returns The count of created records or null.
19
18
  */
20
- createMany(props: VerificationTokenType[], client: ApolloClient<NormalizedCacheObject>): Promise<{
19
+ createMany(props: VerificationTokenType[]): Promise<{
21
20
  count: number;
22
21
  } | null>;
23
22
  /**
@@ -26,33 +25,33 @@ export declare const VerificationToken: {
26
25
  * @param client - Apollo Client instance.
27
26
  * @returns The updated VerificationToken or null.
28
27
  */
29
- update(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType>;
28
+ update(props: VerificationTokenType): Promise<VerificationTokenType>;
30
29
  /**
31
30
  * Delete a single VerificationToken record.
32
31
  * @param props - Properties to update.
33
32
  * @param client - Apollo Client instance.
34
33
  * @returns The deleted VerificationToken or null.
35
34
  */
36
- delete(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType>;
35
+ delete(props: VerificationTokenType): Promise<VerificationTokenType>;
37
36
  /**
38
37
  * Retrieve a single VerificationToken record by ID.
39
38
  * @param props - Properties to update.
40
39
  * @param client - Apollo Client instance.
41
40
  * @returns The retrieved VerificationToken or null.
42
41
  */
43
- get(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType | null>;
42
+ get(props: VerificationTokenType): Promise<VerificationTokenType | null>;
44
43
  /**
45
44
  * Retrieve all VerificationTokens records.
46
45
  * @param client - Apollo Client instance.
47
46
  * @returns An array of VerificationToken records or null.
48
47
  */
49
- getAll(client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType[] | null>;
48
+ getAll(): Promise<VerificationTokenType[] | null>;
50
49
  /**
51
50
  * Find multiple VerificationToken records based on conditions.
52
51
  * @param where - Conditions to find records.
53
52
  * @param client - Apollo Client instance.
54
53
  * @returns An array of found VerificationToken records or null.
55
54
  */
56
- findMany(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType[] | null>;
55
+ findMany(props: VerificationTokenType): Promise<VerificationTokenType[] | null>;
57
56
  };
58
57
  //# sourceMappingURL=VerificationToken.d.ts.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VerificationToken = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const client_2 = require("./client");
5
6
  const utils_1 = require("./utils");
6
7
  /**
7
8
  * CRUD operations for the VerificationToken model.
@@ -13,7 +14,8 @@ exports.VerificationToken = {
13
14
  * @param client - Apollo Client instance.
14
15
  * @returns The created VerificationToken or null.
15
16
  */
16
- async create(props, client) {
17
+ async create(props) {
18
+ const client = await (0, client_2.initializeApolloServerSide)();
17
19
  const CREATE_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
18
20
  mutation createOneVerificationToken($data: VerificationTokenCreateInput!) {
19
21
  createOneVerificationToken(data: $data) {
@@ -54,7 +56,8 @@ exports.VerificationToken = {
54
56
  * @param client - Apollo Client instance.
55
57
  * @returns The count of created records or null.
56
58
  */
57
- async createMany(props, client) {
59
+ async createMany(props) {
60
+ const client = await (0, client_2.initializeApolloServerSide)();
58
61
  const CREATE_MANY_VERIFICATIONTOKEN = (0, client_1.gql) `
59
62
  mutation createManyVerificationToken($data: [VerificationTokenCreateManyInput!]!) {
60
63
  createManyVerificationToken(data: $data) {
@@ -91,7 +94,8 @@ exports.VerificationToken = {
91
94
  * @param client - Apollo Client instance.
92
95
  * @returns The updated VerificationToken or null.
93
96
  */
94
- async update(props, client) {
97
+ async update(props) {
98
+ const client = await (0, client_2.initializeApolloServerSide)();
95
99
  const UPDATE_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
96
100
  mutation updateOneVerificationToken($data: VerificationTokenUpdateInput!, $where: VerificationTokenWhereUniqueInput!) {
97
101
  updateOneVerificationToken(data: $data, where: $where) {
@@ -130,7 +134,8 @@ exports.VerificationToken = {
130
134
  * @param client - Apollo Client instance.
131
135
  * @returns The deleted VerificationToken or null.
132
136
  */
133
- async delete(props, client) {
137
+ async delete(props) {
138
+ const client = await (0, client_2.initializeApolloServerSide)();
134
139
  const DELETE_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
135
140
  mutation deleteOneVerificationToken($where: VerificationTokenWhereUniqueInput!) {
136
141
  deleteOneVerificationToken(where: $where) {
@@ -168,8 +173,9 @@ exports.VerificationToken = {
168
173
  * @param client - Apollo Client instance.
169
174
  * @returns The retrieved VerificationToken or null.
170
175
  */
171
- async get(props, client) {
176
+ async get(props) {
172
177
  var _a, _b;
178
+ const client = await (0, client_2.initializeApolloServerSide)();
173
179
  const GET_VERIFICATIONTOKEN = (0, client_1.gql) `
174
180
  query getVerificationToken($where: VerificationTokenWhereUniqueInput!) {
175
181
  getVerificationToken(where: $where) {
@@ -206,8 +212,9 @@ exports.VerificationToken = {
206
212
  * @param client - Apollo Client instance.
207
213
  * @returns An array of VerificationToken records or null.
208
214
  */
209
- async getAll(client) {
215
+ async getAll() {
210
216
  var _a, _b;
217
+ const client = await (0, client_2.initializeApolloServerSide)();
211
218
  const GET_ALL_VERIFICATIONTOKEN = (0, client_1.gql) `
212
219
  query getAllVerificationToken {
213
220
  verificationTokens {
@@ -239,7 +246,8 @@ exports.VerificationToken = {
239
246
  * @param client - Apollo Client instance.
240
247
  * @returns An array of found VerificationToken records or null.
241
248
  */
242
- async findMany(props, client) {
249
+ async findMany(props) {
250
+ const client = await (0, client_2.initializeApolloServerSide)();
243
251
  const FIND_MANY_VERIFICATIONTOKEN = (0, client_1.gql) `
244
252
  query findManyVerificationToken($where: VerificationTokenWhereInput!) {
245
253
  verificationTokens(where: $where) {
package/client.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { ApolloClient } from "@apollo/client";
2
+ export type { NormalizedCacheObject, ApolloClient } from "@apollo/client";
3
+ export declare function initializeApolloServerSide(): Promise<ApolloClient<import("@apollo/client").NormalizedCacheObject>>;
4
+ export declare function initializeApolloClientSide(): Promise<ApolloClient<import("@apollo/client").NormalizedCacheObject>>;
5
+ export declare const makeClient: () => Promise<ApolloClient<any>>;
6
+ //# sourceMappingURL=client.d.ts.map
package/client.js ADDED
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var _a, _b;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.makeClient = void 0;
5
+ exports.initializeApolloServerSide = initializeApolloServerSide;
6
+ exports.initializeApolloClientSide = initializeApolloClientSide;
7
+ const client_1 = require("@apollo/client");
8
+ const utilities_1 = require("@apollo/client/utilities");
9
+ const context_1 = require("@apollo/client/link/context");
10
+ const graphql_ws_1 = require("graphql-ws");
11
+ const subscriptions_1 = require("@apollo/client/link/subscriptions");
12
+ const jwt_1 = require("next-auth/jwt");
13
+ const httpUrl = (_a = process.env.BACKEND_HTTPS_URL) !== null && _a !== void 0 ? _a : "http://localhost:4000/graphql";
14
+ const wsUrl = (_b = process.env.BACKEND_WS_URL) !== null && _b !== void 0 ? _b : "ws://localhost:4000/subscriptions";
15
+ async function getAuthToken() {
16
+ const secret = process.env.JWT_SECRET;
17
+ const salt = process.env.JWT_SALT;
18
+ const secureCookie = process.env.NODE_ENV === "production";
19
+ if (secret && salt) {
20
+ return await (0, jwt_1.getToken)({
21
+ secureCookie,
22
+ secret,
23
+ salt,
24
+ req: {
25
+ headers: {
26
+ cookie: "",
27
+ },
28
+ },
29
+ });
30
+ }
31
+ return null;
32
+ }
33
+ function createApolloClient(token) {
34
+ const httpLink = new client_1.HttpLink({
35
+ uri: httpUrl,
36
+ });
37
+ const authLink = (0, context_1.setContext)((_, { headers }) => ({
38
+ headers: {
39
+ ...headers,
40
+ authorization: token ? `Bearer ${token}` : "",
41
+ },
42
+ }));
43
+ const httpAuthLink = authLink.concat(httpLink);
44
+ const link = typeof window === "undefined"
45
+ ? httpAuthLink
46
+ : (0, client_1.split)(({ query }) => {
47
+ const definition = (0, utilities_1.getMainDefinition)(query);
48
+ return (definition.kind === "OperationDefinition" &&
49
+ definition.operation === "subscription");
50
+ }, new subscriptions_1.GraphQLWsLink((0, graphql_ws_1.createClient)({
51
+ url: wsUrl,
52
+ connectionParams: async () => {
53
+ const token = await getAuthToken();
54
+ return { authorization: token ? `Bearer ${token}` : "" };
55
+ },
56
+ on: {
57
+ connected: () => console.log("WebSocket connection opened"),
58
+ opened: () => console.log("WebSocket connection established"),
59
+ closed: () => console.log("WebSocket connection closed"),
60
+ error: (error) => console.error("WebSocket connection error:", error),
61
+ },
62
+ })), httpAuthLink);
63
+ return new client_1.ApolloClient({
64
+ link,
65
+ cache: new client_1.InMemoryCache(),
66
+ });
67
+ }
68
+ async function initializeApolloServerSide() {
69
+ const token = await getAuthToken();
70
+ return createApolloClient(token);
71
+ }
72
+ async function initializeApolloClientSide() {
73
+ const token = await getAuthToken();
74
+ return createApolloClient(token);
75
+ }
76
+ const makeClient = async () => {
77
+ return initializeApolloClientSide();
78
+ };
79
+ exports.makeClient = makeClient;
80
+ //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enhance.d.ts","sourceRoot":"","sources":["../../../src/generated/typegraphql-prisma/enhance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAEzD,OAAO,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,yBAAyB,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,CAAC;AAE7F,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC;AAmpBF,KAAK,kBAAkB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAExD,KAAK,wBAAwB,CAC3B,MAAM,SAAS,kBAAkB,IAC/B,MAAM,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC;AAEvD,MAAM,MAAM,qBAAqB,CAC/B,MAAM,SAAS,kBAAkB,IAC/B,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,G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"expires", "createdAt", "updatedAt"],
1046
1046
  UserWhereInput: ["AND", "OR", "NOT", "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
1047
1047
  UserOrderByWithRelationInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
1048
- UserWhereUniqueInput: ["id", "email", "AND", "OR", "NOT", "name", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
1048
+ UserWhereUniqueInput: ["id", "email", "alpacaAccountId", "AND", "OR", "NOT", "name", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
1049
1049
  UserOrderByWithAggregationInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "_count", "_avg", "_max", "_min", "_sum"],
1050
1050
  UserScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId"],
1051
1051
  AlpacaAccountWhereInput: ["AND", "OR", "NOT", "id", "APIKey", "APISecret", "configuration", "updatedAt", "userId", "user"],
@@ -1242,6 +1242,7 @@ const inputsInfo = {
1242
1242
  EnumUserRoleFilter: ["equals", "in", "notIn", "not"],
1243
1243
  IntNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1244
1244
  EnumSubscriptionPlanNullableFilter: ["equals", "in", "notIn", "not"],
1245
+ UuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not"],
1245
1246
  CustomerNullableRelationFilter: ["is", "isNot"],
1246
1247
  AccountListRelationFilter: ["every", "some", "none"],
1247
1248
  SessionListRelationFilter: ["every", "some", "none"],
@@ -1275,6 +1276,7 @@ const inputsInfo = {
1275
1276
  EnumUserRoleWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1276
1277
  IntNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1277
1278
  EnumSubscriptionPlanNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1279
+ UuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not", "_count", "_min", "_max"],
1278
1280
  JsonNullableFilter: ["equals", "path", "string_contains", "string_starts_with", "string_ends_with", "array_contains", "array_starts_with", "array_ends_with", "lt", "lte", "gt", "gte", "not"],
1279
1281
  AlpacaAccountCountOrderByAggregateInput: ["id", "APIKey", "APISecret", "configuration", "updatedAt", "userId"],
1280
1282
  AlpacaAccountMaxOrderByAggregateInput: ["id", "APIKey", "APISecret", "updatedAt", "userId"],
@@ -1548,12 +1550,14 @@ const inputsInfo = {
1548
1550
  NestedEnumUserRoleFilter: ["equals", "in", "notIn", "not"],
1549
1551
  NestedIntNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1550
1552
  NestedEnumSubscriptionPlanNullableFilter: ["equals", "in", "notIn", "not"],
1553
+ NestedUuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1551
1554
  NestedStringNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "contains", "startsWith", "endsWith", "not", "_count", "_min", "_max"],
1552
1555
  NestedDateTimeNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_min", "_max"],
1553
1556
  NestedEnumUserRoleWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1554
1557
  NestedIntNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1555
1558
  NestedFloatNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
1556
1559
  NestedEnumSubscriptionPlanNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
1560
+ NestedUuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_min", "_max"],
1557
1561
  NestedJsonNullableFilter: ["equals", "path", "string_contains", "string_starts_with", "string_ends_with", "array_contains", "array_starts_with", "array_ends_with", "lt", "lte", "gt", "gte", "not"],
1558
1562
  NestedIntWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
1559
1563
  NestedFloatFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],