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/server/Trade.mjs CHANGED
@@ -485,8 +485,12 @@ export const Trade = {
485
485
  note: item.action.note !== undefined ? item.action.note : undefined,
486
486
  status: item.action.status !== undefined ? item.action.status : undefined,
487
487
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
488
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
489
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
488
+ dependsOn: item.action.dependsOn !== undefined ? {
489
+ set: item.action.dependsOn
490
+ } : undefined,
491
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
492
+ set: item.action.dependedOnBy
493
+ } : undefined,
490
494
  },
491
495
  }
492
496
  } : undefined,
@@ -922,8 +926,12 @@ export const Trade = {
922
926
  note: item.action.note !== undefined ? item.action.note : undefined,
923
927
  status: item.action.status !== undefined ? item.action.status : undefined,
924
928
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
925
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
926
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
929
+ dependsOn: item.action.dependsOn !== undefined ? {
930
+ set: item.action.dependsOn
931
+ } : undefined,
932
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
933
+ set: item.action.dependedOnBy
934
+ } : undefined,
927
935
  },
928
936
  }
929
937
  } : undefined,
@@ -1070,12 +1078,16 @@ export const Trade = {
1070
1078
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
1071
1079
  url: item.news.url !== undefined ? item.news.url : undefined,
1072
1080
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
1073
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
1081
+ authors: item.news.authors !== undefined ? {
1082
+ set: item.news.authors
1083
+ } : undefined,
1074
1084
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
1075
1085
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
1076
1086
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
1077
1087
  category: item.news.category !== undefined ? item.news.category : undefined,
1078
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
1088
+ topics: item.news.topics !== undefined ? {
1089
+ set: item.news.topics
1090
+ } : undefined,
1079
1091
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
1080
1092
  },
1081
1093
  }
@@ -1221,8 +1233,12 @@ export const Trade = {
1221
1233
  note: item.note !== undefined ? item.note : undefined,
1222
1234
  status: item.status !== undefined ? item.status : undefined,
1223
1235
  fee: item.fee !== undefined ? item.fee : undefined,
1224
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
1225
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
1236
+ dependsOn: item.dependsOn !== undefined ? {
1237
+ set: item.dependsOn
1238
+ } : undefined,
1239
+ dependedOnBy: item.dependedOnBy !== undefined ? {
1240
+ set: item.dependedOnBy
1241
+ } : undefined,
1226
1242
  order: item.order ?
1227
1243
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
1228
1244
  ? { connect: {
@@ -2200,8 +2216,12 @@ export const Trade = {
2200
2216
  note: item.action.note !== undefined ? item.action.note : undefined,
2201
2217
  status: item.action.status !== undefined ? item.action.status : undefined,
2202
2218
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2203
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2204
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2219
+ dependsOn: item.action.dependsOn !== undefined ? {
2220
+ set: item.action.dependsOn
2221
+ } : undefined,
2222
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2223
+ set: item.action.dependedOnBy
2224
+ } : undefined,
2205
2225
  },
2206
2226
  }
2207
2227
  } : undefined,
@@ -2651,8 +2671,12 @@ export const Trade = {
2651
2671
  note: item.action.note !== undefined ? item.action.note : undefined,
2652
2672
  status: item.action.status !== undefined ? item.action.status : undefined,
2653
2673
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2654
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2655
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2674
+ dependsOn: item.action.dependsOn !== undefined ? {
2675
+ set: item.action.dependsOn
2676
+ } : undefined,
2677
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2678
+ set: item.action.dependedOnBy
2679
+ } : undefined,
2656
2680
  },
2657
2681
  }
2658
2682
  } : undefined,
@@ -3441,8 +3465,12 @@ export const Trade = {
3441
3465
  note: item.action.note !== undefined ? item.action.note : undefined,
3442
3466
  status: item.action.status !== undefined ? item.action.status : undefined,
3443
3467
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
3444
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
3445
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
3468
+ dependsOn: item.action.dependsOn !== undefined ? {
3469
+ set: item.action.dependsOn
3470
+ } : undefined,
3471
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
3472
+ set: item.action.dependedOnBy
3473
+ } : undefined,
3446
3474
  },
3447
3475
  }
3448
3476
  } : undefined,
@@ -4150,8 +4178,12 @@ export const Trade = {
4150
4178
  note: item.action.note !== undefined ? item.action.note : undefined,
4151
4179
  status: item.action.status !== undefined ? item.action.status : undefined,
4152
4180
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
4153
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
4154
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
4181
+ dependsOn: item.action.dependsOn !== undefined ? {
4182
+ set: item.action.dependsOn
4183
+ } : undefined,
4184
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
4185
+ set: item.action.dependedOnBy
4186
+ } : undefined,
4155
4187
  },
4156
4188
  }
4157
4189
  } : undefined,
@@ -4381,8 +4413,12 @@ export const Trade = {
4381
4413
  note: item.action.note !== undefined ? item.action.note : undefined,
4382
4414
  status: item.action.status !== undefined ? item.action.status : undefined,
4383
4415
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
4384
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
4385
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
4416
+ dependsOn: item.action.dependsOn !== undefined ? {
4417
+ set: item.action.dependsOn
4418
+ } : undefined,
4419
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
4420
+ set: item.action.dependedOnBy
4421
+ } : undefined,
4386
4422
  },
4387
4423
  }
4388
4424
  } : undefined,
@@ -4703,12 +4739,16 @@ export const Trade = {
4703
4739
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
4704
4740
  url: item.news.url !== undefined ? item.news.url : undefined,
4705
4741
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
4706
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
4742
+ authors: item.news.authors !== undefined ? {
4743
+ set: item.news.authors
4744
+ } : undefined,
4707
4745
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
4708
4746
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
4709
4747
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
4710
4748
  category: item.news.category !== undefined ? item.news.category : undefined,
4711
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
4749
+ topics: item.news.topics !== undefined ? {
4750
+ set: item.news.topics
4751
+ } : undefined,
4712
4752
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
4713
4753
  },
4714
4754
  }
@@ -4740,12 +4780,16 @@ export const Trade = {
4740
4780
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
4741
4781
  url: item.news.url !== undefined ? item.news.url : undefined,
4742
4782
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
4743
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
4783
+ authors: item.news.authors !== undefined ? {
4784
+ set: item.news.authors
4785
+ } : undefined,
4744
4786
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
4745
4787
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
4746
4788
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
4747
4789
  category: item.news.category !== undefined ? item.news.category : undefined,
4748
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
4790
+ topics: item.news.topics !== undefined ? {
4791
+ set: item.news.topics
4792
+ } : undefined,
4749
4793
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
4750
4794
  },
4751
4795
  }
@@ -5320,8 +5364,12 @@ export const Trade = {
5320
5364
  note: item.action.note !== undefined ? item.action.note : undefined,
5321
5365
  status: item.action.status !== undefined ? item.action.status : undefined,
5322
5366
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
5323
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
5324
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
5367
+ dependsOn: item.action.dependsOn !== undefined ? {
5368
+ set: item.action.dependsOn
5369
+ } : undefined,
5370
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
5371
+ set: item.action.dependedOnBy
5372
+ } : undefined,
5325
5373
  },
5326
5374
  }
5327
5375
  } : undefined,
@@ -5468,12 +5516,16 @@ export const Trade = {
5468
5516
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
5469
5517
  url: item.news.url !== undefined ? item.news.url : undefined,
5470
5518
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
5471
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
5519
+ authors: item.news.authors !== undefined ? {
5520
+ set: item.news.authors
5521
+ } : undefined,
5472
5522
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
5473
5523
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
5474
5524
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
5475
5525
  category: item.news.category !== undefined ? item.news.category : undefined,
5476
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
5526
+ topics: item.news.topics !== undefined ? {
5527
+ set: item.news.topics
5528
+ } : undefined,
5477
5529
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
5478
5530
  },
5479
5531
  }
@@ -6454,8 +6506,12 @@ export const Trade = {
6454
6506
  note: item.note !== undefined ? item.note : undefined,
6455
6507
  status: item.status !== undefined ? item.status : undefined,
6456
6508
  fee: item.fee !== undefined ? item.fee : undefined,
6457
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
6458
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
6509
+ dependsOn: item.dependsOn !== undefined ? {
6510
+ set: item.dependsOn
6511
+ } : undefined,
6512
+ dependedOnBy: item.dependedOnBy !== undefined ? {
6513
+ set: item.dependedOnBy
6514
+ } : undefined,
6459
6515
  order: item.order ?
6460
6516
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
6461
6517
  ? { connect: {
@@ -6981,8 +7037,12 @@ export const Trade = {
6981
7037
  note: item.action.note !== undefined ? item.action.note : undefined,
6982
7038
  status: item.action.status !== undefined ? item.action.status : undefined,
6983
7039
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
6984
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
6985
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7040
+ dependsOn: item.action.dependsOn !== undefined ? {
7041
+ set: item.action.dependsOn
7042
+ } : undefined,
7043
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7044
+ set: item.action.dependedOnBy
7045
+ } : undefined,
6986
7046
  },
6987
7047
  }
6988
7048
  } : undefined,
@@ -7418,8 +7478,12 @@ export const Trade = {
7418
7478
  note: item.action.note !== undefined ? item.action.note : undefined,
7419
7479
  status: item.action.status !== undefined ? item.action.status : undefined,
7420
7480
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
7421
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
7422
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7481
+ dependsOn: item.action.dependsOn !== undefined ? {
7482
+ set: item.action.dependsOn
7483
+ } : undefined,
7484
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7485
+ set: item.action.dependedOnBy
7486
+ } : undefined,
7423
7487
  },
7424
7488
  }
7425
7489
  } : undefined,
@@ -7566,12 +7630,16 @@ export const Trade = {
7566
7630
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
7567
7631
  url: item.news.url !== undefined ? item.news.url : undefined,
7568
7632
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
7569
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
7633
+ authors: item.news.authors !== undefined ? {
7634
+ set: item.news.authors
7635
+ } : undefined,
7570
7636
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
7571
7637
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
7572
7638
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
7573
7639
  category: item.news.category !== undefined ? item.news.category : undefined,
7574
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
7640
+ topics: item.news.topics !== undefined ? {
7641
+ set: item.news.topics
7642
+ } : undefined,
7575
7643
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
7576
7644
  },
7577
7645
  }
@@ -7717,8 +7785,12 @@ export const Trade = {
7717
7785
  note: item.note !== undefined ? item.note : undefined,
7718
7786
  status: item.status !== undefined ? item.status : undefined,
7719
7787
  fee: item.fee !== undefined ? item.fee : undefined,
7720
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
7721
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
7788
+ dependsOn: item.dependsOn !== undefined ? {
7789
+ set: item.dependsOn
7790
+ } : undefined,
7791
+ dependedOnBy: item.dependedOnBy !== undefined ? {
7792
+ set: item.dependedOnBy
7793
+ } : undefined,
7722
7794
  order: item.order ?
7723
7795
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
7724
7796
  ? { connect: {
@@ -8600,8 +8672,12 @@ export const Trade = {
8600
8672
  note: item.action.note !== undefined ? item.action.note : undefined,
8601
8673
  status: item.action.status !== undefined ? item.action.status : undefined,
8602
8674
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
8603
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
8604
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
8675
+ dependsOn: item.action.dependsOn !== undefined ? {
8676
+ set: item.action.dependsOn
8677
+ } : undefined,
8678
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
8679
+ set: item.action.dependedOnBy
8680
+ } : undefined,
8605
8681
  },
8606
8682
  }
8607
8683
  } : undefined,
@@ -9051,8 +9127,12 @@ export const Trade = {
9051
9127
  note: item.action.note !== undefined ? item.action.note : undefined,
9052
9128
  status: item.action.status !== undefined ? item.action.status : undefined,
9053
9129
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
9054
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
9055
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
9130
+ dependsOn: item.action.dependsOn !== undefined ? {
9131
+ set: item.action.dependsOn
9132
+ } : undefined,
9133
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
9134
+ set: item.action.dependedOnBy
9135
+ } : undefined,
9056
9136
  },
9057
9137
  }
9058
9138
  } : undefined,
@@ -9841,8 +9921,12 @@ export const Trade = {
9841
9921
  note: item.action.note !== undefined ? item.action.note : undefined,
9842
9922
  status: item.action.status !== undefined ? item.action.status : undefined,
9843
9923
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
9844
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
9845
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
9924
+ dependsOn: item.action.dependsOn !== undefined ? {
9925
+ set: item.action.dependsOn
9926
+ } : undefined,
9927
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
9928
+ set: item.action.dependedOnBy
9929
+ } : undefined,
9846
9930
  },
9847
9931
  }
9848
9932
  } : undefined,
@@ -10550,8 +10634,12 @@ export const Trade = {
10550
10634
  note: item.action.note !== undefined ? item.action.note : undefined,
10551
10635
  status: item.action.status !== undefined ? item.action.status : undefined,
10552
10636
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10553
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10554
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10637
+ dependsOn: item.action.dependsOn !== undefined ? {
10638
+ set: item.action.dependsOn
10639
+ } : undefined,
10640
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10641
+ set: item.action.dependedOnBy
10642
+ } : undefined,
10555
10643
  },
10556
10644
  }
10557
10645
  } : undefined,
@@ -10781,8 +10869,12 @@ export const Trade = {
10781
10869
  note: item.action.note !== undefined ? item.action.note : undefined,
10782
10870
  status: item.action.status !== undefined ? item.action.status : undefined,
10783
10871
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10784
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10785
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10872
+ dependsOn: item.action.dependsOn !== undefined ? {
10873
+ set: item.action.dependsOn
10874
+ } : undefined,
10875
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10876
+ set: item.action.dependedOnBy
10877
+ } : undefined,
10786
10878
  },
10787
10879
  }
10788
10880
  } : undefined,
@@ -11103,12 +11195,16 @@ export const Trade = {
11103
11195
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11104
11196
  url: item.news.url !== undefined ? item.news.url : undefined,
11105
11197
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11106
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11198
+ authors: item.news.authors !== undefined ? {
11199
+ set: item.news.authors
11200
+ } : undefined,
11107
11201
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11108
11202
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11109
11203
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11110
11204
  category: item.news.category !== undefined ? item.news.category : undefined,
11111
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11205
+ topics: item.news.topics !== undefined ? {
11206
+ set: item.news.topics
11207
+ } : undefined,
11112
11208
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11113
11209
  },
11114
11210
  }
@@ -11140,12 +11236,16 @@ export const Trade = {
11140
11236
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11141
11237
  url: item.news.url !== undefined ? item.news.url : undefined,
11142
11238
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11143
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11239
+ authors: item.news.authors !== undefined ? {
11240
+ set: item.news.authors
11241
+ } : undefined,
11144
11242
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11145
11243
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11146
11244
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11147
11245
  category: item.news.category !== undefined ? item.news.category : undefined,
11148
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11246
+ topics: item.news.topics !== undefined ? {
11247
+ set: item.news.topics
11248
+ } : undefined,
11149
11249
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11150
11250
  },
11151
11251
  }
@@ -11720,8 +11820,12 @@ export const Trade = {
11720
11820
  note: item.action.note !== undefined ? item.action.note : undefined,
11721
11821
  status: item.action.status !== undefined ? item.action.status : undefined,
11722
11822
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
11723
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
11724
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
11823
+ dependsOn: item.action.dependsOn !== undefined ? {
11824
+ set: item.action.dependsOn
11825
+ } : undefined,
11826
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
11827
+ set: item.action.dependedOnBy
11828
+ } : undefined,
11725
11829
  },
11726
11830
  }
11727
11831
  } : undefined,
@@ -11868,12 +11972,16 @@ export const Trade = {
11868
11972
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11869
11973
  url: item.news.url !== undefined ? item.news.url : undefined,
11870
11974
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11871
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11975
+ authors: item.news.authors !== undefined ? {
11976
+ set: item.news.authors
11977
+ } : undefined,
11872
11978
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11873
11979
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11874
11980
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11875
11981
  category: item.news.category !== undefined ? item.news.category : undefined,
11876
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11982
+ topics: item.news.topics !== undefined ? {
11983
+ set: item.news.topics
11984
+ } : undefined,
11877
11985
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11878
11986
  },
11879
11987
  }
@@ -12854,8 +12962,12 @@ export const Trade = {
12854
12962
  note: item.note !== undefined ? item.note : undefined,
12855
12963
  status: item.status !== undefined ? item.status : undefined,
12856
12964
  fee: item.fee !== undefined ? item.fee : undefined,
12857
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
12858
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
12965
+ dependsOn: item.dependsOn !== undefined ? {
12966
+ set: item.dependsOn
12967
+ } : undefined,
12968
+ dependedOnBy: item.dependedOnBy !== undefined ? {
12969
+ set: item.dependedOnBy
12970
+ } : undefined,
12859
12971
  order: item.order ?
12860
12972
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
12861
12973
  ? { connect: {
@@ -13785,8 +13897,12 @@ export const Trade = {
13785
13897
  note: item.action.note !== undefined ? item.action.note : undefined,
13786
13898
  status: item.action.status !== undefined ? item.action.status : undefined,
13787
13899
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
13788
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
13789
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
13900
+ dependsOn: item.action.dependsOn !== undefined ? {
13901
+ set: item.action.dependsOn
13902
+ } : undefined,
13903
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
13904
+ set: item.action.dependedOnBy
13905
+ } : undefined,
13790
13906
  },
13791
13907
  }
13792
13908
  } : undefined,
@@ -14236,8 +14352,12 @@ export const Trade = {
14236
14352
  note: item.action.note !== undefined ? item.action.note : undefined,
14237
14353
  status: item.action.status !== undefined ? item.action.status : undefined,
14238
14354
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
14239
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
14240
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
14355
+ dependsOn: item.action.dependsOn !== undefined ? {
14356
+ set: item.action.dependsOn
14357
+ } : undefined,
14358
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
14359
+ set: item.action.dependedOnBy
14360
+ } : undefined,
14241
14361
  },
14242
14362
  }
14243
14363
  } : undefined,
@@ -15026,8 +15146,12 @@ export const Trade = {
15026
15146
  note: item.action.note !== undefined ? item.action.note : undefined,
15027
15147
  status: item.action.status !== undefined ? item.action.status : undefined,
15028
15148
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15029
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15030
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
15149
+ dependsOn: item.action.dependsOn !== undefined ? {
15150
+ set: item.action.dependsOn
15151
+ } : undefined,
15152
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
15153
+ set: item.action.dependedOnBy
15154
+ } : undefined,
15031
15155
  },
15032
15156
  }
15033
15157
  } : undefined,
@@ -15735,8 +15859,12 @@ export const Trade = {
15735
15859
  note: item.action.note !== undefined ? item.action.note : undefined,
15736
15860
  status: item.action.status !== undefined ? item.action.status : undefined,
15737
15861
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15738
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15739
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
15862
+ dependsOn: item.action.dependsOn !== undefined ? {
15863
+ set: item.action.dependsOn
15864
+ } : undefined,
15865
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
15866
+ set: item.action.dependedOnBy
15867
+ } : undefined,
15740
15868
  },
15741
15869
  }
15742
15870
  } : undefined,
@@ -15966,8 +16094,12 @@ export const Trade = {
15966
16094
  note: item.action.note !== undefined ? item.action.note : undefined,
15967
16095
  status: item.action.status !== undefined ? item.action.status : undefined,
15968
16096
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
15969
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
15970
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
16097
+ dependsOn: item.action.dependsOn !== undefined ? {
16098
+ set: item.action.dependsOn
16099
+ } : undefined,
16100
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
16101
+ set: item.action.dependedOnBy
16102
+ } : undefined,
15971
16103
  },
15972
16104
  }
15973
16105
  } : undefined,
@@ -16288,12 +16420,16 @@ export const Trade = {
16288
16420
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
16289
16421
  url: item.news.url !== undefined ? item.news.url : undefined,
16290
16422
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
16291
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
16423
+ authors: item.news.authors !== undefined ? {
16424
+ set: item.news.authors
16425
+ } : undefined,
16292
16426
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
16293
16427
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
16294
16428
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
16295
16429
  category: item.news.category !== undefined ? item.news.category : undefined,
16296
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
16430
+ topics: item.news.topics !== undefined ? {
16431
+ set: item.news.topics
16432
+ } : undefined,
16297
16433
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
16298
16434
  },
16299
16435
  }
@@ -16325,12 +16461,16 @@ export const Trade = {
16325
16461
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
16326
16462
  url: item.news.url !== undefined ? item.news.url : undefined,
16327
16463
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
16328
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
16464
+ authors: item.news.authors !== undefined ? {
16465
+ set: item.news.authors
16466
+ } : undefined,
16329
16467
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
16330
16468
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
16331
16469
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
16332
16470
  category: item.news.category !== undefined ? item.news.category : undefined,
16333
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
16471
+ topics: item.news.topics !== undefined ? {
16472
+ set: item.news.topics
16473
+ } : undefined,
16334
16474
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
16335
16475
  },
16336
16476
  }
@@ -16905,8 +17045,12 @@ export const Trade = {
16905
17045
  note: item.action.note !== undefined ? item.action.note : undefined,
16906
17046
  status: item.action.status !== undefined ? item.action.status : undefined,
16907
17047
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
16908
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
16909
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
17048
+ dependsOn: item.action.dependsOn !== undefined ? {
17049
+ set: item.action.dependsOn
17050
+ } : undefined,
17051
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
17052
+ set: item.action.dependedOnBy
17053
+ } : undefined,
16910
17054
  },
16911
17055
  }
16912
17056
  } : undefined,
@@ -17053,12 +17197,16 @@ export const Trade = {
17053
17197
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
17054
17198
  url: item.news.url !== undefined ? item.news.url : undefined,
17055
17199
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
17056
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
17200
+ authors: item.news.authors !== undefined ? {
17201
+ set: item.news.authors
17202
+ } : undefined,
17057
17203
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
17058
17204
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
17059
17205
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
17060
17206
  category: item.news.category !== undefined ? item.news.category : undefined,
17061
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
17207
+ topics: item.news.topics !== undefined ? {
17208
+ set: item.news.topics
17209
+ } : undefined,
17062
17210
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
17063
17211
  },
17064
17212
  }
@@ -18039,8 +18187,12 @@ export const Trade = {
18039
18187
  note: item.note !== undefined ? item.note : undefined,
18040
18188
  status: item.status !== undefined ? item.status : undefined,
18041
18189
  fee: item.fee !== undefined ? item.fee : undefined,
18042
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
18043
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
18190
+ dependsOn: item.dependsOn !== undefined ? {
18191
+ set: item.dependsOn
18192
+ } : undefined,
18193
+ dependedOnBy: item.dependedOnBy !== undefined ? {
18194
+ set: item.dependedOnBy
18195
+ } : undefined,
18044
18196
  order: item.order ?
18045
18197
  typeof item.order === 'object' && Object.keys(item.order).length === 1 && Object.keys(item.order)[0] === 'id'
18046
18198
  ? { connect: {