adaptic-backend 1.0.14 → 1.0.16

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 (141) hide show
  1. package/AIRecommendation.d.ts +2 -3
  2. package/AIRecommendation.js +20 -10
  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 +19 -10
  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 +20 -10
  19. package/News.d.ts +2 -3
  20. package/News.js +20 -13
  21. package/NewsAssetSentiment.d.ts +2 -3
  22. package/NewsAssetSentiment.js +15 -10
  23. package/Order.d.ts +2 -3
  24. package/Order.js +20 -10
  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 +20 -10
  33. package/TradeStep.d.ts +2 -3
  34. package/TradeStep.js +13 -13
  35. package/TradingAccount.d.ts +2 -3
  36. package/TradingAccount.js +40 -31
  37. package/User.d.ts +2 -3
  38. package/User.js +36 -25
  39. package/VerificationToken.d.ts +2 -3
  40. package/VerificationToken.js +6 -7
  41. package/generated/typegraphql-prisma/enhance.js +2 -2
  42. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  43. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +1 -2
  44. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
  45. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js +6 -7
  46. package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
  47. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
  48. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
  49. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js +6 -6
  50. package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
  51. package/package.json +1 -1
  52. package/server/AIRecommendation.d.ts +2 -3
  53. package/server/AIRecommendation.d.ts.map +1 -1
  54. package/server/AIRecommendation.js.map +1 -1
  55. package/server/AIRecommendation.mjs +20 -10
  56. package/server/Account.d.ts +2 -3
  57. package/server/Account.d.ts.map +1 -1
  58. package/server/Account.js.map +1 -1
  59. package/server/Account.mjs +6 -7
  60. package/server/Alert.d.ts +2 -3
  61. package/server/Alert.d.ts.map +1 -1
  62. package/server/Alert.js.map +1 -1
  63. package/server/Alert.mjs +15 -7
  64. package/server/Asset.d.ts +2 -3
  65. package/server/Asset.d.ts.map +1 -1
  66. package/server/Asset.js.map +1 -1
  67. package/server/Asset.mjs +19 -10
  68. package/server/Authenticator.d.ts +2 -3
  69. package/server/Authenticator.d.ts.map +1 -1
  70. package/server/Authenticator.js.map +1 -1
  71. package/server/Authenticator.mjs +6 -7
  72. package/server/Customer.d.ts +2 -3
  73. package/server/Customer.d.ts.map +1 -1
  74. package/server/Customer.js.map +1 -1
  75. package/server/Customer.mjs +6 -7
  76. package/server/EconomicEvent.d.ts +2 -3
  77. package/server/EconomicEvent.d.ts.map +1 -1
  78. package/server/EconomicEvent.js.map +1 -1
  79. package/server/EconomicEvent.mjs +6 -7
  80. package/server/EnvironmentVariable.d.ts +2 -3
  81. package/server/EnvironmentVariable.d.ts.map +1 -1
  82. package/server/EnvironmentVariable.js.map +1 -1
  83. package/server/EnvironmentVariable.mjs +15 -7
  84. package/server/Holding.d.ts +2 -3
  85. package/server/Holding.d.ts.map +1 -1
  86. package/server/Holding.js.map +1 -1
  87. package/server/Holding.mjs +20 -10
  88. package/server/News.d.ts +2 -3
  89. package/server/News.d.ts.map +1 -1
  90. package/server/News.js.map +1 -1
  91. package/server/News.mjs +20 -13
  92. package/server/NewsAssetSentiment.d.ts +2 -3
  93. package/server/NewsAssetSentiment.d.ts.map +1 -1
  94. package/server/NewsAssetSentiment.js.map +1 -1
  95. package/server/NewsAssetSentiment.mjs +15 -10
  96. package/server/Order.d.ts +2 -3
  97. package/server/Order.d.ts.map +1 -1
  98. package/server/Order.js.map +1 -1
  99. package/server/Order.mjs +20 -10
  100. package/server/PerformanceMetric.d.ts +2 -3
  101. package/server/PerformanceMetric.d.ts.map +1 -1
  102. package/server/PerformanceMetric.js.map +1 -1
  103. package/server/PerformanceMetric.mjs +15 -7
  104. package/server/RiskAllocation.d.ts +2 -3
  105. package/server/RiskAllocation.d.ts.map +1 -1
  106. package/server/RiskAllocation.js.map +1 -1
  107. package/server/RiskAllocation.mjs +15 -7
  108. package/server/Session.d.ts +2 -3
  109. package/server/Session.d.ts.map +1 -1
  110. package/server/Session.js.map +1 -1
  111. package/server/Session.mjs +6 -7
  112. package/server/Trade.d.ts +2 -3
  113. package/server/Trade.d.ts.map +1 -1
  114. package/server/Trade.js.map +1 -1
  115. package/server/Trade.mjs +20 -10
  116. package/server/TradeStep.d.ts +2 -3
  117. package/server/TradeStep.d.ts.map +1 -1
  118. package/server/TradeStep.js.map +1 -1
  119. package/server/TradeStep.mjs +13 -13
  120. package/server/TradingAccount.d.ts +2 -3
  121. package/server/TradingAccount.d.ts.map +1 -1
  122. package/server/TradingAccount.js.map +1 -1
  123. package/server/TradingAccount.mjs +40 -31
  124. package/server/User.d.ts +2 -3
  125. package/server/User.d.ts.map +1 -1
  126. package/server/User.js.map +1 -1
  127. package/server/User.mjs +36 -25
  128. package/server/VerificationToken.d.ts +2 -3
  129. package/server/VerificationToken.d.ts.map +1 -1
  130. package/server/VerificationToken.js.map +1 -1
  131. package/server/VerificationToken.mjs +6 -7
  132. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  133. package/server/generated/typegraphql-prisma/enhance.mjs +2 -2
  134. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +1 -2
  135. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
  136. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
  137. package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.mjs +7 -8
  138. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
  139. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
  140. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
  141. package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.mjs +7 -7
@@ -22,7 +22,6 @@ export declare const AIRecommendation: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single AIRecommendation 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 AIRecommendation or null.
@@ -30,14 +29,14 @@ export declare const AIRecommendation: {
30
29
  update(props: AIRecommendationType, client: ApolloClient<NormalizedCacheObject>): Promise<AIRecommendationType>;
31
30
  /**
32
31
  * Delete a single AIRecommendation 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 AIRecommendation or null.
36
35
  */
37
36
  delete(props: AIRecommendationType, client: ApolloClient<NormalizedCacheObject>): Promise<AIRecommendationType>;
38
37
  /**
39
38
  * Retrieve a single AIRecommendation 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 AIRecommendation or null.
43
42
  */
@@ -558,6 +558,9 @@ exports.AIRecommendation = {
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,
@@ -573,9 +576,8 @@ exports.AIRecommendation = {
573
576
  connectOrCreate: {
574
577
  where: {
575
578
  id: props.asset.id !== undefined ? props.asset.id : undefined,
576
- name: props.asset.name !== undefined ? {
577
- equals: props.asset.name
578
- } : undefined,
579
+ symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
580
+ name: props.asset.name !== undefined ? props.asset.name : undefined,
579
581
  },
580
582
  create: {
581
583
  symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
@@ -697,7 +699,6 @@ exports.AIRecommendation = {
697
699
  },
698
700
  /**
699
701
  * Update a single AIRecommendation record.
700
- * @param id - Unique identifier of the record to update.
701
702
  * @param props - Properties to update.
702
703
  * @param client - Apollo Client instance.
703
704
  * @returns The updated AIRecommendation or null.
@@ -1689,6 +1690,9 @@ exports.AIRecommendation = {
1689
1690
  upsert: props.portfolio.environmentVariables.map((item) => ({
1690
1691
  where: {
1691
1692
  id: item.id !== undefined ? item.id : undefined,
1693
+ key: item.key !== undefined ? {
1694
+ equals: item.key
1695
+ } : undefined,
1692
1696
  },
1693
1697
  update: {
1694
1698
  key: item.key !== undefined ? {
@@ -1813,6 +1817,9 @@ exports.AIRecommendation = {
1813
1817
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
1814
1818
  where: {
1815
1819
  id: item.id !== undefined ? item.id : undefined,
1820
+ key: item.key !== undefined ? {
1821
+ equals: item.key
1822
+ } : undefined,
1816
1823
  },
1817
1824
  create: {
1818
1825
  key: item.key !== undefined ? item.key : undefined,
@@ -1830,6 +1837,9 @@ exports.AIRecommendation = {
1830
1837
  id: props.asset.id !== undefined ? {
1831
1838
  equals: props.asset.id
1832
1839
  } : undefined,
1840
+ symbol: props.asset.symbol !== undefined ? {
1841
+ equals: props.asset.symbol
1842
+ } : undefined,
1833
1843
  name: props.asset.name !== undefined ? {
1834
1844
  equals: props.asset.name
1835
1845
  } : undefined,
@@ -2037,7 +2047,7 @@ exports.AIRecommendation = {
2037
2047
  },
2038
2048
  /**
2039
2049
  * Delete a single AIRecommendation record.
2040
- * @param id - Unique identifier of the record to delete.
2050
+ * @param props - Properties to update.
2041
2051
  * @param client - Apollo Client instance.
2042
2052
  * @returns The deleted AIRecommendation or null.
2043
2053
  */
@@ -2329,7 +2339,7 @@ exports.AIRecommendation = {
2329
2339
  },
2330
2340
  /**
2331
2341
  * Retrieve a single AIRecommendation record by ID.
2332
- * @param id - Unique identifier of the record.
2342
+ * @param props - Properties to update.
2333
2343
  * @param client - Apollo Client instance.
2334
2344
  * @returns The retrieved AIRecommendation or null.
2335
2345
  */
@@ -2626,7 +2636,7 @@ exports.AIRecommendation = {
2626
2636
  var _a, _b;
2627
2637
  const GET_ALL_AIRECOMMENDATION = (0, client_1.gql) `
2628
2638
  query getAllAIRecommendation {
2629
- AIRecommendations {
2639
+ aIRecommendations {
2630
2640
  id
2631
2641
  userId
2632
2642
  portfolioId
@@ -2892,7 +2902,7 @@ exports.AIRecommendation = {
2892
2902
  const response = await client.query({ query: GET_ALL_AIRECOMMENDATION });
2893
2903
  if (response.errors && response.errors.length > 0)
2894
2904
  throw new Error(response.errors[0].message);
2895
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.AIRecommendations) !== null && _b !== void 0 ? _b : null;
2905
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.aIRecommendations) !== null && _b !== void 0 ? _b : null;
2896
2906
  }
2897
2907
  catch (error) {
2898
2908
  console.error('Error in getAllAIRecommendation:', error);
@@ -2908,7 +2918,7 @@ exports.AIRecommendation = {
2908
2918
  async findMany(props, client) {
2909
2919
  const FIND_MANY_AIRECOMMENDATION = (0, client_1.gql) `
2910
2920
  query findManyAIRecommendation($where: AIRecommendationWhereInput!) {
2911
- AIRecommendations(where: $where) {
2921
+ aIRecommendations(where: $where) {
2912
2922
  id
2913
2923
  userId
2914
2924
  portfolioId
@@ -3183,7 +3193,7 @@ exports.AIRecommendation = {
3183
3193
  if (response.errors && response.errors.length > 0)
3184
3194
  throw new Error(response.errors[0].message);
3185
3195
  if (response && response.data && response.data.AIRecommendations) {
3186
- return response.data.AIRecommendations;
3196
+ return response.data.aIRecommendations;
3187
3197
  }
3188
3198
  else {
3189
3199
  return [];
package/Account.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Account: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Account 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 Account or null.
@@ -30,14 +29,14 @@ export declare const Account: {
30
29
  update(props: AccountType, client: ApolloClient<NormalizedCacheObject>): Promise<AccountType>;
31
30
  /**
32
31
  * Delete a single Account 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 Account or null.
36
35
  */
37
36
  delete(props: AccountType, client: ApolloClient<NormalizedCacheObject>): Promise<AccountType>;
38
37
  /**
39
38
  * Retrieve a single Account 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 Account or null.
43
42
  */
package/Account.js CHANGED
@@ -511,7 +511,6 @@ exports.Account = {
511
511
  },
512
512
  /**
513
513
  * Update a single Account record.
514
- * @param id - Unique identifier of the record to update.
515
514
  * @param props - Properties to update.
516
515
  * @param client - Apollo Client instance.
517
516
  * @returns The updated Account or null.
@@ -1271,7 +1270,7 @@ exports.Account = {
1271
1270
  },
1272
1271
  /**
1273
1272
  * Delete a single Account record.
1274
- * @param id - Unique identifier of the record to delete.
1273
+ * @param props - Properties to update.
1275
1274
  * @param client - Apollo Client instance.
1276
1275
  * @returns The deleted Account or null.
1277
1276
  */
@@ -1563,7 +1562,7 @@ exports.Account = {
1563
1562
  },
1564
1563
  /**
1565
1564
  * Retrieve a single Account record by ID.
1566
- * @param id - Unique identifier of the record.
1565
+ * @param props - Properties to update.
1567
1566
  * @param client - Apollo Client instance.
1568
1567
  * @returns The retrieved Account or null.
1569
1568
  */
@@ -1860,7 +1859,7 @@ exports.Account = {
1860
1859
  var _a, _b;
1861
1860
  const GET_ALL_ACCOUNT = (0, client_1.gql) `
1862
1861
  query getAllAccount {
1863
- Accounts {
1862
+ accounts {
1864
1863
  id
1865
1864
  userId
1866
1865
  type
@@ -2126,7 +2125,7 @@ exports.Account = {
2126
2125
  const response = await client.query({ query: GET_ALL_ACCOUNT });
2127
2126
  if (response.errors && response.errors.length > 0)
2128
2127
  throw new Error(response.errors[0].message);
2129
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Accounts) !== null && _b !== void 0 ? _b : null;
2128
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.accounts) !== null && _b !== void 0 ? _b : null;
2130
2129
  }
2131
2130
  catch (error) {
2132
2131
  console.error('Error in getAllAccount:', error);
@@ -2142,7 +2141,7 @@ exports.Account = {
2142
2141
  async findMany(props, client) {
2143
2142
  const FIND_MANY_ACCOUNT = (0, client_1.gql) `
2144
2143
  query findManyAccount($where: AccountWhereInput!) {
2145
- Accounts(where: $where) {
2144
+ accounts(where: $where) {
2146
2145
  id
2147
2146
  userId
2148
2147
  type
@@ -2417,7 +2416,7 @@ exports.Account = {
2417
2416
  if (response.errors && response.errors.length > 0)
2418
2417
  throw new Error(response.errors[0].message);
2419
2418
  if (response && response.data && response.data.Accounts) {
2420
- return response.data.Accounts;
2419
+ return response.data.accounts;
2421
2420
  }
2422
2421
  else {
2423
2422
  return [];
package/Alert.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Alert: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Alert 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 Alert or null.
@@ -30,14 +29,14 @@ export declare const Alert: {
30
29
  update(props: AlertType, client: ApolloClient<NormalizedCacheObject>): Promise<AlertType>;
31
30
  /**
32
31
  * Delete a single Alert 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 Alert or null.
36
35
  */
37
36
  delete(props: AlertType, client: ApolloClient<NormalizedCacheObject>): Promise<AlertType>;
38
37
  /**
39
38
  * Retrieve a single Alert 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 Alert or null.
43
42
  */
package/Alert.js CHANGED
@@ -557,6 +557,9 @@ exports.Alert = {
557
557
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
558
558
  where: {
559
559
  id: item.id !== undefined ? item.id : undefined,
560
+ key: item.key !== undefined ? {
561
+ equals: item.key
562
+ } : undefined,
560
563
  },
561
564
  create: {
562
565
  key: item.key !== undefined ? item.key : undefined,
@@ -628,7 +631,6 @@ exports.Alert = {
628
631
  },
629
632
  /**
630
633
  * Update a single Alert 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 Alert or null.
@@ -1611,6 +1613,9 @@ exports.Alert = {
1611
1613
  upsert: props.portfolio.environmentVariables.map((item) => ({
1612
1614
  where: {
1613
1615
  id: item.id !== undefined ? item.id : undefined,
1616
+ key: item.key !== undefined ? {
1617
+ equals: item.key
1618
+ } : undefined,
1614
1619
  },
1615
1620
  update: {
1616
1621
  key: item.key !== undefined ? {
@@ -1734,6 +1739,9 @@ exports.Alert = {
1734
1739
  connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
1735
1740
  where: {
1736
1741
  id: item.id !== undefined ? item.id : undefined,
1742
+ key: item.key !== undefined ? {
1743
+ equals: item.key
1744
+ } : undefined,
1737
1745
  },
1738
1746
  create: {
1739
1747
  key: item.key !== undefined ? item.key : undefined,
@@ -1766,7 +1774,7 @@ exports.Alert = {
1766
1774
  },
1767
1775
  /**
1768
1776
  * Delete a single Alert record.
1769
- * @param id - Unique identifier of the record to delete.
1777
+ * @param props - Properties to update.
1770
1778
  * @param client - Apollo Client instance.
1771
1779
  * @returns The deleted Alert or null.
1772
1780
  */
@@ -2058,7 +2066,7 @@ exports.Alert = {
2058
2066
  },
2059
2067
  /**
2060
2068
  * Retrieve a single Alert record by ID.
2061
- * @param id - Unique identifier of the record.
2069
+ * @param props - Properties to update.
2062
2070
  * @param client - Apollo Client instance.
2063
2071
  * @returns The retrieved Alert or null.
2064
2072
  */
@@ -2355,7 +2363,7 @@ exports.Alert = {
2355
2363
  var _a, _b;
2356
2364
  const GET_ALL_ALERT = (0, client_1.gql) `
2357
2365
  query getAllAlert {
2358
- Alerts {
2366
+ alerts {
2359
2367
  id
2360
2368
  userId
2361
2369
  portfolioId
@@ -2621,7 +2629,7 @@ exports.Alert = {
2621
2629
  const response = await client.query({ query: GET_ALL_ALERT });
2622
2630
  if (response.errors && response.errors.length > 0)
2623
2631
  throw new Error(response.errors[0].message);
2624
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Alerts) !== null && _b !== void 0 ? _b : null;
2632
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.alerts) !== null && _b !== void 0 ? _b : null;
2625
2633
  }
2626
2634
  catch (error) {
2627
2635
  console.error('Error in getAllAlert:', error);
@@ -2637,7 +2645,7 @@ exports.Alert = {
2637
2645
  async findMany(props, client) {
2638
2646
  const FIND_MANY_ALERT = (0, client_1.gql) `
2639
2647
  query findManyAlert($where: AlertWhereInput!) {
2640
- Alerts(where: $where) {
2648
+ alerts(where: $where) {
2641
2649
  id
2642
2650
  userId
2643
2651
  portfolioId
@@ -2912,7 +2920,7 @@ exports.Alert = {
2912
2920
  if (response.errors && response.errors.length > 0)
2913
2921
  throw new Error(response.errors[0].message);
2914
2922
  if (response && response.data && response.data.Alerts) {
2915
- return response.data.Alerts;
2923
+ return response.data.alerts;
2916
2924
  }
2917
2925
  else {
2918
2926
  return [];
package/Asset.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Asset: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Asset 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 Asset or null.
@@ -30,14 +29,14 @@ export declare const Asset: {
30
29
  update(props: AssetType, client: ApolloClient<NormalizedCacheObject>): Promise<AssetType>;
31
30
  /**
32
31
  * Delete a single Asset 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 Asset or null.
36
35
  */
37
36
  delete(props: AssetType, client: ApolloClient<NormalizedCacheObject>): Promise<AssetType>;
38
37
  /**
39
38
  * Retrieve a single Asset 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 Asset or null.
43
42
  */
package/Asset.js CHANGED
@@ -489,6 +489,7 @@ exports.Asset = {
489
489
  connectOrCreate: {
490
490
  where: {
491
491
  id: item.news.id !== undefined ? item.news.id : undefined,
492
+ url: item.news.url !== undefined ? item.news.url : undefined,
492
493
  title: item.news.title !== undefined ? {
493
494
  equals: item.news.title
494
495
  } : undefined,
@@ -572,7 +573,6 @@ exports.Asset = {
572
573
  },
573
574
  /**
574
575
  * Update a single Asset record.
575
- * @param id - Unique identifier of the record to update.
576
576
  * @param props - Properties to update.
577
577
  * @param client - Apollo Client instance.
578
578
  * @returns The updated Asset or null.
@@ -831,9 +831,8 @@ exports.Asset = {
831
831
  const variables = {
832
832
  where: {
833
833
  id: props.id !== undefined ? props.id : undefined,
834
- name: props.name !== undefined ? {
835
- equals: props.name
836
- } : undefined,
834
+ symbol: props.symbol !== undefined ? props.symbol : undefined,
835
+ name: props.name !== undefined ? props.name : undefined,
837
836
  },
838
837
  data: {
839
838
  type: props.type !== undefined ? {
@@ -1484,6 +1483,9 @@ exports.Asset = {
1484
1483
  title: item.news.title !== undefined ? {
1485
1484
  equals: item.news.title
1486
1485
  } : undefined,
1486
+ url: item.news.url !== undefined ? {
1487
+ equals: item.news.url
1488
+ } : undefined,
1487
1489
  },
1488
1490
  update: {
1489
1491
  title: item.news.title !== undefined ? {
@@ -1552,6 +1554,7 @@ exports.Asset = {
1552
1554
  connectOrCreate: {
1553
1555
  where: {
1554
1556
  id: item.news.id !== undefined ? item.news.id : undefined,
1557
+ url: item.news.url !== undefined ? item.news.url : undefined,
1555
1558
  title: item.news.title !== undefined ? {
1556
1559
  equals: item.news.title
1557
1560
  } : undefined,
@@ -1597,7 +1600,7 @@ exports.Asset = {
1597
1600
  },
1598
1601
  /**
1599
1602
  * Delete a single Asset record.
1600
- * @param id - Unique identifier of the record to delete.
1603
+ * @param props - Properties to update.
1601
1604
  * @param client - Apollo Client instance.
1602
1605
  * @returns The deleted Asset or null.
1603
1606
  */
@@ -1875,7 +1878,7 @@ exports.Asset = {
1875
1878
  },
1876
1879
  /**
1877
1880
  * Retrieve a single Asset record by ID.
1878
- * @param id - Unique identifier of the record.
1881
+ * @param props - Properties to update.
1879
1882
  * @param client - Apollo Client instance.
1880
1883
  * @returns The retrieved Asset or null.
1881
1884
  */
@@ -2136,6 +2139,9 @@ exports.Asset = {
2136
2139
  id: props.id !== undefined ? {
2137
2140
  equals: props.id
2138
2141
  } : undefined,
2142
+ symbol: props.symbol !== undefined ? {
2143
+ equals: props.symbol
2144
+ } : undefined,
2139
2145
  name: props.name !== undefined ? {
2140
2146
  equals: props.name
2141
2147
  } : undefined,
@@ -2161,7 +2167,7 @@ exports.Asset = {
2161
2167
  var _a, _b;
2162
2168
  const GET_ALL_ASSET = (0, client_1.gql) `
2163
2169
  query getAllAsset {
2164
- Assets {
2170
+ assets {
2165
2171
  id
2166
2172
  symbol
2167
2173
  name
@@ -2413,7 +2419,7 @@ exports.Asset = {
2413
2419
  const response = await client.query({ query: GET_ALL_ASSET });
2414
2420
  if (response.errors && response.errors.length > 0)
2415
2421
  throw new Error(response.errors[0].message);
2416
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Assets) !== null && _b !== void 0 ? _b : null;
2422
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.assets) !== null && _b !== void 0 ? _b : null;
2417
2423
  }
2418
2424
  catch (error) {
2419
2425
  console.error('Error in getAllAsset:', error);
@@ -2429,7 +2435,7 @@ exports.Asset = {
2429
2435
  async findMany(props, client) {
2430
2436
  const FIND_MANY_ASSET = (0, client_1.gql) `
2431
2437
  query findManyAsset($where: AssetWhereInput!) {
2432
- Assets(where: $where) {
2438
+ assets(where: $where) {
2433
2439
  id
2434
2440
  symbol
2435
2441
  name
@@ -2682,6 +2688,9 @@ exports.Asset = {
2682
2688
  id: props.id !== undefined ? {
2683
2689
  equals: props.id
2684
2690
  } : undefined,
2691
+ symbol: props.symbol !== undefined ? {
2692
+ equals: props.symbol
2693
+ } : undefined,
2685
2694
  name: props.name !== undefined ? {
2686
2695
  equals: props.name
2687
2696
  } : undefined,
@@ -2693,7 +2702,7 @@ exports.Asset = {
2693
2702
  if (response.errors && response.errors.length > 0)
2694
2703
  throw new Error(response.errors[0].message);
2695
2704
  if (response && response.data && response.data.Assets) {
2696
- return response.data.Assets;
2705
+ return response.data.assets;
2697
2706
  }
2698
2707
  else {
2699
2708
  return [];
@@ -22,7 +22,6 @@ export declare const Authenticator: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Authenticator 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 Authenticator or null.
@@ -30,14 +29,14 @@ export declare const Authenticator: {
30
29
  update(props: AuthenticatorType, client: ApolloClient<NormalizedCacheObject>): Promise<AuthenticatorType>;
31
30
  /**
32
31
  * Delete a single Authenticator 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 Authenticator or null.
36
35
  */
37
36
  delete(props: AuthenticatorType, client: ApolloClient<NormalizedCacheObject>): Promise<AuthenticatorType>;
38
37
  /**
39
38
  * Retrieve a single Authenticator 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 Authenticator or null.
43
42
  */
package/Authenticator.js CHANGED
@@ -504,7 +504,6 @@ exports.Authenticator = {
504
504
  },
505
505
  /**
506
506
  * Update a single Authenticator record.
507
- * @param id - Unique identifier of the record to update.
508
507
  * @param props - Properties to update.
509
508
  * @param client - Apollo Client instance.
510
509
  * @returns The updated Authenticator or null.
@@ -1281,7 +1280,7 @@ exports.Authenticator = {
1281
1280
  },
1282
1281
  /**
1283
1282
  * Delete a single Authenticator record.
1284
- * @param id - Unique identifier of the record to delete.
1283
+ * @param props - Properties to update.
1285
1284
  * @param client - Apollo Client instance.
1286
1285
  * @returns The deleted Authenticator or null.
1287
1286
  */
@@ -1573,7 +1572,7 @@ exports.Authenticator = {
1573
1572
  },
1574
1573
  /**
1575
1574
  * Retrieve a single Authenticator record by ID.
1576
- * @param id - Unique identifier of the record.
1575
+ * @param props - Properties to update.
1577
1576
  * @param client - Apollo Client instance.
1578
1577
  * @returns The retrieved Authenticator or null.
1579
1578
  */
@@ -1870,7 +1869,7 @@ exports.Authenticator = {
1870
1869
  var _a, _b;
1871
1870
  const GET_ALL_AUTHENTICATOR = (0, client_1.gql) `
1872
1871
  query getAllAuthenticator {
1873
- Authenticators {
1872
+ authenticators {
1874
1873
  id
1875
1874
  userId
1876
1875
  credentialID
@@ -2136,7 +2135,7 @@ exports.Authenticator = {
2136
2135
  const response = await client.query({ query: GET_ALL_AUTHENTICATOR });
2137
2136
  if (response.errors && response.errors.length > 0)
2138
2137
  throw new Error(response.errors[0].message);
2139
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Authenticators) !== null && _b !== void 0 ? _b : null;
2138
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.authenticators) !== null && _b !== void 0 ? _b : null;
2140
2139
  }
2141
2140
  catch (error) {
2142
2141
  console.error('Error in getAllAuthenticator:', error);
@@ -2152,7 +2151,7 @@ exports.Authenticator = {
2152
2151
  async findMany(props, client) {
2153
2152
  const FIND_MANY_AUTHENTICATOR = (0, client_1.gql) `
2154
2153
  query findManyAuthenticator($where: AuthenticatorWhereInput!) {
2155
- Authenticators(where: $where) {
2154
+ authenticators(where: $where) {
2156
2155
  id
2157
2156
  userId
2158
2157
  credentialID
@@ -2427,7 +2426,7 @@ exports.Authenticator = {
2427
2426
  if (response.errors && response.errors.length > 0)
2428
2427
  throw new Error(response.errors[0].message);
2429
2428
  if (response && response.data && response.data.Authenticators) {
2430
- return response.data.Authenticators;
2429
+ return response.data.authenticators;
2431
2430
  }
2432
2431
  else {
2433
2432
  return [];
package/Customer.d.ts CHANGED
@@ -22,7 +22,6 @@ export declare const Customer: {
22
22
  } | null>;
23
23
  /**
24
24
  * Update a single Customer 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 Customer or null.
@@ -30,14 +29,14 @@ export declare const Customer: {
30
29
  update(props: CustomerType, client: ApolloClient<NormalizedCacheObject>): Promise<CustomerType>;
31
30
  /**
32
31
  * Delete a single Customer 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 Customer or null.
36
35
  */
37
36
  delete(props: CustomerType, client: ApolloClient<NormalizedCacheObject>): Promise<CustomerType>;
38
37
  /**
39
38
  * Retrieve a single Customer 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 Customer or null.
43
42
  */
package/Customer.js CHANGED
@@ -504,7 +504,6 @@ exports.Customer = {
504
504
  },
505
505
  /**
506
506
  * Update a single Customer record.
507
- * @param id - Unique identifier of the record to update.
508
507
  * @param props - Properties to update.
509
508
  * @param client - Apollo Client instance.
510
509
  * @returns The updated Customer or null.
@@ -1264,7 +1263,7 @@ exports.Customer = {
1264
1263
  },
1265
1264
  /**
1266
1265
  * Delete a single Customer record.
1267
- * @param id - Unique identifier of the record to delete.
1266
+ * @param props - Properties to update.
1268
1267
  * @param client - Apollo Client instance.
1269
1268
  * @returns The deleted Customer or null.
1270
1269
  */
@@ -1556,7 +1555,7 @@ exports.Customer = {
1556
1555
  },
1557
1556
  /**
1558
1557
  * Retrieve a single Customer record by ID.
1559
- * @param id - Unique identifier of the record.
1558
+ * @param props - Properties to update.
1560
1559
  * @param client - Apollo Client instance.
1561
1560
  * @returns The retrieved Customer or null.
1562
1561
  */
@@ -1856,7 +1855,7 @@ exports.Customer = {
1856
1855
  var _a, _b;
1857
1856
  const GET_ALL_CUSTOMER = (0, client_1.gql) `
1858
1857
  query getAllCustomer {
1859
- Customers {
1858
+ customers {
1860
1859
  id
1861
1860
  authUserId
1862
1861
  name
@@ -2122,7 +2121,7 @@ exports.Customer = {
2122
2121
  const response = await client.query({ query: GET_ALL_CUSTOMER });
2123
2122
  if (response.errors && response.errors.length > 0)
2124
2123
  throw new Error(response.errors[0].message);
2125
- return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.Customers) !== null && _b !== void 0 ? _b : null;
2124
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
2126
2125
  }
2127
2126
  catch (error) {
2128
2127
  console.error('Error in getAllCustomer:', error);
@@ -2138,7 +2137,7 @@ exports.Customer = {
2138
2137
  async findMany(props, client) {
2139
2138
  const FIND_MANY_CUSTOMER = (0, client_1.gql) `
2140
2139
  query findManyCustomer($where: CustomerWhereInput!) {
2141
- Customers(where: $where) {
2140
+ customers(where: $where) {
2142
2141
  id
2143
2142
  authUserId
2144
2143
  name
@@ -2416,7 +2415,7 @@ exports.Customer = {
2416
2415
  if (response.errors && response.errors.length > 0)
2417
2416
  throw new Error(response.errors[0].message);
2418
2417
  if (response && response.data && response.data.Customers) {
2419
- return response.data.Customers;
2418
+ return response.data.customers;
2420
2419
  }
2421
2420
  else {
2422
2421
  return [];