adaptic-backend 1.0.226 → 1.0.228
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/Action.cjs +33 -11
- package/AlpacaAccount.cjs +33 -11
- package/Asset.cjs +57 -19
- package/Contract.cjs +15 -5
- package/Deliverable.cjs +12 -4
- package/NewsArticleAssetSentiment.cjs +33 -11
- package/Order.cjs +57 -19
- package/Position.cjs +33 -11
- package/StopLoss.cjs +33 -11
- package/TakeProfit.cjs +33 -11
- package/Trade.cjs +33 -11
- package/generated/typegraphql-prisma/enhance.cjs +1 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.cjs +7 -6
- package/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.js.map +1 -1
- package/package.json +1 -1
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +33 -11
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +33 -11
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +57 -19
- package/server/Contract.d.ts.map +1 -1
- package/server/Contract.js.map +1 -1
- package/server/Contract.mjs +15 -5
- package/server/Deliverable.d.ts.map +1 -1
- package/server/Deliverable.js.map +1 -1
- package/server/Deliverable.mjs +12 -4
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +33 -11
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +57 -19
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +33 -11
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +33 -11
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +33 -11
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +33 -11
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/DeliverableWhereUniqueInput.mjs +8 -7
package/server/Asset.mjs
CHANGED
@@ -695,10 +695,12 @@ export const Asset = {
|
|
695
695
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
696
696
|
where: {
|
697
697
|
id: item.id !== undefined ? item.id : undefined,
|
698
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
699
698
|
symbol: item.symbol !== undefined ? {
|
700
699
|
equals: item.symbol
|
701
700
|
} : undefined,
|
701
|
+
contractId: item.contractId !== undefined ? {
|
702
|
+
equals: item.contractId
|
703
|
+
} : undefined,
|
702
704
|
},
|
703
705
|
create: {
|
704
706
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -1070,10 +1072,12 @@ export const Asset = {
|
|
1070
1072
|
: { connectOrCreate: item.deliverables.map((item) => ({
|
1071
1073
|
where: {
|
1072
1074
|
id: item.id !== undefined ? item.id : undefined,
|
1073
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
1074
1075
|
symbol: item.symbol !== undefined ? {
|
1075
1076
|
equals: item.symbol
|
1076
1077
|
} : undefined,
|
1078
|
+
contractId: item.contractId !== undefined ? {
|
1079
|
+
equals: item.contractId
|
1080
|
+
} : undefined,
|
1077
1081
|
},
|
1078
1082
|
create: {
|
1079
1083
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -3353,13 +3357,15 @@ export const Asset = {
|
|
3353
3357
|
upsert: item.contract.deliverables.map((item) => ({
|
3354
3358
|
where: {
|
3355
3359
|
id: item.id !== undefined ? item.id : undefined,
|
3356
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
3357
3360
|
symbol: item.symbol !== undefined ? {
|
3358
3361
|
equals: item.symbol
|
3359
3362
|
} : undefined,
|
3360
3363
|
assetId: item.assetId !== undefined ? {
|
3361
3364
|
equals: item.assetId
|
3362
3365
|
} : undefined,
|
3366
|
+
contractId: item.contractId !== undefined ? {
|
3367
|
+
equals: item.contractId
|
3368
|
+
} : undefined,
|
3363
3369
|
},
|
3364
3370
|
update: {
|
3365
3371
|
id: item.id !== undefined ? {
|
@@ -3675,10 +3681,12 @@ export const Asset = {
|
|
3675
3681
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
3676
3682
|
where: {
|
3677
3683
|
id: item.id !== undefined ? item.id : undefined,
|
3678
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
3679
3684
|
symbol: item.symbol !== undefined ? {
|
3680
3685
|
equals: item.symbol
|
3681
3686
|
} : undefined,
|
3687
|
+
contractId: item.contractId !== undefined ? {
|
3688
|
+
equals: item.contractId
|
3689
|
+
} : undefined,
|
3682
3690
|
},
|
3683
3691
|
create: {
|
3684
3692
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -4059,10 +4067,12 @@ export const Asset = {
|
|
4059
4067
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
4060
4068
|
where: {
|
4061
4069
|
id: item.id !== undefined ? item.id : undefined,
|
4062
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
4063
4070
|
symbol: item.symbol !== undefined ? {
|
4064
4071
|
equals: item.symbol
|
4065
4072
|
} : undefined,
|
4073
|
+
contractId: item.contractId !== undefined ? {
|
4074
|
+
equals: item.contractId
|
4075
|
+
} : undefined,
|
4066
4076
|
},
|
4067
4077
|
create: {
|
4068
4078
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -5074,13 +5084,15 @@ export const Asset = {
|
|
5074
5084
|
upsert: item.deliverables.map((item) => ({
|
5075
5085
|
where: {
|
5076
5086
|
id: item.id !== undefined ? item.id : undefined,
|
5077
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
5078
5087
|
symbol: item.symbol !== undefined ? {
|
5079
5088
|
equals: item.symbol
|
5080
5089
|
} : undefined,
|
5081
5090
|
assetId: item.assetId !== undefined ? {
|
5082
5091
|
equals: item.assetId
|
5083
5092
|
} : undefined,
|
5093
|
+
contractId: item.contractId !== undefined ? {
|
5094
|
+
equals: item.contractId
|
5095
|
+
} : undefined,
|
5084
5096
|
},
|
5085
5097
|
update: {
|
5086
5098
|
id: item.id !== undefined ? {
|
@@ -5834,10 +5846,12 @@ export const Asset = {
|
|
5834
5846
|
: { connectOrCreate: item.deliverables.map((item) => ({
|
5835
5847
|
where: {
|
5836
5848
|
id: item.id !== undefined ? item.id : undefined,
|
5837
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
5838
5849
|
symbol: item.symbol !== undefined ? {
|
5839
5850
|
equals: item.symbol
|
5840
5851
|
} : undefined,
|
5852
|
+
contractId: item.contractId !== undefined ? {
|
5853
|
+
equals: item.contractId
|
5854
|
+
} : undefined,
|
5841
5855
|
},
|
5842
5856
|
create: {
|
5843
5857
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -6703,10 +6717,12 @@ export const Asset = {
|
|
6703
6717
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
6704
6718
|
where: {
|
6705
6719
|
id: item.id !== undefined ? item.id : undefined,
|
6706
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
6707
6720
|
symbol: item.symbol !== undefined ? {
|
6708
6721
|
equals: item.symbol
|
6709
6722
|
} : undefined,
|
6723
|
+
contractId: item.contractId !== undefined ? {
|
6724
|
+
equals: item.contractId
|
6725
|
+
} : undefined,
|
6710
6726
|
},
|
6711
6727
|
create: {
|
6712
6728
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -7078,10 +7094,12 @@ export const Asset = {
|
|
7078
7094
|
: { connectOrCreate: item.deliverables.map((item) => ({
|
7079
7095
|
where: {
|
7080
7096
|
id: item.id !== undefined ? item.id : undefined,
|
7081
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
7082
7097
|
symbol: item.symbol !== undefined ? {
|
7083
7098
|
equals: item.symbol
|
7084
7099
|
} : undefined,
|
7100
|
+
contractId: item.contractId !== undefined ? {
|
7101
|
+
equals: item.contractId
|
7102
|
+
} : undefined,
|
7085
7103
|
},
|
7086
7104
|
create: {
|
7087
7105
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -9228,13 +9246,15 @@ export const Asset = {
|
|
9228
9246
|
upsert: item.contract.deliverables.map((item) => ({
|
9229
9247
|
where: {
|
9230
9248
|
id: item.id !== undefined ? item.id : undefined,
|
9231
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
9232
9249
|
symbol: item.symbol !== undefined ? {
|
9233
9250
|
equals: item.symbol
|
9234
9251
|
} : undefined,
|
9235
9252
|
assetId: item.assetId !== undefined ? {
|
9236
9253
|
equals: item.assetId
|
9237
9254
|
} : undefined,
|
9255
|
+
contractId: item.contractId !== undefined ? {
|
9256
|
+
equals: item.contractId
|
9257
|
+
} : undefined,
|
9238
9258
|
},
|
9239
9259
|
update: {
|
9240
9260
|
id: item.id !== undefined ? {
|
@@ -9550,10 +9570,12 @@ export const Asset = {
|
|
9550
9570
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
9551
9571
|
where: {
|
9552
9572
|
id: item.id !== undefined ? item.id : undefined,
|
9553
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
9554
9573
|
symbol: item.symbol !== undefined ? {
|
9555
9574
|
equals: item.symbol
|
9556
9575
|
} : undefined,
|
9576
|
+
contractId: item.contractId !== undefined ? {
|
9577
|
+
equals: item.contractId
|
9578
|
+
} : undefined,
|
9557
9579
|
},
|
9558
9580
|
create: {
|
9559
9581
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -9934,10 +9956,12 @@ export const Asset = {
|
|
9934
9956
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
9935
9957
|
where: {
|
9936
9958
|
id: item.id !== undefined ? item.id : undefined,
|
9937
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
9938
9959
|
symbol: item.symbol !== undefined ? {
|
9939
9960
|
equals: item.symbol
|
9940
9961
|
} : undefined,
|
9962
|
+
contractId: item.contractId !== undefined ? {
|
9963
|
+
equals: item.contractId
|
9964
|
+
} : undefined,
|
9941
9965
|
},
|
9942
9966
|
create: {
|
9943
9967
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -10949,13 +10973,15 @@ export const Asset = {
|
|
10949
10973
|
upsert: item.deliverables.map((item) => ({
|
10950
10974
|
where: {
|
10951
10975
|
id: item.id !== undefined ? item.id : undefined,
|
10952
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
10953
10976
|
symbol: item.symbol !== undefined ? {
|
10954
10977
|
equals: item.symbol
|
10955
10978
|
} : undefined,
|
10956
10979
|
assetId: item.assetId !== undefined ? {
|
10957
10980
|
equals: item.assetId
|
10958
10981
|
} : undefined,
|
10982
|
+
contractId: item.contractId !== undefined ? {
|
10983
|
+
equals: item.contractId
|
10984
|
+
} : undefined,
|
10959
10985
|
},
|
10960
10986
|
update: {
|
10961
10987
|
id: item.id !== undefined ? {
|
@@ -11709,10 +11735,12 @@ export const Asset = {
|
|
11709
11735
|
: { connectOrCreate: item.deliverables.map((item) => ({
|
11710
11736
|
where: {
|
11711
11737
|
id: item.id !== undefined ? item.id : undefined,
|
11712
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
11713
11738
|
symbol: item.symbol !== undefined ? {
|
11714
11739
|
equals: item.symbol
|
11715
11740
|
} : undefined,
|
11741
|
+
contractId: item.contractId !== undefined ? {
|
11742
|
+
equals: item.contractId
|
11743
|
+
} : undefined,
|
11716
11744
|
},
|
11717
11745
|
create: {
|
11718
11746
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -13904,13 +13932,15 @@ export const Asset = {
|
|
13904
13932
|
upsert: item.contract.deliverables.map((item) => ({
|
13905
13933
|
where: {
|
13906
13934
|
id: item.id !== undefined ? item.id : undefined,
|
13907
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
13908
13935
|
symbol: item.symbol !== undefined ? {
|
13909
13936
|
equals: item.symbol
|
13910
13937
|
} : undefined,
|
13911
13938
|
assetId: item.assetId !== undefined ? {
|
13912
13939
|
equals: item.assetId
|
13913
13940
|
} : undefined,
|
13941
|
+
contractId: item.contractId !== undefined ? {
|
13942
|
+
equals: item.contractId
|
13943
|
+
} : undefined,
|
13914
13944
|
},
|
13915
13945
|
update: {
|
13916
13946
|
id: item.id !== undefined ? {
|
@@ -14226,10 +14256,12 @@ export const Asset = {
|
|
14226
14256
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
14227
14257
|
where: {
|
14228
14258
|
id: item.id !== undefined ? item.id : undefined,
|
14229
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
14230
14259
|
symbol: item.symbol !== undefined ? {
|
14231
14260
|
equals: item.symbol
|
14232
14261
|
} : undefined,
|
14262
|
+
contractId: item.contractId !== undefined ? {
|
14263
|
+
equals: item.contractId
|
14264
|
+
} : undefined,
|
14233
14265
|
},
|
14234
14266
|
create: {
|
14235
14267
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -14610,10 +14642,12 @@ export const Asset = {
|
|
14610
14642
|
: { connectOrCreate: item.contract.deliverables.map((item) => ({
|
14611
14643
|
where: {
|
14612
14644
|
id: item.id !== undefined ? item.id : undefined,
|
14613
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
14614
14645
|
symbol: item.symbol !== undefined ? {
|
14615
14646
|
equals: item.symbol
|
14616
14647
|
} : undefined,
|
14648
|
+
contractId: item.contractId !== undefined ? {
|
14649
|
+
equals: item.contractId
|
14650
|
+
} : undefined,
|
14617
14651
|
},
|
14618
14652
|
create: {
|
14619
14653
|
type: item.type !== undefined ? item.type : undefined,
|
@@ -15625,13 +15659,15 @@ export const Asset = {
|
|
15625
15659
|
upsert: item.deliverables.map((item) => ({
|
15626
15660
|
where: {
|
15627
15661
|
id: item.id !== undefined ? item.id : undefined,
|
15628
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
15629
15662
|
symbol: item.symbol !== undefined ? {
|
15630
15663
|
equals: item.symbol
|
15631
15664
|
} : undefined,
|
15632
15665
|
assetId: item.assetId !== undefined ? {
|
15633
15666
|
equals: item.assetId
|
15634
15667
|
} : undefined,
|
15668
|
+
contractId: item.contractId !== undefined ? {
|
15669
|
+
equals: item.contractId
|
15670
|
+
} : undefined,
|
15635
15671
|
},
|
15636
15672
|
update: {
|
15637
15673
|
id: item.id !== undefined ? {
|
@@ -16385,10 +16421,12 @@ export const Asset = {
|
|
16385
16421
|
: { connectOrCreate: item.deliverables.map((item) => ({
|
16386
16422
|
where: {
|
16387
16423
|
id: item.id !== undefined ? item.id : undefined,
|
16388
|
-
contractId: item.contractId !== undefined ? item.contractId : undefined,
|
16389
16424
|
symbol: item.symbol !== undefined ? {
|
16390
16425
|
equals: item.symbol
|
16391
16426
|
} : undefined,
|
16427
|
+
contractId: item.contractId !== undefined ? {
|
16428
|
+
equals: item.contractId
|
16429
|
+
} : undefined,
|
16392
16430
|
},
|
16393
16431
|
create: {
|
16394
16432
|
type: item.type !== undefined ? item.type : undefined,
|
package/server/Contract.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../src/Contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AA0OxF,eAAO,MAAM,QAAQ;IAEnB;;;;OAIG;kBAEiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../src/Contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AA0OxF,eAAO,MAAM,QAAQ;IAEnB;;;;OAIG;kBAEiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAq8B1D;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAmD1E;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8+GxD;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA44IxD;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAi/G1E;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA+BxD;;;;OAIG;eACc,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAsC5D;;;OAGG;cACa,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IAuB9C;;;;OAIG;oBACmB,YAAY,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;CAgDpE,CAAC"}
|