adaptic-backend 1.0.341 → 1.0.342

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 (81) hide show
  1. package/Account.cjs +150 -22
  2. package/Action.cjs +90 -12
  3. package/Alert.cjs +71 -45
  4. package/Allocation.cjs +86 -37
  5. package/AlpacaAccount.cjs +308 -36
  6. package/Asset.cjs +839 -50
  7. package/Authenticator.cjs +71 -36
  8. package/Customer.cjs +70 -62
  9. package/EconomicEvent.cjs +75 -12
  10. package/MarketSentiment.cjs +75 -2
  11. package/NewsArticle.cjs +195 -14
  12. package/NewsArticleAssetSentiment.cjs +45 -14
  13. package/ScheduledOptionOrder.cjs +15 -2
  14. package/Session.cjs +56 -36
  15. package/Trade.cjs +210 -22
  16. package/User.cjs +170 -29
  17. package/VerificationToken.cjs +33 -2
  18. package/esm/Account.d.ts.map +1 -1
  19. package/esm/Account.js.map +1 -1
  20. package/esm/Account.mjs +150 -22
  21. package/esm/Action.d.ts.map +1 -1
  22. package/esm/Action.js.map +1 -1
  23. package/esm/Action.mjs +90 -12
  24. package/esm/Alert.d.ts.map +1 -1
  25. package/esm/Alert.js.map +1 -1
  26. package/esm/Alert.mjs +71 -45
  27. package/esm/Allocation.d.ts.map +1 -1
  28. package/esm/Allocation.js.map +1 -1
  29. package/esm/Allocation.mjs +86 -37
  30. package/esm/AlpacaAccount.d.ts.map +1 -1
  31. package/esm/AlpacaAccount.js.map +1 -1
  32. package/esm/AlpacaAccount.mjs +308 -36
  33. package/esm/Asset.d.ts.map +1 -1
  34. package/esm/Asset.js.map +1 -1
  35. package/esm/Asset.mjs +839 -50
  36. package/esm/Authenticator.d.ts.map +1 -1
  37. package/esm/Authenticator.js.map +1 -1
  38. package/esm/Authenticator.mjs +71 -36
  39. package/esm/Customer.d.ts.map +1 -1
  40. package/esm/Customer.js.map +1 -1
  41. package/esm/Customer.mjs +70 -62
  42. package/esm/EconomicEvent.d.ts.map +1 -1
  43. package/esm/EconomicEvent.js.map +1 -1
  44. package/esm/EconomicEvent.mjs +75 -12
  45. package/esm/MarketSentiment.d.ts.map +1 -1
  46. package/esm/MarketSentiment.js.map +1 -1
  47. package/esm/MarketSentiment.mjs +75 -2
  48. package/esm/NewsArticle.d.ts.map +1 -1
  49. package/esm/NewsArticle.js.map +1 -1
  50. package/esm/NewsArticle.mjs +195 -14
  51. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  52. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  53. package/esm/NewsArticleAssetSentiment.mjs +45 -14
  54. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  55. package/esm/ScheduledOptionOrder.js.map +1 -1
  56. package/esm/ScheduledOptionOrder.mjs +15 -2
  57. package/esm/Session.d.ts.map +1 -1
  58. package/esm/Session.js.map +1 -1
  59. package/esm/Session.mjs +56 -36
  60. package/esm/Trade.d.ts.map +1 -1
  61. package/esm/Trade.js.map +1 -1
  62. package/esm/Trade.mjs +210 -22
  63. package/esm/User.d.ts.map +1 -1
  64. package/esm/User.js.map +1 -1
  65. package/esm/User.mjs +170 -29
  66. package/esm/VerificationToken.d.ts.map +1 -1
  67. package/esm/VerificationToken.js.map +1 -1
  68. package/esm/VerificationToken.mjs +33 -2
  69. package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
  70. package/esm/generated/typegraphql-prisma/enhance.mjs +1 -1
  71. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
  72. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
  73. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
  74. package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.mjs +7 -7
  75. package/generated/typegraphql-prisma/enhance.cjs +1 -1
  76. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  77. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.cjs +6 -6
  78. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
  79. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
  80. package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
  81. package/package.json +1 -1
package/Allocation.cjs CHANGED
@@ -218,12 +218,10 @@ exports.Allocation = {
218
218
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
219
219
  where: {
220
220
  id: item.id !== undefined ? item.id : undefined,
221
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
221
222
  userId: item.userId !== undefined ? {
222
223
  equals: item.userId
223
224
  } : undefined,
224
- providerAccountId: item.providerAccountId !== undefined ? {
225
- equals: item.providerAccountId
226
- } : undefined,
227
225
  },
228
226
  create: {
229
227
  type: item.type !== undefined ? item.type : undefined,
@@ -454,6 +452,21 @@ exports.Allocation = {
454
452
  where: {
455
453
  id: props.id !== undefined ? props.id : undefined,
456
454
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
455
+ stocks: props.stocks !== undefined ? {
456
+ equals: props.stocks
457
+ } : undefined,
458
+ crypto: props.crypto !== undefined ? {
459
+ equals: props.crypto
460
+ } : undefined,
461
+ etfs: props.etfs !== undefined ? {
462
+ equals: props.etfs
463
+ } : undefined,
464
+ createdAt: props.createdAt !== undefined ? {
465
+ equals: props.createdAt
466
+ } : undefined,
467
+ updatedAt: props.updatedAt !== undefined ? {
468
+ equals: props.updatedAt
469
+ } : undefined,
457
470
  },
458
471
  data: {
459
472
  id: props.id !== undefined ? {
@@ -686,12 +699,10 @@ exports.Allocation = {
686
699
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
687
700
  where: {
688
701
  id: item.id !== undefined ? item.id : undefined,
702
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
689
703
  userId: item.userId !== undefined ? {
690
704
  equals: item.userId
691
705
  } : undefined,
692
- providerAccountId: item.providerAccountId !== undefined ? {
693
- equals: item.providerAccountId
694
- } : undefined,
695
706
  },
696
707
  update: {
697
708
  id: item.id !== undefined ? {
@@ -858,12 +869,10 @@ exports.Allocation = {
858
869
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
859
870
  where: {
860
871
  id: item.id !== undefined ? item.id : undefined,
872
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
861
873
  userId: item.userId !== undefined ? {
862
874
  equals: item.userId
863
875
  } : undefined,
864
- providerAccountId: item.providerAccountId !== undefined ? {
865
- equals: item.providerAccountId
866
- } : undefined,
867
876
  },
868
877
  create: {
869
878
  type: item.type !== undefined ? item.type : undefined,
@@ -1047,12 +1056,10 @@ exports.Allocation = {
1047
1056
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1048
1057
  where: {
1049
1058
  id: item.id !== undefined ? item.id : undefined,
1059
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1050
1060
  userId: item.userId !== undefined ? {
1051
1061
  equals: item.userId
1052
1062
  } : undefined,
1053
- providerAccountId: item.providerAccountId !== undefined ? {
1054
- equals: item.providerAccountId
1055
- } : undefined,
1056
1063
  },
1057
1064
  create: {
1058
1065
  type: item.type !== undefined ? item.type : undefined,
@@ -1207,6 +1214,21 @@ exports.Allocation = {
1207
1214
  where: {
1208
1215
  id: props.id !== undefined ? props.id : undefined,
1209
1216
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
1217
+ stocks: props.stocks !== undefined ? {
1218
+ equals: props.stocks
1219
+ } : undefined,
1220
+ crypto: props.crypto !== undefined ? {
1221
+ equals: props.crypto
1222
+ } : undefined,
1223
+ etfs: props.etfs !== undefined ? {
1224
+ equals: props.etfs
1225
+ } : undefined,
1226
+ createdAt: props.createdAt !== undefined ? {
1227
+ equals: props.createdAt
1228
+ } : undefined,
1229
+ updatedAt: props.updatedAt !== undefined ? {
1230
+ equals: props.updatedAt
1231
+ } : undefined,
1210
1232
  },
1211
1233
  create: {
1212
1234
  stocks: props.stocks !== undefined ? props.stocks : undefined,
@@ -1317,12 +1339,10 @@ exports.Allocation = {
1317
1339
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1318
1340
  where: {
1319
1341
  id: item.id !== undefined ? item.id : undefined,
1342
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1320
1343
  userId: item.userId !== undefined ? {
1321
1344
  equals: item.userId
1322
1345
  } : undefined,
1323
- providerAccountId: item.providerAccountId !== undefined ? {
1324
- equals: item.providerAccountId
1325
- } : undefined,
1326
1346
  },
1327
1347
  create: {
1328
1348
  type: item.type !== undefined ? item.type : undefined,
@@ -1626,12 +1646,10 @@ exports.Allocation = {
1626
1646
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
1627
1647
  where: {
1628
1648
  id: item.id !== undefined ? item.id : undefined,
1649
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1629
1650
  userId: item.userId !== undefined ? {
1630
1651
  equals: item.userId
1631
1652
  } : undefined,
1632
- providerAccountId: item.providerAccountId !== undefined ? {
1633
- equals: item.providerAccountId
1634
- } : undefined,
1635
1653
  },
1636
1654
  update: {
1637
1655
  id: item.id !== undefined ? {
@@ -1798,12 +1816,10 @@ exports.Allocation = {
1798
1816
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1799
1817
  where: {
1800
1818
  id: item.id !== undefined ? item.id : undefined,
1819
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1801
1820
  userId: item.userId !== undefined ? {
1802
1821
  equals: item.userId
1803
1822
  } : undefined,
1804
- providerAccountId: item.providerAccountId !== undefined ? {
1805
- equals: item.providerAccountId
1806
- } : undefined,
1807
1823
  },
1808
1824
  create: {
1809
1825
  type: item.type !== undefined ? item.type : undefined,
@@ -1987,12 +2003,10 @@ exports.Allocation = {
1987
2003
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1988
2004
  where: {
1989
2005
  id: item.id !== undefined ? item.id : undefined,
2006
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1990
2007
  userId: item.userId !== undefined ? {
1991
2008
  equals: item.userId
1992
2009
  } : undefined,
1993
- providerAccountId: item.providerAccountId !== undefined ? {
1994
- equals: item.providerAccountId
1995
- } : undefined,
1996
2010
  },
1997
2011
  create: {
1998
2012
  type: item.type !== undefined ? item.type : undefined,
@@ -2147,6 +2161,21 @@ exports.Allocation = {
2147
2161
  where: {
2148
2162
  id: prop.id !== undefined ? prop.id : undefined,
2149
2163
  alpacaAccountId: prop.alpacaAccountId !== undefined ? prop.alpacaAccountId : undefined,
2164
+ stocks: prop.stocks !== undefined ? {
2165
+ equals: prop.stocks
2166
+ } : undefined,
2167
+ crypto: prop.crypto !== undefined ? {
2168
+ equals: prop.crypto
2169
+ } : undefined,
2170
+ etfs: prop.etfs !== undefined ? {
2171
+ equals: prop.etfs
2172
+ } : undefined,
2173
+ createdAt: prop.createdAt !== undefined ? {
2174
+ equals: prop.createdAt
2175
+ } : undefined,
2176
+ updatedAt: prop.updatedAt !== undefined ? {
2177
+ equals: prop.updatedAt
2178
+ } : undefined,
2150
2179
  },
2151
2180
  data: {
2152
2181
  id: prop.id !== undefined ? {
@@ -2379,12 +2408,10 @@ exports.Allocation = {
2379
2408
  } : { upsert: prop.alpacaAccount.user.accounts.map((item) => ({
2380
2409
  where: {
2381
2410
  id: item.id !== undefined ? item.id : undefined,
2411
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2382
2412
  userId: item.userId !== undefined ? {
2383
2413
  equals: item.userId
2384
2414
  } : undefined,
2385
- providerAccountId: item.providerAccountId !== undefined ? {
2386
- equals: item.providerAccountId
2387
- } : undefined,
2388
2415
  },
2389
2416
  update: {
2390
2417
  id: item.id !== undefined ? {
@@ -2551,12 +2578,10 @@ exports.Allocation = {
2551
2578
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2552
2579
  where: {
2553
2580
  id: item.id !== undefined ? item.id : undefined,
2581
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2554
2582
  userId: item.userId !== undefined ? {
2555
2583
  equals: item.userId
2556
2584
  } : undefined,
2557
- providerAccountId: item.providerAccountId !== undefined ? {
2558
- equals: item.providerAccountId
2559
- } : undefined,
2560
2585
  },
2561
2586
  create: {
2562
2587
  type: item.type !== undefined ? item.type : undefined,
@@ -2740,12 +2765,10 @@ exports.Allocation = {
2740
2765
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2741
2766
  where: {
2742
2767
  id: item.id !== undefined ? item.id : undefined,
2768
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2743
2769
  userId: item.userId !== undefined ? {
2744
2770
  equals: item.userId
2745
2771
  } : undefined,
2746
- providerAccountId: item.providerAccountId !== undefined ? {
2747
- equals: item.providerAccountId
2748
- } : undefined,
2749
2772
  },
2750
2773
  create: {
2751
2774
  type: item.type !== undefined ? item.type : undefined,
@@ -2974,6 +2997,21 @@ exports.Allocation = {
2974
2997
  where: whereInput ? whereInput : {
2975
2998
  id: props.id !== undefined ? props.id : undefined,
2976
2999
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
3000
+ stocks: props.stocks !== undefined ? {
3001
+ equals: props.stocks
3002
+ } : undefined,
3003
+ crypto: props.crypto !== undefined ? {
3004
+ equals: props.crypto
3005
+ } : undefined,
3006
+ etfs: props.etfs !== undefined ? {
3007
+ equals: props.etfs
3008
+ } : undefined,
3009
+ createdAt: props.createdAt !== undefined ? {
3010
+ equals: props.createdAt
3011
+ } : undefined,
3012
+ updatedAt: props.updatedAt !== undefined ? {
3013
+ equals: props.updatedAt
3014
+ } : undefined,
2977
3015
  },
2978
3016
  };
2979
3017
  const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
@@ -3108,11 +3146,22 @@ exports.Allocation = {
3108
3146
  }`;
3109
3147
  const variables = {
3110
3148
  where: whereInput ? whereInput : {
3111
- id: props.id !== undefined ? {
3112
- equals: props.id
3149
+ id: props.id !== undefined ? props.id : undefined,
3150
+ stocks: props.stocks !== undefined ? {
3151
+ equals: props.stocks
3152
+ } : undefined,
3153
+ crypto: props.crypto !== undefined ? {
3154
+ equals: props.crypto
3155
+ } : undefined,
3156
+ etfs: props.etfs !== undefined ? {
3157
+ equals: props.etfs
3113
3158
  } : undefined,
3114
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
3115
- equals: props.alpacaAccountId
3159
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
3160
+ createdAt: props.createdAt !== undefined ? {
3161
+ equals: props.createdAt
3162
+ } : undefined,
3163
+ updatedAt: props.updatedAt !== undefined ? {
3164
+ equals: props.updatedAt
3116
3165
  } : undefined,
3117
3166
  },
3118
3167
  };