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.
- package/Account.cjs +150 -22
- package/Action.cjs +90 -12
- package/Alert.cjs +71 -45
- package/Allocation.cjs +86 -37
- package/AlpacaAccount.cjs +308 -36
- package/Asset.cjs +839 -50
- package/Authenticator.cjs +71 -36
- package/Customer.cjs +70 -62
- package/EconomicEvent.cjs +75 -12
- package/MarketSentiment.cjs +75 -2
- package/NewsArticle.cjs +195 -14
- package/NewsArticleAssetSentiment.cjs +45 -14
- package/ScheduledOptionOrder.cjs +15 -2
- package/Session.cjs +56 -36
- package/Trade.cjs +210 -22
- package/User.cjs +170 -29
- package/VerificationToken.cjs +33 -2
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +150 -22
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +90 -12
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +71 -45
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +86 -37
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +308 -36
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +839 -50
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +71 -36
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +70 -62
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +75 -12
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +75 -2
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +195 -14
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +45 -14
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +15 -2
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +56 -36
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +210 -22
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +170 -29
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +33 -2
- package/esm/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/esm/generated/typegraphql-prisma/enhance.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.mjs +7 -7
- package/generated/typegraphql-prisma/enhance.cjs +1 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.cjs +6 -6
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AccountWhereUniqueInput.js.map +1 -1
- package/package.json +1 -1
package/esm/Authenticator.mjs
CHANGED
@@ -224,12 +224,10 @@ export const Authenticator = {
|
|
224
224
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
225
225
|
where: {
|
226
226
|
id: item.id !== undefined ? item.id : undefined,
|
227
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
227
228
|
userId: item.userId !== undefined ? {
|
228
229
|
equals: item.userId
|
229
230
|
} : undefined,
|
230
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
231
|
-
equals: item.providerAccountId
|
232
|
-
} : undefined,
|
233
231
|
},
|
234
232
|
create: {
|
235
233
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -493,8 +491,18 @@ export const Authenticator = {
|
|
493
491
|
const variables = {
|
494
492
|
where: {
|
495
493
|
id: props.id !== undefined ? props.id : undefined,
|
496
|
-
userId: props.userId !== undefined ?
|
497
|
-
|
494
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
495
|
+
publicKey: props.publicKey !== undefined ? {
|
496
|
+
equals: props.publicKey
|
497
|
+
} : undefined,
|
498
|
+
counter: props.counter !== undefined ? {
|
499
|
+
equals: props.counter
|
500
|
+
} : undefined,
|
501
|
+
createdAt: props.createdAt !== undefined ? {
|
502
|
+
equals: props.createdAt
|
503
|
+
} : undefined,
|
504
|
+
updatedAt: props.updatedAt !== undefined ? {
|
505
|
+
equals: props.updatedAt
|
498
506
|
} : undefined,
|
499
507
|
},
|
500
508
|
data: {
|
@@ -643,12 +651,10 @@ export const Authenticator = {
|
|
643
651
|
} : { upsert: props.user.accounts.map((item) => ({
|
644
652
|
where: {
|
645
653
|
id: item.id !== undefined ? item.id : undefined,
|
654
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
646
655
|
userId: item.userId !== undefined ? {
|
647
656
|
equals: item.userId
|
648
657
|
} : undefined,
|
649
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
650
|
-
equals: item.providerAccountId
|
651
|
-
} : undefined,
|
652
658
|
},
|
653
659
|
update: {
|
654
660
|
id: item.id !== undefined ? {
|
@@ -1000,12 +1006,10 @@ export const Authenticator = {
|
|
1000
1006
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1001
1007
|
where: {
|
1002
1008
|
id: item.id !== undefined ? item.id : undefined,
|
1009
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1003
1010
|
userId: item.userId !== undefined ? {
|
1004
1011
|
equals: item.userId
|
1005
1012
|
} : undefined,
|
1006
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1007
|
-
equals: item.providerAccountId
|
1008
|
-
} : undefined,
|
1009
1013
|
},
|
1010
1014
|
create: {
|
1011
1015
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1194,8 +1198,18 @@ export const Authenticator = {
|
|
1194
1198
|
const variables = {
|
1195
1199
|
where: {
|
1196
1200
|
id: props.id !== undefined ? props.id : undefined,
|
1197
|
-
userId: props.userId !== undefined ?
|
1198
|
-
|
1201
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
1202
|
+
publicKey: props.publicKey !== undefined ? {
|
1203
|
+
equals: props.publicKey
|
1204
|
+
} : undefined,
|
1205
|
+
counter: props.counter !== undefined ? {
|
1206
|
+
equals: props.counter
|
1207
|
+
} : undefined,
|
1208
|
+
createdAt: props.createdAt !== undefined ? {
|
1209
|
+
equals: props.createdAt
|
1210
|
+
} : undefined,
|
1211
|
+
updatedAt: props.updatedAt !== undefined ? {
|
1212
|
+
equals: props.updatedAt
|
1199
1213
|
} : undefined,
|
1200
1214
|
},
|
1201
1215
|
create: {
|
@@ -1269,12 +1283,10 @@ export const Authenticator = {
|
|
1269
1283
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1270
1284
|
where: {
|
1271
1285
|
id: item.id !== undefined ? item.id : undefined,
|
1286
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1272
1287
|
userId: item.userId !== undefined ? {
|
1273
1288
|
equals: item.userId
|
1274
1289
|
} : undefined,
|
1275
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1276
|
-
equals: item.providerAccountId
|
1277
|
-
} : undefined,
|
1278
1290
|
},
|
1279
1291
|
create: {
|
1280
1292
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1529,12 +1541,10 @@ export const Authenticator = {
|
|
1529
1541
|
} : { upsert: props.user.accounts.map((item) => ({
|
1530
1542
|
where: {
|
1531
1543
|
id: item.id !== undefined ? item.id : undefined,
|
1544
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1532
1545
|
userId: item.userId !== undefined ? {
|
1533
1546
|
equals: item.userId
|
1534
1547
|
} : undefined,
|
1535
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1536
|
-
equals: item.providerAccountId
|
1537
|
-
} : undefined,
|
1538
1548
|
},
|
1539
1549
|
update: {
|
1540
1550
|
id: item.id !== undefined ? {
|
@@ -1886,12 +1896,10 @@ export const Authenticator = {
|
|
1886
1896
|
: { connectOrCreate: props.user.accounts.map((item) => ({
|
1887
1897
|
where: {
|
1888
1898
|
id: item.id !== undefined ? item.id : undefined,
|
1899
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
1889
1900
|
userId: item.userId !== undefined ? {
|
1890
1901
|
equals: item.userId
|
1891
1902
|
} : undefined,
|
1892
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
1893
|
-
equals: item.providerAccountId
|
1894
|
-
} : undefined,
|
1895
1903
|
},
|
1896
1904
|
create: {
|
1897
1905
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -2080,8 +2088,18 @@ export const Authenticator = {
|
|
2080
2088
|
const variables = props.map(prop => ({
|
2081
2089
|
where: {
|
2082
2090
|
id: prop.id !== undefined ? prop.id : undefined,
|
2083
|
-
userId: prop.userId !== undefined ?
|
2084
|
-
|
2091
|
+
userId: prop.userId !== undefined ? prop.userId : undefined,
|
2092
|
+
publicKey: prop.publicKey !== undefined ? {
|
2093
|
+
equals: prop.publicKey
|
2094
|
+
} : undefined,
|
2095
|
+
counter: prop.counter !== undefined ? {
|
2096
|
+
equals: prop.counter
|
2097
|
+
} : undefined,
|
2098
|
+
createdAt: prop.createdAt !== undefined ? {
|
2099
|
+
equals: prop.createdAt
|
2100
|
+
} : undefined,
|
2101
|
+
updatedAt: prop.updatedAt !== undefined ? {
|
2102
|
+
equals: prop.updatedAt
|
2085
2103
|
} : undefined,
|
2086
2104
|
},
|
2087
2105
|
data: {
|
@@ -2230,12 +2248,10 @@ export const Authenticator = {
|
|
2230
2248
|
} : { upsert: prop.user.accounts.map((item) => ({
|
2231
2249
|
where: {
|
2232
2250
|
id: item.id !== undefined ? item.id : undefined,
|
2251
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
2233
2252
|
userId: item.userId !== undefined ? {
|
2234
2253
|
equals: item.userId
|
2235
2254
|
} : undefined,
|
2236
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
2237
|
-
equals: item.providerAccountId
|
2238
|
-
} : undefined,
|
2239
2255
|
},
|
2240
2256
|
update: {
|
2241
2257
|
id: item.id !== undefined ? {
|
@@ -2587,12 +2603,10 @@ export const Authenticator = {
|
|
2587
2603
|
: { connectOrCreate: prop.user.accounts.map((item) => ({
|
2588
2604
|
where: {
|
2589
2605
|
id: item.id !== undefined ? item.id : undefined,
|
2606
|
+
providerAccountId: item.providerAccountId !== undefined ? item.providerAccountId : undefined,
|
2590
2607
|
userId: item.userId !== undefined ? {
|
2591
2608
|
equals: item.userId
|
2592
2609
|
} : undefined,
|
2593
|
-
providerAccountId: item.providerAccountId !== undefined ? {
|
2594
|
-
equals: item.providerAccountId
|
2595
|
-
} : undefined,
|
2596
2610
|
},
|
2597
2611
|
create: {
|
2598
2612
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -2854,8 +2868,18 @@ export const Authenticator = {
|
|
2854
2868
|
const variables = {
|
2855
2869
|
where: whereInput ? whereInput : {
|
2856
2870
|
id: props.id !== undefined ? props.id : undefined,
|
2857
|
-
userId: props.userId !== undefined ?
|
2858
|
-
|
2871
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
2872
|
+
publicKey: props.publicKey !== undefined ? {
|
2873
|
+
equals: props.publicKey
|
2874
|
+
} : undefined,
|
2875
|
+
counter: props.counter !== undefined ? {
|
2876
|
+
equals: props.counter
|
2877
|
+
} : undefined,
|
2878
|
+
createdAt: props.createdAt !== undefined ? {
|
2879
|
+
equals: props.createdAt
|
2880
|
+
} : undefined,
|
2881
|
+
updatedAt: props.updatedAt !== undefined ? {
|
2882
|
+
equals: props.updatedAt
|
2859
2883
|
} : undefined,
|
2860
2884
|
},
|
2861
2885
|
};
|
@@ -2989,11 +3013,22 @@ export const Authenticator = {
|
|
2989
3013
|
}`;
|
2990
3014
|
const variables = {
|
2991
3015
|
where: whereInput ? whereInput : {
|
2992
|
-
id: props.id !== undefined ?
|
2993
|
-
|
3016
|
+
id: props.id !== undefined ? props.id : undefined,
|
3017
|
+
userId: props.userId !== undefined ? props.userId : undefined,
|
3018
|
+
credentialID: props.credentialID !== undefined ? {
|
3019
|
+
equals: props.credentialID
|
2994
3020
|
} : undefined,
|
2995
|
-
|
2996
|
-
equals: props.
|
3021
|
+
publicKey: props.publicKey !== undefined ? {
|
3022
|
+
equals: props.publicKey
|
3023
|
+
} : undefined,
|
3024
|
+
counter: props.counter !== undefined ? {
|
3025
|
+
equals: props.counter
|
3026
|
+
} : undefined,
|
3027
|
+
createdAt: props.createdAt !== undefined ? {
|
3028
|
+
equals: props.createdAt
|
3029
|
+
} : undefined,
|
3030
|
+
updatedAt: props.updatedAt !== undefined ? {
|
3031
|
+
equals: props.updatedAt
|
2997
3032
|
} : undefined,
|
2998
3033
|
},
|
2999
3034
|
};
|
package/esm/Customer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mapp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