adaptic-backend 1.0.14 → 1.0.15

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 (133) hide show
  1. package/AIRecommendation.d.ts +2 -3
  2. package/AIRecommendation.js +15 -7
  3. package/Account.d.ts +2 -3
  4. package/Account.js +6 -7
  5. package/Alert.d.ts +2 -3
  6. package/Alert.js +15 -7
  7. package/Asset.d.ts +2 -3
  8. package/Asset.js +11 -7
  9. package/Authenticator.d.ts +2 -3
  10. package/Authenticator.js +6 -7
  11. package/Customer.d.ts +2 -3
  12. package/Customer.js +6 -7
  13. package/EconomicEvent.d.ts +2 -3
  14. package/EconomicEvent.js +6 -7
  15. package/EnvironmentVariable.d.ts +2 -3
  16. package/EnvironmentVariable.js +15 -7
  17. package/Holding.d.ts +2 -3
  18. package/Holding.js +15 -7
  19. package/News.d.ts +2 -3
  20. package/News.js +13 -7
  21. package/NewsAssetSentiment.d.ts +2 -3
  22. package/NewsAssetSentiment.js +10 -7
  23. package/Order.d.ts +2 -3
  24. package/Order.js +15 -7
  25. package/PerformanceMetric.d.ts +2 -3
  26. package/PerformanceMetric.js +15 -7
  27. package/RiskAllocation.d.ts +2 -3
  28. package/RiskAllocation.js +15 -7
  29. package/Session.d.ts +2 -3
  30. package/Session.js +6 -7
  31. package/Trade.d.ts +2 -3
  32. package/Trade.js +15 -7
  33. package/TradeStep.d.ts +2 -3
  34. package/TradeStep.js +6 -7
  35. package/TradingAccount.d.ts +2 -3
  36. package/TradingAccount.js +12 -7
  37. package/User.d.ts +2 -3
  38. package/User.js +15 -7
  39. package/VerificationToken.d.ts +2 -3
  40. package/VerificationToken.js +6 -7
  41. package/generated/typegraphql-prisma/enhance.js +1 -1
  42. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  43. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
  44. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
  45. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js +6 -6
  46. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
  47. package/package.json +1 -1
  48. package/server/AIRecommendation.d.ts +2 -3
  49. package/server/AIRecommendation.d.ts.map +1 -1
  50. package/server/AIRecommendation.js.map +1 -1
  51. package/server/AIRecommendation.mjs +15 -7
  52. package/server/Account.d.ts +2 -3
  53. package/server/Account.d.ts.map +1 -1
  54. package/server/Account.js.map +1 -1
  55. package/server/Account.mjs +6 -7
  56. package/server/Alert.d.ts +2 -3
  57. package/server/Alert.d.ts.map +1 -1
  58. package/server/Alert.js.map +1 -1
  59. package/server/Alert.mjs +15 -7
  60. package/server/Asset.d.ts +2 -3
  61. package/server/Asset.d.ts.map +1 -1
  62. package/server/Asset.js.map +1 -1
  63. package/server/Asset.mjs +11 -7
  64. package/server/Authenticator.d.ts +2 -3
  65. package/server/Authenticator.d.ts.map +1 -1
  66. package/server/Authenticator.js.map +1 -1
  67. package/server/Authenticator.mjs +6 -7
  68. package/server/Customer.d.ts +2 -3
  69. package/server/Customer.d.ts.map +1 -1
  70. package/server/Customer.js.map +1 -1
  71. package/server/Customer.mjs +6 -7
  72. package/server/EconomicEvent.d.ts +2 -3
  73. package/server/EconomicEvent.d.ts.map +1 -1
  74. package/server/EconomicEvent.js.map +1 -1
  75. package/server/EconomicEvent.mjs +6 -7
  76. package/server/EnvironmentVariable.d.ts +2 -3
  77. package/server/EnvironmentVariable.d.ts.map +1 -1
  78. package/server/EnvironmentVariable.js.map +1 -1
  79. package/server/EnvironmentVariable.mjs +15 -7
  80. package/server/Holding.d.ts +2 -3
  81. package/server/Holding.d.ts.map +1 -1
  82. package/server/Holding.js.map +1 -1
  83. package/server/Holding.mjs +15 -7
  84. package/server/News.d.ts +2 -3
  85. package/server/News.d.ts.map +1 -1
  86. package/server/News.js.map +1 -1
  87. package/server/News.mjs +13 -7
  88. package/server/NewsAssetSentiment.d.ts +2 -3
  89. package/server/NewsAssetSentiment.d.ts.map +1 -1
  90. package/server/NewsAssetSentiment.js.map +1 -1
  91. package/server/NewsAssetSentiment.mjs +10 -7
  92. package/server/Order.d.ts +2 -3
  93. package/server/Order.d.ts.map +1 -1
  94. package/server/Order.js.map +1 -1
  95. package/server/Order.mjs +15 -7
  96. package/server/PerformanceMetric.d.ts +2 -3
  97. package/server/PerformanceMetric.d.ts.map +1 -1
  98. package/server/PerformanceMetric.js.map +1 -1
  99. package/server/PerformanceMetric.mjs +15 -7
  100. package/server/RiskAllocation.d.ts +2 -3
  101. package/server/RiskAllocation.d.ts.map +1 -1
  102. package/server/RiskAllocation.js.map +1 -1
  103. package/server/RiskAllocation.mjs +15 -7
  104. package/server/Session.d.ts +2 -3
  105. package/server/Session.d.ts.map +1 -1
  106. package/server/Session.js.map +1 -1
  107. package/server/Session.mjs +6 -7
  108. package/server/Trade.d.ts +2 -3
  109. package/server/Trade.d.ts.map +1 -1
  110. package/server/Trade.js.map +1 -1
  111. package/server/Trade.mjs +15 -7
  112. package/server/TradeStep.d.ts +2 -3
  113. package/server/TradeStep.d.ts.map +1 -1
  114. package/server/TradeStep.js.map +1 -1
  115. package/server/TradeStep.mjs +6 -7
  116. package/server/TradingAccount.d.ts +2 -3
  117. package/server/TradingAccount.d.ts.map +1 -1
  118. package/server/TradingAccount.js.map +1 -1
  119. package/server/TradingAccount.mjs +12 -7
  120. package/server/User.d.ts +2 -3
  121. package/server/User.d.ts.map +1 -1
  122. package/server/User.js.map +1 -1
  123. package/server/User.mjs +15 -7
  124. package/server/VerificationToken.d.ts +2 -3
  125. package/server/VerificationToken.d.ts.map +1 -1
  126. package/server/VerificationToken.js.map +1 -1
  127. package/server/VerificationToken.mjs +6 -7
  128. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  129. package/server/generated/typegraphql-prisma/enhance.mjs +1 -1
  130. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
  131. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
  132. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
  133. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.mjs +7 -7
package/User.js CHANGED
@@ -727,6 +727,9 @@ exports.User = {
727
727
  connectOrCreate: item.environmentVariables.map((item) => ({
728
728
  where: {
729
729
  id: item.id !== undefined ? item.id : undefined,
730
+ key: item.key !== undefined ? {
731
+ equals: item.key
732
+ } : undefined,
730
733
  },
731
734
  create: {
732
735
  key: item.key !== undefined ? item.key : undefined,
@@ -803,7 +806,6 @@ exports.User = {
803
806
  },
804
807
  /**
805
808
  * Update a single User record.
806
- * @param id - Unique identifier of the record to update.
807
809
  * @param props - Properties to update.
808
810
  * @param client - Apollo Client instance.
809
811
  * @returns The updated User or null.
@@ -2127,6 +2129,9 @@ exports.User = {
2127
2129
  upsert: item.environmentVariables.map((item) => ({
2128
2130
  where: {
2129
2131
  id: item.id !== undefined ? item.id : undefined,
2132
+ key: item.key !== undefined ? {
2133
+ equals: item.key
2134
+ } : undefined,
2130
2135
  },
2131
2136
  update: {
2132
2137
  key: item.key !== undefined ? {
@@ -2240,6 +2245,9 @@ exports.User = {
2240
2245
  connectOrCreate: item.environmentVariables.map((item) => ({
2241
2246
  where: {
2242
2247
  id: item.id !== undefined ? item.id : undefined,
2248
+ key: item.key !== undefined ? {
2249
+ equals: item.key
2250
+ } : undefined,
2243
2251
  },
2244
2252
  create: {
2245
2253
  key: item.key !== undefined ? item.key : undefined,
@@ -2272,7 +2280,7 @@ exports.User = {
2272
2280
  },
2273
2281
  /**
2274
2282
  * Delete a single User record.
2275
- * @param id - Unique identifier of the record to delete.
2283
+ * @param props - Properties to update.
2276
2284
  * @param client - Apollo Client instance.
2277
2285
  * @returns The deleted User or null.
2278
2286
  */
@@ -2596,7 +2604,7 @@ exports.User = {
2596
2604
  },
2597
2605
  /**
2598
2606
  * Retrieve a single User record by ID.
2599
- * @param id - Unique identifier of the record.
2607
+ * @param props - Properties to update.
2600
2608
  * @param client - Apollo Client instance.
2601
2609
  * @returns The retrieved User or null.
2602
2610
  */
@@ -2931,7 +2939,7 @@ exports.User = {
2931
2939
  var _a, _b;
2932
2940
  const GET_ALL_USER = (0, client_1.gql) `
2933
2941
  query getAllUser {
2934
- Users {
2942
+ users {
2935
2943
  id
2936
2944
  name
2937
2945
  email
@@ -3229,7 +3237,7 @@ exports.User = {
3229
3237
  const response = await client.query({ query: GET_ALL_USER });
3230
3238
  if (response.errors && response.errors.length > 0)
3231
3239
  throw new Error(response.errors[0].message);
3232
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Users) !== null && _b !== void 0 ? _b : null;
3240
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.users) !== null && _b !== void 0 ? _b : null;
3233
3241
  }
3234
3242
  catch (error) {
3235
3243
  console.error('Error in getAllUser:', error);
@@ -3245,7 +3253,7 @@ exports.User = {
3245
3253
  async findMany(props, client) {
3246
3254
  const FIND_MANY_USER = (0, client_1.gql) `
3247
3255
  query findManyUser($where: UserWhereInput!) {
3248
- Users(where: $where) {
3256
+ users(where: $where) {
3249
3257
  id
3250
3258
  name
3251
3259
  email
@@ -3558,7 +3566,7 @@ exports.User = {
3558
3566
  if (response.errors && response.errors.length > 0)
3559
3567
  throw new Error(response.errors[0].message);
3560
3568
  if (response && response.data && response.data.Users) {
3561
- return response.data.Users;
3569
+ return response.data.users;
3562
3570
  }
3563
3571
  else {
3564
3572
  return [];
@@ -22,7 +22,6 @@ export declare const VerificationToken: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single VerificationToken record.
25
- * @param id - Unique identifier of the record to update.
26
25
  * @param props - Properties to update.
27
26
  * @param client - Apollo Client instance.
28
27
  * @returns The updated VerificationToken or null.
@@ -30,14 +29,14 @@ export declare const VerificationToken: {
30
29
  update(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType>;
31
30
  /**
32
31
  * Delete a single VerificationToken record.
33
- * @param id - Unique identifier of the record to delete.
32
+ * @param props - Properties to update.
34
33
  * @param client - Apollo Client instance.
35
34
  * @returns The deleted VerificationToken or null.
36
35
  */
37
36
  delete(props: VerificationTokenType, client: ApolloClient<NormalizedCacheObject>): Promise<VerificationTokenType>;
38
37
  /**
39
38
  * Retrieve a single VerificationToken record by ID.
40
- * @param id - Unique identifier of the record.
39
+ * @param props - Properties to update.
41
40
  * @param client - Apollo Client instance.
42
41
  * @returns The retrieved VerificationToken or null.
43
42
  */
@@ -87,7 +87,6 @@ exports.VerificationToken = {
87
87
  },
88
88
  /**
89
89
  * Update a single VerificationToken record.
90
- * @param id - Unique identifier of the record to update.
91
90
  * @param props - Properties to update.
92
91
  * @param client - Apollo Client instance.
93
92
  * @returns The updated VerificationToken or null.
@@ -127,7 +126,7 @@ exports.VerificationToken = {
127
126
  },
128
127
  /**
129
128
  * Delete a single VerificationToken record.
130
- * @param id - Unique identifier of the record to delete.
129
+ * @param props - Properties to update.
131
130
  * @param client - Apollo Client instance.
132
131
  * @returns The deleted VerificationToken or null.
133
132
  */
@@ -164,7 +163,7 @@ exports.VerificationToken = {
164
163
  },
165
164
  /**
166
165
  * Retrieve a single VerificationToken record by ID.
167
- * @param id - Unique identifier of the record.
166
+ * @param props - Properties to update.
168
167
  * @param client - Apollo Client instance.
169
168
  * @returns The retrieved VerificationToken or null.
170
169
  */
@@ -206,7 +205,7 @@ exports.VerificationToken = {
206
205
  var _a, _b;
207
206
  const GET_ALL_VERIFICATIONTOKEN = (0, client_1.gql) `
208
207
  query getAllVerificationToken {
209
- VerificationTokens {
208
+ verificationTokens {
210
209
  id
211
210
  identifier
212
211
  token
@@ -217,7 +216,7 @@ exports.VerificationToken = {
217
216
  const response = await client.query({ query: GET_ALL_VERIFICATIONTOKEN });
218
217
  if (response.errors && response.errors.length > 0)
219
218
  throw new Error(response.errors[0].message);
220
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.VerificationTokens) !== null && _b !== void 0 ? _b : null;
219
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.verificationTokens) !== null && _b !== void 0 ? _b : null;
221
220
  }
222
221
  catch (error) {
223
222
  console.error('Error in getAllVerificationToken:', error);
@@ -233,7 +232,7 @@ exports.VerificationToken = {
233
232
  async findMany(props, client) {
234
233
  const FIND_MANY_VERIFICATIONTOKEN = (0, client_1.gql) `
235
234
  query findManyVerificationToken($where: VerificationTokenWhereInput!) {
236
- VerificationTokens(where: $where) {
235
+ verificationTokens(where: $where) {
237
236
  id
238
237
  identifier
239
238
  token
@@ -253,7 +252,7 @@ exports.VerificationToken = {
253
252
  if (response.errors && response.errors.length > 0)
254
253
  throw new Error(response.errors[0].message);
255
254
  if (response && response.data && response.data.VerificationTokens) {
256
- return response.data.VerificationTokens;
255
+ return response.data.verificationTokens;
257
256
  }
258
257
  else {
259
258
  return [];
@@ -1079,7 +1079,7 @@ const inputsInfo = {
1079
1079
  AlertScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "userId", "portfolioId", "message", "type", "isRead", "createdAt", "updatedAt"],
1080
1080
  NewsWhereInput: ["AND", "OR", "NOT", "id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt", "assets"],
1081
1081
  NewsOrderByWithRelationInput: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt", "assets"],
1082
- NewsWhereUniqueInput: ["id", "AND", "OR", "NOT", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt", "assets"],
1082
+ NewsWhereUniqueInput: ["id", "url", "AND", "OR", "NOT", "title", "content", "source", "sourceDomain", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt", "assets"],
1083
1083
  NewsOrderByWithAggregationInput: ["id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt", "_count", "_max", "_min"],
1084
1084
  NewsScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "title", "content", "source", "sourceDomain", "url", "sentiment", "authors", "summary", "bannerImage", "timePublished", "category", "topics", "logo", "createdAt", "updatedAt"],
1085
1085
  NewsAssetSentimentWhereInput: ["AND", "OR", "NOT", "id", "assetId", "newsId", "relevancyScore", "sentimentScore", "sentimentLabel", "news", "asset"],