adaptic-backend 1.0.266 → 1.0.267
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 +27 -27
- package/Action.cjs +81 -81
- package/Alert.cjs +51 -51
- package/AlpacaAccount.cjs +99 -99
- package/Asset.cjs +111 -111
- package/Authenticator.cjs +27 -27
- package/Contract.cjs +90 -90
- package/Customer.cjs +27 -27
- package/Deliverable.cjs +36 -36
- package/NewsArticle.cjs +18 -18
- package/NewsArticleAssetSentiment.cjs +48 -48
- package/Order.cjs +108 -108
- package/Position.cjs +93 -93
- package/Session.cjs +27 -27
- package/StopLoss.cjs +51 -51
- package/TakeProfit.cjs +51 -51
- package/Trade.cjs +108 -108
- package/User.cjs +51 -51
- package/package.json +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +27 -27
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +81 -81
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +51 -51
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +99 -99
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +111 -111
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +27 -27
- package/server/Contract.js.map +1 -1
- package/server/Contract.mjs +90 -90
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +27 -27
- package/server/Deliverable.js.map +1 -1
- package/server/Deliverable.mjs +36 -36
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +18 -18
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +48 -48
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +108 -108
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +93 -93
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +27 -27
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +51 -51
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +51 -51
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +108 -108
- package/server/User.js.map +1 -1
- package/server/User.mjs +51 -51
package/User.cjs
CHANGED
@@ -1148,7 +1148,7 @@ exports.User = {
|
|
1148
1148
|
set: props.openaiModel
|
1149
1149
|
} : undefined,
|
1150
1150
|
customer: props.customer ?
|
1151
|
-
typeof props.customer === 'object' && Object.keys(props.customer).length === 1 && Object.keys(props.customer)[0] === 'id'
|
1151
|
+
typeof props.customer === 'object' && Object.keys(props.customer).length === 1 && (Object.keys(props.customer)[0] === 'id' || Object.keys(props.customer)[0] === 'symbol')
|
1152
1152
|
? {
|
1153
1153
|
connect: {
|
1154
1154
|
id: props.customer.id
|
@@ -1209,7 +1209,7 @@ exports.User = {
|
|
1209
1209
|
}
|
1210
1210
|
} : undefined,
|
1211
1211
|
accounts: props.accounts ?
|
1212
|
-
Array.isArray(props.accounts) && props.accounts.length > 0 && props.accounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1212
|
+
Array.isArray(props.accounts) && props.accounts.length > 0 && props.accounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1213
1213
|
connect: props.accounts.map((item) => ({
|
1214
1214
|
id: item.id
|
1215
1215
|
}))
|
@@ -1273,7 +1273,7 @@ exports.User = {
|
|
1273
1273
|
}))
|
1274
1274
|
} : undefined,
|
1275
1275
|
sessions: props.sessions ?
|
1276
|
-
Array.isArray(props.sessions) && props.sessions.length > 0 && props.sessions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1276
|
+
Array.isArray(props.sessions) && props.sessions.length > 0 && props.sessions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1277
1277
|
connect: props.sessions.map((item) => ({
|
1278
1278
|
id: item.id
|
1279
1279
|
}))
|
@@ -1302,7 +1302,7 @@ exports.User = {
|
|
1302
1302
|
}))
|
1303
1303
|
} : undefined,
|
1304
1304
|
authenticators: props.authenticators ?
|
1305
|
-
Array.isArray(props.authenticators) && props.authenticators.length > 0 && props.authenticators.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1305
|
+
Array.isArray(props.authenticators) && props.authenticators.length > 0 && props.authenticators.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1306
1306
|
connect: props.authenticators.map((item) => ({
|
1307
1307
|
id: item.id
|
1308
1308
|
}))
|
@@ -1335,7 +1335,7 @@ exports.User = {
|
|
1335
1335
|
}))
|
1336
1336
|
} : undefined,
|
1337
1337
|
alpacaAccounts: props.alpacaAccounts ?
|
1338
|
-
Array.isArray(props.alpacaAccounts) && props.alpacaAccounts.length > 0 && props.alpacaAccounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1338
|
+
Array.isArray(props.alpacaAccounts) && props.alpacaAccounts.length > 0 && props.alpacaAccounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1339
1339
|
connect: props.alpacaAccounts.map((item) => ({
|
1340
1340
|
id: item.id
|
1341
1341
|
}))
|
@@ -1381,7 +1381,7 @@ exports.User = {
|
|
1381
1381
|
set: item.volumeThreshold
|
1382
1382
|
} : undefined,
|
1383
1383
|
trades: item.trades ?
|
1384
|
-
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1384
|
+
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1385
1385
|
connect: item.trades.map((item) => ({
|
1386
1386
|
id: item.id
|
1387
1387
|
}))
|
@@ -1433,7 +1433,7 @@ exports.User = {
|
|
1433
1433
|
set: item.status
|
1434
1434
|
} : undefined,
|
1435
1435
|
asset: item.asset ?
|
1436
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
1436
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
1437
1437
|
? {
|
1438
1438
|
connect: {
|
1439
1439
|
id: item.asset.id
|
@@ -1680,7 +1680,7 @@ exports.User = {
|
|
1680
1680
|
}
|
1681
1681
|
} : undefined,
|
1682
1682
|
actions: item.actions ?
|
1683
|
-
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1683
|
+
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1684
1684
|
connect: item.actions.map((item) => ({
|
1685
1685
|
id: item.id
|
1686
1686
|
}))
|
@@ -1853,7 +1853,7 @@ exports.User = {
|
|
1853
1853
|
}))
|
1854
1854
|
} : undefined,
|
1855
1855
|
orders: item.orders ?
|
1856
|
-
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
1856
|
+
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
1857
1857
|
connect: item.orders.map((item) => ({
|
1858
1858
|
id: item.id
|
1859
1859
|
}))
|
@@ -1954,7 +1954,7 @@ exports.User = {
|
|
1954
1954
|
set: item.takeProfitId
|
1955
1955
|
} : undefined,
|
1956
1956
|
stopLoss: item.stopLoss ?
|
1957
|
-
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && Object.keys(item.stopLoss)[0] === 'id'
|
1957
|
+
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && (Object.keys(item.stopLoss)[0] === 'id' || Object.keys(item.stopLoss)[0] === 'symbol')
|
1958
1958
|
? {
|
1959
1959
|
connect: {
|
1960
1960
|
id: item.stopLoss.id
|
@@ -1986,7 +1986,7 @@ exports.User = {
|
|
1986
1986
|
}
|
1987
1987
|
} : undefined,
|
1988
1988
|
takeProfit: item.takeProfit ?
|
1989
|
-
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && Object.keys(item.takeProfit)[0] === 'id'
|
1989
|
+
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && (Object.keys(item.takeProfit)[0] === 'id' || Object.keys(item.takeProfit)[0] === 'symbol')
|
1990
1990
|
? {
|
1991
1991
|
connect: {
|
1992
1992
|
id: item.takeProfit.id
|
@@ -2018,7 +2018,7 @@ exports.User = {
|
|
2018
2018
|
}
|
2019
2019
|
} : undefined,
|
2020
2020
|
action: item.action ?
|
2021
|
-
typeof item.action === 'object' && Object.keys(item.action).length === 1 && Object.keys(item.action)[0] === 'id'
|
2021
|
+
typeof item.action === 'object' && Object.keys(item.action).length === 1 && (Object.keys(item.action)[0] === 'id' || Object.keys(item.action)[0] === 'symbol')
|
2022
2022
|
? {
|
2023
2023
|
connect: {
|
2024
2024
|
id: item.action.id
|
@@ -2078,7 +2078,7 @@ exports.User = {
|
|
2078
2078
|
}
|
2079
2079
|
} : undefined,
|
2080
2080
|
asset: item.asset ?
|
2081
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
2081
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
2082
2082
|
? {
|
2083
2083
|
connect: {
|
2084
2084
|
id: item.asset.id
|
@@ -2325,7 +2325,7 @@ exports.User = {
|
|
2325
2325
|
}
|
2326
2326
|
} : undefined,
|
2327
2327
|
contract: item.contract ?
|
2328
|
-
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && Object.keys(item.contract)[0] === 'id'
|
2328
|
+
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && (Object.keys(item.contract)[0] === 'id' || Object.keys(item.contract)[0] === 'symbol')
|
2329
2329
|
? {
|
2330
2330
|
connect: {
|
2331
2331
|
id: item.contract.id
|
@@ -2650,7 +2650,7 @@ exports.User = {
|
|
2650
2650
|
}))
|
2651
2651
|
} : undefined,
|
2652
2652
|
positions: item.positions ?
|
2653
|
-
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
2653
|
+
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
2654
2654
|
connect: item.positions.map((item) => ({
|
2655
2655
|
id: item.id
|
2656
2656
|
}))
|
@@ -2717,7 +2717,7 @@ exports.User = {
|
|
2717
2717
|
set: item.closed
|
2718
2718
|
} : undefined,
|
2719
2719
|
asset: item.asset ?
|
2720
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
2720
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
2721
2721
|
? {
|
2722
2722
|
connect: {
|
2723
2723
|
id: item.asset.id
|
@@ -3055,7 +3055,7 @@ exports.User = {
|
|
3055
3055
|
}))
|
3056
3056
|
} : undefined,
|
3057
3057
|
alerts: item.alerts ?
|
3058
|
-
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
3058
|
+
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
3059
3059
|
connect: item.alerts.map((item) => ({
|
3060
3060
|
id: item.id
|
3061
3061
|
}))
|
@@ -4271,7 +4271,7 @@ exports.User = {
|
|
4271
4271
|
set: props.openaiModel
|
4272
4272
|
} : undefined,
|
4273
4273
|
customer: props.customer ?
|
4274
|
-
typeof props.customer === 'object' && Object.keys(props.customer).length === 1 && Object.keys(props.customer)[0] === 'id'
|
4274
|
+
typeof props.customer === 'object' && Object.keys(props.customer).length === 1 && (Object.keys(props.customer)[0] === 'id' || Object.keys(props.customer)[0] === 'symbol')
|
4275
4275
|
? {
|
4276
4276
|
connect: {
|
4277
4277
|
id: props.customer.id
|
@@ -4332,7 +4332,7 @@ exports.User = {
|
|
4332
4332
|
}
|
4333
4333
|
} : undefined,
|
4334
4334
|
accounts: props.accounts ?
|
4335
|
-
Array.isArray(props.accounts) && props.accounts.length > 0 && props.accounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4335
|
+
Array.isArray(props.accounts) && props.accounts.length > 0 && props.accounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4336
4336
|
connect: props.accounts.map((item) => ({
|
4337
4337
|
id: item.id
|
4338
4338
|
}))
|
@@ -4396,7 +4396,7 @@ exports.User = {
|
|
4396
4396
|
}))
|
4397
4397
|
} : undefined,
|
4398
4398
|
sessions: props.sessions ?
|
4399
|
-
Array.isArray(props.sessions) && props.sessions.length > 0 && props.sessions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4399
|
+
Array.isArray(props.sessions) && props.sessions.length > 0 && props.sessions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4400
4400
|
connect: props.sessions.map((item) => ({
|
4401
4401
|
id: item.id
|
4402
4402
|
}))
|
@@ -4425,7 +4425,7 @@ exports.User = {
|
|
4425
4425
|
}))
|
4426
4426
|
} : undefined,
|
4427
4427
|
authenticators: props.authenticators ?
|
4428
|
-
Array.isArray(props.authenticators) && props.authenticators.length > 0 && props.authenticators.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4428
|
+
Array.isArray(props.authenticators) && props.authenticators.length > 0 && props.authenticators.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4429
4429
|
connect: props.authenticators.map((item) => ({
|
4430
4430
|
id: item.id
|
4431
4431
|
}))
|
@@ -4458,7 +4458,7 @@ exports.User = {
|
|
4458
4458
|
}))
|
4459
4459
|
} : undefined,
|
4460
4460
|
alpacaAccounts: props.alpacaAccounts ?
|
4461
|
-
Array.isArray(props.alpacaAccounts) && props.alpacaAccounts.length > 0 && props.alpacaAccounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4461
|
+
Array.isArray(props.alpacaAccounts) && props.alpacaAccounts.length > 0 && props.alpacaAccounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4462
4462
|
connect: props.alpacaAccounts.map((item) => ({
|
4463
4463
|
id: item.id
|
4464
4464
|
}))
|
@@ -4504,7 +4504,7 @@ exports.User = {
|
|
4504
4504
|
set: item.volumeThreshold
|
4505
4505
|
} : undefined,
|
4506
4506
|
trades: item.trades ?
|
4507
|
-
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4507
|
+
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4508
4508
|
connect: item.trades.map((item) => ({
|
4509
4509
|
id: item.id
|
4510
4510
|
}))
|
@@ -4556,7 +4556,7 @@ exports.User = {
|
|
4556
4556
|
set: item.status
|
4557
4557
|
} : undefined,
|
4558
4558
|
asset: item.asset ?
|
4559
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
4559
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
4560
4560
|
? {
|
4561
4561
|
connect: {
|
4562
4562
|
id: item.asset.id
|
@@ -4803,7 +4803,7 @@ exports.User = {
|
|
4803
4803
|
}
|
4804
4804
|
} : undefined,
|
4805
4805
|
actions: item.actions ?
|
4806
|
-
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4806
|
+
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4807
4807
|
connect: item.actions.map((item) => ({
|
4808
4808
|
id: item.id
|
4809
4809
|
}))
|
@@ -4976,7 +4976,7 @@ exports.User = {
|
|
4976
4976
|
}))
|
4977
4977
|
} : undefined,
|
4978
4978
|
orders: item.orders ?
|
4979
|
-
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
4979
|
+
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
4980
4980
|
connect: item.orders.map((item) => ({
|
4981
4981
|
id: item.id
|
4982
4982
|
}))
|
@@ -5077,7 +5077,7 @@ exports.User = {
|
|
5077
5077
|
set: item.takeProfitId
|
5078
5078
|
} : undefined,
|
5079
5079
|
stopLoss: item.stopLoss ?
|
5080
|
-
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && Object.keys(item.stopLoss)[0] === 'id'
|
5080
|
+
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && (Object.keys(item.stopLoss)[0] === 'id' || Object.keys(item.stopLoss)[0] === 'symbol')
|
5081
5081
|
? {
|
5082
5082
|
connect: {
|
5083
5083
|
id: item.stopLoss.id
|
@@ -5109,7 +5109,7 @@ exports.User = {
|
|
5109
5109
|
}
|
5110
5110
|
} : undefined,
|
5111
5111
|
takeProfit: item.takeProfit ?
|
5112
|
-
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && Object.keys(item.takeProfit)[0] === 'id'
|
5112
|
+
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && (Object.keys(item.takeProfit)[0] === 'id' || Object.keys(item.takeProfit)[0] === 'symbol')
|
5113
5113
|
? {
|
5114
5114
|
connect: {
|
5115
5115
|
id: item.takeProfit.id
|
@@ -5141,7 +5141,7 @@ exports.User = {
|
|
5141
5141
|
}
|
5142
5142
|
} : undefined,
|
5143
5143
|
action: item.action ?
|
5144
|
-
typeof item.action === 'object' && Object.keys(item.action).length === 1 && Object.keys(item.action)[0] === 'id'
|
5144
|
+
typeof item.action === 'object' && Object.keys(item.action).length === 1 && (Object.keys(item.action)[0] === 'id' || Object.keys(item.action)[0] === 'symbol')
|
5145
5145
|
? {
|
5146
5146
|
connect: {
|
5147
5147
|
id: item.action.id
|
@@ -5201,7 +5201,7 @@ exports.User = {
|
|
5201
5201
|
}
|
5202
5202
|
} : undefined,
|
5203
5203
|
asset: item.asset ?
|
5204
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
5204
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
5205
5205
|
? {
|
5206
5206
|
connect: {
|
5207
5207
|
id: item.asset.id
|
@@ -5448,7 +5448,7 @@ exports.User = {
|
|
5448
5448
|
}
|
5449
5449
|
} : undefined,
|
5450
5450
|
contract: item.contract ?
|
5451
|
-
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && Object.keys(item.contract)[0] === 'id'
|
5451
|
+
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && (Object.keys(item.contract)[0] === 'id' || Object.keys(item.contract)[0] === 'symbol')
|
5452
5452
|
? {
|
5453
5453
|
connect: {
|
5454
5454
|
id: item.contract.id
|
@@ -5773,7 +5773,7 @@ exports.User = {
|
|
5773
5773
|
}))
|
5774
5774
|
} : undefined,
|
5775
5775
|
positions: item.positions ?
|
5776
|
-
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
5776
|
+
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
5777
5777
|
connect: item.positions.map((item) => ({
|
5778
5778
|
id: item.id
|
5779
5779
|
}))
|
@@ -5840,7 +5840,7 @@ exports.User = {
|
|
5840
5840
|
set: item.closed
|
5841
5841
|
} : undefined,
|
5842
5842
|
asset: item.asset ?
|
5843
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
5843
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
5844
5844
|
? {
|
5845
5845
|
connect: {
|
5846
5846
|
id: item.asset.id
|
@@ -6178,7 +6178,7 @@ exports.User = {
|
|
6178
6178
|
}))
|
6179
6179
|
} : undefined,
|
6180
6180
|
alerts: item.alerts ?
|
6181
|
-
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
6181
|
+
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
6182
6182
|
connect: item.alerts.map((item) => ({
|
6183
6183
|
id: item.id
|
6184
6184
|
}))
|
@@ -6786,7 +6786,7 @@ exports.User = {
|
|
6786
6786
|
set: prop.openaiModel
|
6787
6787
|
} : undefined,
|
6788
6788
|
customer: prop.customer ?
|
6789
|
-
typeof prop.customer === 'object' && Object.keys(prop.customer).length === 1 && Object.keys(prop.customer)[0] === 'id'
|
6789
|
+
typeof prop.customer === 'object' && Object.keys(prop.customer).length === 1 && (Object.keys(prop.customer)[0] === 'id' || Object.keys(prop.customer)[0] === 'symbol')
|
6790
6790
|
? {
|
6791
6791
|
connect: {
|
6792
6792
|
id: prop.customer.id
|
@@ -6847,7 +6847,7 @@ exports.User = {
|
|
6847
6847
|
}
|
6848
6848
|
} : undefined,
|
6849
6849
|
accounts: prop.accounts ?
|
6850
|
-
Array.isArray(prop.accounts) && prop.accounts.length > 0 && prop.accounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
6850
|
+
Array.isArray(prop.accounts) && prop.accounts.length > 0 && prop.accounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
6851
6851
|
connect: prop.accounts.map((item) => ({
|
6852
6852
|
id: item.id
|
6853
6853
|
}))
|
@@ -6911,7 +6911,7 @@ exports.User = {
|
|
6911
6911
|
}))
|
6912
6912
|
} : undefined,
|
6913
6913
|
sessions: prop.sessions ?
|
6914
|
-
Array.isArray(prop.sessions) && prop.sessions.length > 0 && prop.sessions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
6914
|
+
Array.isArray(prop.sessions) && prop.sessions.length > 0 && prop.sessions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
6915
6915
|
connect: prop.sessions.map((item) => ({
|
6916
6916
|
id: item.id
|
6917
6917
|
}))
|
@@ -6940,7 +6940,7 @@ exports.User = {
|
|
6940
6940
|
}))
|
6941
6941
|
} : undefined,
|
6942
6942
|
authenticators: prop.authenticators ?
|
6943
|
-
Array.isArray(prop.authenticators) && prop.authenticators.length > 0 && prop.authenticators.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
6943
|
+
Array.isArray(prop.authenticators) && prop.authenticators.length > 0 && prop.authenticators.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
6944
6944
|
connect: prop.authenticators.map((item) => ({
|
6945
6945
|
id: item.id
|
6946
6946
|
}))
|
@@ -6973,7 +6973,7 @@ exports.User = {
|
|
6973
6973
|
}))
|
6974
6974
|
} : undefined,
|
6975
6975
|
alpacaAccounts: prop.alpacaAccounts ?
|
6976
|
-
Array.isArray(prop.alpacaAccounts) && prop.alpacaAccounts.length > 0 && prop.alpacaAccounts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
6976
|
+
Array.isArray(prop.alpacaAccounts) && prop.alpacaAccounts.length > 0 && prop.alpacaAccounts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
6977
6977
|
connect: prop.alpacaAccounts.map((item) => ({
|
6978
6978
|
id: item.id
|
6979
6979
|
}))
|
@@ -7019,7 +7019,7 @@ exports.User = {
|
|
7019
7019
|
set: item.volumeThreshold
|
7020
7020
|
} : undefined,
|
7021
7021
|
trades: item.trades ?
|
7022
|
-
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
7022
|
+
Array.isArray(item.trades) && item.trades.length > 0 && item.trades.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
7023
7023
|
connect: item.trades.map((item) => ({
|
7024
7024
|
id: item.id
|
7025
7025
|
}))
|
@@ -7071,7 +7071,7 @@ exports.User = {
|
|
7071
7071
|
set: item.status
|
7072
7072
|
} : undefined,
|
7073
7073
|
asset: item.asset ?
|
7074
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
7074
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
7075
7075
|
? {
|
7076
7076
|
connect: {
|
7077
7077
|
id: item.asset.id
|
@@ -7318,7 +7318,7 @@ exports.User = {
|
|
7318
7318
|
}
|
7319
7319
|
} : undefined,
|
7320
7320
|
actions: item.actions ?
|
7321
|
-
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
7321
|
+
Array.isArray(item.actions) && item.actions.length > 0 && item.actions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
7322
7322
|
connect: item.actions.map((item) => ({
|
7323
7323
|
id: item.id
|
7324
7324
|
}))
|
@@ -7491,7 +7491,7 @@ exports.User = {
|
|
7491
7491
|
}))
|
7492
7492
|
} : undefined,
|
7493
7493
|
orders: item.orders ?
|
7494
|
-
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
7494
|
+
Array.isArray(item.orders) && item.orders.length > 0 && item.orders.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
7495
7495
|
connect: item.orders.map((item) => ({
|
7496
7496
|
id: item.id
|
7497
7497
|
}))
|
@@ -7592,7 +7592,7 @@ exports.User = {
|
|
7592
7592
|
set: item.takeProfitId
|
7593
7593
|
} : undefined,
|
7594
7594
|
stopLoss: item.stopLoss ?
|
7595
|
-
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && Object.keys(item.stopLoss)[0] === 'id'
|
7595
|
+
typeof item.stopLoss === 'object' && Object.keys(item.stopLoss).length === 1 && (Object.keys(item.stopLoss)[0] === 'id' || Object.keys(item.stopLoss)[0] === 'symbol')
|
7596
7596
|
? {
|
7597
7597
|
connect: {
|
7598
7598
|
id: item.stopLoss.id
|
@@ -7624,7 +7624,7 @@ exports.User = {
|
|
7624
7624
|
}
|
7625
7625
|
} : undefined,
|
7626
7626
|
takeProfit: item.takeProfit ?
|
7627
|
-
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && Object.keys(item.takeProfit)[0] === 'id'
|
7627
|
+
typeof item.takeProfit === 'object' && Object.keys(item.takeProfit).length === 1 && (Object.keys(item.takeProfit)[0] === 'id' || Object.keys(item.takeProfit)[0] === 'symbol')
|
7628
7628
|
? {
|
7629
7629
|
connect: {
|
7630
7630
|
id: item.takeProfit.id
|
@@ -7656,7 +7656,7 @@ exports.User = {
|
|
7656
7656
|
}
|
7657
7657
|
} : undefined,
|
7658
7658
|
action: item.action ?
|
7659
|
-
typeof item.action === 'object' && Object.keys(item.action).length === 1 && Object.keys(item.action)[0] === 'id'
|
7659
|
+
typeof item.action === 'object' && Object.keys(item.action).length === 1 && (Object.keys(item.action)[0] === 'id' || Object.keys(item.action)[0] === 'symbol')
|
7660
7660
|
? {
|
7661
7661
|
connect: {
|
7662
7662
|
id: item.action.id
|
@@ -7716,7 +7716,7 @@ exports.User = {
|
|
7716
7716
|
}
|
7717
7717
|
} : undefined,
|
7718
7718
|
asset: item.asset ?
|
7719
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
7719
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
7720
7720
|
? {
|
7721
7721
|
connect: {
|
7722
7722
|
id: item.asset.id
|
@@ -7963,7 +7963,7 @@ exports.User = {
|
|
7963
7963
|
}
|
7964
7964
|
} : undefined,
|
7965
7965
|
contract: item.contract ?
|
7966
|
-
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && Object.keys(item.contract)[0] === 'id'
|
7966
|
+
typeof item.contract === 'object' && Object.keys(item.contract).length === 1 && (Object.keys(item.contract)[0] === 'id' || Object.keys(item.contract)[0] === 'symbol')
|
7967
7967
|
? {
|
7968
7968
|
connect: {
|
7969
7969
|
id: item.contract.id
|
@@ -8288,7 +8288,7 @@ exports.User = {
|
|
8288
8288
|
}))
|
8289
8289
|
} : undefined,
|
8290
8290
|
positions: item.positions ?
|
8291
|
-
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
8291
|
+
Array.isArray(item.positions) && item.positions.length > 0 && item.positions.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
8292
8292
|
connect: item.positions.map((item) => ({
|
8293
8293
|
id: item.id
|
8294
8294
|
}))
|
@@ -8355,7 +8355,7 @@ exports.User = {
|
|
8355
8355
|
set: item.closed
|
8356
8356
|
} : undefined,
|
8357
8357
|
asset: item.asset ?
|
8358
|
-
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && Object.keys(item.asset)[0] === 'id'
|
8358
|
+
typeof item.asset === 'object' && Object.keys(item.asset).length === 1 && (Object.keys(item.asset)[0] === 'id' || Object.keys(item.asset)[0] === 'symbol')
|
8359
8359
|
? {
|
8360
8360
|
connect: {
|
8361
8361
|
id: item.asset.id
|
@@ -8693,7 +8693,7 @@ exports.User = {
|
|
8693
8693
|
}))
|
8694
8694
|
} : undefined,
|
8695
8695
|
alerts: item.alerts ?
|
8696
|
-
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && 'id' in item && Object.keys(item).length === 1) ? {
|
8696
|
+
Array.isArray(item.alerts) && item.alerts.length > 0 && item.alerts.every((item) => typeof item === 'object' && ('id' in item || 'symbol' in item) && Object.keys(item).length === 1) ? {
|
8697
8697
|
connect: item.alerts.map((item) => ({
|
8698
8698
|
id: item.id
|
8699
8699
|
}))
|
package/package.json
CHANGED