adaptic-backend 1.0.159 → 1.0.160
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.
- package/Account.cjs +435 -58
- package/Action.cjs +966 -121
- package/Alert.cjs +593 -89
- package/AlpacaAccount.cjs +1161 -134
- package/Asset.cjs +1029 -129
- package/Authenticator.cjs +438 -54
- package/Customer.cjs +435 -64
- package/EconomicEvent.cjs +9 -3
- package/NewsArticle.cjs +255 -30
- package/NewsArticleAssetSentiment.cjs +427 -65
- package/Order.cjs +867 -129
- package/Position.cjs +945 -141
- package/Session.cjs +438 -54
- package/StopLoss.cjs +552 -69
- package/TakeProfit.cjs +552 -69
- package/Trade.cjs +1042 -153
- package/User.cjs +480 -73
- package/VerificationToken.cjs +9 -3
- package/package.json +1 -1
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +435 -58
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +966 -121
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +593 -89
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +1161 -134
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +1029 -129
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +438 -54
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +435 -64
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +9 -3
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +255 -30
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +427 -65
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +867 -129
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +945 -141
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +438 -54
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +552 -69
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +552 -69
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +1042 -153
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +480 -73
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +9 -3
package/server/Session.mjs
CHANGED
@@ -99,7 +99,9 @@ export const Session = {
|
|
99
99
|
}
|
100
100
|
: { connectOrCreate: {
|
101
101
|
where: {
|
102
|
-
id: props.user.id !== undefined ?
|
102
|
+
id: props.user.id !== undefined ? {
|
103
|
+
equals: props.user.id
|
104
|
+
} : undefined,
|
103
105
|
email: props.user.email !== undefined ? props.user.email : undefined,
|
104
106
|
name: props.user.name !== undefined ? {
|
105
107
|
equals: props.user.name
|
@@ -125,10 +127,20 @@ export const Session = {
|
|
125
127
|
}
|
126
128
|
: { connectOrCreate: {
|
127
129
|
where: {
|
128
|
-
id: props.user.customer.id !== undefined ?
|
130
|
+
id: props.user.customer.id !== undefined ? {
|
131
|
+
equals: props.user.customer.id
|
132
|
+
} : undefined,
|
133
|
+
stripeCustomerId: props.user.customer.stripeCustomerId !== undefined ? props.user.customer.stripeCustomerId : undefined,
|
134
|
+
stripeSubscriptionId: props.user.customer.stripeSubscriptionId !== undefined ? props.user.customer.stripeSubscriptionId : undefined,
|
135
|
+
authUserId: props.user.customer.authUserId !== undefined ? {
|
136
|
+
equals: props.user.customer.authUserId
|
137
|
+
} : undefined,
|
129
138
|
name: props.user.customer.name !== undefined ? {
|
130
139
|
equals: props.user.customer.name
|
131
140
|
} : undefined,
|
141
|
+
stripePriceId: props.user.customer.stripePriceId !== undefined ? {
|
142
|
+
equals: props.user.customer.stripePriceId
|
143
|
+
} : undefined,
|
132
144
|
},
|
133
145
|
create: {
|
134
146
|
authUserId: props.user.customer.authUserId !== undefined ? props.user.customer.authUserId : undefined,
|
@@ -149,7 +161,15 @@ export const Session = {
|
|
149
161
|
}
|
150
162
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
151
163
|
where: {
|
152
|
-
id: item.id !== undefined ?
|
164
|
+
id: item.id !== undefined ? {
|
165
|
+
equals: item.id
|
166
|
+
} : undefined,
|
167
|
+
userId: item.userId !== undefined ? {
|
168
|
+
equals: item.userId
|
169
|
+
} : undefined,
|
170
|
+
providerAccountId: item.providerAccountId !== undefined ? {
|
171
|
+
equals: item.providerAccountId
|
172
|
+
} : undefined,
|
153
173
|
},
|
154
174
|
create: {
|
155
175
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -173,7 +193,12 @@ export const Session = {
|
|
173
193
|
}
|
174
194
|
: { connectOrCreate: props.user.authenticators.map((item) => ({
|
175
195
|
where: {
|
176
|
-
id: item.id !== undefined ?
|
196
|
+
id: item.id !== undefined ? {
|
197
|
+
equals: item.id
|
198
|
+
} : undefined,
|
199
|
+
userId: item.userId !== undefined ? {
|
200
|
+
equals: item.userId
|
201
|
+
} : undefined,
|
177
202
|
},
|
178
203
|
create: {
|
179
204
|
credentialID: item.credentialID !== undefined ? item.credentialID : undefined,
|
@@ -190,7 +215,12 @@ export const Session = {
|
|
190
215
|
}
|
191
216
|
: { connectOrCreate: props.user.alpacaAccounts.map((item) => ({
|
192
217
|
where: {
|
193
|
-
id: item.id !== undefined ?
|
218
|
+
id: item.id !== undefined ? {
|
219
|
+
equals: item.id
|
220
|
+
} : undefined,
|
221
|
+
userId: item.userId !== undefined ? {
|
222
|
+
equals: item.userId
|
223
|
+
} : undefined,
|
194
224
|
},
|
195
225
|
create: {
|
196
226
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -210,7 +240,15 @@ export const Session = {
|
|
210
240
|
}
|
211
241
|
: { connectOrCreate: item.trades.map((item) => ({
|
212
242
|
where: {
|
213
|
-
id: item.id !== undefined ?
|
243
|
+
id: item.id !== undefined ? {
|
244
|
+
equals: item.id
|
245
|
+
} : undefined,
|
246
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
247
|
+
equals: item.alpacaAccountId
|
248
|
+
} : undefined,
|
249
|
+
assetId: item.assetId !== undefined ? {
|
250
|
+
equals: item.assetId
|
251
|
+
} : undefined,
|
214
252
|
},
|
215
253
|
create: {
|
216
254
|
qty: item.qty !== undefined ? item.qty : undefined,
|
@@ -235,7 +273,18 @@ export const Session = {
|
|
235
273
|
}
|
236
274
|
: { connectOrCreate: item.orders.map((item) => ({
|
237
275
|
where: {
|
238
|
-
id: item.id !== undefined ?
|
276
|
+
id: item.id !== undefined ? {
|
277
|
+
equals: item.id
|
278
|
+
} : undefined,
|
279
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
280
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
281
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
282
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
283
|
+
equals: item.alpacaAccountId
|
284
|
+
} : undefined,
|
285
|
+
assetId: item.assetId !== undefined ? {
|
286
|
+
equals: item.assetId
|
287
|
+
} : undefined,
|
239
288
|
},
|
240
289
|
create: {
|
241
290
|
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
@@ -271,7 +320,15 @@ export const Session = {
|
|
271
320
|
}
|
272
321
|
: { connectOrCreate: item.positions.map((item) => ({
|
273
322
|
where: {
|
274
|
-
id: item.id !== undefined ?
|
323
|
+
id: item.id !== undefined ? {
|
324
|
+
equals: item.id
|
325
|
+
} : undefined,
|
326
|
+
assetId: item.assetId !== undefined ? {
|
327
|
+
equals: item.assetId
|
328
|
+
} : undefined,
|
329
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
330
|
+
equals: item.alpacaAccountId
|
331
|
+
} : undefined,
|
275
332
|
},
|
276
333
|
create: {
|
277
334
|
averageEntryPrice: item.averageEntryPrice !== undefined ? item.averageEntryPrice : undefined,
|
@@ -298,7 +355,12 @@ export const Session = {
|
|
298
355
|
}
|
299
356
|
: { connectOrCreate: item.alerts.map((item) => ({
|
300
357
|
where: {
|
301
|
-
id: item.id !== undefined ?
|
358
|
+
id: item.id !== undefined ? {
|
359
|
+
equals: item.id
|
360
|
+
} : undefined,
|
361
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
362
|
+
equals: item.alpacaAccountId
|
363
|
+
} : undefined,
|
302
364
|
},
|
303
365
|
create: {
|
304
366
|
message: item.message !== undefined ? item.message : undefined,
|
@@ -384,9 +446,13 @@ export const Session = {
|
|
384
446
|
}`;
|
385
447
|
const variables = {
|
386
448
|
where: {
|
387
|
-
id: props.id !== undefined ?
|
449
|
+
id: props.id !== undefined ? {
|
450
|
+
equals: props.id
|
451
|
+
} : undefined,
|
388
452
|
sessionToken: props.sessionToken !== undefined ? props.sessionToken : undefined,
|
389
|
-
userId: props.userId !== undefined ?
|
453
|
+
userId: props.userId !== undefined ? {
|
454
|
+
equals: props.userId
|
455
|
+
} : undefined,
|
390
456
|
expires: props.expires !== undefined ? props.expires : undefined,
|
391
457
|
createdAt: props.createdAt !== undefined ? props.createdAt : undefined,
|
392
458
|
updatedAt: props.updatedAt !== undefined ? props.updatedAt : undefined,
|
@@ -463,9 +529,21 @@ export const Session = {
|
|
463
529
|
id: props.user.customer.id !== undefined ? {
|
464
530
|
equals: props.user.customer.id
|
465
531
|
} : undefined,
|
532
|
+
authUserId: props.user.customer.authUserId !== undefined ? {
|
533
|
+
equals: props.user.customer.authUserId
|
534
|
+
} : undefined,
|
466
535
|
name: props.user.customer.name !== undefined ? {
|
467
536
|
equals: props.user.customer.name
|
468
537
|
} : undefined,
|
538
|
+
stripeCustomerId: props.user.customer.stripeCustomerId !== undefined ? {
|
539
|
+
equals: props.user.customer.stripeCustomerId
|
540
|
+
} : undefined,
|
541
|
+
stripeSubscriptionId: props.user.customer.stripeSubscriptionId !== undefined ? {
|
542
|
+
equals: props.user.customer.stripeSubscriptionId
|
543
|
+
} : undefined,
|
544
|
+
stripePriceId: props.user.customer.stripePriceId !== undefined ? {
|
545
|
+
equals: props.user.customer.stripePriceId
|
546
|
+
} : undefined,
|
469
547
|
},
|
470
548
|
update: {
|
471
549
|
authUserId: props.user.customer.authUserId !== undefined ? {
|
@@ -504,7 +582,15 @@ export const Session = {
|
|
504
582
|
accounts: props.user.accounts ? {
|
505
583
|
upsert: props.user.accounts.map((item) => ({
|
506
584
|
where: {
|
507
|
-
id: item.id !== undefined ?
|
585
|
+
id: item.id !== undefined ? {
|
586
|
+
equals: item.id
|
587
|
+
} : undefined,
|
588
|
+
userId: item.userId !== undefined ? {
|
589
|
+
equals: item.userId
|
590
|
+
} : undefined,
|
591
|
+
providerAccountId: item.providerAccountId !== undefined ? {
|
592
|
+
equals: item.providerAccountId
|
593
|
+
} : undefined,
|
508
594
|
},
|
509
595
|
update: {
|
510
596
|
id: item.id !== undefined ? {
|
@@ -558,7 +644,12 @@ export const Session = {
|
|
558
644
|
authenticators: props.user.authenticators ? {
|
559
645
|
upsert: props.user.authenticators.map((item) => ({
|
560
646
|
where: {
|
561
|
-
id: item.id !== undefined ?
|
647
|
+
id: item.id !== undefined ? {
|
648
|
+
equals: item.id
|
649
|
+
} : undefined,
|
650
|
+
userId: item.userId !== undefined ? {
|
651
|
+
equals: item.userId
|
652
|
+
} : undefined,
|
562
653
|
},
|
563
654
|
update: {
|
564
655
|
id: item.id !== undefined ? {
|
@@ -584,7 +675,12 @@ export const Session = {
|
|
584
675
|
alpacaAccounts: props.user.alpacaAccounts ? {
|
585
676
|
upsert: props.user.alpacaAccounts.map((item) => ({
|
586
677
|
where: {
|
587
|
-
id: item.id !== undefined ?
|
678
|
+
id: item.id !== undefined ? {
|
679
|
+
equals: item.id
|
680
|
+
} : undefined,
|
681
|
+
userId: item.userId !== undefined ? {
|
682
|
+
equals: item.userId
|
683
|
+
} : undefined,
|
588
684
|
},
|
589
685
|
update: {
|
590
686
|
id: item.id !== undefined ? {
|
@@ -620,7 +716,15 @@ export const Session = {
|
|
620
716
|
trades: item.trades ? {
|
621
717
|
upsert: item.trades.map((item) => ({
|
622
718
|
where: {
|
623
|
-
id: item.id !== undefined ?
|
719
|
+
id: item.id !== undefined ? {
|
720
|
+
equals: item.id
|
721
|
+
} : undefined,
|
722
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
723
|
+
equals: item.alpacaAccountId
|
724
|
+
} : undefined,
|
725
|
+
assetId: item.assetId !== undefined ? {
|
726
|
+
equals: item.assetId
|
727
|
+
} : undefined,
|
624
728
|
},
|
625
729
|
update: {
|
626
730
|
id: item.id !== undefined ? {
|
@@ -678,7 +782,18 @@ export const Session = {
|
|
678
782
|
orders: item.orders ? {
|
679
783
|
upsert: item.orders.map((item) => ({
|
680
784
|
where: {
|
681
|
-
id: item.id !== undefined ?
|
785
|
+
id: item.id !== undefined ? {
|
786
|
+
equals: item.id
|
787
|
+
} : undefined,
|
788
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
789
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
790
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
791
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
792
|
+
equals: item.alpacaAccountId
|
793
|
+
} : undefined,
|
794
|
+
assetId: item.assetId !== undefined ? {
|
795
|
+
equals: item.assetId
|
796
|
+
} : undefined,
|
682
797
|
},
|
683
798
|
update: {
|
684
799
|
id: item.id !== undefined ? {
|
@@ -780,7 +895,15 @@ export const Session = {
|
|
780
895
|
positions: item.positions ? {
|
781
896
|
upsert: item.positions.map((item) => ({
|
782
897
|
where: {
|
783
|
-
id: item.id !== undefined ?
|
898
|
+
id: item.id !== undefined ? {
|
899
|
+
equals: item.id
|
900
|
+
} : undefined,
|
901
|
+
assetId: item.assetId !== undefined ? {
|
902
|
+
equals: item.assetId
|
903
|
+
} : undefined,
|
904
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
905
|
+
equals: item.alpacaAccountId
|
906
|
+
} : undefined,
|
784
907
|
},
|
785
908
|
update: {
|
786
909
|
id: item.id !== undefined ? {
|
@@ -846,7 +969,12 @@ export const Session = {
|
|
846
969
|
alerts: item.alerts ? {
|
847
970
|
upsert: item.alerts.map((item) => ({
|
848
971
|
where: {
|
849
|
-
id: item.id !== undefined ?
|
972
|
+
id: item.id !== undefined ? {
|
973
|
+
equals: item.id
|
974
|
+
} : undefined,
|
975
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
976
|
+
equals: item.alpacaAccountId
|
977
|
+
} : undefined,
|
850
978
|
},
|
851
979
|
update: {
|
852
980
|
id: item.id !== undefined ? {
|
@@ -888,7 +1016,15 @@ export const Session = {
|
|
888
1016
|
}
|
889
1017
|
: { connectOrCreate: item.trades.map((item) => ({
|
890
1018
|
where: {
|
891
|
-
id: item.id !== undefined ?
|
1019
|
+
id: item.id !== undefined ? {
|
1020
|
+
equals: item.id
|
1021
|
+
} : undefined,
|
1022
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1023
|
+
equals: item.alpacaAccountId
|
1024
|
+
} : undefined,
|
1025
|
+
assetId: item.assetId !== undefined ? {
|
1026
|
+
equals: item.assetId
|
1027
|
+
} : undefined,
|
892
1028
|
},
|
893
1029
|
create: {
|
894
1030
|
qty: item.qty !== undefined ? item.qty : undefined,
|
@@ -913,7 +1049,18 @@ export const Session = {
|
|
913
1049
|
}
|
914
1050
|
: { connectOrCreate: item.orders.map((item) => ({
|
915
1051
|
where: {
|
916
|
-
id: item.id !== undefined ?
|
1052
|
+
id: item.id !== undefined ? {
|
1053
|
+
equals: item.id
|
1054
|
+
} : undefined,
|
1055
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1056
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1057
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1058
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1059
|
+
equals: item.alpacaAccountId
|
1060
|
+
} : undefined,
|
1061
|
+
assetId: item.assetId !== undefined ? {
|
1062
|
+
equals: item.assetId
|
1063
|
+
} : undefined,
|
917
1064
|
},
|
918
1065
|
create: {
|
919
1066
|
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
@@ -949,7 +1096,15 @@ export const Session = {
|
|
949
1096
|
}
|
950
1097
|
: { connectOrCreate: item.positions.map((item) => ({
|
951
1098
|
where: {
|
952
|
-
id: item.id !== undefined ?
|
1099
|
+
id: item.id !== undefined ? {
|
1100
|
+
equals: item.id
|
1101
|
+
} : undefined,
|
1102
|
+
assetId: item.assetId !== undefined ? {
|
1103
|
+
equals: item.assetId
|
1104
|
+
} : undefined,
|
1105
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1106
|
+
equals: item.alpacaAccountId
|
1107
|
+
} : undefined,
|
953
1108
|
},
|
954
1109
|
create: {
|
955
1110
|
averageEntryPrice: item.averageEntryPrice !== undefined ? item.averageEntryPrice : undefined,
|
@@ -976,7 +1131,12 @@ export const Session = {
|
|
976
1131
|
}
|
977
1132
|
: { connectOrCreate: item.alerts.map((item) => ({
|
978
1133
|
where: {
|
979
|
-
id: item.id !== undefined ?
|
1134
|
+
id: item.id !== undefined ? {
|
1135
|
+
equals: item.id
|
1136
|
+
} : undefined,
|
1137
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1138
|
+
equals: item.alpacaAccountId
|
1139
|
+
} : undefined,
|
980
1140
|
},
|
981
1141
|
create: {
|
982
1142
|
message: item.message !== undefined ? item.message : undefined,
|
@@ -1009,10 +1169,20 @@ export const Session = {
|
|
1009
1169
|
}
|
1010
1170
|
: { connectOrCreate: {
|
1011
1171
|
where: {
|
1012
|
-
id: props.user.customer.id !== undefined ?
|
1172
|
+
id: props.user.customer.id !== undefined ? {
|
1173
|
+
equals: props.user.customer.id
|
1174
|
+
} : undefined,
|
1175
|
+
stripeCustomerId: props.user.customer.stripeCustomerId !== undefined ? props.user.customer.stripeCustomerId : undefined,
|
1176
|
+
stripeSubscriptionId: props.user.customer.stripeSubscriptionId !== undefined ? props.user.customer.stripeSubscriptionId : undefined,
|
1177
|
+
authUserId: props.user.customer.authUserId !== undefined ? {
|
1178
|
+
equals: props.user.customer.authUserId
|
1179
|
+
} : undefined,
|
1013
1180
|
name: props.user.customer.name !== undefined ? {
|
1014
1181
|
equals: props.user.customer.name
|
1015
1182
|
} : undefined,
|
1183
|
+
stripePriceId: props.user.customer.stripePriceId !== undefined ? {
|
1184
|
+
equals: props.user.customer.stripePriceId
|
1185
|
+
} : undefined,
|
1016
1186
|
},
|
1017
1187
|
create: {
|
1018
1188
|
authUserId: props.user.customer.authUserId !== undefined ? props.user.customer.authUserId : undefined,
|
@@ -1033,7 +1203,15 @@ export const Session = {
|
|
1033
1203
|
}
|
1034
1204
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1035
1205
|
where: {
|
1036
|
-
id: item.id !== undefined ?
|
1206
|
+
id: item.id !== undefined ? {
|
1207
|
+
equals: item.id
|
1208
|
+
} : undefined,
|
1209
|
+
userId: item.userId !== undefined ? {
|
1210
|
+
equals: item.userId
|
1211
|
+
} : undefined,
|
1212
|
+
providerAccountId: item.providerAccountId !== undefined ? {
|
1213
|
+
equals: item.providerAccountId
|
1214
|
+
} : undefined,
|
1037
1215
|
},
|
1038
1216
|
create: {
|
1039
1217
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1057,7 +1235,12 @@ export const Session = {
|
|
1057
1235
|
}
|
1058
1236
|
: { connectOrCreate: props.user.authenticators.map((item) => ({
|
1059
1237
|
where: {
|
1060
|
-
id: item.id !== undefined ?
|
1238
|
+
id: item.id !== undefined ? {
|
1239
|
+
equals: item.id
|
1240
|
+
} : undefined,
|
1241
|
+
userId: item.userId !== undefined ? {
|
1242
|
+
equals: item.userId
|
1243
|
+
} : undefined,
|
1061
1244
|
},
|
1062
1245
|
create: {
|
1063
1246
|
credentialID: item.credentialID !== undefined ? item.credentialID : undefined,
|
@@ -1074,7 +1257,12 @@ export const Session = {
|
|
1074
1257
|
}
|
1075
1258
|
: { connectOrCreate: props.user.alpacaAccounts.map((item) => ({
|
1076
1259
|
where: {
|
1077
|
-
id: item.id !== undefined ?
|
1260
|
+
id: item.id !== undefined ? {
|
1261
|
+
equals: item.id
|
1262
|
+
} : undefined,
|
1263
|
+
userId: item.userId !== undefined ? {
|
1264
|
+
equals: item.userId
|
1265
|
+
} : undefined,
|
1078
1266
|
},
|
1079
1267
|
create: {
|
1080
1268
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1094,7 +1282,15 @@ export const Session = {
|
|
1094
1282
|
}
|
1095
1283
|
: { connectOrCreate: item.trades.map((item) => ({
|
1096
1284
|
where: {
|
1097
|
-
id: item.id !== undefined ?
|
1285
|
+
id: item.id !== undefined ? {
|
1286
|
+
equals: item.id
|
1287
|
+
} : undefined,
|
1288
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1289
|
+
equals: item.alpacaAccountId
|
1290
|
+
} : undefined,
|
1291
|
+
assetId: item.assetId !== undefined ? {
|
1292
|
+
equals: item.assetId
|
1293
|
+
} : undefined,
|
1098
1294
|
},
|
1099
1295
|
create: {
|
1100
1296
|
qty: item.qty !== undefined ? item.qty : undefined,
|
@@ -1119,7 +1315,18 @@ export const Session = {
|
|
1119
1315
|
}
|
1120
1316
|
: { connectOrCreate: item.orders.map((item) => ({
|
1121
1317
|
where: {
|
1122
|
-
id: item.id !== undefined ?
|
1318
|
+
id: item.id !== undefined ? {
|
1319
|
+
equals: item.id
|
1320
|
+
} : undefined,
|
1321
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1322
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1323
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1324
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1325
|
+
equals: item.alpacaAccountId
|
1326
|
+
} : undefined,
|
1327
|
+
assetId: item.assetId !== undefined ? {
|
1328
|
+
equals: item.assetId
|
1329
|
+
} : undefined,
|
1123
1330
|
},
|
1124
1331
|
create: {
|
1125
1332
|
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
@@ -1155,7 +1362,15 @@ export const Session = {
|
|
1155
1362
|
}
|
1156
1363
|
: { connectOrCreate: item.positions.map((item) => ({
|
1157
1364
|
where: {
|
1158
|
-
id: item.id !== undefined ?
|
1365
|
+
id: item.id !== undefined ? {
|
1366
|
+
equals: item.id
|
1367
|
+
} : undefined,
|
1368
|
+
assetId: item.assetId !== undefined ? {
|
1369
|
+
equals: item.assetId
|
1370
|
+
} : undefined,
|
1371
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1372
|
+
equals: item.alpacaAccountId
|
1373
|
+
} : undefined,
|
1159
1374
|
},
|
1160
1375
|
create: {
|
1161
1376
|
averageEntryPrice: item.averageEntryPrice !== undefined ? item.averageEntryPrice : undefined,
|
@@ -1182,7 +1397,12 @@ export const Session = {
|
|
1182
1397
|
}
|
1183
1398
|
: { connectOrCreate: item.alerts.map((item) => ({
|
1184
1399
|
where: {
|
1185
|
-
id: item.id !== undefined ?
|
1400
|
+
id: item.id !== undefined ? {
|
1401
|
+
equals: item.id
|
1402
|
+
} : undefined,
|
1403
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1404
|
+
equals: item.alpacaAccountId
|
1405
|
+
} : undefined,
|
1186
1406
|
},
|
1187
1407
|
create: {
|
1188
1408
|
message: item.message !== undefined ? item.message : undefined,
|
@@ -1231,9 +1451,13 @@ export const Session = {
|
|
1231
1451
|
}`;
|
1232
1452
|
const variables = props.map(prop => ({
|
1233
1453
|
where: {
|
1234
|
-
id: prop.id !== undefined ?
|
1454
|
+
id: prop.id !== undefined ? {
|
1455
|
+
equals: prop.id
|
1456
|
+
} : undefined,
|
1235
1457
|
sessionToken: prop.sessionToken !== undefined ? prop.sessionToken : undefined,
|
1236
|
-
userId: prop.userId !== undefined ?
|
1458
|
+
userId: prop.userId !== undefined ? {
|
1459
|
+
equals: prop.userId
|
1460
|
+
} : undefined,
|
1237
1461
|
expires: prop.expires !== undefined ? prop.expires : undefined,
|
1238
1462
|
createdAt: prop.createdAt !== undefined ? prop.createdAt : undefined,
|
1239
1463
|
updatedAt: prop.updatedAt !== undefined ? prop.updatedAt : undefined,
|
@@ -1310,9 +1534,21 @@ export const Session = {
|
|
1310
1534
|
id: prop.user.customer.id !== undefined ? {
|
1311
1535
|
equals: prop.user.customer.id
|
1312
1536
|
} : undefined,
|
1537
|
+
authUserId: prop.user.customer.authUserId !== undefined ? {
|
1538
|
+
equals: prop.user.customer.authUserId
|
1539
|
+
} : undefined,
|
1313
1540
|
name: prop.user.customer.name !== undefined ? {
|
1314
1541
|
equals: prop.user.customer.name
|
1315
1542
|
} : undefined,
|
1543
|
+
stripeCustomerId: prop.user.customer.stripeCustomerId !== undefined ? {
|
1544
|
+
equals: prop.user.customer.stripeCustomerId
|
1545
|
+
} : undefined,
|
1546
|
+
stripeSubscriptionId: prop.user.customer.stripeSubscriptionId !== undefined ? {
|
1547
|
+
equals: prop.user.customer.stripeSubscriptionId
|
1548
|
+
} : undefined,
|
1549
|
+
stripePriceId: prop.user.customer.stripePriceId !== undefined ? {
|
1550
|
+
equals: prop.user.customer.stripePriceId
|
1551
|
+
} : undefined,
|
1316
1552
|
},
|
1317
1553
|
update: {
|
1318
1554
|
authUserId: prop.user.customer.authUserId !== undefined ? {
|
@@ -1351,7 +1587,15 @@ export const Session = {
|
|
1351
1587
|
accounts: prop.user.accounts ? {
|
1352
1588
|
upsert: prop.user.accounts.map((item) => ({
|
1353
1589
|
where: {
|
1354
|
-
id: item.id !== undefined ?
|
1590
|
+
id: item.id !== undefined ? {
|
1591
|
+
equals: item.id
|
1592
|
+
} : undefined,
|
1593
|
+
userId: item.userId !== undefined ? {
|
1594
|
+
equals: item.userId
|
1595
|
+
} : undefined,
|
1596
|
+
providerAccountId: item.providerAccountId !== undefined ? {
|
1597
|
+
equals: item.providerAccountId
|
1598
|
+
} : undefined,
|
1355
1599
|
},
|
1356
1600
|
update: {
|
1357
1601
|
id: item.id !== undefined ? {
|
@@ -1405,7 +1649,12 @@ export const Session = {
|
|
1405
1649
|
authenticators: prop.user.authenticators ? {
|
1406
1650
|
upsert: prop.user.authenticators.map((item) => ({
|
1407
1651
|
where: {
|
1408
|
-
id: item.id !== undefined ?
|
1652
|
+
id: item.id !== undefined ? {
|
1653
|
+
equals: item.id
|
1654
|
+
} : undefined,
|
1655
|
+
userId: item.userId !== undefined ? {
|
1656
|
+
equals: item.userId
|
1657
|
+
} : undefined,
|
1409
1658
|
},
|
1410
1659
|
update: {
|
1411
1660
|
id: item.id !== undefined ? {
|
@@ -1431,7 +1680,12 @@ export const Session = {
|
|
1431
1680
|
alpacaAccounts: prop.user.alpacaAccounts ? {
|
1432
1681
|
upsert: prop.user.alpacaAccounts.map((item) => ({
|
1433
1682
|
where: {
|
1434
|
-
id: item.id !== undefined ?
|
1683
|
+
id: item.id !== undefined ? {
|
1684
|
+
equals: item.id
|
1685
|
+
} : undefined,
|
1686
|
+
userId: item.userId !== undefined ? {
|
1687
|
+
equals: item.userId
|
1688
|
+
} : undefined,
|
1435
1689
|
},
|
1436
1690
|
update: {
|
1437
1691
|
id: item.id !== undefined ? {
|
@@ -1467,7 +1721,15 @@ export const Session = {
|
|
1467
1721
|
trades: item.trades ? {
|
1468
1722
|
upsert: item.trades.map((item) => ({
|
1469
1723
|
where: {
|
1470
|
-
id: item.id !== undefined ?
|
1724
|
+
id: item.id !== undefined ? {
|
1725
|
+
equals: item.id
|
1726
|
+
} : undefined,
|
1727
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1728
|
+
equals: item.alpacaAccountId
|
1729
|
+
} : undefined,
|
1730
|
+
assetId: item.assetId !== undefined ? {
|
1731
|
+
equals: item.assetId
|
1732
|
+
} : undefined,
|
1471
1733
|
},
|
1472
1734
|
update: {
|
1473
1735
|
id: item.id !== undefined ? {
|
@@ -1525,7 +1787,18 @@ export const Session = {
|
|
1525
1787
|
orders: item.orders ? {
|
1526
1788
|
upsert: item.orders.map((item) => ({
|
1527
1789
|
where: {
|
1528
|
-
id: item.id !== undefined ?
|
1790
|
+
id: item.id !== undefined ? {
|
1791
|
+
equals: item.id
|
1792
|
+
} : undefined,
|
1793
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1794
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1795
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1796
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1797
|
+
equals: item.alpacaAccountId
|
1798
|
+
} : undefined,
|
1799
|
+
assetId: item.assetId !== undefined ? {
|
1800
|
+
equals: item.assetId
|
1801
|
+
} : undefined,
|
1529
1802
|
},
|
1530
1803
|
update: {
|
1531
1804
|
id: item.id !== undefined ? {
|
@@ -1627,7 +1900,15 @@ export const Session = {
|
|
1627
1900
|
positions: item.positions ? {
|
1628
1901
|
upsert: item.positions.map((item) => ({
|
1629
1902
|
where: {
|
1630
|
-
id: item.id !== undefined ?
|
1903
|
+
id: item.id !== undefined ? {
|
1904
|
+
equals: item.id
|
1905
|
+
} : undefined,
|
1906
|
+
assetId: item.assetId !== undefined ? {
|
1907
|
+
equals: item.assetId
|
1908
|
+
} : undefined,
|
1909
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1910
|
+
equals: item.alpacaAccountId
|
1911
|
+
} : undefined,
|
1631
1912
|
},
|
1632
1913
|
update: {
|
1633
1914
|
id: item.id !== undefined ? {
|
@@ -1693,7 +1974,12 @@ export const Session = {
|
|
1693
1974
|
alerts: item.alerts ? {
|
1694
1975
|
upsert: item.alerts.map((item) => ({
|
1695
1976
|
where: {
|
1696
|
-
id: item.id !== undefined ?
|
1977
|
+
id: item.id !== undefined ? {
|
1978
|
+
equals: item.id
|
1979
|
+
} : undefined,
|
1980
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1981
|
+
equals: item.alpacaAccountId
|
1982
|
+
} : undefined,
|
1697
1983
|
},
|
1698
1984
|
update: {
|
1699
1985
|
id: item.id !== undefined ? {
|
@@ -1735,7 +2021,15 @@ export const Session = {
|
|
1735
2021
|
}
|
1736
2022
|
: { connectOrCreate: item.trades.map((item) => ({
|
1737
2023
|
where: {
|
1738
|
-
id: item.id !== undefined ?
|
2024
|
+
id: item.id !== undefined ? {
|
2025
|
+
equals: item.id
|
2026
|
+
} : undefined,
|
2027
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2028
|
+
equals: item.alpacaAccountId
|
2029
|
+
} : undefined,
|
2030
|
+
assetId: item.assetId !== undefined ? {
|
2031
|
+
equals: item.assetId
|
2032
|
+
} : undefined,
|
1739
2033
|
},
|
1740
2034
|
create: {
|
1741
2035
|
qty: item.qty !== undefined ? item.qty : undefined,
|
@@ -1760,7 +2054,18 @@ export const Session = {
|
|
1760
2054
|
}
|
1761
2055
|
: { connectOrCreate: item.orders.map((item) => ({
|
1762
2056
|
where: {
|
1763
|
-
id: item.id !== undefined ?
|
2057
|
+
id: item.id !== undefined ? {
|
2058
|
+
equals: item.id
|
2059
|
+
} : undefined,
|
2060
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2061
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2062
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2063
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2064
|
+
equals: item.alpacaAccountId
|
2065
|
+
} : undefined,
|
2066
|
+
assetId: item.assetId !== undefined ? {
|
2067
|
+
equals: item.assetId
|
2068
|
+
} : undefined,
|
1764
2069
|
},
|
1765
2070
|
create: {
|
1766
2071
|
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
@@ -1796,7 +2101,15 @@ export const Session = {
|
|
1796
2101
|
}
|
1797
2102
|
: { connectOrCreate: item.positions.map((item) => ({
|
1798
2103
|
where: {
|
1799
|
-
id: item.id !== undefined ?
|
2104
|
+
id: item.id !== undefined ? {
|
2105
|
+
equals: item.id
|
2106
|
+
} : undefined,
|
2107
|
+
assetId: item.assetId !== undefined ? {
|
2108
|
+
equals: item.assetId
|
2109
|
+
} : undefined,
|
2110
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2111
|
+
equals: item.alpacaAccountId
|
2112
|
+
} : undefined,
|
1800
2113
|
},
|
1801
2114
|
create: {
|
1802
2115
|
averageEntryPrice: item.averageEntryPrice !== undefined ? item.averageEntryPrice : undefined,
|
@@ -1823,7 +2136,12 @@ export const Session = {
|
|
1823
2136
|
}
|
1824
2137
|
: { connectOrCreate: item.alerts.map((item) => ({
|
1825
2138
|
where: {
|
1826
|
-
id: item.id !== undefined ?
|
2139
|
+
id: item.id !== undefined ? {
|
2140
|
+
equals: item.id
|
2141
|
+
} : undefined,
|
2142
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2143
|
+
equals: item.alpacaAccountId
|
2144
|
+
} : undefined,
|
1827
2145
|
},
|
1828
2146
|
create: {
|
1829
2147
|
message: item.message !== undefined ? item.message : undefined,
|
@@ -1856,10 +2174,20 @@ export const Session = {
|
|
1856
2174
|
}
|
1857
2175
|
: { connectOrCreate: {
|
1858
2176
|
where: {
|
1859
|
-
id: prop.user.customer.id !== undefined ?
|
2177
|
+
id: prop.user.customer.id !== undefined ? {
|
2178
|
+
equals: prop.user.customer.id
|
2179
|
+
} : undefined,
|
2180
|
+
stripeCustomerId: prop.user.customer.stripeCustomerId !== undefined ? prop.user.customer.stripeCustomerId : undefined,
|
2181
|
+
stripeSubscriptionId: prop.user.customer.stripeSubscriptionId !== undefined ? prop.user.customer.stripeSubscriptionId : undefined,
|
2182
|
+
authUserId: prop.user.customer.authUserId !== undefined ? {
|
2183
|
+
equals: prop.user.customer.authUserId
|
2184
|
+
} : undefined,
|
1860
2185
|
name: prop.user.customer.name !== undefined ? {
|
1861
2186
|
equals: prop.user.customer.name
|
1862
2187
|
} : undefined,
|
2188
|
+
stripePriceId: prop.user.customer.stripePriceId !== undefined ? {
|
2189
|
+
equals: prop.user.customer.stripePriceId
|
2190
|
+
} : undefined,
|
1863
2191
|
},
|
1864
2192
|
create: {
|
1865
2193
|
authUserId: prop.user.customer.authUserId !== undefined ? prop.user.customer.authUserId : undefined,
|
@@ -1880,7 +2208,15 @@ export const Session = {
|
|
1880
2208
|
}
|
1881
2209
|
: { connectOrCreate: prop.user.accounts.map((item) => ({
|
1882
2210
|
where: {
|
1883
|
-
id: item.id !== undefined ?
|
2211
|
+
id: item.id !== undefined ? {
|
2212
|
+
equals: item.id
|
2213
|
+
} : undefined,
|
2214
|
+
userId: item.userId !== undefined ? {
|
2215
|
+
equals: item.userId
|
2216
|
+
} : undefined,
|
2217
|
+
providerAccountId: item.providerAccountId !== undefined ? {
|
2218
|
+
equals: item.providerAccountId
|
2219
|
+
} : undefined,
|
1884
2220
|
},
|
1885
2221
|
create: {
|
1886
2222
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1904,7 +2240,12 @@ export const Session = {
|
|
1904
2240
|
}
|
1905
2241
|
: { connectOrCreate: prop.user.authenticators.map((item) => ({
|
1906
2242
|
where: {
|
1907
|
-
id: item.id !== undefined ?
|
2243
|
+
id: item.id !== undefined ? {
|
2244
|
+
equals: item.id
|
2245
|
+
} : undefined,
|
2246
|
+
userId: item.userId !== undefined ? {
|
2247
|
+
equals: item.userId
|
2248
|
+
} : undefined,
|
1908
2249
|
},
|
1909
2250
|
create: {
|
1910
2251
|
credentialID: item.credentialID !== undefined ? item.credentialID : undefined,
|
@@ -1921,7 +2262,12 @@ export const Session = {
|
|
1921
2262
|
}
|
1922
2263
|
: { connectOrCreate: prop.user.alpacaAccounts.map((item) => ({
|
1923
2264
|
where: {
|
1924
|
-
id: item.id !== undefined ?
|
2265
|
+
id: item.id !== undefined ? {
|
2266
|
+
equals: item.id
|
2267
|
+
} : undefined,
|
2268
|
+
userId: item.userId !== undefined ? {
|
2269
|
+
equals: item.userId
|
2270
|
+
} : undefined,
|
1925
2271
|
},
|
1926
2272
|
create: {
|
1927
2273
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1941,7 +2287,15 @@ export const Session = {
|
|
1941
2287
|
}
|
1942
2288
|
: { connectOrCreate: item.trades.map((item) => ({
|
1943
2289
|
where: {
|
1944
|
-
id: item.id !== undefined ?
|
2290
|
+
id: item.id !== undefined ? {
|
2291
|
+
equals: item.id
|
2292
|
+
} : undefined,
|
2293
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2294
|
+
equals: item.alpacaAccountId
|
2295
|
+
} : undefined,
|
2296
|
+
assetId: item.assetId !== undefined ? {
|
2297
|
+
equals: item.assetId
|
2298
|
+
} : undefined,
|
1945
2299
|
},
|
1946
2300
|
create: {
|
1947
2301
|
qty: item.qty !== undefined ? item.qty : undefined,
|
@@ -1966,7 +2320,18 @@ export const Session = {
|
|
1966
2320
|
}
|
1967
2321
|
: { connectOrCreate: item.orders.map((item) => ({
|
1968
2322
|
where: {
|
1969
|
-
id: item.id !== undefined ?
|
2323
|
+
id: item.id !== undefined ? {
|
2324
|
+
equals: item.id
|
2325
|
+
} : undefined,
|
2326
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2327
|
+
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2328
|
+
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2329
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2330
|
+
equals: item.alpacaAccountId
|
2331
|
+
} : undefined,
|
2332
|
+
assetId: item.assetId !== undefined ? {
|
2333
|
+
equals: item.assetId
|
2334
|
+
} : undefined,
|
1970
2335
|
},
|
1971
2336
|
create: {
|
1972
2337
|
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
@@ -2002,7 +2367,15 @@ export const Session = {
|
|
2002
2367
|
}
|
2003
2368
|
: { connectOrCreate: item.positions.map((item) => ({
|
2004
2369
|
where: {
|
2005
|
-
id: item.id !== undefined ?
|
2370
|
+
id: item.id !== undefined ? {
|
2371
|
+
equals: item.id
|
2372
|
+
} : undefined,
|
2373
|
+
assetId: item.assetId !== undefined ? {
|
2374
|
+
equals: item.assetId
|
2375
|
+
} : undefined,
|
2376
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2377
|
+
equals: item.alpacaAccountId
|
2378
|
+
} : undefined,
|
2006
2379
|
},
|
2007
2380
|
create: {
|
2008
2381
|
averageEntryPrice: item.averageEntryPrice !== undefined ? item.averageEntryPrice : undefined,
|
@@ -2029,7 +2402,12 @@ export const Session = {
|
|
2029
2402
|
}
|
2030
2403
|
: { connectOrCreate: item.alerts.map((item) => ({
|
2031
2404
|
where: {
|
2032
|
-
id: item.id !== undefined ?
|
2405
|
+
id: item.id !== undefined ? {
|
2406
|
+
equals: item.id
|
2407
|
+
} : undefined,
|
2408
|
+
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2409
|
+
equals: item.alpacaAccountId
|
2410
|
+
} : undefined,
|
2033
2411
|
},
|
2034
2412
|
create: {
|
2035
2413
|
message: item.message !== undefined ? item.message : undefined,
|
@@ -2113,9 +2491,13 @@ export const Session = {
|
|
2113
2491
|
}`;
|
2114
2492
|
const variables = {
|
2115
2493
|
where: {
|
2116
|
-
id: props.id !== undefined ?
|
2494
|
+
id: props.id !== undefined ? {
|
2495
|
+
equals: props.id
|
2496
|
+
} : undefined,
|
2117
2497
|
sessionToken: props.sessionToken !== undefined ? props.sessionToken : undefined,
|
2118
|
-
userId: props.userId !== undefined ?
|
2498
|
+
userId: props.userId !== undefined ? {
|
2499
|
+
equals: props.userId
|
2500
|
+
} : undefined,
|
2119
2501
|
expires: props.expires !== undefined ? props.expires : undefined,
|
2120
2502
|
createdAt: props.createdAt !== undefined ? props.createdAt : undefined,
|
2121
2503
|
updatedAt: props.updatedAt !== undefined ? props.updatedAt : undefined,
|
@@ -2185,7 +2567,9 @@ export const Session = {
|
|
2185
2567
|
equals: props.id
|
2186
2568
|
} : undefined,
|
2187
2569
|
sessionToken: props.sessionToken !== undefined ? props.sessionToken : undefined,
|
2188
|
-
userId: props.userId !== undefined ?
|
2570
|
+
userId: props.userId !== undefined ? {
|
2571
|
+
equals: props.userId
|
2572
|
+
} : undefined,
|
2189
2573
|
expires: props.expires !== undefined ? props.expires : undefined,
|
2190
2574
|
createdAt: props.createdAt !== undefined ? props.createdAt : undefined,
|
2191
2575
|
updatedAt: props.updatedAt !== undefined ? props.updatedAt : undefined,
|