adaptic-backend 1.0.179 → 1.0.180

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 (99) hide show
  1. package/Account.cjs +15 -37
  2. package/Action.cjs +23 -61
  3. package/Alert.cjs +13 -31
  4. package/AlpacaAccount.cjs +30 -82
  5. package/Asset.cjs +30 -82
  6. package/Authenticator.cjs +15 -37
  7. package/Customer.cjs +15 -37
  8. package/EconomicEvent.cjs +8 -16
  9. package/MarketSentiment.cjs +8 -16
  10. package/NewsArticle.cjs +15 -37
  11. package/NewsArticleAssetSentiment.cjs +13 -31
  12. package/Order.cjs +11 -25
  13. package/Position.cjs +18 -46
  14. package/ScheduledOptionOrder.cjs +8 -16
  15. package/Session.cjs +15 -37
  16. package/StopLoss.cjs +9 -19
  17. package/TakeProfit.cjs +9 -19
  18. package/Trade.cjs +21 -55
  19. package/User.cjs +13 -31
  20. package/VerificationToken.cjs +8 -16
  21. package/client.cjs +3 -0
  22. package/client.d.ts +1 -0
  23. package/generated/typegraphql-prisma/enhance.cjs +1 -1
  24. package/generated/typegraphql-prisma/enhance.js.map +1 -1
  25. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +6 -7
  26. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -2
  27. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  28. package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  29. package/package.json +1 -1
  30. package/server/Account.d.ts.map +1 -1
  31. package/server/Account.js.map +1 -1
  32. package/server/Account.mjs +8 -30
  33. package/server/Action.d.ts.map +1 -1
  34. package/server/Action.js.map +1 -1
  35. package/server/Action.mjs +16 -54
  36. package/server/Alert.d.ts.map +1 -1
  37. package/server/Alert.js.map +1 -1
  38. package/server/Alert.mjs +6 -24
  39. package/server/AlpacaAccount.d.ts.map +1 -1
  40. package/server/AlpacaAccount.js.map +1 -1
  41. package/server/AlpacaAccount.mjs +23 -75
  42. package/server/Asset.d.ts.map +1 -1
  43. package/server/Asset.js.map +1 -1
  44. package/server/Asset.mjs +23 -75
  45. package/server/Authenticator.d.ts.map +1 -1
  46. package/server/Authenticator.js.map +1 -1
  47. package/server/Authenticator.mjs +8 -30
  48. package/server/Customer.d.ts.map +1 -1
  49. package/server/Customer.js.map +1 -1
  50. package/server/Customer.mjs +8 -30
  51. package/server/EconomicEvent.d.ts.map +1 -1
  52. package/server/EconomicEvent.js.map +1 -1
  53. package/server/EconomicEvent.mjs +1 -9
  54. package/server/MarketSentiment.d.ts.map +1 -1
  55. package/server/MarketSentiment.js.map +1 -1
  56. package/server/MarketSentiment.mjs +1 -9
  57. package/server/NewsArticle.d.ts.map +1 -1
  58. package/server/NewsArticle.js.map +1 -1
  59. package/server/NewsArticle.mjs +8 -30
  60. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  61. package/server/NewsArticleAssetSentiment.js.map +1 -1
  62. package/server/NewsArticleAssetSentiment.mjs +6 -24
  63. package/server/Order.d.ts.map +1 -1
  64. package/server/Order.js.map +1 -1
  65. package/server/Order.mjs +4 -18
  66. package/server/Position.d.ts.map +1 -1
  67. package/server/Position.js.map +1 -1
  68. package/server/Position.mjs +11 -39
  69. package/server/ScheduledOptionOrder.d.ts.map +1 -1
  70. package/server/ScheduledOptionOrder.js.map +1 -1
  71. package/server/ScheduledOptionOrder.mjs +1 -9
  72. package/server/Session.d.ts.map +1 -1
  73. package/server/Session.js.map +1 -1
  74. package/server/Session.mjs +8 -30
  75. package/server/StopLoss.d.ts.map +1 -1
  76. package/server/StopLoss.js.map +1 -1
  77. package/server/StopLoss.mjs +2 -12
  78. package/server/TakeProfit.d.ts.map +1 -1
  79. package/server/TakeProfit.js.map +1 -1
  80. package/server/TakeProfit.mjs +2 -12
  81. package/server/Trade.d.ts.map +1 -1
  82. package/server/Trade.js.map +1 -1
  83. package/server/Trade.mjs +14 -48
  84. package/server/User.d.ts.map +1 -1
  85. package/server/User.js.map +1 -1
  86. package/server/User.mjs +6 -24
  87. package/server/VerificationToken.d.ts.map +1 -1
  88. package/server/VerificationToken.js.map +1 -1
  89. package/server/VerificationToken.mjs +1 -9
  90. package/server/client.d.ts +1 -0
  91. package/server/client.d.ts.map +1 -1
  92. package/server/client.js.map +1 -1
  93. package/server/client.mjs +2 -0
  94. package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
  95. package/server/generated/typegraphql-prisma/enhance.mjs +1 -1
  96. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -2
  97. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
  98. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
  99. package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +7 -8
package/server/Asset.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import pkg from '@apollo/client';
2
2
  const { ApolloError, gql } = pkg;
3
- import { createApolloClient } from './client.mjs';
3
+ import { client } from './client.mjs';
4
4
  import { removeUndefinedProps } from './utils.mjs';
5
5
  /**
6
6
  * CRUD operations for the Asset model.
@@ -240,7 +240,6 @@ export const Asset = {
240
240
  * @returns The created Asset or null.
241
241
  */
242
242
  async create(props) {
243
- const client = createApolloClient();
244
243
  const CREATE_ONE_ASSET = gql `
245
244
  mutation createOneAsset($data: AssetCreateInput!) {
246
245
  createOneAsset(data: $data) {
@@ -394,11 +393,9 @@ export const Asset = {
394
393
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
395
394
  where: {
396
395
  id: item.id !== undefined ? item.id : undefined,
396
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
397
397
  actionId: item.actionId !== undefined ? item.actionId : undefined,
398
398
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
399
- clientOrderId: item.clientOrderId !== undefined ? {
400
- equals: item.clientOrderId
401
- } : undefined,
402
399
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
403
400
  equals: item.alpacaAccountId
404
401
  } : undefined,
@@ -520,11 +517,9 @@ export const Asset = {
520
517
  : { connectOrCreate: {
521
518
  where: {
522
519
  id: item.order.id !== undefined ? item.order.id : undefined,
520
+ clientOrderId: item.order.clientOrderId !== undefined ? item.order.clientOrderId : undefined,
523
521
  actionId: item.order.actionId !== undefined ? item.order.actionId : undefined,
524
522
  stopLossId: item.order.stopLossId !== undefined ? item.order.stopLossId : undefined,
525
- clientOrderId: item.order.clientOrderId !== undefined ? {
526
- equals: item.order.clientOrderId
527
- } : undefined,
528
523
  alpacaAccountId: item.order.alpacaAccountId !== undefined ? {
529
524
  equals: item.order.alpacaAccountId
530
525
  } : undefined,
@@ -576,11 +571,9 @@ export const Asset = {
576
571
  : { connectOrCreate: props.orders.map((item) => ({
577
572
  where: {
578
573
  id: item.id !== undefined ? item.id : undefined,
574
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
579
575
  actionId: item.actionId !== undefined ? item.actionId : undefined,
580
576
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
581
- clientOrderId: item.clientOrderId !== undefined ? {
582
- equals: item.clientOrderId
583
- } : undefined,
584
577
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
585
578
  equals: item.alpacaAccountId
586
579
  } : undefined,
@@ -967,11 +960,9 @@ export const Asset = {
967
960
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
968
961
  where: {
969
962
  id: item.id !== undefined ? item.id : undefined,
963
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
970
964
  actionId: item.actionId !== undefined ? item.actionId : undefined,
971
965
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
972
- clientOrderId: item.clientOrderId !== undefined ? {
973
- equals: item.clientOrderId
974
- } : undefined,
975
966
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
976
967
  equals: item.alpacaAccountId
977
968
  } : undefined,
@@ -1115,7 +1106,6 @@ export const Asset = {
1115
1106
  * @returns The count of created records or null.
1116
1107
  */
1117
1108
  async createMany(props) {
1118
- const client = createApolloClient();
1119
1109
  const CREATE_MANY_ASSET = gql `
1120
1110
  mutation createManyAsset($data: [AssetCreateManyInput!]!) {
1121
1111
  createManyAsset(data: $data) {
@@ -1204,7 +1194,6 @@ export const Asset = {
1204
1194
  * @returns The updated Asset or null.
1205
1195
  */
1206
1196
  async update(props) {
1207
- const client = createApolloClient();
1208
1197
  const UPDATE_ONE_ASSET = gql `
1209
1198
  mutation updateOneAsset($data: AssetUpdateInput!, $where: AssetWhereUniqueInput!) {
1210
1199
  updateOneAsset(data: $data, where: $where) {
@@ -1604,11 +1593,9 @@ export const Asset = {
1604
1593
  upsert: item.alpacaAccount.orders.map((item) => ({
1605
1594
  where: {
1606
1595
  id: item.id !== undefined ? item.id : undefined,
1596
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
1607
1597
  actionId: item.actionId !== undefined ? item.actionId : undefined,
1608
1598
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
1609
- clientOrderId: item.clientOrderId !== undefined ? {
1610
- equals: item.clientOrderId
1611
- } : undefined,
1612
1599
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
1613
1600
  equals: item.alpacaAccountId
1614
1601
  } : undefined,
@@ -1879,11 +1866,9 @@ export const Asset = {
1879
1866
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
1880
1867
  where: {
1881
1868
  id: item.id !== undefined ? item.id : undefined,
1869
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
1882
1870
  actionId: item.actionId !== undefined ? item.actionId : undefined,
1883
1871
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
1884
- clientOrderId: item.clientOrderId !== undefined ? {
1885
- equals: item.clientOrderId
1886
- } : undefined,
1887
1872
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
1888
1873
  equals: item.alpacaAccountId
1889
1874
  } : undefined,
@@ -2145,11 +2130,9 @@ export const Asset = {
2145
2130
  : { connectOrCreate: {
2146
2131
  where: {
2147
2132
  id: item.order.id !== undefined ? item.order.id : undefined,
2133
+ clientOrderId: item.order.clientOrderId !== undefined ? item.order.clientOrderId : undefined,
2148
2134
  actionId: item.order.actionId !== undefined ? item.order.actionId : undefined,
2149
2135
  stopLossId: item.order.stopLossId !== undefined ? item.order.stopLossId : undefined,
2150
- clientOrderId: item.order.clientOrderId !== undefined ? {
2151
- equals: item.order.clientOrderId
2152
- } : undefined,
2153
2136
  alpacaAccountId: item.order.alpacaAccountId !== undefined ? {
2154
2137
  equals: item.order.alpacaAccountId
2155
2138
  } : undefined,
@@ -2263,11 +2246,9 @@ export const Asset = {
2263
2246
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
2264
2247
  where: {
2265
2248
  id: item.id !== undefined ? item.id : undefined,
2249
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
2266
2250
  actionId: item.actionId !== undefined ? item.actionId : undefined,
2267
2251
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
2268
- clientOrderId: item.clientOrderId !== undefined ? {
2269
- equals: item.clientOrderId
2270
- } : undefined,
2271
2252
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
2272
2253
  equals: item.alpacaAccountId
2273
2254
  } : undefined,
@@ -2389,11 +2370,9 @@ export const Asset = {
2389
2370
  : { connectOrCreate: {
2390
2371
  where: {
2391
2372
  id: item.order.id !== undefined ? item.order.id : undefined,
2373
+ clientOrderId: item.order.clientOrderId !== undefined ? item.order.clientOrderId : undefined,
2392
2374
  actionId: item.order.actionId !== undefined ? item.order.actionId : undefined,
2393
2375
  stopLossId: item.order.stopLossId !== undefined ? item.order.stopLossId : undefined,
2394
- clientOrderId: item.order.clientOrderId !== undefined ? {
2395
- equals: item.order.clientOrderId
2396
- } : undefined,
2397
2376
  alpacaAccountId: item.order.alpacaAccountId !== undefined ? {
2398
2377
  equals: item.order.alpacaAccountId
2399
2378
  } : undefined,
@@ -2440,11 +2419,9 @@ export const Asset = {
2440
2419
  upsert: props.orders.map((item) => ({
2441
2420
  where: {
2442
2421
  id: item.id !== undefined ? item.id : undefined,
2422
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
2443
2423
  actionId: item.actionId !== undefined ? item.actionId : undefined,
2444
2424
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
2445
- clientOrderId: item.clientOrderId !== undefined ? {
2446
- equals: item.clientOrderId
2447
- } : undefined,
2448
2425
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
2449
2426
  equals: item.alpacaAccountId
2450
2427
  } : undefined,
@@ -3614,11 +3591,9 @@ export const Asset = {
3614
3591
  upsert: item.alpacaAccount.orders.map((item) => ({
3615
3592
  where: {
3616
3593
  id: item.id !== undefined ? item.id : undefined,
3594
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
3617
3595
  actionId: item.actionId !== undefined ? item.actionId : undefined,
3618
3596
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
3619
- clientOrderId: item.clientOrderId !== undefined ? {
3620
- equals: item.clientOrderId
3621
- } : undefined,
3622
3597
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
3623
3598
  equals: item.alpacaAccountId
3624
3599
  } : undefined,
@@ -3844,11 +3819,9 @@ export const Asset = {
3844
3819
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
3845
3820
  where: {
3846
3821
  id: item.id !== undefined ? item.id : undefined,
3822
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
3847
3823
  actionId: item.actionId !== undefined ? item.actionId : undefined,
3848
3824
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
3849
- clientOrderId: item.clientOrderId !== undefined ? {
3850
- equals: item.clientOrderId
3851
- } : undefined,
3852
3825
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
3853
3826
  equals: item.alpacaAccountId
3854
3827
  } : undefined,
@@ -4016,11 +3989,9 @@ export const Asset = {
4016
3989
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
4017
3990
  where: {
4018
3991
  id: item.id !== undefined ? item.id : undefined,
3992
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
4019
3993
  actionId: item.actionId !== undefined ? item.actionId : undefined,
4020
3994
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
4021
- clientOrderId: item.clientOrderId !== undefined ? {
4022
- equals: item.clientOrderId
4023
- } : undefined,
4024
3995
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
4025
3996
  equals: item.alpacaAccountId
4026
3997
  } : undefined,
@@ -4250,7 +4221,6 @@ export const Asset = {
4250
4221
  * @returns The count of created records or null.
4251
4222
  */
4252
4223
  async updateMany(props) {
4253
- const client = createApolloClient();
4254
4224
  const UPDATE_MANY_ASSET = gql `
4255
4225
  mutation updateManyAsset($data: [AssetCreateManyInput!]!) {
4256
4226
  updateManyAsset(data: $data) {
@@ -4650,11 +4620,9 @@ export const Asset = {
4650
4620
  upsert: item.alpacaAccount.orders.map((item) => ({
4651
4621
  where: {
4652
4622
  id: item.id !== undefined ? item.id : undefined,
4623
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
4653
4624
  actionId: item.actionId !== undefined ? item.actionId : undefined,
4654
4625
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
4655
- clientOrderId: item.clientOrderId !== undefined ? {
4656
- equals: item.clientOrderId
4657
- } : undefined,
4658
4626
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
4659
4627
  equals: item.alpacaAccountId
4660
4628
  } : undefined,
@@ -4925,11 +4893,9 @@ export const Asset = {
4925
4893
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
4926
4894
  where: {
4927
4895
  id: item.id !== undefined ? item.id : undefined,
4896
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
4928
4897
  actionId: item.actionId !== undefined ? item.actionId : undefined,
4929
4898
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
4930
- clientOrderId: item.clientOrderId !== undefined ? {
4931
- equals: item.clientOrderId
4932
- } : undefined,
4933
4899
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
4934
4900
  equals: item.alpacaAccountId
4935
4901
  } : undefined,
@@ -5191,11 +5157,9 @@ export const Asset = {
5191
5157
  : { connectOrCreate: {
5192
5158
  where: {
5193
5159
  id: item.order.id !== undefined ? item.order.id : undefined,
5160
+ clientOrderId: item.order.clientOrderId !== undefined ? item.order.clientOrderId : undefined,
5194
5161
  actionId: item.order.actionId !== undefined ? item.order.actionId : undefined,
5195
5162
  stopLossId: item.order.stopLossId !== undefined ? item.order.stopLossId : undefined,
5196
- clientOrderId: item.order.clientOrderId !== undefined ? {
5197
- equals: item.order.clientOrderId
5198
- } : undefined,
5199
5163
  alpacaAccountId: item.order.alpacaAccountId !== undefined ? {
5200
5164
  equals: item.order.alpacaAccountId
5201
5165
  } : undefined,
@@ -5309,11 +5273,9 @@ export const Asset = {
5309
5273
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
5310
5274
  where: {
5311
5275
  id: item.id !== undefined ? item.id : undefined,
5276
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
5312
5277
  actionId: item.actionId !== undefined ? item.actionId : undefined,
5313
5278
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
5314
- clientOrderId: item.clientOrderId !== undefined ? {
5315
- equals: item.clientOrderId
5316
- } : undefined,
5317
5279
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
5318
5280
  equals: item.alpacaAccountId
5319
5281
  } : undefined,
@@ -5435,11 +5397,9 @@ export const Asset = {
5435
5397
  : { connectOrCreate: {
5436
5398
  where: {
5437
5399
  id: item.order.id !== undefined ? item.order.id : undefined,
5400
+ clientOrderId: item.order.clientOrderId !== undefined ? item.order.clientOrderId : undefined,
5438
5401
  actionId: item.order.actionId !== undefined ? item.order.actionId : undefined,
5439
5402
  stopLossId: item.order.stopLossId !== undefined ? item.order.stopLossId : undefined,
5440
- clientOrderId: item.order.clientOrderId !== undefined ? {
5441
- equals: item.order.clientOrderId
5442
- } : undefined,
5443
5403
  alpacaAccountId: item.order.alpacaAccountId !== undefined ? {
5444
5404
  equals: item.order.alpacaAccountId
5445
5405
  } : undefined,
@@ -5486,11 +5446,9 @@ export const Asset = {
5486
5446
  upsert: prop.orders.map((item) => ({
5487
5447
  where: {
5488
5448
  id: item.id !== undefined ? item.id : undefined,
5449
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
5489
5450
  actionId: item.actionId !== undefined ? item.actionId : undefined,
5490
5451
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
5491
- clientOrderId: item.clientOrderId !== undefined ? {
5492
- equals: item.clientOrderId
5493
- } : undefined,
5494
5452
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
5495
5453
  equals: item.alpacaAccountId
5496
5454
  } : undefined,
@@ -6660,11 +6618,9 @@ export const Asset = {
6660
6618
  upsert: item.alpacaAccount.orders.map((item) => ({
6661
6619
  where: {
6662
6620
  id: item.id !== undefined ? item.id : undefined,
6621
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
6663
6622
  actionId: item.actionId !== undefined ? item.actionId : undefined,
6664
6623
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
6665
- clientOrderId: item.clientOrderId !== undefined ? {
6666
- equals: item.clientOrderId
6667
- } : undefined,
6668
6624
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
6669
6625
  equals: item.alpacaAccountId
6670
6626
  } : undefined,
@@ -6890,11 +6846,9 @@ export const Asset = {
6890
6846
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
6891
6847
  where: {
6892
6848
  id: item.id !== undefined ? item.id : undefined,
6849
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
6893
6850
  actionId: item.actionId !== undefined ? item.actionId : undefined,
6894
6851
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
6895
- clientOrderId: item.clientOrderId !== undefined ? {
6896
- equals: item.clientOrderId
6897
- } : undefined,
6898
6852
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
6899
6853
  equals: item.alpacaAccountId
6900
6854
  } : undefined,
@@ -7062,11 +7016,9 @@ export const Asset = {
7062
7016
  : { connectOrCreate: item.alpacaAccount.orders.map((item) => ({
7063
7017
  where: {
7064
7018
  id: item.id !== undefined ? item.id : undefined,
7019
+ clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
7065
7020
  actionId: item.actionId !== undefined ? item.actionId : undefined,
7066
7021
  stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
7067
- clientOrderId: item.clientOrderId !== undefined ? {
7068
- equals: item.clientOrderId
7069
- } : undefined,
7070
7022
  alpacaAccountId: item.alpacaAccountId !== undefined ? {
7071
7023
  equals: item.alpacaAccountId
7072
7024
  } : undefined,
@@ -7296,7 +7248,6 @@ export const Asset = {
7296
7248
  * @returns The deleted Asset or null.
7297
7249
  */
7298
7250
  async delete(props) {
7299
- const client = createApolloClient();
7300
7251
  const DELETE_ONE_ASSET = gql `
7301
7252
  mutation deleteOneAsset($where: AssetWhereUniqueInput!) {
7302
7253
  deleteOneAsset(where: $where) {
@@ -7331,7 +7282,6 @@ export const Asset = {
7331
7282
  * @returns The retrieved Asset or null.
7332
7283
  */
7333
7284
  async get(props) {
7334
- const client = createApolloClient();
7335
7285
  const GET_ASSET = gql `
7336
7286
  query getAsset($where: AssetWhereUniqueInput!) {
7337
7287
  getAsset(where: $where) {
@@ -7420,7 +7370,6 @@ export const Asset = {
7420
7370
  * @returns An array of Asset records or null.
7421
7371
  */
7422
7372
  async getAll() {
7423
- const client = createApolloClient();
7424
7373
  const GET_ALL_ASSET = gql `
7425
7374
  query getAllAsset {
7426
7375
  assets {
@@ -7449,7 +7398,6 @@ export const Asset = {
7449
7398
  * @returns An array of found Asset records or null.
7450
7399
  */
7451
7400
  async findMany(props) {
7452
- const client = createApolloClient();
7453
7401
  const FIND_MANY_ASSET = gql `
7454
7402
  query findManyAsset($where: AssetWhereInput!) {
7455
7403
  assets(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../src/Authenticator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AA+LvG,eAAO,MAAM,aAAa;IAExB;;;;OAIG;kBAEiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAoTpE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAoC/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAg+BlE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAm+B/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAiClE;;;;OAIG;eACc,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAwCtE;;;OAGG;cACa,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAyBnD;;;;OAIG;oBACmB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CA8C9E,CAAC"}
1
+ {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../src/Authenticator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AA+LvG,eAAO,MAAM,aAAa;IAExB;;;;OAIG;kBAEiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAgTpE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAkC/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAw9BlE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA29B/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+BlE;;;;OAIG;eACc,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAsCtE;;;OAGG;cACa,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAuBnD;;;;OAIG;oBACmB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CA4C9E,CAAC"}