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.
- package/Account.cjs +150 -22
- package/Action.cjs +90 -12
- package/Alert.cjs +71 -45
- package/Allocation.cjs +86 -37
- package/AlpacaAccount.cjs +308 -36
- package/Asset.cjs +839 -50
- package/Authenticator.cjs +71 -36
- package/Customer.cjs +70 -62
- package/EconomicEvent.cjs +75 -12
- package/MarketSentiment.cjs +75 -2
- package/NewsArticle.cjs +195 -14
- package/NewsArticleAssetSentiment.cjs +45 -14
- package/ScheduledOptionOrder.cjs +15 -2
- package/Session.cjs +56 -36
- package/Trade.cjs +210 -22
- package/User.cjs +170 -29
- package/VerificationToken.cjs +33 -2
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +150 -22
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +90 -12
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +71 -45
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +86 -37
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +308 -36
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +839 -50
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +71 -36
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +70 -62
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +75 -12
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +75 -2
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +195 -14
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +45 -14
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +15 -2
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +56 -36
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +210 -22
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +170 -29
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +33 -2
- package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/esm/generated/typegraphql-prisma/enhance.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.mjs +7 -7
- package/generated/typegraphql-prisma/enhance.cjs +1 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.cjs +6 -6
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
- package/package.json +1 -1
package/esm/AlpacaAccount.mjs
CHANGED
@@ -218,12 +218,10 @@ export const AlpacaAccount = {
|
|
218
218
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
219
219
|
where: {
|
220
220
|
id: item.id !== undefined ? item.id : undefined,
|
221
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
221
222
|
userId: item.userId !== undefined ? {
|
222
223
|
equals: item.userId
|
223
224
|
} : undefined,
|
224
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
225
|
-
equals: item.providerAccountId
|
226
|
-
} : undefined,
|
227
225
|
},
|
228
226
|
create: {
|
229
227
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -469,8 +467,66 @@ export const AlpacaAccount = {
|
|
469
467
|
const variables = {
|
470
468
|
where: {
|
471
469
|
id: props.id !== undefined ? props.id : undefined,
|
472
|
-
|
473
|
-
equals: props.
|
470
|
+
type: props.type !== undefined ? {
|
471
|
+
equals: props.type
|
472
|
+
} : undefined,
|
473
|
+
APIKey: props.APIKey !== undefined ? {
|
474
|
+
equals: props.APIKey
|
475
|
+
} : undefined,
|
476
|
+
APISecret: props.APISecret !== undefined ? {
|
477
|
+
equals: props.APISecret
|
478
|
+
} : undefined,
|
479
|
+
configuration: props.configuration !== undefined ? {
|
480
|
+
equals: props.configuration
|
481
|
+
} : undefined,
|
482
|
+
cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
|
483
|
+
equals: props.cryptoTradingPairs
|
484
|
+
} : undefined,
|
485
|
+
cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
|
486
|
+
equals: props.cryptoTradeAllocationPct
|
487
|
+
} : undefined,
|
488
|
+
tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
|
489
|
+
equals: props.tradeAllocationPct
|
490
|
+
} : undefined,
|
491
|
+
minPercentageChange: props.minPercentageChange !== undefined ? {
|
492
|
+
equals: props.minPercentageChange
|
493
|
+
} : undefined,
|
494
|
+
volumeThreshold: props.volumeThreshold !== undefined ? {
|
495
|
+
equals: props.volumeThreshold
|
496
|
+
} : undefined,
|
497
|
+
portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
|
498
|
+
equals: props.portfolioTrailPercent
|
499
|
+
} : undefined,
|
500
|
+
portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
|
501
|
+
equals: props.portfolioProfitThresholdPercent
|
502
|
+
} : undefined,
|
503
|
+
reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
|
504
|
+
equals: props.reducedPortfolioTrailPercent
|
505
|
+
} : undefined,
|
506
|
+
defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
|
507
|
+
equals: props.defaultTrailingStopPercentage100
|
508
|
+
} : undefined,
|
509
|
+
firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
|
510
|
+
equals: props.firstTrailReductionThreshold100
|
511
|
+
} : undefined,
|
512
|
+
secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
|
513
|
+
equals: props.secondTrailReductionThreshold100
|
514
|
+
} : undefined,
|
515
|
+
firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
|
516
|
+
equals: props.firstReducedTrailPercentage100
|
517
|
+
} : undefined,
|
518
|
+
secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
|
519
|
+
equals: props.secondReducedTrailPercentage100
|
520
|
+
} : undefined,
|
521
|
+
minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
|
522
|
+
equals: props.minimumPriceChangePercent100
|
523
|
+
} : undefined,
|
524
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
525
|
+
createdAt: props.createdAt !== undefined ? {
|
526
|
+
equals: props.createdAt
|
527
|
+
} : undefined,
|
528
|
+
updatedAt: props.updatedAt !== undefined ? {
|
529
|
+
equals: props.updatedAt
|
474
530
|
} : undefined,
|
475
531
|
},
|
476
532
|
data: {
|
@@ -712,12 +768,10 @@ export const AlpacaAccount = {
|
|
712
768
|
} : { upsert: props.user.accounts.map((item) => ({
|
713
769
|
where: {
|
714
770
|
id: item.id !== undefined ? item.id : undefined,
|
771
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
715
772
|
userId: item.userId !== undefined ? {
|
716
773
|
equals: item.userId
|
717
774
|
} : undefined,
|
718
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
719
|
-
equals: item.providerAccountId
|
720
|
-
} : undefined,
|
721
775
|
},
|
722
776
|
update: {
|
723
777
|
id: item.id !== undefined ? {
|
@@ -884,12 +938,10 @@ export const AlpacaAccount = {
|
|
884
938
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
885
939
|
where: {
|
886
940
|
id: item.id !== undefined ? item.id : undefined,
|
941
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
887
942
|
userId: item.userId !== undefined ? {
|
888
943
|
equals: item.userId
|
889
944
|
} : undefined,
|
890
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
891
|
-
equals: item.providerAccountId
|
892
|
-
} : undefined,
|
893
945
|
},
|
894
946
|
create: {
|
895
947
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1052,8 +1104,66 @@ export const AlpacaAccount = {
|
|
1052
1104
|
const variables = {
|
1053
1105
|
where: {
|
1054
1106
|
id: props.id !== undefined ? props.id : undefined,
|
1055
|
-
|
1056
|
-
equals: props.
|
1107
|
+
type: props.type !== undefined ? {
|
1108
|
+
equals: props.type
|
1109
|
+
} : undefined,
|
1110
|
+
APIKey: props.APIKey !== undefined ? {
|
1111
|
+
equals: props.APIKey
|
1112
|
+
} : undefined,
|
1113
|
+
APISecret: props.APISecret !== undefined ? {
|
1114
|
+
equals: props.APISecret
|
1115
|
+
} : undefined,
|
1116
|
+
configuration: props.configuration !== undefined ? {
|
1117
|
+
equals: props.configuration
|
1118
|
+
} : undefined,
|
1119
|
+
cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
|
1120
|
+
equals: props.cryptoTradingPairs
|
1121
|
+
} : undefined,
|
1122
|
+
cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
|
1123
|
+
equals: props.cryptoTradeAllocationPct
|
1124
|
+
} : undefined,
|
1125
|
+
tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
|
1126
|
+
equals: props.tradeAllocationPct
|
1127
|
+
} : undefined,
|
1128
|
+
minPercentageChange: props.minPercentageChange !== undefined ? {
|
1129
|
+
equals: props.minPercentageChange
|
1130
|
+
} : undefined,
|
1131
|
+
volumeThreshold: props.volumeThreshold !== undefined ? {
|
1132
|
+
equals: props.volumeThreshold
|
1133
|
+
} : undefined,
|
1134
|
+
portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
|
1135
|
+
equals: props.portfolioTrailPercent
|
1136
|
+
} : undefined,
|
1137
|
+
portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
|
1138
|
+
equals: props.portfolioProfitThresholdPercent
|
1139
|
+
} : undefined,
|
1140
|
+
reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
|
1141
|
+
equals: props.reducedPortfolioTrailPercent
|
1142
|
+
} : undefined,
|
1143
|
+
defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
|
1144
|
+
equals: props.defaultTrailingStopPercentage100
|
1145
|
+
} : undefined,
|
1146
|
+
firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
|
1147
|
+
equals: props.firstTrailReductionThreshold100
|
1148
|
+
} : undefined,
|
1149
|
+
secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
|
1150
|
+
equals: props.secondTrailReductionThreshold100
|
1151
|
+
} : undefined,
|
1152
|
+
firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
|
1153
|
+
equals: props.firstReducedTrailPercentage100
|
1154
|
+
} : undefined,
|
1155
|
+
secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
|
1156
|
+
equals: props.secondReducedTrailPercentage100
|
1157
|
+
} : undefined,
|
1158
|
+
minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
|
1159
|
+
equals: props.minimumPriceChangePercent100
|
1160
|
+
} : undefined,
|
1161
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
1162
|
+
createdAt: props.createdAt !== undefined ? {
|
1163
|
+
equals: props.createdAt
|
1164
|
+
} : undefined,
|
1165
|
+
updatedAt: props.updatedAt !== undefined ? {
|
1166
|
+
equals: props.updatedAt
|
1057
1167
|
} : undefined,
|
1058
1168
|
},
|
1059
1169
|
create: {
|
@@ -1166,12 +1276,10 @@ export const AlpacaAccount = {
|
|
1166
1276
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1167
1277
|
where: {
|
1168
1278
|
id: item.id !== undefined ? item.id : undefined,
|
1279
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1169
1280
|
userId: item.userId !== undefined ? {
|
1170
1281
|
equals: item.userId
|
1171
1282
|
} : undefined,
|
1172
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1173
|
-
equals: item.providerAccountId
|
1174
|
-
} : undefined,
|
1175
1283
|
},
|
1176
1284
|
create: {
|
1177
1285
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1480,12 +1588,10 @@ export const AlpacaAccount = {
|
|
1480
1588
|
} : { upsert: props.user.accounts.map((item) => ({
|
1481
1589
|
where: {
|
1482
1590
|
id: item.id !== undefined ? item.id : undefined,
|
1591
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1483
1592
|
userId: item.userId !== undefined ? {
|
1484
1593
|
equals: item.userId
|
1485
1594
|
} : undefined,
|
1486
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1487
|
-
equals: item.providerAccountId
|
1488
|
-
} : undefined,
|
1489
1595
|
},
|
1490
1596
|
update: {
|
1491
1597
|
id: item.id !== undefined ? {
|
@@ -1652,12 +1758,10 @@ export const AlpacaAccount = {
|
|
1652
1758
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1653
1759
|
where: {
|
1654
1760
|
id: item.id !== undefined ? item.id : undefined,
|
1761
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1655
1762
|
userId: item.userId !== undefined ? {
|
1656
1763
|
equals: item.userId
|
1657
1764
|
} : undefined,
|
1658
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1659
|
-
equals: item.providerAccountId
|
1660
|
-
} : undefined,
|
1661
1765
|
},
|
1662
1766
|
create: {
|
1663
1767
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1820,8 +1924,66 @@ export const AlpacaAccount = {
|
|
1820
1924
|
const variables = props.map(prop => ({
|
1821
1925
|
where: {
|
1822
1926
|
id: prop.id !== undefined ? prop.id : undefined,
|
1823
|
-
|
1824
|
-
equals: prop.
|
1927
|
+
type: prop.type !== undefined ? {
|
1928
|
+
equals: prop.type
|
1929
|
+
} : undefined,
|
1930
|
+
APIKey: prop.APIKey !== undefined ? {
|
1931
|
+
equals: prop.APIKey
|
1932
|
+
} : undefined,
|
1933
|
+
APISecret: prop.APISecret !== undefined ? {
|
1934
|
+
equals: prop.APISecret
|
1935
|
+
} : undefined,
|
1936
|
+
configuration: prop.configuration !== undefined ? {
|
1937
|
+
equals: prop.configuration
|
1938
|
+
} : undefined,
|
1939
|
+
cryptoTradingPairs: prop.cryptoTradingPairs !== undefined ? {
|
1940
|
+
equals: prop.cryptoTradingPairs
|
1941
|
+
} : undefined,
|
1942
|
+
cryptoTradeAllocationPct: prop.cryptoTradeAllocationPct !== undefined ? {
|
1943
|
+
equals: prop.cryptoTradeAllocationPct
|
1944
|
+
} : undefined,
|
1945
|
+
tradeAllocationPct: prop.tradeAllocationPct !== undefined ? {
|
1946
|
+
equals: prop.tradeAllocationPct
|
1947
|
+
} : undefined,
|
1948
|
+
minPercentageChange: prop.minPercentageChange !== undefined ? {
|
1949
|
+
equals: prop.minPercentageChange
|
1950
|
+
} : undefined,
|
1951
|
+
volumeThreshold: prop.volumeThreshold !== undefined ? {
|
1952
|
+
equals: prop.volumeThreshold
|
1953
|
+
} : undefined,
|
1954
|
+
portfolioTrailPercent: prop.portfolioTrailPercent !== undefined ? {
|
1955
|
+
equals: prop.portfolioTrailPercent
|
1956
|
+
} : undefined,
|
1957
|
+
portfolioProfitThresholdPercent: prop.portfolioProfitThresholdPercent !== undefined ? {
|
1958
|
+
equals: prop.portfolioProfitThresholdPercent
|
1959
|
+
} : undefined,
|
1960
|
+
reducedPortfolioTrailPercent: prop.reducedPortfolioTrailPercent !== undefined ? {
|
1961
|
+
equals: prop.reducedPortfolioTrailPercent
|
1962
|
+
} : undefined,
|
1963
|
+
defaultTrailingStopPercentage100: prop.defaultTrailingStopPercentage100 !== undefined ? {
|
1964
|
+
equals: prop.defaultTrailingStopPercentage100
|
1965
|
+
} : undefined,
|
1966
|
+
firstTrailReductionThreshold100: prop.firstTrailReductionThreshold100 !== undefined ? {
|
1967
|
+
equals: prop.firstTrailReductionThreshold100
|
1968
|
+
} : undefined,
|
1969
|
+
secondTrailReductionThreshold100: prop.secondTrailReductionThreshold100 !== undefined ? {
|
1970
|
+
equals: prop.secondTrailReductionThreshold100
|
1971
|
+
} : undefined,
|
1972
|
+
firstReducedTrailPercentage100: prop.firstReducedTrailPercentage100 !== undefined ? {
|
1973
|
+
equals: prop.firstReducedTrailPercentage100
|
1974
|
+
} : undefined,
|
1975
|
+
secondReducedTrailPercentage100: prop.secondReducedTrailPercentage100 !== undefined ? {
|
1976
|
+
equals: prop.secondReducedTrailPercentage100
|
1977
|
+
} : undefined,
|
1978
|
+
minimumPriceChangePercent100: prop.minimumPriceChangePercent100 !== undefined ? {
|
1979
|
+
equals: prop.minimumPriceChangePercent100
|
1980
|
+
} : undefined,
|
1981
|
+
userId: prop.userId !== undefined ? prop.userId : undefined,
|
1982
|
+
createdAt: prop.createdAt !== undefined ? {
|
1983
|
+
equals: prop.createdAt
|
1984
|
+
} : undefined,
|
1985
|
+
updatedAt: prop.updatedAt !== undefined ? {
|
1986
|
+
equals: prop.updatedAt
|
1825
1987
|
} : undefined,
|
1826
1988
|
},
|
1827
1989
|
data: {
|
@@ -2063,12 +2225,10 @@ export const AlpacaAccount = {
|
|
2063
2225
|
} : { upsert: prop.user.accounts.map((item) => ({
|
2064
2226
|
where: {
|
2065
2227
|
id: item.id !== undefined ? item.id : undefined,
|
2228
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
2066
2229
|
userId: item.userId !== undefined ? {
|
2067
2230
|
equals: item.userId
|
2068
2231
|
} : undefined,
|
2069
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
2070
|
-
equals: item.providerAccountId
|
2071
|
-
} : undefined,
|
2072
2232
|
},
|
2073
2233
|
update: {
|
2074
2234
|
id: item.id !== undefined ? {
|
@@ -2235,12 +2395,10 @@ export const AlpacaAccount = {
|
|
2235
2395
|
: { connectOrCreate: prop.user.accounts.map((item) => ({
|
2236
2396
|
where: {
|
2237
2397
|
id: item.id !== undefined ? item.id : undefined,
|
2398
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
2238
2399
|
userId: item.userId !== undefined ? {
|
2239
2400
|
equals: item.userId
|
2240
2401
|
} : undefined,
|
2241
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
2242
|
-
equals: item.providerAccountId
|
2243
|
-
} : undefined,
|
2244
2402
|
},
|
2245
2403
|
create: {
|
2246
2404
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -2476,8 +2634,66 @@ export const AlpacaAccount = {
|
|
2476
2634
|
const variables = {
|
2477
2635
|
where: whereInput ? whereInput : {
|
2478
2636
|
id: props.id !== undefined ? props.id : undefined,
|
2479
|
-
|
2480
|
-
equals: props.
|
2637
|
+
type: props.type !== undefined ? {
|
2638
|
+
equals: props.type
|
2639
|
+
} : undefined,
|
2640
|
+
APIKey: props.APIKey !== undefined ? {
|
2641
|
+
equals: props.APIKey
|
2642
|
+
} : undefined,
|
2643
|
+
APISecret: props.APISecret !== undefined ? {
|
2644
|
+
equals: props.APISecret
|
2645
|
+
} : undefined,
|
2646
|
+
configuration: props.configuration !== undefined ? {
|
2647
|
+
equals: props.configuration
|
2648
|
+
} : undefined,
|
2649
|
+
cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
|
2650
|
+
equals: props.cryptoTradingPairs
|
2651
|
+
} : undefined,
|
2652
|
+
cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
|
2653
|
+
equals: props.cryptoTradeAllocationPct
|
2654
|
+
} : undefined,
|
2655
|
+
tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
|
2656
|
+
equals: props.tradeAllocationPct
|
2657
|
+
} : undefined,
|
2658
|
+
minPercentageChange: props.minPercentageChange !== undefined ? {
|
2659
|
+
equals: props.minPercentageChange
|
2660
|
+
} : undefined,
|
2661
|
+
volumeThreshold: props.volumeThreshold !== undefined ? {
|
2662
|
+
equals: props.volumeThreshold
|
2663
|
+
} : undefined,
|
2664
|
+
portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
|
2665
|
+
equals: props.portfolioTrailPercent
|
2666
|
+
} : undefined,
|
2667
|
+
portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
|
2668
|
+
equals: props.portfolioProfitThresholdPercent
|
2669
|
+
} : undefined,
|
2670
|
+
reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
|
2671
|
+
equals: props.reducedPortfolioTrailPercent
|
2672
|
+
} : undefined,
|
2673
|
+
defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
|
2674
|
+
equals: props.defaultTrailingStopPercentage100
|
2675
|
+
} : undefined,
|
2676
|
+
firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
|
2677
|
+
equals: props.firstTrailReductionThreshold100
|
2678
|
+
} : undefined,
|
2679
|
+
secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
|
2680
|
+
equals: props.secondTrailReductionThreshold100
|
2681
|
+
} : undefined,
|
2682
|
+
firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
|
2683
|
+
equals: props.firstReducedTrailPercentage100
|
2684
|
+
} : undefined,
|
2685
|
+
secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
|
2686
|
+
equals: props.secondReducedTrailPercentage100
|
2687
|
+
} : undefined,
|
2688
|
+
minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
|
2689
|
+
equals: props.minimumPriceChangePercent100
|
2690
|
+
} : undefined,
|
2691
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
2692
|
+
createdAt: props.createdAt !== undefined ? {
|
2693
|
+
equals: props.createdAt
|
2694
|
+
} : undefined,
|
2695
|
+
updatedAt: props.updatedAt !== undefined ? {
|
2696
|
+
equals: props.updatedAt
|
2481
2697
|
} : undefined,
|
2482
2698
|
},
|
2483
2699
|
};
|
@@ -2611,11 +2827,67 @@ export const AlpacaAccount = {
|
|
2611
2827
|
}`;
|
2612
2828
|
const variables = {
|
2613
2829
|
where: whereInput ? whereInput : {
|
2614
|
-
id: props.id !== undefined ?
|
2615
|
-
|
2830
|
+
id: props.id !== undefined ? props.id : undefined,
|
2831
|
+
type: props.type !== undefined ? {
|
2832
|
+
equals: props.type
|
2833
|
+
} : undefined,
|
2834
|
+
APIKey: props.APIKey !== undefined ? {
|
2835
|
+
equals: props.APIKey
|
2836
|
+
} : undefined,
|
2837
|
+
APISecret: props.APISecret !== undefined ? {
|
2838
|
+
equals: props.APISecret
|
2839
|
+
} : undefined,
|
2840
|
+
configuration: props.configuration !== undefined ? {
|
2841
|
+
equals: props.configuration
|
2842
|
+
} : undefined,
|
2843
|
+
cryptoTradingPairs: props.cryptoTradingPairs !== undefined ? {
|
2844
|
+
equals: props.cryptoTradingPairs
|
2845
|
+
} : undefined,
|
2846
|
+
cryptoTradeAllocationPct: props.cryptoTradeAllocationPct !== undefined ? {
|
2847
|
+
equals: props.cryptoTradeAllocationPct
|
2616
2848
|
} : undefined,
|
2617
|
-
|
2618
|
-
equals: props.
|
2849
|
+
tradeAllocationPct: props.tradeAllocationPct !== undefined ? {
|
2850
|
+
equals: props.tradeAllocationPct
|
2851
|
+
} : undefined,
|
2852
|
+
minPercentageChange: props.minPercentageChange !== undefined ? {
|
2853
|
+
equals: props.minPercentageChange
|
2854
|
+
} : undefined,
|
2855
|
+
volumeThreshold: props.volumeThreshold !== undefined ? {
|
2856
|
+
equals: props.volumeThreshold
|
2857
|
+
} : undefined,
|
2858
|
+
portfolioTrailPercent: props.portfolioTrailPercent !== undefined ? {
|
2859
|
+
equals: props.portfolioTrailPercent
|
2860
|
+
} : undefined,
|
2861
|
+
portfolioProfitThresholdPercent: props.portfolioProfitThresholdPercent !== undefined ? {
|
2862
|
+
equals: props.portfolioProfitThresholdPercent
|
2863
|
+
} : undefined,
|
2864
|
+
reducedPortfolioTrailPercent: props.reducedPortfolioTrailPercent !== undefined ? {
|
2865
|
+
equals: props.reducedPortfolioTrailPercent
|
2866
|
+
} : undefined,
|
2867
|
+
defaultTrailingStopPercentage100: props.defaultTrailingStopPercentage100 !== undefined ? {
|
2868
|
+
equals: props.defaultTrailingStopPercentage100
|
2869
|
+
} : undefined,
|
2870
|
+
firstTrailReductionThreshold100: props.firstTrailReductionThreshold100 !== undefined ? {
|
2871
|
+
equals: props.firstTrailReductionThreshold100
|
2872
|
+
} : undefined,
|
2873
|
+
secondTrailReductionThreshold100: props.secondTrailReductionThreshold100 !== undefined ? {
|
2874
|
+
equals: props.secondTrailReductionThreshold100
|
2875
|
+
} : undefined,
|
2876
|
+
firstReducedTrailPercentage100: props.firstReducedTrailPercentage100 !== undefined ? {
|
2877
|
+
equals: props.firstReducedTrailPercentage100
|
2878
|
+
} : undefined,
|
2879
|
+
secondReducedTrailPercentage100: props.secondReducedTrailPercentage100 !== undefined ? {
|
2880
|
+
equals: props.secondReducedTrailPercentage100
|
2881
|
+
} : undefined,
|
2882
|
+
minimumPriceChangePercent100: props.minimumPriceChangePercent100 !== undefined ? {
|
2883
|
+
equals: props.minimumPriceChangePercent100
|
2884
|
+
} : undefined,
|
2885
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
2886
|
+
createdAt: props.createdAt !== undefined ? {
|
2887
|
+
equals: props.createdAt
|
2888
|
+
} : undefined,
|
2889
|
+
updatedAt: props.updatedAt !== undefined ? {
|
2890
|
+
equals: props.updatedAt
|
2619
2891
|
} : undefined,
|
2620
2892
|
},
|
2621
2893
|
};
|
package/esm/Asset.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../src/Asset.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsE7G,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA4L5G;;;;;;OAMG;sBACqB,SAAS,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAiI/H;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../src/Asset.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAsE7G,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA4L5G;;;;;;OAMG;sBACqB,SAAS,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAiI/H;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA2jB1G;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAoqB1G;;;;;;OAMG;sBACqB,SAAS,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA6jB/H;;;;;;OAMG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA2E1G;;;;;;;OAOG;eACc,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IA2OhI;;;;;OAKG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;IAkEjG;;;;;;;OAOG;oBACmB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,eAAe,GAAG,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;CA+OxI,CAAC"}
|