@adaptic/backend-legacy 0.0.913 → 0.0.915

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 (205) hide show
  1. package/ABTest.cjs +781 -1
  2. package/Account.cjs +153 -0
  3. package/AccountDecisionRecord.cjs +16 -1
  4. package/AccountLinkingRequest.cjs +154 -1
  5. package/Action.cjs +45 -0
  6. package/Alert.cjs +177 -0
  7. package/Allocation.cjs +195 -0
  8. package/AlpacaAccount.cjs +142 -1
  9. package/AnalyticsConfiguration.cjs +1 -1
  10. package/AnalyticsSnapshot.cjs +1 -1
  11. package/Asset.cjs +25 -0
  12. package/AuditLog.cjs +1 -1
  13. package/Authenticator.cjs +162 -0
  14. package/Configuration.cjs +15 -0
  15. package/ConflictEvent.cjs +1 -1
  16. package/ConnectionHealthSnapshot.cjs +16 -1
  17. package/Customer.cjs +162 -0
  18. package/DeadLetterMessage.cjs +16 -1
  19. package/DecisionMemorySummary.cjs +1 -1
  20. package/EconomicEvent.cjs +1 -1
  21. package/EquityBar.cjs +4 -1
  22. package/EventSnapshot.cjs +1 -1
  23. package/FeatureImportanceAnalysis.cjs +447 -1
  24. package/InstitutionalFlowSignal.cjs +32 -1
  25. package/InstitutionalHolding.cjs +22 -1
  26. package/InstitutionalSentimentAlerts.cjs +16 -1
  27. package/InstitutionalSentimentErrors.cjs +1 -1
  28. package/InstitutionalSentimentHistory.cjs +1 -1
  29. package/InstitutionalSentimentMetrics.cjs +1 -1
  30. package/InviteToken.cjs +115 -1
  31. package/LinkedProvider.cjs +163 -1
  32. package/LlmConfiguration.cjs +163 -1
  33. package/MLTrainingData.cjs +1 -1
  34. package/MarketSentiment.cjs +1 -1
  35. package/ModelArtifact.cjs +182 -1
  36. package/ModelVersion.cjs +934 -1
  37. package/ModelVersionArtifact.cjs +441 -1
  38. package/NewsArticle.cjs +47 -1
  39. package/NewsArticleAssetSentiment.cjs +32 -1
  40. package/OptionsContract.cjs +40 -1
  41. package/OptionsGreeksHistory.cjs +58 -1
  42. package/OptionsPosition.cjs +82 -1
  43. package/OptionsTradeExecution.cjs +40 -1
  44. package/PolicyOverlay.cjs +106 -1
  45. package/PortfolioGreeksHistory.cjs +1 -1
  46. package/ScheduledOptionOrder.cjs +16 -1
  47. package/Session.cjs +162 -0
  48. package/SignalGeneratorMetrics.cjs +1 -1
  49. package/SignalLineage.cjs +4 -1
  50. package/SignalOutcome.cjs +1 -1
  51. package/SignalPriorityQueue.cjs +16 -1
  52. package/SyncEvent.cjs +16 -1
  53. package/SystemAlert.cjs +31 -1
  54. package/Trade.cjs +45 -0
  55. package/TradeAuditEvent.cjs +1 -1
  56. package/TradeExecutionHistory.cjs +1 -1
  57. package/TradingPolicy.cjs +178 -1
  58. package/User.cjs +141 -0
  59. package/VerificationToken.cjs +1 -1
  60. package/WaitlistEntry.cjs +154 -1
  61. package/esm/ABTest.d.ts.map +1 -1
  62. package/esm/ABTest.js.map +1 -1
  63. package/esm/ABTest.mjs +781 -1
  64. package/esm/Account.d.ts.map +1 -1
  65. package/esm/Account.js.map +1 -1
  66. package/esm/Account.mjs +153 -0
  67. package/esm/AccountDecisionRecord.d.ts.map +1 -1
  68. package/esm/AccountDecisionRecord.js.map +1 -1
  69. package/esm/AccountDecisionRecord.mjs +16 -1
  70. package/esm/AccountLinkingRequest.d.ts.map +1 -1
  71. package/esm/AccountLinkingRequest.js.map +1 -1
  72. package/esm/AccountLinkingRequest.mjs +154 -1
  73. package/esm/Action.d.ts.map +1 -1
  74. package/esm/Action.js.map +1 -1
  75. package/esm/Action.mjs +45 -0
  76. package/esm/Alert.d.ts.map +1 -1
  77. package/esm/Alert.js.map +1 -1
  78. package/esm/Alert.mjs +177 -0
  79. package/esm/Allocation.d.ts.map +1 -1
  80. package/esm/Allocation.js.map +1 -1
  81. package/esm/Allocation.mjs +195 -0
  82. package/esm/AlpacaAccount.d.ts.map +1 -1
  83. package/esm/AlpacaAccount.js.map +1 -1
  84. package/esm/AlpacaAccount.mjs +142 -1
  85. package/esm/AnalyticsConfiguration.mjs +1 -1
  86. package/esm/AnalyticsSnapshot.mjs +1 -1
  87. package/esm/Asset.d.ts.map +1 -1
  88. package/esm/Asset.js.map +1 -1
  89. package/esm/Asset.mjs +25 -0
  90. package/esm/AuditLog.mjs +1 -1
  91. package/esm/Authenticator.d.ts.map +1 -1
  92. package/esm/Authenticator.js.map +1 -1
  93. package/esm/Authenticator.mjs +162 -0
  94. package/esm/Configuration.d.ts.map +1 -1
  95. package/esm/Configuration.js.map +1 -1
  96. package/esm/Configuration.mjs +15 -0
  97. package/esm/ConflictEvent.mjs +1 -1
  98. package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
  99. package/esm/ConnectionHealthSnapshot.js.map +1 -1
  100. package/esm/ConnectionHealthSnapshot.mjs +16 -1
  101. package/esm/Customer.d.ts.map +1 -1
  102. package/esm/Customer.js.map +1 -1
  103. package/esm/Customer.mjs +162 -0
  104. package/esm/DeadLetterMessage.d.ts.map +1 -1
  105. package/esm/DeadLetterMessage.js.map +1 -1
  106. package/esm/DeadLetterMessage.mjs +16 -1
  107. package/esm/DecisionMemorySummary.mjs +1 -1
  108. package/esm/EconomicEvent.mjs +1 -1
  109. package/esm/EquityBar.d.ts.map +1 -1
  110. package/esm/EquityBar.js.map +1 -1
  111. package/esm/EquityBar.mjs +4 -1
  112. package/esm/EventSnapshot.mjs +1 -1
  113. package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
  114. package/esm/FeatureImportanceAnalysis.js.map +1 -1
  115. package/esm/FeatureImportanceAnalysis.mjs +447 -1
  116. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  117. package/esm/InstitutionalFlowSignal.js.map +1 -1
  118. package/esm/InstitutionalFlowSignal.mjs +32 -1
  119. package/esm/InstitutionalHolding.d.ts.map +1 -1
  120. package/esm/InstitutionalHolding.js.map +1 -1
  121. package/esm/InstitutionalHolding.mjs +22 -1
  122. package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
  123. package/esm/InstitutionalSentimentAlerts.js.map +1 -1
  124. package/esm/InstitutionalSentimentAlerts.mjs +16 -1
  125. package/esm/InstitutionalSentimentErrors.mjs +1 -1
  126. package/esm/InstitutionalSentimentHistory.mjs +1 -1
  127. package/esm/InstitutionalSentimentMetrics.mjs +1 -1
  128. package/esm/InviteToken.d.ts.map +1 -1
  129. package/esm/InviteToken.js.map +1 -1
  130. package/esm/InviteToken.mjs +115 -1
  131. package/esm/LinkedProvider.d.ts.map +1 -1
  132. package/esm/LinkedProvider.js.map +1 -1
  133. package/esm/LinkedProvider.mjs +163 -1
  134. package/esm/LlmConfiguration.d.ts.map +1 -1
  135. package/esm/LlmConfiguration.js.map +1 -1
  136. package/esm/LlmConfiguration.mjs +163 -1
  137. package/esm/MLTrainingData.mjs +1 -1
  138. package/esm/MarketSentiment.mjs +1 -1
  139. package/esm/ModelArtifact.d.ts.map +1 -1
  140. package/esm/ModelArtifact.js.map +1 -1
  141. package/esm/ModelArtifact.mjs +182 -1
  142. package/esm/ModelVersion.d.ts.map +1 -1
  143. package/esm/ModelVersion.js.map +1 -1
  144. package/esm/ModelVersion.mjs +934 -1
  145. package/esm/ModelVersionArtifact.d.ts.map +1 -1
  146. package/esm/ModelVersionArtifact.js.map +1 -1
  147. package/esm/ModelVersionArtifact.mjs +441 -1
  148. package/esm/NewsArticle.d.ts.map +1 -1
  149. package/esm/NewsArticle.js.map +1 -1
  150. package/esm/NewsArticle.mjs +47 -1
  151. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  152. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  153. package/esm/NewsArticleAssetSentiment.mjs +32 -1
  154. package/esm/OptionsContract.d.ts.map +1 -1
  155. package/esm/OptionsContract.js.map +1 -1
  156. package/esm/OptionsContract.mjs +40 -1
  157. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  158. package/esm/OptionsGreeksHistory.js.map +1 -1
  159. package/esm/OptionsGreeksHistory.mjs +58 -1
  160. package/esm/OptionsPosition.d.ts.map +1 -1
  161. package/esm/OptionsPosition.js.map +1 -1
  162. package/esm/OptionsPosition.mjs +82 -1
  163. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  164. package/esm/OptionsTradeExecution.js.map +1 -1
  165. package/esm/OptionsTradeExecution.mjs +40 -1
  166. package/esm/PolicyOverlay.d.ts.map +1 -1
  167. package/esm/PolicyOverlay.js.map +1 -1
  168. package/esm/PolicyOverlay.mjs +106 -1
  169. package/esm/PortfolioGreeksHistory.mjs +1 -1
  170. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  171. package/esm/ScheduledOptionOrder.js.map +1 -1
  172. package/esm/ScheduledOptionOrder.mjs +16 -1
  173. package/esm/Session.d.ts.map +1 -1
  174. package/esm/Session.js.map +1 -1
  175. package/esm/Session.mjs +162 -0
  176. package/esm/SignalGeneratorMetrics.mjs +1 -1
  177. package/esm/SignalLineage.d.ts.map +1 -1
  178. package/esm/SignalLineage.js.map +1 -1
  179. package/esm/SignalLineage.mjs +4 -1
  180. package/esm/SignalOutcome.mjs +1 -1
  181. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  182. package/esm/SignalPriorityQueue.js.map +1 -1
  183. package/esm/SignalPriorityQueue.mjs +16 -1
  184. package/esm/SyncEvent.d.ts.map +1 -1
  185. package/esm/SyncEvent.js.map +1 -1
  186. package/esm/SyncEvent.mjs +16 -1
  187. package/esm/SystemAlert.d.ts.map +1 -1
  188. package/esm/SystemAlert.js.map +1 -1
  189. package/esm/SystemAlert.mjs +31 -1
  190. package/esm/Trade.d.ts.map +1 -1
  191. package/esm/Trade.js.map +1 -1
  192. package/esm/Trade.mjs +45 -0
  193. package/esm/TradeAuditEvent.mjs +1 -1
  194. package/esm/TradeExecutionHistory.mjs +1 -1
  195. package/esm/TradingPolicy.d.ts.map +1 -1
  196. package/esm/TradingPolicy.js.map +1 -1
  197. package/esm/TradingPolicy.mjs +178 -1
  198. package/esm/User.d.ts.map +1 -1
  199. package/esm/User.js.map +1 -1
  200. package/esm/User.mjs +141 -0
  201. package/esm/VerificationToken.mjs +1 -1
  202. package/esm/WaitlistEntry.d.ts.map +1 -1
  203. package/esm/WaitlistEntry.js.map +1 -1
  204. package/esm/WaitlistEntry.mjs +154 -1
  205. package/package.json +1 -1
@@ -334,6 +334,9 @@ export const TradingPolicy = {
334
334
  : { connectOrCreate: {
335
335
  where: {
336
336
  id: props.alpacaAccount.id !== undefined ? props.alpacaAccount.id : undefined,
337
+ type: props.alpacaAccount.type !== undefined ? {
338
+ equals: props.alpacaAccount.type
339
+ } : undefined,
337
340
  userId: props.alpacaAccount.userId !== undefined ? {
338
341
  equals: props.alpacaAccount.userId
339
342
  } : undefined,
@@ -460,6 +463,9 @@ export const TradingPolicy = {
460
463
  userId: item.userId !== undefined ? {
461
464
  equals: item.userId
462
465
  } : undefined,
466
+ type: item.type !== undefined ? {
467
+ equals: item.type
468
+ } : undefined,
463
469
  },
464
470
  create: {
465
471
  type: item.type !== undefined ? item.type : undefined,
@@ -562,6 +568,9 @@ export const TradingPolicy = {
562
568
  providerAccountId: item.providerAccountId !== undefined ? {
563
569
  equals: item.providerAccountId
564
570
  } : undefined,
571
+ status: item.status !== undefined ? {
572
+ equals: item.status
573
+ } : undefined,
565
574
  },
566
575
  create: {
567
576
  email: item.email !== undefined ? item.email : undefined,
@@ -588,6 +597,9 @@ export const TradingPolicy = {
588
597
  where: {
589
598
  id: item.id !== undefined ? item.id : undefined,
590
599
  email: item.email !== undefined ? item.email : undefined,
600
+ status: item.status !== undefined ? {
601
+ equals: item.status
602
+ } : undefined,
591
603
  },
592
604
  create: {
593
605
  email: item.email !== undefined ? item.email : undefined,
@@ -649,6 +661,12 @@ export const TradingPolicy = {
649
661
  title: item.title !== undefined ? {
650
662
  equals: item.title
651
663
  } : undefined,
664
+ type: item.type !== undefined ? {
665
+ equals: item.type
666
+ } : undefined,
667
+ status: item.status !== undefined ? {
668
+ equals: item.status
669
+ } : undefined,
652
670
  },
653
671
  create: {
654
672
  title: item.title !== undefined ? item.title : undefined,
@@ -681,6 +699,9 @@ export const TradingPolicy = {
681
699
  tradingPolicyId: item.tradingPolicyId !== undefined ? {
682
700
  equals: item.tradingPolicyId
683
701
  } : undefined,
702
+ status: item.status !== undefined ? {
703
+ equals: item.status
704
+ } : undefined,
684
705
  correlationId: item.correlationId !== undefined ? {
685
706
  equals: item.correlationId
686
707
  } : undefined,
@@ -1147,6 +1168,9 @@ export const TradingPolicy = {
1147
1168
  id: props.alpacaAccount.id !== undefined ? {
1148
1169
  equals: props.alpacaAccount.id
1149
1170
  } : undefined,
1171
+ type: props.alpacaAccount.type !== undefined ? {
1172
+ equals: props.alpacaAccount.type
1173
+ } : undefined,
1150
1174
  userId: props.alpacaAccount.userId !== undefined ? {
1151
1175
  equals: props.alpacaAccount.userId
1152
1176
  } : undefined,
@@ -1417,6 +1441,9 @@ export const TradingPolicy = {
1417
1441
  userId: item.userId !== undefined ? {
1418
1442
  equals: item.userId
1419
1443
  } : undefined,
1444
+ type: item.type !== undefined ? {
1445
+ equals: item.type
1446
+ } : undefined,
1420
1447
  },
1421
1448
  update: {
1422
1449
  id: item.id !== undefined ? {
@@ -1601,6 +1628,9 @@ export const TradingPolicy = {
1601
1628
  providerAccountId: item.providerAccountId !== undefined ? {
1602
1629
  equals: item.providerAccountId
1603
1630
  } : undefined,
1631
+ status: item.status !== undefined ? {
1632
+ equals: item.status
1633
+ } : undefined,
1604
1634
  },
1605
1635
  update: {
1606
1636
  id: item.id !== undefined ? {
@@ -1664,6 +1694,9 @@ export const TradingPolicy = {
1664
1694
  where: {
1665
1695
  id: item.id !== undefined ? item.id : undefined,
1666
1696
  email: item.email !== undefined ? item.email : undefined,
1697
+ status: item.status !== undefined ? {
1698
+ equals: item.status
1699
+ } : undefined,
1667
1700
  reviewedById: item.reviewedById !== undefined ? {
1668
1701
  equals: item.reviewedById
1669
1702
  } : undefined,
@@ -1852,6 +1885,9 @@ export const TradingPolicy = {
1852
1885
  userId: item.userId !== undefined ? {
1853
1886
  equals: item.userId
1854
1887
  } : undefined,
1888
+ type: item.type !== undefined ? {
1889
+ equals: item.type
1890
+ } : undefined,
1855
1891
  },
1856
1892
  create: {
1857
1893
  type: item.type !== undefined ? item.type : undefined,
@@ -1954,6 +1990,9 @@ export const TradingPolicy = {
1954
1990
  providerAccountId: item.providerAccountId !== undefined ? {
1955
1991
  equals: item.providerAccountId
1956
1992
  } : undefined,
1993
+ status: item.status !== undefined ? {
1994
+ equals: item.status
1995
+ } : undefined,
1957
1996
  },
1958
1997
  create: {
1959
1998
  email: item.email !== undefined ? item.email : undefined,
@@ -1980,6 +2019,9 @@ export const TradingPolicy = {
1980
2019
  where: {
1981
2020
  id: item.id !== undefined ? item.id : undefined,
1982
2021
  email: item.email !== undefined ? item.email : undefined,
2022
+ status: item.status !== undefined ? {
2023
+ equals: item.status
2024
+ } : undefined,
1983
2025
  },
1984
2026
  create: {
1985
2027
  email: item.email !== undefined ? item.email : undefined,
@@ -2040,6 +2082,12 @@ export const TradingPolicy = {
2040
2082
  title: item.title !== undefined ? {
2041
2083
  equals: item.title
2042
2084
  } : undefined,
2085
+ type: item.type !== undefined ? {
2086
+ equals: item.type
2087
+ } : undefined,
2088
+ status: item.status !== undefined ? {
2089
+ equals: item.status
2090
+ } : undefined,
2043
2091
  },
2044
2092
  update: {
2045
2093
  id: item.id !== undefined ? {
@@ -2221,6 +2269,9 @@ export const TradingPolicy = {
2221
2269
  userId: item.userId !== undefined ? {
2222
2270
  equals: item.userId
2223
2271
  } : undefined,
2272
+ type: item.type !== undefined ? {
2273
+ equals: item.type
2274
+ } : undefined,
2224
2275
  },
2225
2276
  create: {
2226
2277
  type: item.type !== undefined ? item.type : undefined,
@@ -2323,6 +2374,9 @@ export const TradingPolicy = {
2323
2374
  providerAccountId: item.providerAccountId !== undefined ? {
2324
2375
  equals: item.providerAccountId
2325
2376
  } : undefined,
2377
+ status: item.status !== undefined ? {
2378
+ equals: item.status
2379
+ } : undefined,
2326
2380
  },
2327
2381
  create: {
2328
2382
  email: item.email !== undefined ? item.email : undefined,
@@ -2349,6 +2403,9 @@ export const TradingPolicy = {
2349
2403
  where: {
2350
2404
  id: item.id !== undefined ? item.id : undefined,
2351
2405
  email: item.email !== undefined ? item.email : undefined,
2406
+ status: item.status !== undefined ? {
2407
+ equals: item.status
2408
+ } : undefined,
2352
2409
  },
2353
2410
  create: {
2354
2411
  email: item.email !== undefined ? item.email : undefined,
@@ -2410,6 +2467,12 @@ export const TradingPolicy = {
2410
2467
  title: item.title !== undefined ? {
2411
2468
  equals: item.title
2412
2469
  } : undefined,
2470
+ type: item.type !== undefined ? {
2471
+ equals: item.type
2472
+ } : undefined,
2473
+ status: item.status !== undefined ? {
2474
+ equals: item.status
2475
+ } : undefined,
2413
2476
  },
2414
2477
  create: {
2415
2478
  title: item.title !== undefined ? item.title : undefined,
@@ -2441,6 +2504,9 @@ export const TradingPolicy = {
2441
2504
  tradingPolicyId: item.tradingPolicyId !== undefined ? {
2442
2505
  equals: item.tradingPolicyId
2443
2506
  } : undefined,
2507
+ status: item.status !== undefined ? {
2508
+ equals: item.status
2509
+ } : undefined,
2444
2510
  correlationId: item.correlationId !== undefined ? {
2445
2511
  equals: item.correlationId
2446
2512
  } : undefined,
@@ -2687,6 +2753,9 @@ export const TradingPolicy = {
2687
2753
  : { connectOrCreate: {
2688
2754
  where: {
2689
2755
  id: props.alpacaAccount.id !== undefined ? props.alpacaAccount.id : undefined,
2756
+ type: props.alpacaAccount.type !== undefined ? {
2757
+ equals: props.alpacaAccount.type
2758
+ } : undefined,
2690
2759
  userId: props.alpacaAccount.userId !== undefined ? {
2691
2760
  equals: props.alpacaAccount.userId
2692
2761
  } : undefined,
@@ -2813,6 +2882,9 @@ export const TradingPolicy = {
2813
2882
  userId: item.userId !== undefined ? {
2814
2883
  equals: item.userId
2815
2884
  } : undefined,
2885
+ type: item.type !== undefined ? {
2886
+ equals: item.type
2887
+ } : undefined,
2816
2888
  },
2817
2889
  create: {
2818
2890
  type: item.type !== undefined ? item.type : undefined,
@@ -2915,6 +2987,9 @@ export const TradingPolicy = {
2915
2987
  providerAccountId: item.providerAccountId !== undefined ? {
2916
2988
  equals: item.providerAccountId
2917
2989
  } : undefined,
2990
+ status: item.status !== undefined ? {
2991
+ equals: item.status
2992
+ } : undefined,
2918
2993
  },
2919
2994
  create: {
2920
2995
  email: item.email !== undefined ? item.email : undefined,
@@ -2941,6 +3016,9 @@ export const TradingPolicy = {
2941
3016
  where: {
2942
3017
  id: item.id !== undefined ? item.id : undefined,
2943
3018
  email: item.email !== undefined ? item.email : undefined,
3019
+ status: item.status !== undefined ? {
3020
+ equals: item.status
3021
+ } : undefined,
2944
3022
  },
2945
3023
  create: {
2946
3024
  email: item.email !== undefined ? item.email : undefined,
@@ -3002,6 +3080,12 @@ export const TradingPolicy = {
3002
3080
  title: item.title !== undefined ? {
3003
3081
  equals: item.title
3004
3082
  } : undefined,
3083
+ type: item.type !== undefined ? {
3084
+ equals: item.type
3085
+ } : undefined,
3086
+ status: item.status !== undefined ? {
3087
+ equals: item.status
3088
+ } : undefined,
3005
3089
  },
3006
3090
  create: {
3007
3091
  title: item.title !== undefined ? item.title : undefined,
@@ -3034,6 +3118,9 @@ export const TradingPolicy = {
3034
3118
  tradingPolicyId: item.tradingPolicyId !== undefined ? {
3035
3119
  equals: item.tradingPolicyId
3036
3120
  } : undefined,
3121
+ status: item.status !== undefined ? {
3122
+ equals: item.status
3123
+ } : undefined,
3037
3124
  correlationId: item.correlationId !== undefined ? {
3038
3125
  equals: item.correlationId
3039
3126
  } : undefined,
@@ -3224,6 +3311,9 @@ export const TradingPolicy = {
3224
3311
  id: props.alpacaAccount.id !== undefined ? {
3225
3312
  equals: props.alpacaAccount.id
3226
3313
  } : undefined,
3314
+ type: props.alpacaAccount.type !== undefined ? {
3315
+ equals: props.alpacaAccount.type
3316
+ } : undefined,
3227
3317
  userId: props.alpacaAccount.userId !== undefined ? {
3228
3318
  equals: props.alpacaAccount.userId
3229
3319
  } : undefined,
@@ -3494,6 +3584,9 @@ export const TradingPolicy = {
3494
3584
  userId: item.userId !== undefined ? {
3495
3585
  equals: item.userId
3496
3586
  } : undefined,
3587
+ type: item.type !== undefined ? {
3588
+ equals: item.type
3589
+ } : undefined,
3497
3590
  },
3498
3591
  update: {
3499
3592
  id: item.id !== undefined ? {
@@ -3678,6 +3771,9 @@ export const TradingPolicy = {
3678
3771
  providerAccountId: item.providerAccountId !== undefined ? {
3679
3772
  equals: item.providerAccountId
3680
3773
  } : undefined,
3774
+ status: item.status !== undefined ? {
3775
+ equals: item.status
3776
+ } : undefined,
3681
3777
  },
3682
3778
  update: {
3683
3779
  id: item.id !== undefined ? {
@@ -3741,6 +3837,9 @@ export const TradingPolicy = {
3741
3837
  where: {
3742
3838
  id: item.id !== undefined ? item.id : undefined,
3743
3839
  email: item.email !== undefined ? item.email : undefined,
3840
+ status: item.status !== undefined ? {
3841
+ equals: item.status
3842
+ } : undefined,
3744
3843
  reviewedById: item.reviewedById !== undefined ? {
3745
3844
  equals: item.reviewedById
3746
3845
  } : undefined,
@@ -3929,6 +4028,9 @@ export const TradingPolicy = {
3929
4028
  userId: item.userId !== undefined ? {
3930
4029
  equals: item.userId
3931
4030
  } : undefined,
4031
+ type: item.type !== undefined ? {
4032
+ equals: item.type
4033
+ } : undefined,
3932
4034
  },
3933
4035
  create: {
3934
4036
  type: item.type !== undefined ? item.type : undefined,
@@ -4031,6 +4133,9 @@ export const TradingPolicy = {
4031
4133
  providerAccountId: item.providerAccountId !== undefined ? {
4032
4134
  equals: item.providerAccountId
4033
4135
  } : undefined,
4136
+ status: item.status !== undefined ? {
4137
+ equals: item.status
4138
+ } : undefined,
4034
4139
  },
4035
4140
  create: {
4036
4141
  email: item.email !== undefined ? item.email : undefined,
@@ -4057,6 +4162,9 @@ export const TradingPolicy = {
4057
4162
  where: {
4058
4163
  id: item.id !== undefined ? item.id : undefined,
4059
4164
  email: item.email !== undefined ? item.email : undefined,
4165
+ status: item.status !== undefined ? {
4166
+ equals: item.status
4167
+ } : undefined,
4060
4168
  },
4061
4169
  create: {
4062
4170
  email: item.email !== undefined ? item.email : undefined,
@@ -4117,6 +4225,12 @@ export const TradingPolicy = {
4117
4225
  title: item.title !== undefined ? {
4118
4226
  equals: item.title
4119
4227
  } : undefined,
4228
+ type: item.type !== undefined ? {
4229
+ equals: item.type
4230
+ } : undefined,
4231
+ status: item.status !== undefined ? {
4232
+ equals: item.status
4233
+ } : undefined,
4120
4234
  },
4121
4235
  update: {
4122
4236
  id: item.id !== undefined ? {
@@ -4298,6 +4412,9 @@ export const TradingPolicy = {
4298
4412
  userId: item.userId !== undefined ? {
4299
4413
  equals: item.userId
4300
4414
  } : undefined,
4415
+ type: item.type !== undefined ? {
4416
+ equals: item.type
4417
+ } : undefined,
4301
4418
  },
4302
4419
  create: {
4303
4420
  type: item.type !== undefined ? item.type : undefined,
@@ -4400,6 +4517,9 @@ export const TradingPolicy = {
4400
4517
  providerAccountId: item.providerAccountId !== undefined ? {
4401
4518
  equals: item.providerAccountId
4402
4519
  } : undefined,
4520
+ status: item.status !== undefined ? {
4521
+ equals: item.status
4522
+ } : undefined,
4403
4523
  },
4404
4524
  create: {
4405
4525
  email: item.email !== undefined ? item.email : undefined,
@@ -4426,6 +4546,9 @@ export const TradingPolicy = {
4426
4546
  where: {
4427
4547
  id: item.id !== undefined ? item.id : undefined,
4428
4548
  email: item.email !== undefined ? item.email : undefined,
4549
+ status: item.status !== undefined ? {
4550
+ equals: item.status
4551
+ } : undefined,
4429
4552
  },
4430
4553
  create: {
4431
4554
  email: item.email !== undefined ? item.email : undefined,
@@ -4487,6 +4610,12 @@ export const TradingPolicy = {
4487
4610
  title: item.title !== undefined ? {
4488
4611
  equals: item.title
4489
4612
  } : undefined,
4613
+ type: item.type !== undefined ? {
4614
+ equals: item.type
4615
+ } : undefined,
4616
+ status: item.status !== undefined ? {
4617
+ equals: item.status
4618
+ } : undefined,
4490
4619
  },
4491
4620
  create: {
4492
4621
  title: item.title !== undefined ? item.title : undefined,
@@ -4518,6 +4647,9 @@ export const TradingPolicy = {
4518
4647
  tradingPolicyId: item.tradingPolicyId !== undefined ? {
4519
4648
  equals: item.tradingPolicyId
4520
4649
  } : undefined,
4650
+ status: item.status !== undefined ? {
4651
+ equals: item.status
4652
+ } : undefined,
4521
4653
  correlationId: item.correlationId !== undefined ? {
4522
4654
  equals: item.correlationId
4523
4655
  } : undefined,
@@ -4877,6 +5009,9 @@ export const TradingPolicy = {
4877
5009
  id: prop.alpacaAccount.id !== undefined ? {
4878
5010
  equals: prop.alpacaAccount.id
4879
5011
  } : undefined,
5012
+ type: prop.alpacaAccount.type !== undefined ? {
5013
+ equals: prop.alpacaAccount.type
5014
+ } : undefined,
4880
5015
  userId: prop.alpacaAccount.userId !== undefined ? {
4881
5016
  equals: prop.alpacaAccount.userId
4882
5017
  } : undefined,
@@ -5147,6 +5282,9 @@ export const TradingPolicy = {
5147
5282
  userId: item.userId !== undefined ? {
5148
5283
  equals: item.userId
5149
5284
  } : undefined,
5285
+ type: item.type !== undefined ? {
5286
+ equals: item.type
5287
+ } : undefined,
5150
5288
  },
5151
5289
  update: {
5152
5290
  id: item.id !== undefined ? {
@@ -5331,6 +5469,9 @@ export const TradingPolicy = {
5331
5469
  providerAccountId: item.providerAccountId !== undefined ? {
5332
5470
  equals: item.providerAccountId
5333
5471
  } : undefined,
5472
+ status: item.status !== undefined ? {
5473
+ equals: item.status
5474
+ } : undefined,
5334
5475
  },
5335
5476
  update: {
5336
5477
  id: item.id !== undefined ? {
@@ -5394,6 +5535,9 @@ export const TradingPolicy = {
5394
5535
  where: {
5395
5536
  id: item.id !== undefined ? item.id : undefined,
5396
5537
  email: item.email !== undefined ? item.email : undefined,
5538
+ status: item.status !== undefined ? {
5539
+ equals: item.status
5540
+ } : undefined,
5397
5541
  reviewedById: item.reviewedById !== undefined ? {
5398
5542
  equals: item.reviewedById
5399
5543
  } : undefined,
@@ -5582,6 +5726,9 @@ export const TradingPolicy = {
5582
5726
  userId: item.userId !== undefined ? {
5583
5727
  equals: item.userId
5584
5728
  } : undefined,
5729
+ type: item.type !== undefined ? {
5730
+ equals: item.type
5731
+ } : undefined,
5585
5732
  },
5586
5733
  create: {
5587
5734
  type: item.type !== undefined ? item.type : undefined,
@@ -5684,6 +5831,9 @@ export const TradingPolicy = {
5684
5831
  providerAccountId: item.providerAccountId !== undefined ? {
5685
5832
  equals: item.providerAccountId
5686
5833
  } : undefined,
5834
+ status: item.status !== undefined ? {
5835
+ equals: item.status
5836
+ } : undefined,
5687
5837
  },
5688
5838
  create: {
5689
5839
  email: item.email !== undefined ? item.email : undefined,
@@ -5710,6 +5860,9 @@ export const TradingPolicy = {
5710
5860
  where: {
5711
5861
  id: item.id !== undefined ? item.id : undefined,
5712
5862
  email: item.email !== undefined ? item.email : undefined,
5863
+ status: item.status !== undefined ? {
5864
+ equals: item.status
5865
+ } : undefined,
5713
5866
  },
5714
5867
  create: {
5715
5868
  email: item.email !== undefined ? item.email : undefined,
@@ -5770,6 +5923,12 @@ export const TradingPolicy = {
5770
5923
  title: item.title !== undefined ? {
5771
5924
  equals: item.title
5772
5925
  } : undefined,
5926
+ type: item.type !== undefined ? {
5927
+ equals: item.type
5928
+ } : undefined,
5929
+ status: item.status !== undefined ? {
5930
+ equals: item.status
5931
+ } : undefined,
5773
5932
  },
5774
5933
  update: {
5775
5934
  id: item.id !== undefined ? {
@@ -5951,6 +6110,9 @@ export const TradingPolicy = {
5951
6110
  userId: item.userId !== undefined ? {
5952
6111
  equals: item.userId
5953
6112
  } : undefined,
6113
+ type: item.type !== undefined ? {
6114
+ equals: item.type
6115
+ } : undefined,
5954
6116
  },
5955
6117
  create: {
5956
6118
  type: item.type !== undefined ? item.type : undefined,
@@ -6053,6 +6215,9 @@ export const TradingPolicy = {
6053
6215
  providerAccountId: item.providerAccountId !== undefined ? {
6054
6216
  equals: item.providerAccountId
6055
6217
  } : undefined,
6218
+ status: item.status !== undefined ? {
6219
+ equals: item.status
6220
+ } : undefined,
6056
6221
  },
6057
6222
  create: {
6058
6223
  email: item.email !== undefined ? item.email : undefined,
@@ -6079,6 +6244,9 @@ export const TradingPolicy = {
6079
6244
  where: {
6080
6245
  id: item.id !== undefined ? item.id : undefined,
6081
6246
  email: item.email !== undefined ? item.email : undefined,
6247
+ status: item.status !== undefined ? {
6248
+ equals: item.status
6249
+ } : undefined,
6082
6250
  },
6083
6251
  create: {
6084
6252
  email: item.email !== undefined ? item.email : undefined,
@@ -6140,6 +6308,12 @@ export const TradingPolicy = {
6140
6308
  title: item.title !== undefined ? {
6141
6309
  equals: item.title
6142
6310
  } : undefined,
6311
+ type: item.type !== undefined ? {
6312
+ equals: item.type
6313
+ } : undefined,
6314
+ status: item.status !== undefined ? {
6315
+ equals: item.status
6316
+ } : undefined,
6143
6317
  },
6144
6318
  create: {
6145
6319
  title: item.title !== undefined ? item.title : undefined,
@@ -6171,6 +6345,9 @@ export const TradingPolicy = {
6171
6345
  tradingPolicyId: item.tradingPolicyId !== undefined ? {
6172
6346
  equals: item.tradingPolicyId
6173
6347
  } : undefined,
6348
+ status: item.status !== undefined ? {
6349
+ equals: item.status
6350
+ } : undefined,
6174
6351
  correlationId: item.correlationId !== undefined ? {
6175
6352
  equals: item.correlationId
6176
6353
  } : undefined,
@@ -6639,7 +6816,7 @@ export const TradingPolicy = {
6639
6816
  });
6640
6817
  if (response.errors && response.errors.length > 0)
6641
6818
  throw new Error(response.errors[0].message);
6642
- if (response && response.data && response.data.tradingpolicies) {
6819
+ if (response && response.data && response.data.tradingPolicies) {
6643
6820
  return response.data.tradingPolicies;
6644
6821
  }
6645
6822
  else {
package/esm/User.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/User.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA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