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
@@ -558,6 +558,9 @@ exports.PerformanceMetric = {
558
558
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
559
559
  where: {
560
560
  id: item.id !== undefined ? item.id : undefined,
561
+ key: item.key !== undefined ? {
562
+ equals: item.key
563
+ } : undefined,
561
564
  },
562
565
  create: {
563
566
  key: item.key !== undefined ? item.key : undefined,
@@ -628,7 +631,6 @@ exports.PerformanceMetric = {
628
631
  },
629
632
  /**
630
633
  * Update a single PerformanceMetric record.
631
- * @param id - Unique identifier of the record to update.
632
634
  * @param props - Properties to update.
633
635
  * @param client - Apollo Client instance.
634
636
  * @returns The updated PerformanceMetric or null.
@@ -1617,6 +1619,9 @@ exports.PerformanceMetric = {
1617
1619
  upsert: props.portfolio.environmentVariables.map((item) => ({
1618
1620
  where: {
1619
1621
  id: item.id !== undefined ? item.id : undefined,
1622
+ key: item.key !== undefined ? {
1623
+ equals: item.key
1624
+ } : undefined,
1620
1625
  },
1621
1626
  update: {
1622
1627
  key: item.key !== undefined ? {
@@ -1741,6 +1746,9 @@ exports.PerformanceMetric = {
1741
1746
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
1742
1747
  where: {
1743
1748
  id: item.id !== undefined ? item.id : undefined,
1749
+ key: item.key !== undefined ? {
1750
+ equals: item.key
1751
+ } : undefined,
1744
1752
  },
1745
1753
  create: {
1746
1754
  key: item.key !== undefined ? item.key : undefined,
@@ -1773,7 +1781,7 @@ exports.PerformanceMetric = {
1773
1781
  },
1774
1782
  /**
1775
1783
  * Delete a single PerformanceMetric record.
1776
- * @param id - Unique identifier of the record to delete.
1784
+ * @param props - Properties to update.
1777
1785
  * @param client - Apollo Client instance.
1778
1786
  * @returns The deleted PerformanceMetric or null.
1779
1787
  */
@@ -2065,7 +2073,7 @@ exports.PerformanceMetric = {
2065
2073
  },
2066
2074
  /**
2067
2075
  * Retrieve a single PerformanceMetric record by ID.
2068
- * @param id - Unique identifier of the record.
2076
+ * @param props - Properties to update.
2069
2077
  * @param client - Apollo Client instance.
2070
2078
  * @returns The retrieved PerformanceMetric or null.
2071
2079
  */
@@ -2362,7 +2370,7 @@ exports.PerformanceMetric = {
2362
2370
  var _a, _b;
2363
2371
  const GET_ALL_PERFORMANCEMETRIC = (0, client_1.gql) `
2364
2372
  query getAllPerformanceMetric {
2365
- PerformanceMetrics {
2373
+ performanceMetrics {
2366
2374
  id
2367
2375
  userId
2368
2376
  portfolioId
@@ -2628,7 +2636,7 @@ exports.PerformanceMetric = {
2628
2636
  const response = await client.query({ query: GET_ALL_PERFORMANCEMETRIC });
2629
2637
  if (response.errors && response.errors.length > 0)
2630
2638
  throw new Error(response.errors[0].message);
2631
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.PerformanceMetrics) !== null && _b !== void 0 ? _b : null;
2639
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.performanceMetrics) !== null && _b !== void 0 ? _b : null;
2632
2640
  }
2633
2641
  catch (error) {
2634
2642
  console.error('Error in getAllPerformanceMetric:', error);
@@ -2644,7 +2652,7 @@ exports.PerformanceMetric = {
2644
2652
  async findMany(props, client) {
2645
2653
  const FIND_MANY_PERFORMANCEMETRIC = (0, client_1.gql) `
2646
2654
  query findManyPerformanceMetric($where: PerformanceMetricWhereInput!) {
2647
- PerformanceMetrics(where: $where) {
2655
+ performanceMetrics(where: $where) {
2648
2656
  id
2649
2657
  userId
2650
2658
  portfolioId
@@ -2919,7 +2927,7 @@ exports.PerformanceMetric = {
2919
2927
  if (response.errors && response.errors.length > 0)
2920
2928
  throw new Error(response.errors[0].message);
2921
2929
  if (response && response.data && response.data.PerformanceMetrics) {
2922
- return response.data.PerformanceMetrics;
2930
+ return response.data.performanceMetrics;
2923
2931
  }
2924
2932
  else {
2925
2933
  return [];
@@ -22,7 +22,6 @@ export declare const RiskAllocation: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single RiskAllocation 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 RiskAllocation or null.
@@ -30,14 +29,14 @@ export declare const RiskAllocation: {
30
29
  update(props: RiskAllocationType, client: ApolloClient<NormalizedCacheObject>): Promise<RiskAllocationType>;
31
30
  /**
32
31
  * Delete a single RiskAllocation 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 RiskAllocation or null.
36
35
  */
37
36
  delete(props: RiskAllocationType, client: ApolloClient<NormalizedCacheObject>): Promise<RiskAllocationType>;
38
37
  /**
39
38
  * Retrieve a single RiskAllocation 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 RiskAllocation or null.
43
42
  */
package/RiskAllocation.js CHANGED
@@ -558,6 +558,9 @@ exports.RiskAllocation = {
558
558
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
559
559
  where: {
560
560
  id: item.id !== undefined ? item.id : undefined,
561
+ key: item.key !== undefined ? {
562
+ equals: item.key
563
+ } : undefined,
561
564
  },
562
565
  create: {
563
566
  key: item.key !== undefined ? item.key : undefined,
@@ -628,7 +631,6 @@ exports.RiskAllocation = {
628
631
  },
629
632
  /**
630
633
  * Update a single RiskAllocation record.
631
- * @param id - Unique identifier of the record to update.
632
634
  * @param props - Properties to update.
633
635
  * @param client - Apollo Client instance.
634
636
  * @returns The updated RiskAllocation or null.
@@ -1620,6 +1622,9 @@ exports.RiskAllocation = {
1620
1622
  upsert: props.portfolio.environmentVariables.map((item) => ({
1621
1623
  where: {
1622
1624
  id: item.id !== undefined ? item.id : undefined,
1625
+ key: item.key !== undefined ? {
1626
+ equals: item.key
1627
+ } : undefined,
1623
1628
  },
1624
1629
  update: {
1625
1630
  key: item.key !== undefined ? {
@@ -1744,6 +1749,9 @@ exports.RiskAllocation = {
1744
1749
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
1745
1750
  where: {
1746
1751
  id: item.id !== undefined ? item.id : undefined,
1752
+ key: item.key !== undefined ? {
1753
+ equals: item.key
1754
+ } : undefined,
1747
1755
  },
1748
1756
  create: {
1749
1757
  key: item.key !== undefined ? item.key : undefined,
@@ -1776,7 +1784,7 @@ exports.RiskAllocation = {
1776
1784
  },
1777
1785
  /**
1778
1786
  * Delete a single RiskAllocation record.
1779
- * @param id - Unique identifier of the record to delete.
1787
+ * @param props - Properties to update.
1780
1788
  * @param client - Apollo Client instance.
1781
1789
  * @returns The deleted RiskAllocation or null.
1782
1790
  */
@@ -2068,7 +2076,7 @@ exports.RiskAllocation = {
2068
2076
  },
2069
2077
  /**
2070
2078
  * Retrieve a single RiskAllocation record by ID.
2071
- * @param id - Unique identifier of the record.
2079
+ * @param props - Properties to update.
2072
2080
  * @param client - Apollo Client instance.
2073
2081
  * @returns The retrieved RiskAllocation or null.
2074
2082
  */
@@ -2365,7 +2373,7 @@ exports.RiskAllocation = {
2365
2373
  var _a, _b;
2366
2374
  const GET_ALL_RISKALLOCATION = (0, client_1.gql) `
2367
2375
  query getAllRiskAllocation {
2368
- RiskAllocations {
2376
+ riskAllocations {
2369
2377
  id
2370
2378
  userId
2371
2379
  portfolioId
@@ -2631,7 +2639,7 @@ exports.RiskAllocation = {
2631
2639
  const response = await client.query({ query: GET_ALL_RISKALLOCATION });
2632
2640
  if (response.errors && response.errors.length > 0)
2633
2641
  throw new Error(response.errors[0].message);
2634
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.RiskAllocations) !== null && _b !== void 0 ? _b : null;
2642
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.riskAllocations) !== null && _b !== void 0 ? _b : null;
2635
2643
  }
2636
2644
  catch (error) {
2637
2645
  console.error('Error in getAllRiskAllocation:', error);
@@ -2647,7 +2655,7 @@ exports.RiskAllocation = {
2647
2655
  async findMany(props, client) {
2648
2656
  const FIND_MANY_RISKALLOCATION = (0, client_1.gql) `
2649
2657
  query findManyRiskAllocation($where: RiskAllocationWhereInput!) {
2650
- RiskAllocations(where: $where) {
2658
+ riskAllocations(where: $where) {
2651
2659
  id
2652
2660
  userId
2653
2661
  portfolioId
@@ -2922,7 +2930,7 @@ exports.RiskAllocation = {
2922
2930
  if (response.errors && response.errors.length > 0)
2923
2931
  throw new Error(response.errors[0].message);
2924
2932
  if (response && response.data && response.data.RiskAllocations) {
2925
- return response.data.RiskAllocations;
2933
+ return response.data.riskAllocations;
2926
2934
  }
2927
2935
  else {
2928
2936
  return [];
package/Session.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Session: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Session 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 Session or null.
@@ -30,14 +29,14 @@ export declare const Session: {
30
29
  update(props: SessionType, client: ApolloClient<NormalizedCacheObject>): Promise<SessionType>;
31
30
  /**
32
31
  * Delete a single Session 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 Session or null.
36
35
  */
37
36
  delete(props: SessionType, client: ApolloClient<NormalizedCacheObject>): Promise<SessionType>;
38
37
  /**
39
38
  * Retrieve a single Session 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 Session or null.
43
42
  */
package/Session.js CHANGED
@@ -503,7 +503,6 @@ exports.Session = {
503
503
  },
504
504
  /**
505
505
  * Update a single Session record.
506
- * @param id - Unique identifier of the record to update.
507
506
  * @param props - Properties to update.
508
507
  * @param client - Apollo Client instance.
509
508
  * @returns The updated Session or null.
@@ -1285,7 +1284,7 @@ exports.Session = {
1285
1284
  },
1286
1285
  /**
1287
1286
  * Delete a single Session record.
1288
- * @param id - Unique identifier of the record to delete.
1287
+ * @param props - Properties to update.
1289
1288
  * @param client - Apollo Client instance.
1290
1289
  * @returns The deleted Session or null.
1291
1290
  */
@@ -1577,7 +1576,7 @@ exports.Session = {
1577
1576
  },
1578
1577
  /**
1579
1578
  * Retrieve a single Session record by ID.
1580
- * @param id - Unique identifier of the record.
1579
+ * @param props - Properties to update.
1581
1580
  * @param client - Apollo Client instance.
1582
1581
  * @returns The retrieved Session or null.
1583
1582
  */
@@ -1874,7 +1873,7 @@ exports.Session = {
1874
1873
  var _a, _b;
1875
1874
  const GET_ALL_SESSION = (0, client_1.gql) `
1876
1875
  query getAllSession {
1877
- Sessions {
1876
+ sessions {
1878
1877
  id
1879
1878
  sessionToken
1880
1879
  userId
@@ -2140,7 +2139,7 @@ exports.Session = {
2140
2139
  const response = await client.query({ query: GET_ALL_SESSION });
2141
2140
  if (response.errors && response.errors.length > 0)
2142
2141
  throw new Error(response.errors[0].message);
2143
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Sessions) !== null && _b !== void 0 ? _b : null;
2142
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.sessions) !== null && _b !== void 0 ? _b : null;
2144
2143
  }
2145
2144
  catch (error) {
2146
2145
  console.error('Error in getAllSession:', error);
@@ -2156,7 +2155,7 @@ exports.Session = {
2156
2155
  async findMany(props, client) {
2157
2156
  const FIND_MANY_SESSION = (0, client_1.gql) `
2158
2157
  query findManySession($where: SessionWhereInput!) {
2159
- Sessions(where: $where) {
2158
+ sessions(where: $where) {
2160
2159
  id
2161
2160
  sessionToken
2162
2161
  userId
@@ -2431,7 +2430,7 @@ exports.Session = {
2431
2430
  if (response.errors && response.errors.length > 0)
2432
2431
  throw new Error(response.errors[0].message);
2433
2432
  if (response && response.data && response.data.Sessions) {
2434
- return response.data.Sessions;
2433
+ return response.data.sessions;
2435
2434
  }
2436
2435
  else {
2437
2436
  return [];
package/Trade.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Trade: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Trade 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 Trade or null.
@@ -30,14 +29,14 @@ export declare const Trade: {
30
29
  update(props: TradeType, client: ApolloClient<NormalizedCacheObject>): Promise<TradeType>;
31
30
  /**
32
31
  * Delete a single Trade 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 Trade or null.
36
35
  */
37
36
  delete(props: TradeType, client: ApolloClient<NormalizedCacheObject>): Promise<TradeType>;
38
37
  /**
39
38
  * Retrieve a single Trade 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 Trade or null.
43
42
  */
package/Trade.js CHANGED
@@ -554,6 +554,9 @@ exports.Trade = {
554
554
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
555
555
  where: {
556
556
  id: item.id !== undefined ? item.id : undefined,
557
+ key: item.key !== undefined ? {
558
+ equals: item.key
559
+ } : undefined,
557
560
  },
558
561
  create: {
559
562
  key: item.key !== undefined ? item.key : undefined,
@@ -717,7 +720,6 @@ exports.Trade = {
717
720
  },
718
721
  /**
719
722
  * Update a single Trade record.
720
- * @param id - Unique identifier of the record to update.
721
723
  * @param props - Properties to update.
722
724
  * @param client - Apollo Client instance.
723
725
  * @returns The updated Trade or null.
@@ -1676,6 +1678,9 @@ exports.Trade = {
1676
1678
  upsert: props.portfolio.environmentVariables.map((item) => ({
1677
1679
  where: {
1678
1680
  id: item.id !== undefined ? item.id : undefined,
1681
+ key: item.key !== undefined ? {
1682
+ equals: item.key
1683
+ } : undefined,
1679
1684
  },
1680
1685
  update: {
1681
1686
  key: item.key !== undefined ? {
@@ -1796,6 +1801,9 @@ exports.Trade = {
1796
1801
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
1797
1802
  where: {
1798
1803
  id: item.id !== undefined ? item.id : undefined,
1804
+ key: item.key !== undefined ? {
1805
+ equals: item.key
1806
+ } : undefined,
1799
1807
  },
1800
1808
  create: {
1801
1809
  key: item.key !== undefined ? item.key : undefined,
@@ -2071,7 +2079,7 @@ exports.Trade = {
2071
2079
  },
2072
2080
  /**
2073
2081
  * Delete a single Trade record.
2074
- * @param id - Unique identifier of the record to delete.
2082
+ * @param props - Properties to update.
2075
2083
  * @param client - Apollo Client instance.
2076
2084
  * @returns The deleted Trade or null.
2077
2085
  */
@@ -2363,7 +2371,7 @@ exports.Trade = {
2363
2371
  },
2364
2372
  /**
2365
2373
  * Retrieve a single Trade record by ID.
2366
- * @param id - Unique identifier of the record.
2374
+ * @param props - Properties to update.
2367
2375
  * @param client - Apollo Client instance.
2368
2376
  * @returns The retrieved Trade or null.
2369
2377
  */
@@ -2660,7 +2668,7 @@ exports.Trade = {
2660
2668
  var _a, _b;
2661
2669
  const GET_ALL_TRADE = (0, client_1.gql) `
2662
2670
  query getAllTrade {
2663
- Trades {
2671
+ trades {
2664
2672
  id
2665
2673
  userId
2666
2674
  portfolioId
@@ -2926,7 +2934,7 @@ exports.Trade = {
2926
2934
  const response = await client.query({ query: GET_ALL_TRADE });
2927
2935
  if (response.errors && response.errors.length > 0)
2928
2936
  throw new Error(response.errors[0].message);
2929
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Trades) !== null && _b !== void 0 ? _b : null;
2937
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.trades) !== null && _b !== void 0 ? _b : null;
2930
2938
  }
2931
2939
  catch (error) {
2932
2940
  console.error('Error in getAllTrade:', error);
@@ -2942,7 +2950,7 @@ exports.Trade = {
2942
2950
  async findMany(props, client) {
2943
2951
  const FIND_MANY_TRADE = (0, client_1.gql) `
2944
2952
  query findManyTrade($where: TradeWhereInput!) {
2945
- Trades(where: $where) {
2953
+ trades(where: $where) {
2946
2954
  id
2947
2955
  userId
2948
2956
  portfolioId
@@ -3217,7 +3225,7 @@ exports.Trade = {
3217
3225
  if (response.errors && response.errors.length > 0)
3218
3226
  throw new Error(response.errors[0].message);
3219
3227
  if (response && response.data && response.data.Trades) {
3220
- return response.data.Trades;
3228
+ return response.data.trades;
3221
3229
  }
3222
3230
  else {
3223
3231
  return [];
package/TradeStep.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const TradeStep: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single TradeStep 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 TradeStep or null.
@@ -30,14 +29,14 @@ export declare const TradeStep: {
30
29
  update(props: TradeStepType, client: ApolloClient<NormalizedCacheObject>): Promise<TradeStepType>;
31
30
  /**
32
31
  * Delete a single TradeStep 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 TradeStep or null.
36
35
  */
37
36
  delete(props: TradeStepType, client: ApolloClient<NormalizedCacheObject>): Promise<TradeStepType>;
38
37
  /**
39
38
  * Retrieve a single TradeStep 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 TradeStep or null.
43
42
  */
package/TradeStep.js CHANGED
@@ -459,7 +459,6 @@ exports.TradeStep = {
459
459
  },
460
460
  /**
461
461
  * Update a single TradeStep record.
462
- * @param id - Unique identifier of the record to update.
463
462
  * @param props - Properties to update.
464
463
  * @param client - Apollo Client instance.
465
464
  * @returns The updated TradeStep or null.
@@ -1002,7 +1001,7 @@ exports.TradeStep = {
1002
1001
  },
1003
1002
  /**
1004
1003
  * Delete a single TradeStep record.
1005
- * @param id - Unique identifier of the record to delete.
1004
+ * @param props - Properties to update.
1006
1005
  * @param client - Apollo Client instance.
1007
1006
  * @returns The deleted TradeStep or null.
1008
1007
  */
@@ -1317,7 +1316,7 @@ exports.TradeStep = {
1317
1316
  },
1318
1317
  /**
1319
1318
  * Retrieve a single TradeStep record by ID.
1320
- * @param id - Unique identifier of the record.
1319
+ * @param props - Properties to update.
1321
1320
  * @param client - Apollo Client instance.
1322
1321
  * @returns The retrieved TradeStep or null.
1323
1322
  */
@@ -1637,7 +1636,7 @@ exports.TradeStep = {
1637
1636
  var _a, _b;
1638
1637
  const GET_ALL_TRADESTEP = (0, client_1.gql) `
1639
1638
  query getAllTradeStep {
1640
- TradeSteps {
1639
+ tradeSteps {
1641
1640
  id
1642
1641
  tradeId
1643
1642
  sequence
@@ -1926,7 +1925,7 @@ exports.TradeStep = {
1926
1925
  const response = await client.query({ query: GET_ALL_TRADESTEP });
1927
1926
  if (response.errors && response.errors.length > 0)
1928
1927
  throw new Error(response.errors[0].message);
1929
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.TradeSteps) !== null && _b !== void 0 ? _b : null;
1928
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.tradeSteps) !== null && _b !== void 0 ? _b : null;
1930
1929
  }
1931
1930
  catch (error) {
1932
1931
  console.error('Error in getAllTradeStep:', error);
@@ -1942,7 +1941,7 @@ exports.TradeStep = {
1942
1941
  async findMany(props, client) {
1943
1942
  const FIND_MANY_TRADESTEP = (0, client_1.gql) `
1944
1943
  query findManyTradeStep($where: TradeStepWhereInput!) {
1945
- TradeSteps(where: $where) {
1944
+ tradeSteps(where: $where) {
1946
1945
  id
1947
1946
  tradeId
1948
1947
  sequence
@@ -2240,7 +2239,7 @@ exports.TradeStep = {
2240
2239
  if (response.errors && response.errors.length > 0)
2241
2240
  throw new Error(response.errors[0].message);
2242
2241
  if (response && response.data && response.data.TradeSteps) {
2243
- return response.data.TradeSteps;
2242
+ return response.data.tradeSteps;
2244
2243
  }
2245
2244
  else {
2246
2245
  return [];
@@ -22,7 +22,6 @@ export declare const TradingAccount: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single TradingAccount 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 TradingAccount or null.
@@ -30,14 +29,14 @@ export declare const TradingAccount: {
30
29
  update(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType>;
31
30
  /**
32
31
  * Delete a single TradingAccount 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 TradingAccount or null.
36
35
  */
37
36
  delete(props: TradingAccountType, client: ApolloClient<NormalizedCacheObject>): Promise<TradingAccountType>;
38
37
  /**
39
38
  * Retrieve a single TradingAccount 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 TradingAccount or null.
43
42
  */
package/TradingAccount.js CHANGED
@@ -771,6 +771,9 @@ exports.TradingAccount = {
771
771
  connectOrCreate: props.environmentVariables.map((item) => ({
772
772
  where: {
773
773
  id: item.id !== undefined ? item.id : undefined,
774
+ key: item.key !== undefined ? {
775
+ equals: item.key
776
+ } : undefined,
774
777
  },
775
778
  create: {
776
779
  key: item.key !== undefined ? item.key : undefined,
@@ -838,7 +841,6 @@ exports.TradingAccount = {
838
841
  },
839
842
  /**
840
843
  * Update a single TradingAccount record.
841
- * @param id - Unique identifier of the record to update.
842
844
  * @param props - Properties to update.
843
845
  * @param client - Apollo Client instance.
844
846
  * @returns The updated TradingAccount or null.
@@ -2532,6 +2534,9 @@ exports.TradingAccount = {
2532
2534
  upsert: props.environmentVariables.map((item) => ({
2533
2535
  where: {
2534
2536
  id: item.id !== undefined ? item.id : undefined,
2537
+ key: item.key !== undefined ? {
2538
+ equals: item.key
2539
+ } : undefined,
2535
2540
  },
2536
2541
  update: {
2537
2542
  key: item.key !== undefined ? {
@@ -2572,7 +2577,7 @@ exports.TradingAccount = {
2572
2577
  },
2573
2578
  /**
2574
2579
  * Delete a single TradingAccount record.
2575
- * @param id - Unique identifier of the record to delete.
2580
+ * @param props - Properties to update.
2576
2581
  * @param client - Apollo Client instance.
2577
2582
  * @returns The deleted TradingAccount or null.
2578
2583
  */
@@ -2885,7 +2890,7 @@ exports.TradingAccount = {
2885
2890
  },
2886
2891
  /**
2887
2892
  * Retrieve a single TradingAccount record by ID.
2888
- * @param id - Unique identifier of the record.
2893
+ * @param props - Properties to update.
2889
2894
  * @param client - Apollo Client instance.
2890
2895
  * @returns The retrieved TradingAccount or null.
2891
2896
  */
@@ -3209,7 +3214,7 @@ exports.TradingAccount = {
3209
3214
  var _a, _b;
3210
3215
  const GET_ALL_TRADINGACCOUNT = (0, client_1.gql) `
3211
3216
  query getAllTradingAccount {
3212
- TradingAccounts {
3217
+ tradingAccounts {
3213
3218
  id
3214
3219
  name
3215
3220
  slug
@@ -3496,7 +3501,7 @@ exports.TradingAccount = {
3496
3501
  const response = await client.query({ query: GET_ALL_TRADINGACCOUNT });
3497
3502
  if (response.errors && response.errors.length > 0)
3498
3503
  throw new Error(response.errors[0].message);
3499
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.TradingAccounts) !== null && _b !== void 0 ? _b : null;
3504
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.tradingAccounts) !== null && _b !== void 0 ? _b : null;
3500
3505
  }
3501
3506
  catch (error) {
3502
3507
  console.error('Error in getAllTradingAccount:', error);
@@ -3512,7 +3517,7 @@ exports.TradingAccount = {
3512
3517
  async findMany(props, client) {
3513
3518
  const FIND_MANY_TRADINGACCOUNT = (0, client_1.gql) `
3514
3519
  query findManyTradingAccount($where: TradingAccountWhereInput!) {
3515
- TradingAccounts(where: $where) {
3520
+ tradingAccounts(where: $where) {
3516
3521
  id
3517
3522
  name
3518
3523
  slug
@@ -3814,7 +3819,7 @@ exports.TradingAccount = {
3814
3819
  if (response.errors && response.errors.length > 0)
3815
3820
  throw new Error(response.errors[0].message);
3816
3821
  if (response && response.data && response.data.TradingAccounts) {
3817
- return response.data.TradingAccounts;
3822
+ return response.data.tradingAccounts;
3818
3823
  }
3819
3824
  else {
3820
3825
  return [];
package/User.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const User: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single User 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 User or null.
@@ -30,14 +29,14 @@ export declare const User: {
30
29
  update(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType>;
31
30
  /**
32
31
  * Delete a single User 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 User or null.
36
35
  */
37
36
  delete(props: UserType, client: ApolloClient<NormalizedCacheObject>): Promise<UserType>;
38
37
  /**
39
38
  * Retrieve a single User 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 User or null.
43
42
  */