adaptic-backend 1.0.243 → 1.0.245

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 (57) hide show
  1. package/Action.cjs +36 -6
  2. package/Alert.cjs +132 -44
  3. package/AlpacaAccount.cjs +96 -32
  4. package/Asset.cjs +210 -70
  5. package/Contract.cjs +246 -82
  6. package/Deliverable.cjs +66 -22
  7. package/NewsArticle.cjs +36 -6
  8. package/NewsArticleAssetSentiment.cjs +162 -54
  9. package/Order.cjs +228 -76
  10. package/Position.cjs +330 -110
  11. package/StopLoss.cjs +48 -16
  12. package/TakeProfit.cjs +48 -16
  13. package/Trade.cjs +228 -76
  14. package/User.cjs +132 -44
  15. package/package.json +1 -1
  16. package/server/Action.d.ts.map +1 -1
  17. package/server/Action.js.map +1 -1
  18. package/server/Action.mjs +36 -6
  19. package/server/Alert.d.ts.map +1 -1
  20. package/server/Alert.js.map +1 -1
  21. package/server/Alert.mjs +132 -44
  22. package/server/AlpacaAccount.d.ts.map +1 -1
  23. package/server/AlpacaAccount.js.map +1 -1
  24. package/server/AlpacaAccount.mjs +96 -32
  25. package/server/Asset.d.ts.map +1 -1
  26. package/server/Asset.js.map +1 -1
  27. package/server/Asset.mjs +210 -70
  28. package/server/Contract.d.ts.map +1 -1
  29. package/server/Contract.js.map +1 -1
  30. package/server/Contract.mjs +246 -82
  31. package/server/Deliverable.d.ts.map +1 -1
  32. package/server/Deliverable.js.map +1 -1
  33. package/server/Deliverable.mjs +66 -22
  34. package/server/NewsArticle.d.ts.map +1 -1
  35. package/server/NewsArticle.js.map +1 -1
  36. package/server/NewsArticle.mjs +36 -6
  37. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  38. package/server/NewsArticleAssetSentiment.js.map +1 -1
  39. package/server/NewsArticleAssetSentiment.mjs +162 -54
  40. package/server/Order.d.ts.map +1 -1
  41. package/server/Order.js.map +1 -1
  42. package/server/Order.mjs +228 -76
  43. package/server/Position.d.ts.map +1 -1
  44. package/server/Position.js.map +1 -1
  45. package/server/Position.mjs +330 -110
  46. package/server/StopLoss.d.ts.map +1 -1
  47. package/server/StopLoss.js.map +1 -1
  48. package/server/StopLoss.mjs +48 -16
  49. package/server/TakeProfit.d.ts.map +1 -1
  50. package/server/TakeProfit.js.map +1 -1
  51. package/server/TakeProfit.mjs +48 -16
  52. package/server/Trade.d.ts.map +1 -1
  53. package/server/Trade.js.map +1 -1
  54. package/server/Trade.mjs +228 -76
  55. package/server/User.d.ts.map +1 -1
  56. package/server/User.js.map +1 -1
  57. package/server/User.mjs +132 -44
package/Trade.cjs CHANGED
@@ -487,8 +487,12 @@ exports.Trade = {
487
487
  note: item.action.note !== undefined ? item.action.note : undefined,
488
488
  status: item.action.status !== undefined ? item.action.status : undefined,
489
489
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
490
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
491
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
490
+ dependsOn: item.action.dependsOn !== undefined ? {
491
+ set: item.action.dependsOn
492
+ } : undefined,
493
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
494
+ set: item.action.dependedOnBy
495
+ } : undefined,
492
496
  },
493
497
  }
494
498
  } : undefined,
@@ -924,8 +928,12 @@ exports.Trade = {
924
928
  note: item.action.note !== undefined ? item.action.note : undefined,
925
929
  status: item.action.status !== undefined ? item.action.status : undefined,
926
930
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
927
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
928
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
931
+ dependsOn: item.action.dependsOn !== undefined ? {
932
+ set: item.action.dependsOn
933
+ } : undefined,
934
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
935
+ set: item.action.dependedOnBy
936
+ } : undefined,
929
937
  },
930
938
  }
931
939
  } : undefined,
@@ -1072,12 +1080,16 @@ exports.Trade = {
1072
1080
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
1073
1081
  url: item.news.url !== undefined ? item.news.url : undefined,
1074
1082
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
1075
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
1083
+ authors: item.news.authors !== undefined ? {
1084
+ set: item.news.authors
1085
+ } : undefined,
1076
1086
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
1077
1087
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
1078
1088
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
1079
1089
  category: item.news.category !== undefined ? item.news.category : undefined,
1080
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
1090
+ topics: item.news.topics !== undefined ? {
1091
+ set: item.news.topics
1092
+ } : undefined,
1081
1093
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
1082
1094
  },
1083
1095
  }
@@ -1223,8 +1235,12 @@ exports.Trade = {
1223
1235
  note: item.note !== undefined ? item.note : undefined,
1224
1236
  status: item.status !== undefined ? item.status : undefined,
1225
1237
  fee: item.fee !== undefined ? item.fee : undefined,
1226
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
1227
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
1238
+ dependsOn: item.dependsOn !== undefined ? {
1239
+ set: item.dependsOn
1240
+ } : undefined,
1241
+ dependedOnBy: item.dependedOnBy !== undefined ? {
1242
+ set: item.dependedOnBy
1243
+ } : undefined,
1228
1244
  order: item.order ?
1229
1245
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
1230
1246
  ? { connect: {
@@ -2202,8 +2218,12 @@ exports.Trade = {
2202
2218
  note: item.action.note !== undefined ? item.action.note : undefined,
2203
2219
  status: item.action.status !== undefined ? item.action.status : undefined,
2204
2220
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2205
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2206
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2221
+ dependsOn: item.action.dependsOn !== undefined ? {
2222
+ set: item.action.dependsOn
2223
+ } : undefined,
2224
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2225
+ set: item.action.dependedOnBy
2226
+ } : undefined,
2207
2227
  },
2208
2228
  }
2209
2229
  } : undefined,
@@ -2653,8 +2673,12 @@ exports.Trade = {
2653
2673
  note: item.action.note !== undefined ? item.action.note : undefined,
2654
2674
  status: item.action.status !== undefined ? item.action.status : undefined,
2655
2675
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2656
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2657
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2676
+ dependsOn: item.action.dependsOn !== undefined ? {
2677
+ set: item.action.dependsOn
2678
+ } : undefined,
2679
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2680
+ set: item.action.dependedOnBy
2681
+ } : undefined,
2658
2682
  },
2659
2683
  }
2660
2684
  } : undefined,
@@ -3443,8 +3467,12 @@ exports.Trade = {
3443
3467
  note: item.action.note !== undefined ? item.action.note : undefined,
3444
3468
  status: item.action.status !== undefined ? item.action.status : undefined,
3445
3469
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
3446
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
3447
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
3470
+ dependsOn: item.action.dependsOn !== undefined ? {
3471
+ set: item.action.dependsOn
3472
+ } : undefined,
3473
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
3474
+ set: item.action.dependedOnBy
3475
+ } : undefined,
3448
3476
  },
3449
3477
  }
3450
3478
  } : undefined,
@@ -4152,8 +4180,12 @@ exports.Trade = {
4152
4180
  note: item.action.note !== undefined ? item.action.note : undefined,
4153
4181
  status: item.action.status !== undefined ? item.action.status : undefined,
4154
4182
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
4155
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
4156
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
4183
+ dependsOn: item.action.dependsOn !== undefined ? {
4184
+ set: item.action.dependsOn
4185
+ } : undefined,
4186
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
4187
+ set: item.action.dependedOnBy
4188
+ } : undefined,
4157
4189
  },
4158
4190
  }
4159
4191
  } : undefined,
@@ -4383,8 +4415,12 @@ exports.Trade = {
4383
4415
  note: item.action.note !== undefined ? item.action.note : undefined,
4384
4416
  status: item.action.status !== undefined ? item.action.status : undefined,
4385
4417
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
4386
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
4387
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
4418
+ dependsOn: item.action.dependsOn !== undefined ? {
4419
+ set: item.action.dependsOn
4420
+ } : undefined,
4421
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
4422
+ set: item.action.dependedOnBy
4423
+ } : undefined,
4388
4424
  },
4389
4425
  }
4390
4426
  } : undefined,
@@ -4705,12 +4741,16 @@ exports.Trade = {
4705
4741
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
4706
4742
  url: item.news.url !== undefined ? item.news.url : undefined,
4707
4743
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
4708
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
4744
+ authors: item.news.authors !== undefined ? {
4745
+ set: item.news.authors
4746
+ } : undefined,
4709
4747
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
4710
4748
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
4711
4749
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
4712
4750
  category: item.news.category !== undefined ? item.news.category : undefined,
4713
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
4751
+ topics: item.news.topics !== undefined ? {
4752
+ set: item.news.topics
4753
+ } : undefined,
4714
4754
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
4715
4755
  },
4716
4756
  }
@@ -4742,12 +4782,16 @@ exports.Trade = {
4742
4782
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
4743
4783
  url: item.news.url !== undefined ? item.news.url : undefined,
4744
4784
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
4745
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
4785
+ authors: item.news.authors !== undefined ? {
4786
+ set: item.news.authors
4787
+ } : undefined,
4746
4788
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
4747
4789
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
4748
4790
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
4749
4791
  category: item.news.category !== undefined ? item.news.category : undefined,
4750
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
4792
+ topics: item.news.topics !== undefined ? {
4793
+ set: item.news.topics
4794
+ } : undefined,
4751
4795
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
4752
4796
  },
4753
4797
  }
@@ -5322,8 +5366,12 @@ exports.Trade = {
5322
5366
  note: item.action.note !== undefined ? item.action.note : undefined,
5323
5367
  status: item.action.status !== undefined ? item.action.status : undefined,
5324
5368
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
5325
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
5326
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
5369
+ dependsOn: item.action.dependsOn !== undefined ? {
5370
+ set: item.action.dependsOn
5371
+ } : undefined,
5372
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
5373
+ set: item.action.dependedOnBy
5374
+ } : undefined,
5327
5375
  },
5328
5376
  }
5329
5377
  } : undefined,
@@ -5470,12 +5518,16 @@ exports.Trade = {
5470
5518
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
5471
5519
  url: item.news.url !== undefined ? item.news.url : undefined,
5472
5520
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
5473
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
5521
+ authors: item.news.authors !== undefined ? {
5522
+ set: item.news.authors
5523
+ } : undefined,
5474
5524
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
5475
5525
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
5476
5526
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
5477
5527
  category: item.news.category !== undefined ? item.news.category : undefined,
5478
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
5528
+ topics: item.news.topics !== undefined ? {
5529
+ set: item.news.topics
5530
+ } : undefined,
5479
5531
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
5480
5532
  },
5481
5533
  }
@@ -6456,8 +6508,12 @@ exports.Trade = {
6456
6508
  note: item.note !== undefined ? item.note : undefined,
6457
6509
  status: item.status !== undefined ? item.status : undefined,
6458
6510
  fee: item.fee !== undefined ? item.fee : undefined,
6459
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
6460
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
6511
+ dependsOn: item.dependsOn !== undefined ? {
6512
+ set: item.dependsOn
6513
+ } : undefined,
6514
+ dependedOnBy: item.dependedOnBy !== undefined ? {
6515
+ set: item.dependedOnBy
6516
+ } : undefined,
6461
6517
  order: item.order ?
6462
6518
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
6463
6519
  ? { connect: {
@@ -6983,8 +7039,12 @@ exports.Trade = {
6983
7039
  note: item.action.note !== undefined ? item.action.note : undefined,
6984
7040
  status: item.action.status !== undefined ? item.action.status : undefined,
6985
7041
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
6986
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
6987
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7042
+ dependsOn: item.action.dependsOn !== undefined ? {
7043
+ set: item.action.dependsOn
7044
+ } : undefined,
7045
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7046
+ set: item.action.dependedOnBy
7047
+ } : undefined,
6988
7048
  },
6989
7049
  }
6990
7050
  } : undefined,
@@ -7420,8 +7480,12 @@ exports.Trade = {
7420
7480
  note: item.action.note !== undefined ? item.action.note : undefined,
7421
7481
  status: item.action.status !== undefined ? item.action.status : undefined,
7422
7482
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
7423
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
7424
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7483
+ dependsOn: item.action.dependsOn !== undefined ? {
7484
+ set: item.action.dependsOn
7485
+ } : undefined,
7486
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7487
+ set: item.action.dependedOnBy
7488
+ } : undefined,
7425
7489
  },
7426
7490
  }
7427
7491
  } : undefined,
@@ -7568,12 +7632,16 @@ exports.Trade = {
7568
7632
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
7569
7633
  url: item.news.url !== undefined ? item.news.url : undefined,
7570
7634
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
7571
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
7635
+ authors: item.news.authors !== undefined ? {
7636
+ set: item.news.authors
7637
+ } : undefined,
7572
7638
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
7573
7639
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
7574
7640
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
7575
7641
  category: item.news.category !== undefined ? item.news.category : undefined,
7576
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
7642
+ topics: item.news.topics !== undefined ? {
7643
+ set: item.news.topics
7644
+ } : undefined,
7577
7645
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
7578
7646
  },
7579
7647
  }
@@ -7719,8 +7787,12 @@ exports.Trade = {
7719
7787
  note: item.note !== undefined ? item.note : undefined,
7720
7788
  status: item.status !== undefined ? item.status : undefined,
7721
7789
  fee: item.fee !== undefined ? item.fee : undefined,
7722
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
7723
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
7790
+ dependsOn: item.dependsOn !== undefined ? {
7791
+ set: item.dependsOn
7792
+ } : undefined,
7793
+ dependedOnBy: item.dependedOnBy !== undefined ? {
7794
+ set: item.dependedOnBy
7795
+ } : undefined,
7724
7796
  order: item.order ?
7725
7797
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
7726
7798
  ? { connect: {
@@ -8602,8 +8674,12 @@ exports.Trade = {
8602
8674
  note: item.action.note !== undefined ? item.action.note : undefined,
8603
8675
  status: item.action.status !== undefined ? item.action.status : undefined,
8604
8676
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
8605
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
8606
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
8677
+ dependsOn: item.action.dependsOn !== undefined ? {
8678
+ set: item.action.dependsOn
8679
+ } : undefined,
8680
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
8681
+ set: item.action.dependedOnBy
8682
+ } : undefined,
8607
8683
  },
8608
8684
  }
8609
8685
  } : undefined,
@@ -9053,8 +9129,12 @@ exports.Trade = {
9053
9129
  note: item.action.note !== undefined ? item.action.note : undefined,
9054
9130
  status: item.action.status !== undefined ? item.action.status : undefined,
9055
9131
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
9056
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
9057
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
9132
+ dependsOn: item.action.dependsOn !== undefined ? {
9133
+ set: item.action.dependsOn
9134
+ } : undefined,
9135
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
9136
+ set: item.action.dependedOnBy
9137
+ } : undefined,
9058
9138
  },
9059
9139
  }
9060
9140
  } : undefined,
@@ -9843,8 +9923,12 @@ exports.Trade = {
9843
9923
  note: item.action.note !== undefined ? item.action.note : undefined,
9844
9924
  status: item.action.status !== undefined ? item.action.status : undefined,
9845
9925
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
9846
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
9847
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
9926
+ dependsOn: item.action.dependsOn !== undefined ? {
9927
+ set: item.action.dependsOn
9928
+ } : undefined,
9929
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
9930
+ set: item.action.dependedOnBy
9931
+ } : undefined,
9848
9932
  },
9849
9933
  }
9850
9934
  } : undefined,
@@ -10552,8 +10636,12 @@ exports.Trade = {
10552
10636
  note: item.action.note !== undefined ? item.action.note : undefined,
10553
10637
  status: item.action.status !== undefined ? item.action.status : undefined,
10554
10638
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10555
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10556
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10639
+ dependsOn: item.action.dependsOn !== undefined ? {
10640
+ set: item.action.dependsOn
10641
+ } : undefined,
10642
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10643
+ set: item.action.dependedOnBy
10644
+ } : undefined,
10557
10645
  },
10558
10646
  }
10559
10647
  } : undefined,
@@ -10783,8 +10871,12 @@ exports.Trade = {
10783
10871
  note: item.action.note !== undefined ? item.action.note : undefined,
10784
10872
  status: item.action.status !== undefined ? item.action.status : undefined,
10785
10873
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10786
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10787
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10874
+ dependsOn: item.action.dependsOn !== undefined ? {
10875
+ set: item.action.dependsOn
10876
+ } : undefined,
10877
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10878
+ set: item.action.dependedOnBy
10879
+ } : undefined,
10788
10880
  },
10789
10881
  }
10790
10882
  } : undefined,
@@ -11105,12 +11197,16 @@ exports.Trade = {
11105
11197
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11106
11198
  url: item.news.url !== undefined ? item.news.url : undefined,
11107
11199
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11108
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11200
+ authors: item.news.authors !== undefined ? {
11201
+ set: item.news.authors
11202
+ } : undefined,
11109
11203
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11110
11204
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11111
11205
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11112
11206
  category: item.news.category !== undefined ? item.news.category : undefined,
11113
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11207
+ topics: item.news.topics !== undefined ? {
11208
+ set: item.news.topics
11209
+ } : undefined,
11114
11210
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11115
11211
  },
11116
11212
  }
@@ -11142,12 +11238,16 @@ exports.Trade = {
11142
11238
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11143
11239
  url: item.news.url !== undefined ? item.news.url : undefined,
11144
11240
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11145
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11241
+ authors: item.news.authors !== undefined ? {
11242
+ set: item.news.authors
11243
+ } : undefined,
11146
11244
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11147
11245
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11148
11246
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11149
11247
  category: item.news.category !== undefined ? item.news.category : undefined,
11150
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11248
+ topics: item.news.topics !== undefined ? {
11249
+ set: item.news.topics
11250
+ } : undefined,
11151
11251
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11152
11252
  },
11153
11253
  }
@@ -11722,8 +11822,12 @@ exports.Trade = {
11722
11822
  note: item.action.note !== undefined ? item.action.note : undefined,
11723
11823
  status: item.action.status !== undefined ? item.action.status : undefined,
11724
11824
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
11725
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
11726
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
11825
+ dependsOn: item.action.dependsOn !== undefined ? {
11826
+ set: item.action.dependsOn
11827
+ } : undefined,
11828
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
11829
+ set: item.action.dependedOnBy
11830
+ } : undefined,
11727
11831
  },
11728
11832
  }
11729
11833
  } : undefined,
@@ -11870,12 +11974,16 @@ exports.Trade = {
11870
11974
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11871
11975
  url: item.news.url !== undefined ? item.news.url : undefined,
11872
11976
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11873
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11977
+ authors: item.news.authors !== undefined ? {
11978
+ set: item.news.authors
11979
+ } : undefined,
11874
11980
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11875
11981
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11876
11982
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11877
11983
  category: item.news.category !== undefined ? item.news.category : undefined,
11878
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11984
+ topics: item.news.topics !== undefined ? {
11985
+ set: item.news.topics
11986
+ } : undefined,
11879
11987
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11880
11988
  },
11881
11989
  }
@@ -12856,8 +12964,12 @@ exports.Trade = {
12856
12964
  note: item.note !== undefined ? item.note : undefined,
12857
12965
  status: item.status !== undefined ? item.status : undefined,
12858
12966
  fee: item.fee !== undefined ? item.fee : undefined,
12859
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
12860
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
12967
+ dependsOn: item.dependsOn !== undefined ? {
12968
+ set: item.dependsOn
12969
+ } : undefined,
12970
+ dependedOnBy: item.dependedOnBy !== undefined ? {
12971
+ set: item.dependedOnBy
12972
+ } : undefined,
12861
12973
  order: item.order ?
12862
12974
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
12863
12975
  ? { connect: {
@@ -13787,8 +13899,12 @@ exports.Trade = {
13787
13899
  note: item.action.note !== undefined ? item.action.note : undefined,
13788
13900
  status: item.action.status !== undefined ? item.action.status : undefined,
13789
13901
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
13790
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
13791
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
13902
+ dependsOn: item.action.dependsOn !== undefined ? {
13903
+ set: item.action.dependsOn
13904
+ } : undefined,
13905
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
13906
+ set: item.action.dependedOnBy
13907
+ } : undefined,
13792
13908
  },
13793
13909
  }
13794
13910
  } : undefined,
@@ -14238,8 +14354,12 @@ exports.Trade = {
14238
14354
  note: item.action.note !== undefined ? item.action.note : undefined,
14239
14355
  status: item.action.status !== undefined ? item.action.status : undefined,
14240
14356
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
14241
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
14242
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
14357
+ dependsOn: item.action.dependsOn !== undefined ? {
14358
+ set: item.action.dependsOn
14359
+ } : undefined,
14360
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
14361
+ set: item.action.dependedOnBy
14362
+ } : undefined,
14243
14363
  },
14244
14364
  }
14245
14365
  } : undefined,
@@ -15028,8 +15148,12 @@ exports.Trade = {
15028
15148
  note: item.action.note !== undefined ? item.action.note : undefined,
15029
15149
  status: item.action.status !== undefined ? item.action.status : undefined,
15030
15150
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15031
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15032
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
15151
+ dependsOn: item.action.dependsOn !== undefined ? {
15152
+ set: item.action.dependsOn
15153
+ } : undefined,
15154
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
15155
+ set: item.action.dependedOnBy
15156
+ } : undefined,
15033
15157
  },
15034
15158
  }
15035
15159
  } : undefined,
@@ -15737,8 +15861,12 @@ exports.Trade = {
15737
15861
  note: item.action.note !== undefined ? item.action.note : undefined,
15738
15862
  status: item.action.status !== undefined ? item.action.status : undefined,
15739
15863
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15740
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15741
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
15864
+ dependsOn: item.action.dependsOn !== undefined ? {
15865
+ set: item.action.dependsOn
15866
+ } : undefined,
15867
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
15868
+ set: item.action.dependedOnBy
15869
+ } : undefined,
15742
15870
  },
15743
15871
  }
15744
15872
  } : undefined,
@@ -15968,8 +16096,12 @@ exports.Trade = {
15968
16096
  note: item.action.note !== undefined ? item.action.note : undefined,
15969
16097
  status: item.action.status !== undefined ? item.action.status : undefined,
15970
16098
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15971
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15972
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
16099
+ dependsOn: item.action.dependsOn !== undefined ? {
16100
+ set: item.action.dependsOn
16101
+ } : undefined,
16102
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
16103
+ set: item.action.dependedOnBy
16104
+ } : undefined,
15973
16105
  },
15974
16106
  }
15975
16107
  } : undefined,
@@ -16290,12 +16422,16 @@ exports.Trade = {
16290
16422
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
16291
16423
  url: item.news.url !== undefined ? item.news.url : undefined,
16292
16424
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
16293
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
16425
+ authors: item.news.authors !== undefined ? {
16426
+ set: item.news.authors
16427
+ } : undefined,
16294
16428
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
16295
16429
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
16296
16430
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
16297
16431
  category: item.news.category !== undefined ? item.news.category : undefined,
16298
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
16432
+ topics: item.news.topics !== undefined ? {
16433
+ set: item.news.topics
16434
+ } : undefined,
16299
16435
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
16300
16436
  },
16301
16437
  }
@@ -16327,12 +16463,16 @@ exports.Trade = {
16327
16463
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
16328
16464
  url: item.news.url !== undefined ? item.news.url : undefined,
16329
16465
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
16330
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
16466
+ authors: item.news.authors !== undefined ? {
16467
+ set: item.news.authors
16468
+ } : undefined,
16331
16469
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
16332
16470
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
16333
16471
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
16334
16472
  category: item.news.category !== undefined ? item.news.category : undefined,
16335
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
16473
+ topics: item.news.topics !== undefined ? {
16474
+ set: item.news.topics
16475
+ } : undefined,
16336
16476
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
16337
16477
  },
16338
16478
  }
@@ -16907,8 +17047,12 @@ exports.Trade = {
16907
17047
  note: item.action.note !== undefined ? item.action.note : undefined,
16908
17048
  status: item.action.status !== undefined ? item.action.status : undefined,
16909
17049
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
16910
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
16911
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
17050
+ dependsOn: item.action.dependsOn !== undefined ? {
17051
+ set: item.action.dependsOn
17052
+ } : undefined,
17053
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
17054
+ set: item.action.dependedOnBy
17055
+ } : undefined,
16912
17056
  },
16913
17057
  }
16914
17058
  } : undefined,
@@ -17055,12 +17199,16 @@ exports.Trade = {
17055
17199
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
17056
17200
  url: item.news.url !== undefined ? item.news.url : undefined,
17057
17201
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
17058
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
17202
+ authors: item.news.authors !== undefined ? {
17203
+ set: item.news.authors
17204
+ } : undefined,
17059
17205
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
17060
17206
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
17061
17207
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
17062
17208
  category: item.news.category !== undefined ? item.news.category : undefined,
17063
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
17209
+ topics: item.news.topics !== undefined ? {
17210
+ set: item.news.topics
17211
+ } : undefined,
17064
17212
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
17065
17213
  },
17066
17214
  }
@@ -18041,8 +18189,12 @@ exports.Trade = {
18041
18189
  note: item.note !== undefined ? item.note : undefined,
18042
18190
  status: item.status !== undefined ? item.status : undefined,
18043
18191
  fee: item.fee !== undefined ? item.fee : undefined,
18044
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
18045
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
18192
+ dependsOn: item.dependsOn !== undefined ? {
18193
+ set: item.dependsOn
18194
+ } : undefined,
18195
+ dependedOnBy: item.dependedOnBy !== undefined ? {
18196
+ set: item.dependedOnBy
18197
+ } : undefined,
18046
18198
  order: item.order ?
18047
18199
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
18048
18200
  ? { connect: {