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/esm/Alert.mjs CHANGED
@@ -178,12 +178,10 @@ export const Alert = {
178
178
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
179
179
  where: {
180
180
  id: item.id !== undefined ? item.id : undefined,
181
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
181
182
  userId: item.userId !== undefined ? {
182
183
  equals: item.userId
183
184
  } : undefined,
184
- providerAccountId: item.providerAccountId !== undefined ? {
185
- equals: item.providerAccountId
186
- } : undefined,
187
185
  },
188
186
  create: {
189
187
  type: item.type !== undefined ? item.type : undefined,
@@ -391,8 +389,18 @@ export const Alert = {
391
389
  const variables = {
392
390
  where: {
393
391
  id: props.id !== undefined ? props.id : undefined,
394
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
395
- equals: props.alpacaAccountId
392
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
393
+ message: props.message !== undefined ? {
394
+ equals: props.message
395
+ } : undefined,
396
+ type: props.type !== undefined ? {
397
+ equals: props.type
398
+ } : undefined,
399
+ createdAt: props.createdAt !== undefined ? {
400
+ equals: props.createdAt
401
+ } : undefined,
402
+ updatedAt: props.updatedAt !== undefined ? {
403
+ equals: props.updatedAt
396
404
  } : undefined,
397
405
  },
398
406
  data: {
@@ -662,12 +670,10 @@ export const Alert = {
662
670
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
663
671
  where: {
664
672
  id: item.id !== undefined ? item.id : undefined,
673
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
665
674
  userId: item.userId !== undefined ? {
666
675
  equals: item.userId
667
676
  } : undefined,
668
- providerAccountId: item.providerAccountId !== undefined ? {
669
- equals: item.providerAccountId
670
- } : undefined,
671
677
  },
672
678
  update: {
673
679
  id: item.id !== undefined ? {
@@ -834,12 +840,10 @@ export const Alert = {
834
840
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
835
841
  where: {
836
842
  id: item.id !== undefined ? item.id : undefined,
843
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
837
844
  userId: item.userId !== undefined ? {
838
845
  equals: item.userId
839
846
  } : undefined,
840
- providerAccountId: item.providerAccountId !== undefined ? {
841
- equals: item.providerAccountId
842
- } : undefined,
843
847
  },
844
848
  create: {
845
849
  type: item.type !== undefined ? item.type : undefined,
@@ -1008,12 +1012,10 @@ export const Alert = {
1008
1012
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1009
1013
  where: {
1010
1014
  id: item.id !== undefined ? item.id : undefined,
1015
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1011
1016
  userId: item.userId !== undefined ? {
1012
1017
  equals: item.userId
1013
1018
  } : undefined,
1014
- providerAccountId: item.providerAccountId !== undefined ? {
1015
- equals: item.providerAccountId
1016
- } : undefined,
1017
1019
  },
1018
1020
  create: {
1019
1021
  type: item.type !== undefined ? item.type : undefined,
@@ -1146,8 +1148,18 @@ export const Alert = {
1146
1148
  const variables = {
1147
1149
  where: {
1148
1150
  id: props.id !== undefined ? props.id : undefined,
1149
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
1150
- equals: props.alpacaAccountId
1151
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
1152
+ message: props.message !== undefined ? {
1153
+ equals: props.message
1154
+ } : undefined,
1155
+ type: props.type !== undefined ? {
1156
+ equals: props.type
1157
+ } : undefined,
1158
+ createdAt: props.createdAt !== undefined ? {
1159
+ equals: props.createdAt
1160
+ } : undefined,
1161
+ updatedAt: props.updatedAt !== undefined ? {
1162
+ equals: props.updatedAt
1151
1163
  } : undefined,
1152
1164
  },
1153
1165
  create: {
@@ -1277,12 +1289,10 @@ export const Alert = {
1277
1289
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1278
1290
  where: {
1279
1291
  id: item.id !== undefined ? item.id : undefined,
1292
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1280
1293
  userId: item.userId !== undefined ? {
1281
1294
  equals: item.userId
1282
1295
  } : undefined,
1283
- providerAccountId: item.providerAccountId !== undefined ? {
1284
- equals: item.providerAccountId
1285
- } : undefined,
1286
1296
  },
1287
1297
  create: {
1288
1298
  type: item.type !== undefined ? item.type : undefined,
@@ -1602,12 +1612,10 @@ export const Alert = {
1602
1612
  } : { upsert: props.alpacaAccount.user.accounts.map((item) => ({
1603
1613
  where: {
1604
1614
  id: item.id !== undefined ? item.id : undefined,
1615
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1605
1616
  userId: item.userId !== undefined ? {
1606
1617
  equals: item.userId
1607
1618
  } : undefined,
1608
- providerAccountId: item.providerAccountId !== undefined ? {
1609
- equals: item.providerAccountId
1610
- } : undefined,
1611
1619
  },
1612
1620
  update: {
1613
1621
  id: item.id !== undefined ? {
@@ -1774,12 +1782,10 @@ export const Alert = {
1774
1782
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1775
1783
  where: {
1776
1784
  id: item.id !== undefined ? item.id : undefined,
1785
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1777
1786
  userId: item.userId !== undefined ? {
1778
1787
  equals: item.userId
1779
1788
  } : undefined,
1780
- providerAccountId: item.providerAccountId !== undefined ? {
1781
- equals: item.providerAccountId
1782
- } : undefined,
1783
1789
  },
1784
1790
  create: {
1785
1791
  type: item.type !== undefined ? item.type : undefined,
@@ -1948,12 +1954,10 @@ export const Alert = {
1948
1954
  : { connectOrCreate: props.alpacaAccount.user.accounts.map((item) => ({
1949
1955
  where: {
1950
1956
  id: item.id !== undefined ? item.id : undefined,
1957
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
1951
1958
  userId: item.userId !== undefined ? {
1952
1959
  equals: item.userId
1953
1960
  } : undefined,
1954
- providerAccountId: item.providerAccountId !== undefined ? {
1955
- equals: item.providerAccountId
1956
- } : undefined,
1957
1961
  },
1958
1962
  create: {
1959
1963
  type: item.type !== undefined ? item.type : undefined,
@@ -2086,8 +2090,18 @@ export const Alert = {
2086
2090
  const variables = props.map(prop => ({
2087
2091
  where: {
2088
2092
  id: prop.id !== undefined ? prop.id : undefined,
2089
- alpacaAccountId: prop.alpacaAccountId !== undefined ? {
2090
- equals: prop.alpacaAccountId
2093
+ alpacaAccountId: prop.alpacaAccountId !== undefined ? prop.alpacaAccountId : undefined,
2094
+ message: prop.message !== undefined ? {
2095
+ equals: prop.message
2096
+ } : undefined,
2097
+ type: prop.type !== undefined ? {
2098
+ equals: prop.type
2099
+ } : undefined,
2100
+ createdAt: prop.createdAt !== undefined ? {
2101
+ equals: prop.createdAt
2102
+ } : undefined,
2103
+ updatedAt: prop.updatedAt !== undefined ? {
2104
+ equals: prop.updatedAt
2091
2105
  } : undefined,
2092
2106
  },
2093
2107
  data: {
@@ -2357,12 +2371,10 @@ export const Alert = {
2357
2371
  } : { upsert: prop.alpacaAccount.user.accounts.map((item) => ({
2358
2372
  where: {
2359
2373
  id: item.id !== undefined ? item.id : undefined,
2374
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2360
2375
  userId: item.userId !== undefined ? {
2361
2376
  equals: item.userId
2362
2377
  } : undefined,
2363
- providerAccountId: item.providerAccountId !== undefined ? {
2364
- equals: item.providerAccountId
2365
- } : undefined,
2366
2378
  },
2367
2379
  update: {
2368
2380
  id: item.id !== undefined ? {
@@ -2529,12 +2541,10 @@ export const Alert = {
2529
2541
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2530
2542
  where: {
2531
2543
  id: item.id !== undefined ? item.id : undefined,
2544
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2532
2545
  userId: item.userId !== undefined ? {
2533
2546
  equals: item.userId
2534
2547
  } : undefined,
2535
- providerAccountId: item.providerAccountId !== undefined ? {
2536
- equals: item.providerAccountId
2537
- } : undefined,
2538
2548
  },
2539
2549
  create: {
2540
2550
  type: item.type !== undefined ? item.type : undefined,
@@ -2703,12 +2713,10 @@ export const Alert = {
2703
2713
  : { connectOrCreate: prop.alpacaAccount.user.accounts.map((item) => ({
2704
2714
  where: {
2705
2715
  id: item.id !== undefined ? item.id : undefined,
2716
+ providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
2706
2717
  userId: item.userId !== undefined ? {
2707
2718
  equals: item.userId
2708
2719
  } : undefined,
2709
- providerAccountId: item.providerAccountId !== undefined ? {
2710
- equals: item.providerAccountId
2711
- } : undefined,
2712
2720
  },
2713
2721
  create: {
2714
2722
  type: item.type !== undefined ? item.type : undefined,
@@ -2914,8 +2922,18 @@ export const Alert = {
2914
2922
  const variables = {
2915
2923
  where: whereInput ? whereInput : {
2916
2924
  id: props.id !== undefined ? props.id : undefined,
2917
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
2918
- equals: props.alpacaAccountId
2925
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
2926
+ message: props.message !== undefined ? {
2927
+ equals: props.message
2928
+ } : undefined,
2929
+ type: props.type !== undefined ? {
2930
+ equals: props.type
2931
+ } : undefined,
2932
+ createdAt: props.createdAt !== undefined ? {
2933
+ equals: props.createdAt
2934
+ } : undefined,
2935
+ updatedAt: props.updatedAt !== undefined ? {
2936
+ equals: props.updatedAt
2919
2937
  } : undefined,
2920
2938
  },
2921
2939
  };
@@ -3049,11 +3067,19 @@ export const Alert = {
3049
3067
  }`;
3050
3068
  const variables = {
3051
3069
  where: whereInput ? whereInput : {
3052
- id: props.id !== undefined ? {
3053
- equals: props.id
3070
+ id: props.id !== undefined ? props.id : undefined,
3071
+ alpacaAccountId: props.alpacaAccountId !== undefined ? props.alpacaAccountId : undefined,
3072
+ message: props.message !== undefined ? {
3073
+ equals: props.message
3074
+ } : undefined,
3075
+ type: props.type !== undefined ? {
3076
+ equals: props.type
3054
3077
  } : undefined,
3055
- alpacaAccountId: props.alpacaAccountId !== undefined ? {
3056
- equals: props.alpacaAccountId
3078
+ createdAt: props.createdAt !== undefined ? {
3079
+ equals: props.createdAt
3080
+ } : undefined,
3081
+ updatedAt: props.updatedAt !== undefined ? {
3082
+ equals: props.updatedAt
3057
3083
  } : undefined,
3058
3084
  },
3059
3085
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Allocation.d.ts","sourceRoot":"","sources":["../../src/Allocation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAyE7G,eAAO,MAAM,UAAU;IAErB;;;;;OAKG;IAEH;;;;;;OAMG;kBACiB,cAAc,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IA8QtH;;;;;;OAMG;sBACqB,cAAc,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA8EpI;;;;;;OAMG;kBACiB,cAAc,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IAmvBpH;;;;;;OAMG;kBACiB,cAAc,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IA86BpH;;;;;;OAMG;sBACqB,cAAc,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAqvBpI;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