adaptic-backend 1.0.341 → 1.0.342

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 (81) hide show
  1. package/Account.cjs +150 -22
  2. package/Action.cjs +90 -12
  3. package/Alert.cjs +71 -45
  4. package/Allocation.cjs +86 -37
  5. package/AlpacaAccount.cjs +308 -36
  6. package/Asset.cjs +839 -50
  7. package/Authenticator.cjs +71 -36
  8. package/Customer.cjs +70 -62
  9. package/EconomicEvent.cjs +75 -12
  10. package/MarketSentiment.cjs +75 -2
  11. package/NewsArticle.cjs +195 -14
  12. package/NewsArticleAssetSentiment.cjs +45 -14
  13. package/ScheduledOptionOrder.cjs +15 -2
  14. package/Session.cjs +56 -36
  15. package/Trade.cjs +210 -22
  16. package/User.cjs +170 -29
  17. package/VerificationToken.cjs +33 -2
  18. package/esm/Account.d.ts.map +1 -1
  19. package/esm/Account.js.map +1 -1
  20. package/esm/Account.mjs +150 -22
  21. package/esm/Action.d.ts.map +1 -1
  22. package/esm/Action.js.map +1 -1
  23. package/esm/Action.mjs +90 -12
  24. package/esm/Alert.d.ts.map +1 -1
  25. package/esm/Alert.js.map +1 -1
  26. package/esm/Alert.mjs +71 -45
  27. package/esm/Allocation.d.ts.map +1 -1
  28. package/esm/Allocation.js.map +1 -1
  29. package/esm/Allocation.mjs +86 -37
  30. package/esm/AlpacaAccount.d.ts.map +1 -1
  31. package/esm/AlpacaAccount.js.map +1 -1
  32. package/esm/AlpacaAccount.mjs +308 -36
  33. package/esm/Asset.d.ts.map +1 -1
  34. package/esm/Asset.js.map +1 -1
  35. package/esm/Asset.mjs +839 -50
  36. package/esm/Authenticator.d.ts.map +1 -1
  37. package/esm/Authenticator.js.map +1 -1
  38. package/esm/Authenticator.mjs +71 -36
  39. package/esm/Customer.d.ts.map +1 -1
  40. package/esm/Customer.js.map +1 -1
  41. package/esm/Customer.mjs +70 -62
  42. package/esm/EconomicEvent.d.ts.map +1 -1
  43. package/esm/EconomicEvent.js.map +1 -1
  44. package/esm/EconomicEvent.mjs +75 -12
  45. package/esm/MarketSentiment.d.ts.map +1 -1
  46. package/esm/MarketSentiment.js.map +1 -1
  47. package/esm/MarketSentiment.mjs +75 -2
  48. package/esm/NewsArticle.d.ts.map +1 -1
  49. package/esm/NewsArticle.js.map +1 -1
  50. package/esm/NewsArticle.mjs +195 -14
  51. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  52. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  53. package/esm/NewsArticleAssetSentiment.mjs +45 -14
  54. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  55. package/esm/ScheduledOptionOrder.js.map +1 -1
  56. package/esm/ScheduledOptionOrder.mjs +15 -2
  57. package/esm/Session.d.ts.map +1 -1
  58. package/esm/Session.js.map +1 -1
  59. package/esm/Session.mjs +56 -36
  60. package/esm/Trade.d.ts.map +1 -1
  61. package/esm/Trade.js.map +1 -1
  62. package/esm/Trade.mjs +210 -22
  63. package/esm/User.d.ts.map +1 -1
  64. package/esm/User.js.map +1 -1
  65. package/esm/User.mjs +170 -29
  66. package/esm/VerificationToken.d.ts.map +1 -1
  67. package/esm/VerificationToken.js.map +1 -1
  68. package/esm/VerificationToken.mjs +33 -2
  69. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  70. package/esm/generated/typegraphql-prisma/enhance.mjs +1 -1
  71. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
  72. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
  73. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
  74. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.mjs +7 -7
  75. package/generated/typegraphql-prisma/enhance.cjs +1 -1
  76. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.cjs +6 -6
  78. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
  79. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
  80. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
  81. package/package.json +1 -1
package/AlpacaAccount.cjs CHANGED
@@ -222,12 +222,10 @@ exports.AlpacaAccount = {
222
222
  : { connectOrCreate: props.user.accounts.map((item) => ({
223
223
  where: {
224
224
  id: item.id !== undefined ? item.id : undefined,
225
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
225
226
  userId: item.userId !== undefined ? {
226
227
  equals: item.userId
227
228
  } : undefined,
228
- providerAccountId: item.providerAccountId !== undefined ? {
229
- equals: item.providerAccountId
230
- } : undefined,
231
229
  },
232
230
  create: {
233
231
  type: item.type !== undefined ? item.type : undefined,
@@ -475,8 +473,66 @@ exports.AlpacaAccount = {
475
473
  const variables = {
476
474
  where: {
477
475
  id: props.id !== undefined ? props.id : undefined,
478
- userId: props.userId !== undefined ? {
479
- equals: props.userId
476
+ type: props.type !== undefined ? {
477
+ equals: props.type
478
+ } : undefined,
479
+ APIKey: props.APIKey !== undefined ? {
480
+ equals: props.APIKey
481
+ } : undefined,
482
+ APISecret: props.APISecret !== undefined ? {
483
+ equals: props.APISecret
484
+ } : undefined,
485
+ configuration: props.configuration !== undefined ? {
486
+ equals: props.configuration
487
+ } : undefined,
488
+ cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
489
+ equals: props.cryptoTradingPairs
490
+ } : undefined,
491
+ cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
492
+ equals: props.cryptoTradeAllocationPct
493
+ } : undefined,
494
+ tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
495
+ equals: props.tradeAllocationPct
496
+ } : undefined,
497
+ minPercentageChange: props.minPercentageChange !== undefined ? {
498
+ equals: props.minPercentageChange
499
+ } : undefined,
500
+ volumeThreshold: props.volumeThreshold !== undefined ? {
501
+ equals: props.volumeThreshold
502
+ } : undefined,
503
+ portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
504
+ equals: props.portfolioTrailPercent
505
+ } : undefined,
506
+ portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
507
+ equals: props.portfolioProfitThresholdPercent
508
+ } : undefined,
509
+ reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
510
+ equals: props.reducedPortfolioTrailPercent
511
+ } : undefined,
512
+ defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
513
+ equals: props.defaultTrailingStopPercentage100
514
+ } : undefined,
515
+ firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
516
+ equals: props.firstTrailReductionThreshold100
517
+ } : undefined,
518
+ secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
519
+ equals: props.secondTrailReductionThreshold100
520
+ } : undefined,
521
+ firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
522
+ equals: props.firstReducedTrailPercentage100
523
+ } : undefined,
524
+ secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
525
+ equals: props.secondReducedTrailPercentage100
526
+ } : undefined,
527
+ minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
528
+ equals: props.minimumPriceChangePercent100
529
+ } : undefined,
530
+ userId: props.userId !== undefined ? props.userId : undefined,
531
+ createdAt: props.createdAt !== undefined ? {
532
+ equals: props.createdAt
533
+ } : undefined,
534
+ updatedAt: props.updatedAt !== undefined ? {
535
+ equals: props.updatedAt
480
536
  } : undefined,
481
537
  },
482
538
  data: {
@@ -718,12 +774,10 @@ exports.AlpacaAccount = {
718
774
  } : { upsert: props.user.accounts.map((item) => ({
719
775
  where: {
720
776
  id: item.id !== undefined ? item.id : undefined,
777
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
721
778
  userId: item.userId !== undefined ? {
722
779
  equals: item.userId
723
780
  } : undefined,
724
- providerAccountId: item.providerAccountId !== undefined ? {
725
- equals: item.providerAccountId
726
- } : undefined,
727
781
  },
728
782
  update: {
729
783
  id: item.id !== undefined ? {
@@ -890,12 +944,10 @@ exports.AlpacaAccount = {
890
944
  : { connectOrCreate: props.user.accounts.map((item) => ({
891
945
  where: {
892
946
  id: item.id !== undefined ? item.id : undefined,
947
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
893
948
  userId: item.userId !== undefined ? {
894
949
  equals: item.userId
895
950
  } : undefined,
896
- providerAccountId: item.providerAccountId !== undefined ? {
897
- equals: item.providerAccountId
898
- } : undefined,
899
951
  },
900
952
  create: {
901
953
  type: item.type !== undefined ? item.type : undefined,
@@ -1059,8 +1111,66 @@ exports.AlpacaAccount = {
1059
1111
  const variables = {
1060
1112
  where: {
1061
1113
  id: props.id !== undefined ? props.id : undefined,
1062
- userId: props.userId !== undefined ? {
1063
- equals: props.userId
1114
+ type: props.type !== undefined ? {
1115
+ equals: props.type
1116
+ } : undefined,
1117
+ APIKey: props.APIKey !== undefined ? {
1118
+ equals: props.APIKey
1119
+ } : undefined,
1120
+ APISecret: props.APISecret !== undefined ? {
1121
+ equals: props.APISecret
1122
+ } : undefined,
1123
+ configuration: props.configuration !== undefined ? {
1124
+ equals: props.configuration
1125
+ } : undefined,
1126
+ cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
1127
+ equals: props.cryptoTradingPairs
1128
+ } : undefined,
1129
+ cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
1130
+ equals: props.cryptoTradeAllocationPct
1131
+ } : undefined,
1132
+ tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
1133
+ equals: props.tradeAllocationPct
1134
+ } : undefined,
1135
+ minPercentageChange: props.minPercentageChange !== undefined ? {
1136
+ equals: props.minPercentageChange
1137
+ } : undefined,
1138
+ volumeThreshold: props.volumeThreshold !== undefined ? {
1139
+ equals: props.volumeThreshold
1140
+ } : undefined,
1141
+ portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
1142
+ equals: props.portfolioTrailPercent
1143
+ } : undefined,
1144
+ portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
1145
+ equals: props.portfolioProfitThresholdPercent
1146
+ } : undefined,
1147
+ reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
1148
+ equals: props.reducedPortfolioTrailPercent
1149
+ } : undefined,
1150
+ defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
1151
+ equals: props.defaultTrailingStopPercentage100
1152
+ } : undefined,
1153
+ firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
1154
+ equals: props.firstTrailReductionThreshold100
1155
+ } : undefined,
1156
+ secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
1157
+ equals: props.secondTrailReductionThreshold100
1158
+ } : undefined,
1159
+ firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
1160
+ equals: props.firstReducedTrailPercentage100
1161
+ } : undefined,
1162
+ secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
1163
+ equals: props.secondReducedTrailPercentage100
1164
+ } : undefined,
1165
+ minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
1166
+ equals: props.minimumPriceChangePercent100
1167
+ } : undefined,
1168
+ userId: props.userId !== undefined ? props.userId : undefined,
1169
+ createdAt: props.createdAt !== undefined ? {
1170
+ equals: props.createdAt
1171
+ } : undefined,
1172
+ updatedAt: props.updatedAt !== undefined ? {
1173
+ equals: props.updatedAt
1064
1174
  } : undefined,
1065
1175
  },
1066
1176
  create: {
@@ -1173,12 +1283,10 @@ exports.AlpacaAccount = {
1173
1283
  : { connectOrCreate: props.user.accounts.map((item) => ({
1174
1284
  where: {
1175
1285
  id: item.id !== undefined ? item.id : undefined,
1286
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1176
1287
  userId: item.userId !== undefined ? {
1177
1288
  equals: item.userId
1178
1289
  } : undefined,
1179
- providerAccountId: item.providerAccountId !== undefined ? {
1180
- equals: item.providerAccountId
1181
- } : undefined,
1182
1290
  },
1183
1291
  create: {
1184
1292
  type: item.type !== undefined ? item.type : undefined,
@@ -1487,12 +1595,10 @@ exports.AlpacaAccount = {
1487
1595
  } : { upsert: props.user.accounts.map((item) => ({
1488
1596
  where: {
1489
1597
  id: item.id !== undefined ? item.id : undefined,
1598
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1490
1599
  userId: item.userId !== undefined ? {
1491
1600
  equals: item.userId
1492
1601
  } : undefined,
1493
- providerAccountId: item.providerAccountId !== undefined ? {
1494
- equals: item.providerAccountId
1495
- } : undefined,
1496
1602
  },
1497
1603
  update: {
1498
1604
  id: item.id !== undefined ? {
@@ -1659,12 +1765,10 @@ exports.AlpacaAccount = {
1659
1765
  : { connectOrCreate: props.user.accounts.map((item) => ({
1660
1766
  where: {
1661
1767
  id: item.id !== undefined ? item.id : undefined,
1768
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1662
1769
  userId: item.userId !== undefined ? {
1663
1770
  equals: item.userId
1664
1771
  } : undefined,
1665
- providerAccountId: item.providerAccountId !== undefined ? {
1666
- equals: item.providerAccountId
1667
- } : undefined,
1668
1772
  },
1669
1773
  create: {
1670
1774
  type: item.type !== undefined ? item.type : undefined,
@@ -1828,8 +1932,66 @@ exports.AlpacaAccount = {
1828
1932
  const variables = props.map(prop => ({
1829
1933
  where: {
1830
1934
  id: prop.id !== undefined ? prop.id : undefined,
1831
- userId: prop.userId !== undefined ? {
1832
- equals: prop.userId
1935
+ type: prop.type !== undefined ? {
1936
+ equals: prop.type
1937
+ } : undefined,
1938
+ APIKey: prop.APIKey !== undefined ? {
1939
+ equals: prop.APIKey
1940
+ } : undefined,
1941
+ APISecret: prop.APISecret !== undefined ? {
1942
+ equals: prop.APISecret
1943
+ } : undefined,
1944
+ configuration: prop.configuration !== undefined ? {
1945
+ equals: prop.configuration
1946
+ } : undefined,
1947
+ cryptoTradingPairs: prop.cryptoTradingPairs !== undefined ? {
1948
+ equals: prop.cryptoTradingPairs
1949
+ } : undefined,
1950
+ cryptoTradeAllocationPct: prop.cryptoTradeAllocationPct !== undefined ? {
1951
+ equals: prop.cryptoTradeAllocationPct
1952
+ } : undefined,
1953
+ tradeAllocationPct: prop.tradeAllocationPct !== undefined ? {
1954
+ equals: prop.tradeAllocationPct
1955
+ } : undefined,
1956
+ minPercentageChange: prop.minPercentageChange !== undefined ? {
1957
+ equals: prop.minPercentageChange
1958
+ } : undefined,
1959
+ volumeThreshold: prop.volumeThreshold !== undefined ? {
1960
+ equals: prop.volumeThreshold
1961
+ } : undefined,
1962
+ portfolioTrailPercent: prop.portfolioTrailPercent !== undefined ? {
1963
+ equals: prop.portfolioTrailPercent
1964
+ } : undefined,
1965
+ portfolioProfitThresholdPercent: prop.portfolioProfitThresholdPercent !== undefined ? {
1966
+ equals: prop.portfolioProfitThresholdPercent
1967
+ } : undefined,
1968
+ reducedPortfolioTrailPercent: prop.reducedPortfolioTrailPercent !== undefined ? {
1969
+ equals: prop.reducedPortfolioTrailPercent
1970
+ } : undefined,
1971
+ defaultTrailingStopPercentage100: prop.defaultTrailingStopPercentage100 !== undefined ? {
1972
+ equals: prop.defaultTrailingStopPercentage100
1973
+ } : undefined,
1974
+ firstTrailReductionThreshold100: prop.firstTrailReductionThreshold100 !== undefined ? {
1975
+ equals: prop.firstTrailReductionThreshold100
1976
+ } : undefined,
1977
+ secondTrailReductionThreshold100: prop.secondTrailReductionThreshold100 !== undefined ? {
1978
+ equals: prop.secondTrailReductionThreshold100
1979
+ } : undefined,
1980
+ firstReducedTrailPercentage100: prop.firstReducedTrailPercentage100 !== undefined ? {
1981
+ equals: prop.firstReducedTrailPercentage100
1982
+ } : undefined,
1983
+ secondReducedTrailPercentage100: prop.secondReducedTrailPercentage100 !== undefined ? {
1984
+ equals: prop.secondReducedTrailPercentage100
1985
+ } : undefined,
1986
+ minimumPriceChangePercent100: prop.minimumPriceChangePercent100 !== undefined ? {
1987
+ equals: prop.minimumPriceChangePercent100
1988
+ } : undefined,
1989
+ userId: prop.userId !== undefined ? prop.userId : undefined,
1990
+ createdAt: prop.createdAt !== undefined ? {
1991
+ equals: prop.createdAt
1992
+ } : undefined,
1993
+ updatedAt: prop.updatedAt !== undefined ? {
1994
+ equals: prop.updatedAt
1833
1995
  } : undefined,
1834
1996
  },
1835
1997
  data: {
@@ -2071,12 +2233,10 @@ exports.AlpacaAccount = {
2071
2233
  } : { upsert: prop.user.accounts.map((item) => ({
2072
2234
  where: {
2073
2235
  id: item.id !== undefined ? item.id : undefined,
2236
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2074
2237
  userId: item.userId !== undefined ? {
2075
2238
  equals: item.userId
2076
2239
  } : undefined,
2077
- providerAccountId: item.providerAccountId !== undefined ? {
2078
- equals: item.providerAccountId
2079
- } : undefined,
2080
2240
  },
2081
2241
  update: {
2082
2242
  id: item.id !== undefined ? {
@@ -2243,12 +2403,10 @@ exports.AlpacaAccount = {
2243
2403
  : { connectOrCreate: prop.user.accounts.map((item) => ({
2244
2404
  where: {
2245
2405
  id: item.id !== undefined ? item.id : undefined,
2406
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2246
2407
  userId: item.userId !== undefined ? {
2247
2408
  equals: item.userId
2248
2409
  } : undefined,
2249
- providerAccountId: item.providerAccountId !== undefined ? {
2250
- equals: item.providerAccountId
2251
- } : undefined,
2252
2410
  },
2253
2411
  create: {
2254
2412
  type: item.type !== undefined ? item.type : undefined,
@@ -2486,8 +2644,66 @@ exports.AlpacaAccount = {
2486
2644
  const variables = {
2487
2645
  where: whereInput ? whereInput : {
2488
2646
  id: props.id !== undefined ? props.id : undefined,
2489
- userId: props.userId !== undefined ? {
2490
- equals: props.userId
2647
+ type: props.type !== undefined ? {
2648
+ equals: props.type
2649
+ } : undefined,
2650
+ APIKey: props.APIKey !== undefined ? {
2651
+ equals: props.APIKey
2652
+ } : undefined,
2653
+ APISecret: props.APISecret !== undefined ? {
2654
+ equals: props.APISecret
2655
+ } : undefined,
2656
+ configuration: props.configuration !== undefined ? {
2657
+ equals: props.configuration
2658
+ } : undefined,
2659
+ cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
2660
+ equals: props.cryptoTradingPairs
2661
+ } : undefined,
2662
+ cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
2663
+ equals: props.cryptoTradeAllocationPct
2664
+ } : undefined,
2665
+ tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
2666
+ equals: props.tradeAllocationPct
2667
+ } : undefined,
2668
+ minPercentageChange: props.minPercentageChange !== undefined ? {
2669
+ equals: props.minPercentageChange
2670
+ } : undefined,
2671
+ volumeThreshold: props.volumeThreshold !== undefined ? {
2672
+ equals: props.volumeThreshold
2673
+ } : undefined,
2674
+ portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
2675
+ equals: props.portfolioTrailPercent
2676
+ } : undefined,
2677
+ portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
2678
+ equals: props.portfolioProfitThresholdPercent
2679
+ } : undefined,
2680
+ reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
2681
+ equals: props.reducedPortfolioTrailPercent
2682
+ } : undefined,
2683
+ defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
2684
+ equals: props.defaultTrailingStopPercentage100
2685
+ } : undefined,
2686
+ firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
2687
+ equals: props.firstTrailReductionThreshold100
2688
+ } : undefined,
2689
+ secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
2690
+ equals: props.secondTrailReductionThreshold100
2691
+ } : undefined,
2692
+ firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
2693
+ equals: props.firstReducedTrailPercentage100
2694
+ } : undefined,
2695
+ secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
2696
+ equals: props.secondReducedTrailPercentage100
2697
+ } : undefined,
2698
+ minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
2699
+ equals: props.minimumPriceChangePercent100
2700
+ } : undefined,
2701
+ userId: props.userId !== undefined ? props.userId : undefined,
2702
+ createdAt: props.createdAt !== undefined ? {
2703
+ equals: props.createdAt
2704
+ } : undefined,
2705
+ updatedAt: props.updatedAt !== undefined ? {
2706
+ equals: props.updatedAt
2491
2707
  } : undefined,
2492
2708
  },
2493
2709
  };
@@ -2623,11 +2839,67 @@ exports.AlpacaAccount = {
2623
2839
  }`;
2624
2840
  const variables = {
2625
2841
  where: whereInput ? whereInput : {
2626
- id: props.id !== undefined ? {
2627
- equals: props.id
2842
+ id: props.id !== undefined ? props.id : undefined,
2843
+ type: props.type !== undefined ? {
2844
+ equals: props.type
2845
+ } : undefined,
2846
+ APIKey: props.APIKey !== undefined ? {
2847
+ equals: props.APIKey
2848
+ } : undefined,
2849
+ APISecret: props.APISecret !== undefined ? {
2850
+ equals: props.APISecret
2851
+ } : undefined,
2852
+ configuration: props.configuration !== undefined ? {
2853
+ equals: props.configuration
2854
+ } : undefined,
2855
+ cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
2856
+ equals: props.cryptoTradingPairs
2857
+ } : undefined,
2858
+ cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
2859
+ equals: props.cryptoTradeAllocationPct
2628
2860
  } : undefined,
2629
- userId: props.userId !== undefined ? {
2630
- equals: props.userId
2861
+ tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
2862
+ equals: props.tradeAllocationPct
2863
+ } : undefined,
2864
+ minPercentageChange: props.minPercentageChange !== undefined ? {
2865
+ equals: props.minPercentageChange
2866
+ } : undefined,
2867
+ volumeThreshold: props.volumeThreshold !== undefined ? {
2868
+ equals: props.volumeThreshold
2869
+ } : undefined,
2870
+ portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
2871
+ equals: props.portfolioTrailPercent
2872
+ } : undefined,
2873
+ portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
2874
+ equals: props.portfolioProfitThresholdPercent
2875
+ } : undefined,
2876
+ reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
2877
+ equals: props.reducedPortfolioTrailPercent
2878
+ } : undefined,
2879
+ defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
2880
+ equals: props.defaultTrailingStopPercentage100
2881
+ } : undefined,
2882
+ firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
2883
+ equals: props.firstTrailReductionThreshold100
2884
+ } : undefined,
2885
+ secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
2886
+ equals: props.secondTrailReductionThreshold100
2887
+ } : undefined,
2888
+ firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
2889
+ equals: props.firstReducedTrailPercentage100
2890
+ } : undefined,
2891
+ secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
2892
+ equals: props.secondReducedTrailPercentage100
2893
+ } : undefined,
2894
+ minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
2895
+ equals: props.minimumPriceChangePercent100
2896
+ } : undefined,
2897
+ userId: props.userId !== undefined ? props.userId : undefined,
2898
+ createdAt: props.createdAt !== undefined ? {
2899
+ equals: props.createdAt
2900
+ } : undefined,
2901
+ updatedAt: props.updatedAt !== undefined ? {
2902
+ equals: props.updatedAt
2631
2903
  } : undefined,
2632
2904
  },
2633
2905
  };