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
@@ -214,12 +214,10 @@ export const Allocation = {
214
214
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
215
215
  where: {
216
216
  id: item.id !== undefined ? item.id : undefined,
217
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
217
218
  userId: item.userId !== undefined ? {
218
219
  equals: item.userId
219
220
  } : undefined,
220
- providerAccountId: item.providerAccountId !== undefined ? {
221
- equals: item.providerAccountId
222
- } : undefined,
223
221
  },
224
222
  create: {
225
223
  type: item.type !== undefined ? item.type : undefined,
@@ -448,6 +446,21 @@ export const Allocation = {
448
446
  where: {
449
447
  id: props.id !== undefined ? props.id : undefined,
450
448
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
449
+ stocks: props.stocks !== undefined ? {
450
+ equals: props.stocks
451
+ } : undefined,
452
+ crypto: props.crypto !== undefined ? {
453
+ equals: props.crypto
454
+ } : undefined,
455
+ etfs: props.etfs !== undefined ? {
456
+ equals: props.etfs
457
+ } : undefined,
458
+ createdAt: props.createdAt !== undefined ? {
459
+ equals: props.createdAt
460
+ } : undefined,
461
+ updatedAt: props.updatedAt !== undefined ? {
462
+ equals: props.updatedAt
463
+ } : undefined,
451
464
  },
452
465
  data: {
453
466
  id: props.id !== undefined ? {
@@ -680,12 +693,10 @@ export const Allocation = {
680
693
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
681
694
  where: {
682
695
  id: item.id !== undefined ? item.id : undefined,
696
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
683
697
  userId: item.userId !== undefined ? {
684
698
  equals: item.userId
685
699
  } : undefined,
686
- providerAccountId: item.providerAccountId !== undefined ? {
687
- equals: item.providerAccountId
688
- } : undefined,
689
700
  },
690
701
  update: {
691
702
  id: item.id !== undefined ? {
@@ -852,12 +863,10 @@ export const Allocation = {
852
863
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
853
864
  where: {
854
865
  id: item.id !== undefined ? item.id : undefined,
866
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
855
867
  userId: item.userId !== undefined ? {
856
868
  equals: item.userId
857
869
  } : undefined,
858
- providerAccountId: item.providerAccountId !== undefined ? {
859
- equals: item.providerAccountId
860
- } : undefined,
861
870
  },
862
871
  create: {
863
872
  type: item.type !== undefined ? item.type : undefined,
@@ -1041,12 +1050,10 @@ export const Allocation = {
1041
1050
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1042
1051
  where: {
1043
1052
  id: item.id !== undefined ? item.id : undefined,
1053
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1044
1054
  userId: item.userId !== undefined ? {
1045
1055
  equals: item.userId
1046
1056
  } : undefined,
1047
- providerAccountId: item.providerAccountId !== undefined ? {
1048
- equals: item.providerAccountId
1049
- } : undefined,
1050
1057
  },
1051
1058
  create: {
1052
1059
  type: item.type !== undefined ? item.type : undefined,
@@ -1200,6 +1207,21 @@ export const Allocation = {
1200
1207
  where: {
1201
1208
  id: props.id !== undefined ? props.id : undefined,
1202
1209
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
1210
+ stocks: props.stocks !== undefined ? {
1211
+ equals: props.stocks
1212
+ } : undefined,
1213
+ crypto: props.crypto !== undefined ? {
1214
+ equals: props.crypto
1215
+ } : undefined,
1216
+ etfs: props.etfs !== undefined ? {
1217
+ equals: props.etfs
1218
+ } : undefined,
1219
+ createdAt: props.createdAt !== undefined ? {
1220
+ equals: props.createdAt
1221
+ } : undefined,
1222
+ updatedAt: props.updatedAt !== undefined ? {
1223
+ equals: props.updatedAt
1224
+ } : undefined,
1203
1225
  },
1204
1226
  create: {
1205
1227
  stocks: props.stocks !== undefined ? props.stocks : undefined,
@@ -1310,12 +1332,10 @@ export const Allocation = {
1310
1332
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1311
1333
  where: {
1312
1334
  id: item.id !== undefined ? item.id : undefined,
1335
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1313
1336
  userId: item.userId !== undefined ? {
1314
1337
  equals: item.userId
1315
1338
  } : undefined,
1316
- providerAccountId: item.providerAccountId !== undefined ? {
1317
- equals: item.providerAccountId
1318
- } : undefined,
1319
1339
  },
1320
1340
  create: {
1321
1341
  type: item.type !== undefined ? item.type : undefined,
@@ -1619,12 +1639,10 @@ export const Allocation = {
1619
1639
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
1620
1640
  where: {
1621
1641
  id: item.id !== undefined ? item.id : undefined,
1642
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1622
1643
  userId: item.userId !== undefined ? {
1623
1644
  equals: item.userId
1624
1645
  } : undefined,
1625
- providerAccountId: item.providerAccountId !== undefined ? {
1626
- equals: item.providerAccountId
1627
- } : undefined,
1628
1646
  },
1629
1647
  update: {
1630
1648
  id: item.id !== undefined ? {
@@ -1791,12 +1809,10 @@ export const Allocation = {
1791
1809
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1792
1810
  where: {
1793
1811
  id: item.id !== undefined ? item.id : undefined,
1812
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1794
1813
  userId: item.userId !== undefined ? {
1795
1814
  equals: item.userId
1796
1815
  } : undefined,
1797
- providerAccountId: item.providerAccountId !== undefined ? {
1798
- equals: item.providerAccountId
1799
- } : undefined,
1800
1816
  },
1801
1817
  create: {
1802
1818
  type: item.type !== undefined ? item.type : undefined,
@@ -1980,12 +1996,10 @@ export const Allocation = {
1980
1996
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1981
1997
  where: {
1982
1998
  id: item.id !== undefined ? item.id : undefined,
1999
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1983
2000
  userId: item.userId !== undefined ? {
1984
2001
  equals: item.userId
1985
2002
  } : undefined,
1986
- providerAccountId: item.providerAccountId !== undefined ? {
1987
- equals: item.providerAccountId
1988
- } : undefined,
1989
2003
  },
1990
2004
  create: {
1991
2005
  type: item.type !== undefined ? item.type : undefined,
@@ -2139,6 +2153,21 @@ export const Allocation = {
2139
2153
  where: {
2140
2154
  id: prop.id !== undefined ? prop.id : undefined,
2141
2155
  alpacaAccountId: prop.alpacaAccountId !== undefined ? prop.alpacaAccountId : undefined,
2156
+ stocks: prop.stocks !== undefined ? {
2157
+ equals: prop.stocks
2158
+ } : undefined,
2159
+ crypto: prop.crypto !== undefined ? {
2160
+ equals: prop.crypto
2161
+ } : undefined,
2162
+ etfs: prop.etfs !== undefined ? {
2163
+ equals: prop.etfs
2164
+ } : undefined,
2165
+ createdAt: prop.createdAt !== undefined ? {
2166
+ equals: prop.createdAt
2167
+ } : undefined,
2168
+ updatedAt: prop.updatedAt !== undefined ? {
2169
+ equals: prop.updatedAt
2170
+ } : undefined,
2142
2171
  },
2143
2172
  data: {
2144
2173
  id: prop.id !== undefined ? {
@@ -2371,12 +2400,10 @@ export const Allocation = {
2371
2400
  } : { upsert: prop.alpacaAccount.user.accounts.map((item) => ({
2372
2401
  where: {
2373
2402
  id: item.id !== undefined ? item.id : undefined,
2403
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2374
2404
  userId: item.userId !== undefined ? {
2375
2405
  equals: item.userId
2376
2406
  } : undefined,
2377
- providerAccountId: item.providerAccountId !== undefined ? {
2378
- equals: item.providerAccountId
2379
- } : undefined,
2380
2407
  },
2381
2408
  update: {
2382
2409
  id: item.id !== undefined ? {
@@ -2543,12 +2570,10 @@ export const Allocation = {
2543
2570
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2544
2571
  where: {
2545
2572
  id: item.id !== undefined ? item.id : undefined,
2573
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2546
2574
  userId: item.userId !== undefined ? {
2547
2575
  equals: item.userId
2548
2576
  } : undefined,
2549
- providerAccountId: item.providerAccountId !== undefined ? {
2550
- equals: item.providerAccountId
2551
- } : undefined,
2552
2577
  },
2553
2578
  create: {
2554
2579
  type: item.type !== undefined ? item.type : undefined,
@@ -2732,12 +2757,10 @@ export const Allocation = {
2732
2757
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2733
2758
  where: {
2734
2759
  id: item.id !== undefined ? item.id : undefined,
2760
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2735
2761
  userId: item.userId !== undefined ? {
2736
2762
  equals: item.userId
2737
2763
  } : undefined,
2738
- providerAccountId: item.providerAccountId !== undefined ? {
2739
- equals: item.providerAccountId
2740
- } : undefined,
2741
2764
  },
2742
2765
  create: {
2743
2766
  type: item.type !== undefined ? item.type : undefined,
@@ -2964,6 +2987,21 @@ export const Allocation = {
2964
2987
  where: whereInput ? whereInput : {
2965
2988
  id: props.id !== undefined ? props.id : undefined,
2966
2989
  alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
2990
+ stocks: props.stocks !== undefined ? {
2991
+ equals: props.stocks
2992
+ } : undefined,
2993
+ crypto: props.crypto !== undefined ? {
2994
+ equals: props.crypto
2995
+ } : undefined,
2996
+ etfs: props.etfs !== undefined ? {
2997
+ equals: props.etfs
2998
+ } : undefined,
2999
+ createdAt: props.createdAt !== undefined ? {
3000
+ equals: props.createdAt
3001
+ } : undefined,
3002
+ updatedAt: props.updatedAt !== undefined ? {
3003
+ equals: props.updatedAt
3004
+ } : undefined,
2967
3005
  },
2968
3006
  };
2969
3007
  const filteredVariables = removeUndefinedProps(variables);
@@ -3096,11 +3134,22 @@ export const Allocation = {
3096
3134
  }`;
3097
3135
  const variables = {
3098
3136
  where: whereInput ? whereInput : {
3099
- id: props.id !== undefined ? {
3100
- equals: props.id
3137
+ id: props.id !== undefined ? props.id : undefined,
3138
+ stocks: props.stocks !== undefined ? {
3139
+ equals: props.stocks
3140
+ } : undefined,
3141
+ crypto: props.crypto !== undefined ? {
3142
+ equals: props.crypto
3143
+ } : undefined,
3144
+ etfs: props.etfs !== undefined ? {
3145
+ equals: props.etfs
3101
3146
  } : undefined,
3102
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
3103
- equals: props.alpacaAccountId
3147
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
3148
+ createdAt: props.createdAt !== undefined ? {
3149
+ equals: props.createdAt
3150
+ } : undefined,
3151
+ updatedAt: props.updatedAt !== undefined ? {
3152
+ equals: props.updatedAt
3104
3153
  } : undefined,
3105
3154
  },
3106
3155
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../src/AlpacaAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA4E7G,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4Q5H;;;;;;OAMG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAmGvI;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA0kB1H;;;;;;OAMG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAA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