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
@@ -436,8 +436,12 @@ export const Contract = {
436
436
  note: item.note !== undefined ? item.note : undefined,
437
437
  status: item.status !== undefined ? item.status : undefined,
438
438
  fee: item.fee !== undefined ? item.fee : undefined,
439
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
440
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
439
+ dependsOn: item.dependsOn !== undefined ? {
440
+ set: item.dependsOn
441
+ } : undefined,
442
+ dependedOnBy: item.dependedOnBy !== undefined ? {
443
+ set: item.dependedOnBy
444
+ } : undefined,
441
445
  },
442
446
  }))
443
447
  } : undefined,
@@ -567,8 +571,12 @@ export const Contract = {
567
571
  note: item.action.note !== undefined ? item.action.note : undefined,
568
572
  status: item.action.status !== undefined ? item.action.status : undefined,
569
573
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
570
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
571
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
574
+ dependsOn: item.action.dependsOn !== undefined ? {
575
+ set: item.action.dependsOn
576
+ } : undefined,
577
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
578
+ set: item.action.dependedOnBy
579
+ } : undefined,
572
580
  },
573
581
  }
574
582
  } : undefined,
@@ -715,12 +723,16 @@ export const Contract = {
715
723
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
716
724
  url: item.news.url !== undefined ? item.news.url : undefined,
717
725
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
718
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
726
+ authors: item.news.authors !== undefined ? {
727
+ set: item.news.authors
728
+ } : undefined,
719
729
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
720
730
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
721
731
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
722
732
  category: item.news.category !== undefined ? item.news.category : undefined,
723
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
733
+ topics: item.news.topics !== undefined ? {
734
+ set: item.news.topics
735
+ } : undefined,
724
736
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
725
737
  },
726
738
  }
@@ -962,8 +974,12 @@ export const Contract = {
962
974
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
963
975
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
964
976
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
965
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
966
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
977
+ dependsOn: props.order.action.dependsOn !== undefined ? {
978
+ set: props.order.action.dependsOn
979
+ } : undefined,
980
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
981
+ set: props.order.action.dependedOnBy
982
+ } : undefined,
967
983
  trade: props.order.action.trade ?
968
984
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
969
985
  ? { connect: {
@@ -1769,8 +1785,12 @@ export const Contract = {
1769
1785
  note: item.note !== undefined ? item.note : undefined,
1770
1786
  status: item.status !== undefined ? item.status : undefined,
1771
1787
  fee: item.fee !== undefined ? item.fee : undefined,
1772
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
1773
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
1788
+ dependsOn: item.dependsOn !== undefined ? {
1789
+ set: item.dependsOn
1790
+ } : undefined,
1791
+ dependedOnBy: item.dependedOnBy !== undefined ? {
1792
+ set: item.dependedOnBy
1793
+ } : undefined,
1774
1794
  },
1775
1795
  }))
1776
1796
  } : undefined,
@@ -1833,8 +1853,12 @@ export const Contract = {
1833
1853
  note: item.note !== undefined ? item.note : undefined,
1834
1854
  status: item.status !== undefined ? item.status : undefined,
1835
1855
  fee: item.fee !== undefined ? item.fee : undefined,
1836
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
1837
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
1856
+ dependsOn: item.dependsOn !== undefined ? {
1857
+ set: item.dependsOn
1858
+ } : undefined,
1859
+ dependedOnBy: item.dependedOnBy !== undefined ? {
1860
+ set: item.dependedOnBy
1861
+ } : undefined,
1838
1862
  },
1839
1863
  }))
1840
1864
  } : undefined,
@@ -2117,8 +2141,12 @@ export const Contract = {
2117
2141
  note: item.action.note !== undefined ? item.action.note : undefined,
2118
2142
  status: item.action.status !== undefined ? item.action.status : undefined,
2119
2143
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2120
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2121
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2144
+ dependsOn: item.action.dependsOn !== undefined ? {
2145
+ set: item.action.dependsOn
2146
+ } : undefined,
2147
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2148
+ set: item.action.dependedOnBy
2149
+ } : undefined,
2122
2150
  },
2123
2151
  }
2124
2152
  } : undefined,
@@ -2348,8 +2376,12 @@ export const Contract = {
2348
2376
  note: item.action.note !== undefined ? item.action.note : undefined,
2349
2377
  status: item.action.status !== undefined ? item.action.status : undefined,
2350
2378
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2351
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2352
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
2379
+ dependsOn: item.action.dependsOn !== undefined ? {
2380
+ set: item.action.dependsOn
2381
+ } : undefined,
2382
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
2383
+ set: item.action.dependedOnBy
2384
+ } : undefined,
2353
2385
  },
2354
2386
  }
2355
2387
  } : undefined,
@@ -2670,12 +2702,16 @@ export const Contract = {
2670
2702
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
2671
2703
  url: item.news.url !== undefined ? item.news.url : undefined,
2672
2704
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
2673
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
2705
+ authors: item.news.authors !== undefined ? {
2706
+ set: item.news.authors
2707
+ } : undefined,
2674
2708
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
2675
2709
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
2676
2710
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
2677
2711
  category: item.news.category !== undefined ? item.news.category : undefined,
2678
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
2712
+ topics: item.news.topics !== undefined ? {
2713
+ set: item.news.topics
2714
+ } : undefined,
2679
2715
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
2680
2716
  },
2681
2717
  }
@@ -2707,12 +2743,16 @@ export const Contract = {
2707
2743
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
2708
2744
  url: item.news.url !== undefined ? item.news.url : undefined,
2709
2745
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
2710
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
2746
+ authors: item.news.authors !== undefined ? {
2747
+ set: item.news.authors
2748
+ } : undefined,
2711
2749
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
2712
2750
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
2713
2751
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
2714
2752
  category: item.news.category !== undefined ? item.news.category : undefined,
2715
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
2753
+ topics: item.news.topics !== undefined ? {
2754
+ set: item.news.topics
2755
+ } : undefined,
2716
2756
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
2717
2757
  },
2718
2758
  }
@@ -2848,8 +2888,12 @@ export const Contract = {
2848
2888
  note: item.note !== undefined ? item.note : undefined,
2849
2889
  status: item.status !== undefined ? item.status : undefined,
2850
2890
  fee: item.fee !== undefined ? item.fee : undefined,
2851
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
2852
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
2891
+ dependsOn: item.dependsOn !== undefined ? {
2892
+ set: item.dependsOn
2893
+ } : undefined,
2894
+ dependedOnBy: item.dependedOnBy !== undefined ? {
2895
+ set: item.dependedOnBy
2896
+ } : undefined,
2853
2897
  },
2854
2898
  }))
2855
2899
  } : undefined,
@@ -2979,8 +3023,12 @@ export const Contract = {
2979
3023
  note: item.action.note !== undefined ? item.action.note : undefined,
2980
3024
  status: item.action.status !== undefined ? item.action.status : undefined,
2981
3025
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
2982
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
2983
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
3026
+ dependsOn: item.action.dependsOn !== undefined ? {
3027
+ set: item.action.dependsOn
3028
+ } : undefined,
3029
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
3030
+ set: item.action.dependedOnBy
3031
+ } : undefined,
2984
3032
  },
2985
3033
  }
2986
3034
  } : undefined,
@@ -3127,12 +3175,16 @@ export const Contract = {
3127
3175
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
3128
3176
  url: item.news.url !== undefined ? item.news.url : undefined,
3129
3177
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
3130
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
3178
+ authors: item.news.authors !== undefined ? {
3179
+ set: item.news.authors
3180
+ } : undefined,
3131
3181
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
3132
3182
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
3133
3183
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
3134
3184
  category: item.news.category !== undefined ? item.news.category : undefined,
3135
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
3185
+ topics: item.news.topics !== undefined ? {
3186
+ set: item.news.topics
3187
+ } : undefined,
3136
3188
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
3137
3189
  },
3138
3190
  }
@@ -3864,8 +3916,12 @@ export const Contract = {
3864
3916
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
3865
3917
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
3866
3918
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
3867
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
3868
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
3919
+ dependsOn: props.order.action.dependsOn !== undefined ? {
3920
+ set: props.order.action.dependsOn
3921
+ } : undefined,
3922
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
3923
+ set: props.order.action.dependedOnBy
3924
+ } : undefined,
3869
3925
  trade: props.order.action.trade ?
3870
3926
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
3871
3927
  ? { connect: {
@@ -4783,8 +4839,12 @@ export const Contract = {
4783
4839
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
4784
4840
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
4785
4841
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
4786
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
4787
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
4842
+ dependsOn: props.order.action.dependsOn !== undefined ? {
4843
+ set: props.order.action.dependsOn
4844
+ } : undefined,
4845
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
4846
+ set: props.order.action.dependedOnBy
4847
+ } : undefined,
4788
4848
  trade: props.order.action.trade ?
4789
4849
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
4790
4850
  ? { connect: {
@@ -5246,8 +5306,12 @@ export const Contract = {
5246
5306
  note: item.note !== undefined ? item.note : undefined,
5247
5307
  status: item.status !== undefined ? item.status : undefined,
5248
5308
  fee: item.fee !== undefined ? item.fee : undefined,
5249
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
5250
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
5309
+ dependsOn: item.dependsOn !== undefined ? {
5310
+ set: item.dependsOn
5311
+ } : undefined,
5312
+ dependedOnBy: item.dependedOnBy !== undefined ? {
5313
+ set: item.dependedOnBy
5314
+ } : undefined,
5251
5315
  },
5252
5316
  }))
5253
5317
  } : undefined,
@@ -5377,8 +5441,12 @@ export const Contract = {
5377
5441
  note: item.action.note !== undefined ? item.action.note : undefined,
5378
5442
  status: item.action.status !== undefined ? item.action.status : undefined,
5379
5443
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
5380
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
5381
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
5444
+ dependsOn: item.action.dependsOn !== undefined ? {
5445
+ set: item.action.dependsOn
5446
+ } : undefined,
5447
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
5448
+ set: item.action.dependedOnBy
5449
+ } : undefined,
5382
5450
  },
5383
5451
  }
5384
5452
  } : undefined,
@@ -5525,12 +5593,16 @@ export const Contract = {
5525
5593
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
5526
5594
  url: item.news.url !== undefined ? item.news.url : undefined,
5527
5595
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
5528
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
5596
+ authors: item.news.authors !== undefined ? {
5597
+ set: item.news.authors
5598
+ } : undefined,
5529
5599
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
5530
5600
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
5531
5601
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
5532
5602
  category: item.news.category !== undefined ? item.news.category : undefined,
5533
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
5603
+ topics: item.news.topics !== undefined ? {
5604
+ set: item.news.topics
5605
+ } : undefined,
5534
5606
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
5535
5607
  },
5536
5608
  }
@@ -5772,8 +5844,12 @@ export const Contract = {
5772
5844
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
5773
5845
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
5774
5846
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
5775
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
5776
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
5847
+ dependsOn: props.order.action.dependsOn !== undefined ? {
5848
+ set: props.order.action.dependsOn
5849
+ } : undefined,
5850
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
5851
+ set: props.order.action.dependedOnBy
5852
+ } : undefined,
5777
5853
  trade: props.order.action.trade ?
5778
5854
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
5779
5855
  ? { connect: {
@@ -6470,8 +6546,12 @@ export const Contract = {
6470
6546
  note: item.note !== undefined ? item.note : undefined,
6471
6547
  status: item.status !== undefined ? item.status : undefined,
6472
6548
  fee: item.fee !== undefined ? item.fee : undefined,
6473
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
6474
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
6549
+ dependsOn: item.dependsOn !== undefined ? {
6550
+ set: item.dependsOn
6551
+ } : undefined,
6552
+ dependedOnBy: item.dependedOnBy !== undefined ? {
6553
+ set: item.dependedOnBy
6554
+ } : undefined,
6475
6555
  },
6476
6556
  }))
6477
6557
  } : undefined,
@@ -6534,8 +6614,12 @@ export const Contract = {
6534
6614
  note: item.note !== undefined ? item.note : undefined,
6535
6615
  status: item.status !== undefined ? item.status : undefined,
6536
6616
  fee: item.fee !== undefined ? item.fee : undefined,
6537
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
6538
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
6617
+ dependsOn: item.dependsOn !== undefined ? {
6618
+ set: item.dependsOn
6619
+ } : undefined,
6620
+ dependedOnBy: item.dependedOnBy !== undefined ? {
6621
+ set: item.dependedOnBy
6622
+ } : undefined,
6539
6623
  },
6540
6624
  }))
6541
6625
  } : undefined,
@@ -6818,8 +6902,12 @@ export const Contract = {
6818
6902
  note: item.action.note !== undefined ? item.action.note : undefined,
6819
6903
  status: item.action.status !== undefined ? item.action.status : undefined,
6820
6904
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
6821
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
6822
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
6905
+ dependsOn: item.action.dependsOn !== undefined ? {
6906
+ set: item.action.dependsOn
6907
+ } : undefined,
6908
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
6909
+ set: item.action.dependedOnBy
6910
+ } : undefined,
6823
6911
  },
6824
6912
  }
6825
6913
  } : undefined,
@@ -7049,8 +7137,12 @@ export const Contract = {
7049
7137
  note: item.action.note !== undefined ? item.action.note : undefined,
7050
7138
  status: item.action.status !== undefined ? item.action.status : undefined,
7051
7139
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
7052
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
7053
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7140
+ dependsOn: item.action.dependsOn !== undefined ? {
7141
+ set: item.action.dependsOn
7142
+ } : undefined,
7143
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7144
+ set: item.action.dependedOnBy
7145
+ } : undefined,
7054
7146
  },
7055
7147
  }
7056
7148
  } : undefined,
@@ -7371,12 +7463,16 @@ export const Contract = {
7371
7463
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
7372
7464
  url: item.news.url !== undefined ? item.news.url : undefined,
7373
7465
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
7374
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
7466
+ authors: item.news.authors !== undefined ? {
7467
+ set: item.news.authors
7468
+ } : undefined,
7375
7469
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
7376
7470
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
7377
7471
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
7378
7472
  category: item.news.category !== undefined ? item.news.category : undefined,
7379
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
7473
+ topics: item.news.topics !== undefined ? {
7474
+ set: item.news.topics
7475
+ } : undefined,
7380
7476
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
7381
7477
  },
7382
7478
  }
@@ -7408,12 +7504,16 @@ export const Contract = {
7408
7504
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
7409
7505
  url: item.news.url !== undefined ? item.news.url : undefined,
7410
7506
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
7411
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
7507
+ authors: item.news.authors !== undefined ? {
7508
+ set: item.news.authors
7509
+ } : undefined,
7412
7510
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
7413
7511
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
7414
7512
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
7415
7513
  category: item.news.category !== undefined ? item.news.category : undefined,
7416
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
7514
+ topics: item.news.topics !== undefined ? {
7515
+ set: item.news.topics
7516
+ } : undefined,
7417
7517
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
7418
7518
  },
7419
7519
  }
@@ -7549,8 +7649,12 @@ export const Contract = {
7549
7649
  note: item.note !== undefined ? item.note : undefined,
7550
7650
  status: item.status !== undefined ? item.status : undefined,
7551
7651
  fee: item.fee !== undefined ? item.fee : undefined,
7552
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
7553
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
7652
+ dependsOn: item.dependsOn !== undefined ? {
7653
+ set: item.dependsOn
7654
+ } : undefined,
7655
+ dependedOnBy: item.dependedOnBy !== undefined ? {
7656
+ set: item.dependedOnBy
7657
+ } : undefined,
7554
7658
  },
7555
7659
  }))
7556
7660
  } : undefined,
@@ -7680,8 +7784,12 @@ export const Contract = {
7680
7784
  note: item.action.note !== undefined ? item.action.note : undefined,
7681
7785
  status: item.action.status !== undefined ? item.action.status : undefined,
7682
7786
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
7683
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
7684
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
7787
+ dependsOn: item.action.dependsOn !== undefined ? {
7788
+ set: item.action.dependsOn
7789
+ } : undefined,
7790
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
7791
+ set: item.action.dependedOnBy
7792
+ } : undefined,
7685
7793
  },
7686
7794
  }
7687
7795
  } : undefined,
@@ -7828,12 +7936,16 @@ export const Contract = {
7828
7936
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
7829
7937
  url: item.news.url !== undefined ? item.news.url : undefined,
7830
7938
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
7831
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
7939
+ authors: item.news.authors !== undefined ? {
7940
+ set: item.news.authors
7941
+ } : undefined,
7832
7942
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
7833
7943
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
7834
7944
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
7835
7945
  category: item.news.category !== undefined ? item.news.category : undefined,
7836
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
7946
+ topics: item.news.topics !== undefined ? {
7947
+ set: item.news.topics
7948
+ } : undefined,
7837
7949
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
7838
7950
  },
7839
7951
  }
@@ -8565,8 +8677,12 @@ export const Contract = {
8565
8677
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
8566
8678
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
8567
8679
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
8568
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
8569
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
8680
+ dependsOn: props.order.action.dependsOn !== undefined ? {
8681
+ set: props.order.action.dependsOn
8682
+ } : undefined,
8683
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
8684
+ set: props.order.action.dependedOnBy
8685
+ } : undefined,
8570
8686
  trade: props.order.action.trade ?
8571
8687
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
8572
8688
  ? { connect: {
@@ -9484,8 +9600,12 @@ export const Contract = {
9484
9600
  note: props.order.action.note !== undefined ? props.order.action.note : undefined,
9485
9601
  status: props.order.action.status !== undefined ? props.order.action.status : undefined,
9486
9602
  fee: props.order.action.fee !== undefined ? props.order.action.fee : undefined,
9487
- dependsOn: props.order.action.dependsOn !== undefined ? props.order.action.dependsOn : undefined,
9488
- dependedOnBy: props.order.action.dependedOnBy !== undefined ? props.order.action.dependedOnBy : undefined,
9603
+ dependsOn: props.order.action.dependsOn !== undefined ? {
9604
+ set: props.order.action.dependsOn
9605
+ } : undefined,
9606
+ dependedOnBy: props.order.action.dependedOnBy !== undefined ? {
9607
+ set: props.order.action.dependedOnBy
9608
+ } : undefined,
9489
9609
  trade: props.order.action.trade ?
9490
9610
  typeof props.order.action.trade === 'object' && Object.keys(props.order.action.trade).length === 1 && Object.keys(props.order.action.trade)[0] === 'id'
9491
9611
  ? { connect: {
@@ -10235,8 +10355,12 @@ export const Contract = {
10235
10355
  note: item.note !== undefined ? item.note : undefined,
10236
10356
  status: item.status !== undefined ? item.status : undefined,
10237
10357
  fee: item.fee !== undefined ? item.fee : undefined,
10238
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
10239
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
10358
+ dependsOn: item.dependsOn !== undefined ? {
10359
+ set: item.dependsOn
10360
+ } : undefined,
10361
+ dependedOnBy: item.dependedOnBy !== undefined ? {
10362
+ set: item.dependedOnBy
10363
+ } : undefined,
10240
10364
  },
10241
10365
  }))
10242
10366
  } : undefined,
@@ -10299,8 +10423,12 @@ export const Contract = {
10299
10423
  note: item.note !== undefined ? item.note : undefined,
10300
10424
  status: item.status !== undefined ? item.status : undefined,
10301
10425
  fee: item.fee !== undefined ? item.fee : undefined,
10302
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
10303
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
10426
+ dependsOn: item.dependsOn !== undefined ? {
10427
+ set: item.dependsOn
10428
+ } : undefined,
10429
+ dependedOnBy: item.dependedOnBy !== undefined ? {
10430
+ set: item.dependedOnBy
10431
+ } : undefined,
10304
10432
  },
10305
10433
  }))
10306
10434
  } : undefined,
@@ -10583,8 +10711,12 @@ export const Contract = {
10583
10711
  note: item.action.note !== undefined ? item.action.note : undefined,
10584
10712
  status: item.action.status !== undefined ? item.action.status : undefined,
10585
10713
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10586
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10587
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10714
+ dependsOn: item.action.dependsOn !== undefined ? {
10715
+ set: item.action.dependsOn
10716
+ } : undefined,
10717
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10718
+ set: item.action.dependedOnBy
10719
+ } : undefined,
10588
10720
  },
10589
10721
  }
10590
10722
  } : undefined,
@@ -10814,8 +10946,12 @@ export const Contract = {
10814
10946
  note: item.action.note !== undefined ? item.action.note : undefined,
10815
10947
  status: item.action.status !== undefined ? item.action.status : undefined,
10816
10948
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
10817
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
10818
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
10949
+ dependsOn: item.action.dependsOn !== undefined ? {
10950
+ set: item.action.dependsOn
10951
+ } : undefined,
10952
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
10953
+ set: item.action.dependedOnBy
10954
+ } : undefined,
10819
10955
  },
10820
10956
  }
10821
10957
  } : undefined,
@@ -11136,12 +11272,16 @@ export const Contract = {
11136
11272
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11137
11273
  url: item.news.url !== undefined ? item.news.url : undefined,
11138
11274
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11139
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11275
+ authors: item.news.authors !== undefined ? {
11276
+ set: item.news.authors
11277
+ } : undefined,
11140
11278
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11141
11279
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11142
11280
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11143
11281
  category: item.news.category !== undefined ? item.news.category : undefined,
11144
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11282
+ topics: item.news.topics !== undefined ? {
11283
+ set: item.news.topics
11284
+ } : undefined,
11145
11285
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11146
11286
  },
11147
11287
  }
@@ -11173,12 +11313,16 @@ export const Contract = {
11173
11313
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11174
11314
  url: item.news.url !== undefined ? item.news.url : undefined,
11175
11315
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11176
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11316
+ authors: item.news.authors !== undefined ? {
11317
+ set: item.news.authors
11318
+ } : undefined,
11177
11319
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11178
11320
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11179
11321
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11180
11322
  category: item.news.category !== undefined ? item.news.category : undefined,
11181
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11323
+ topics: item.news.topics !== undefined ? {
11324
+ set: item.news.topics
11325
+ } : undefined,
11182
11326
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11183
11327
  },
11184
11328
  }
@@ -11314,8 +11458,12 @@ export const Contract = {
11314
11458
  note: item.note !== undefined ? item.note : undefined,
11315
11459
  status: item.status !== undefined ? item.status : undefined,
11316
11460
  fee: item.fee !== undefined ? item.fee : undefined,
11317
- dependsOn: item.dependsOn !== undefined ? item.dependsOn : undefined,
11318
- dependedOnBy: item.dependedOnBy !== undefined ? item.dependedOnBy : undefined,
11461
+ dependsOn: item.dependsOn !== undefined ? {
11462
+ set: item.dependsOn
11463
+ } : undefined,
11464
+ dependedOnBy: item.dependedOnBy !== undefined ? {
11465
+ set: item.dependedOnBy
11466
+ } : undefined,
11319
11467
  },
11320
11468
  }))
11321
11469
  } : undefined,
@@ -11445,8 +11593,12 @@ export const Contract = {
11445
11593
  note: item.action.note !== undefined ? item.action.note : undefined,
11446
11594
  status: item.action.status !== undefined ? item.action.status : undefined,
11447
11595
  fee: item.action.fee !== undefined ? item.action.fee : undefined,
11448
- dependsOn: item.action.dependsOn !== undefined ? item.action.dependsOn : undefined,
11449
- dependedOnBy: item.action.dependedOnBy !== undefined ? item.action.dependedOnBy : undefined,
11596
+ dependsOn: item.action.dependsOn !== undefined ? {
11597
+ set: item.action.dependsOn
11598
+ } : undefined,
11599
+ dependedOnBy: item.action.dependedOnBy !== undefined ? {
11600
+ set: item.action.dependedOnBy
11601
+ } : undefined,
11450
11602
  },
11451
11603
  }
11452
11604
  } : undefined,
@@ -11593,12 +11745,16 @@ export const Contract = {
11593
11745
  sourceDomain: item.news.sourceDomain !== undefined ? item.news.sourceDomain : undefined,
11594
11746
  url: item.news.url !== undefined ? item.news.url : undefined,
11595
11747
  sentiment: item.news.sentiment !== undefined ? item.news.sentiment : undefined,
11596
- authors: item.news.authors !== undefined ? item.news.authors : undefined,
11748
+ authors: item.news.authors !== undefined ? {
11749
+ set: item.news.authors
11750
+ } : undefined,
11597
11751
  summary: item.news.summary !== undefined ? item.news.summary : undefined,
11598
11752
  bannerImage: item.news.bannerImage !== undefined ? item.news.bannerImage : undefined,
11599
11753
  timePublished: item.news.timePublished !== undefined ? item.news.timePublished : undefined,
11600
11754
  category: item.news.category !== undefined ? item.news.category : undefined,
11601
- topics: item.news.topics !== undefined ? item.news.topics : undefined,
11755
+ topics: item.news.topics !== undefined ? {
11756
+ set: item.news.topics
11757
+ } : undefined,
11602
11758
  logo: item.news.logo !== undefined ? item.news.logo : undefined,
11603
11759
  },
11604
11760
  }
@@ -12330,8 +12486,12 @@ export const Contract = {
12330
12486
  note: prop.order.action.note !== undefined ? prop.order.action.note : undefined,
12331
12487
  status: prop.order.action.status !== undefined ? prop.order.action.status : undefined,
12332
12488
  fee: prop.order.action.fee !== undefined ? prop.order.action.fee : undefined,
12333
- dependsOn: prop.order.action.dependsOn !== undefined ? prop.order.action.dependsOn : undefined,
12334
- dependedOnBy: prop.order.action.dependedOnBy !== undefined ? prop.order.action.dependedOnBy : undefined,
12489
+ dependsOn: prop.order.action.dependsOn !== undefined ? {
12490
+ set: prop.order.action.dependsOn
12491
+ } : undefined,
12492
+ dependedOnBy: prop.order.action.dependedOnBy !== undefined ? {
12493
+ set: prop.order.action.dependedOnBy
12494
+ } : undefined,
12335
12495
  trade: prop.order.action.trade ?
12336
12496
  typeof prop.order.action.trade === 'object' && Object.keys(prop.order.action.trade).length === 1 && Object.keys(prop.order.action.trade)[0] === 'id'
12337
12497
  ? { connect: {
@@ -13249,8 +13409,12 @@ export const Contract = {
13249
13409
  note: prop.order.action.note !== undefined ? prop.order.action.note : undefined,
13250
13410
  status: prop.order.action.status !== undefined ? prop.order.action.status : undefined,
13251
13411
  fee: prop.order.action.fee !== undefined ? prop.order.action.fee : undefined,
13252
- dependsOn: prop.order.action.dependsOn !== undefined ? prop.order.action.dependsOn : undefined,
13253
- dependedOnBy: prop.order.action.dependedOnBy !== undefined ? prop.order.action.dependedOnBy : undefined,
13412
+ dependsOn: prop.order.action.dependsOn !== undefined ? {
13413
+ set: prop.order.action.dependsOn
13414
+ } : undefined,
13415
+ dependedOnBy: prop.order.action.dependedOnBy !== undefined ? {
13416
+ set: prop.order.action.dependedOnBy
13417
+ } : undefined,
13254
13418
  trade: prop.order.action.trade ?
13255
13419
  typeof prop.order.action.trade === 'object' && Object.keys(prop.order.action.trade).length === 1 && Object.keys(prop.order.action.trade)[0] === 'id'
13256
13420
  ? { connect: {