adaptic-backend 1.0.233 → 1.0.235
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 +36 -18
- package/Account.d.ts +19 -9
- package/Action.cjs +36 -18
- package/Action.d.ts +19 -9
- package/Alert.cjs +36 -18
- package/Alert.d.ts +19 -9
- package/AlpacaAccount.cjs +36 -18
- package/AlpacaAccount.d.ts +19 -9
- package/Asset.cjs +36 -18
- package/Asset.d.ts +19 -9
- package/Authenticator.cjs +36 -18
- package/Authenticator.d.ts +19 -9
- package/Contract.cjs +36 -18
- package/Contract.d.ts +19 -9
- package/Customer.cjs +36 -18
- package/Customer.d.ts +19 -9
- package/Deliverable.cjs +36 -18
- package/Deliverable.d.ts +19 -9
- package/EconomicEvent.cjs +36 -18
- package/EconomicEvent.d.ts +19 -9
- package/MarketSentiment.cjs +36 -18
- package/MarketSentiment.d.ts +19 -9
- package/NewsArticle.cjs +36 -18
- package/NewsArticle.d.ts +19 -9
- package/NewsArticleAssetSentiment.cjs +36 -18
- package/NewsArticleAssetSentiment.d.ts +19 -9
- package/Order.cjs +36 -18
- package/Order.d.ts +19 -9
- package/Position.cjs +36 -18
- package/Position.d.ts +19 -9
- package/ScheduledOptionOrder.cjs +36 -18
- package/ScheduledOptionOrder.d.ts +19 -9
- package/Session.cjs +36 -18
- package/Session.d.ts +19 -9
- package/StopLoss.cjs +36 -18
- package/StopLoss.d.ts +19 -9
- package/TakeProfit.cjs +36 -18
- package/TakeProfit.d.ts +19 -9
- package/Trade.cjs +36 -18
- package/Trade.d.ts +19 -9
- package/User.cjs +36 -18
- package/User.d.ts +19 -9
- package/VerificationToken.cjs +36 -18
- package/VerificationToken.d.ts +19 -9
- package/client.cjs +0 -1
- package/index.d.ts +198 -198
- package/package.json +1 -1
- package/server/Account.d.ts +19 -9
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +28 -10
- package/server/Action.d.ts +19 -9
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +28 -10
- package/server/Alert.d.ts +19 -9
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +28 -10
- package/server/AlpacaAccount.d.ts +19 -9
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +28 -10
- package/server/Asset.d.ts +19 -9
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +28 -10
- package/server/Authenticator.d.ts +19 -9
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +28 -10
- package/server/Contract.d.ts +19 -9
- package/server/Contract.d.ts.map +1 -1
- package/server/Contract.js.map +1 -1
- package/server/Contract.mjs +28 -10
- package/server/Customer.d.ts +19 -9
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +28 -10
- package/server/Deliverable.d.ts +19 -9
- package/server/Deliverable.d.ts.map +1 -1
- package/server/Deliverable.js.map +1 -1
- package/server/Deliverable.mjs +28 -10
- package/server/EconomicEvent.d.ts +19 -9
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +28 -10
- package/server/MarketSentiment.d.ts +19 -9
- package/server/MarketSentiment.d.ts.map +1 -1
- package/server/MarketSentiment.js.map +1 -1
- package/server/MarketSentiment.mjs +28 -10
- package/server/NewsArticle.d.ts +19 -9
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +28 -10
- package/server/NewsArticleAssetSentiment.d.ts +19 -9
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +28 -10
- package/server/Order.d.ts +19 -9
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +28 -10
- package/server/Position.d.ts +19 -9
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +28 -10
- package/server/ScheduledOptionOrder.d.ts +19 -9
- package/server/ScheduledOptionOrder.d.ts.map +1 -1
- package/server/ScheduledOptionOrder.js.map +1 -1
- package/server/ScheduledOptionOrder.mjs +28 -10
- package/server/Session.d.ts +19 -9
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +28 -10
- package/server/StopLoss.d.ts +19 -9
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +28 -10
- package/server/TakeProfit.d.ts +19 -9
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +28 -10
- package/server/Trade.d.ts +19 -9
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +28 -10
- package/server/User.d.ts +19 -9
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +28 -10
- package/server/VerificationToken.d.ts +19 -9
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +28 -10
- package/server/client.d.ts.map +1 -1
- package/server/client.js.map +1 -1
- package/server/client.mjs +0 -1
- package/server/index.d.ts +198 -198
package/server/StopLoss.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import pkg from '@apollo/client';
|
2
2
|
const { ApolloError, gql } = pkg;
|
3
|
-
import { client } from './client.mjs';
|
3
|
+
import { client as importedClient } from './client.mjs';
|
4
4
|
import { removeUndefinedProps } from './utils.mjs';
|
5
5
|
/**
|
6
6
|
* CRUD operations for the StopLoss model.
|
@@ -19,9 +19,11 @@ export const StopLoss = {
|
|
19
19
|
/**
|
20
20
|
* Create a new StopLoss record.
|
21
21
|
* @param props - Properties for the new record.
|
22
|
+
* @param client - Apollo Client instance.
|
22
23
|
* @returns The created StopLoss or null.
|
23
24
|
*/
|
24
|
-
async create(props) {
|
25
|
+
async create(props, globalClient) {
|
26
|
+
const client = globalClient || importedClient;
|
25
27
|
const CREATE_ONE_STOPLOSS = gql `
|
26
28
|
mutation createOneStopLoss($data: StopLossCreateInput!) {
|
27
29
|
createOneStopLoss(data: $data) {
|
@@ -637,9 +639,11 @@ export const StopLoss = {
|
|
637
639
|
/**
|
638
640
|
* Create multiple StopLoss records.
|
639
641
|
* @param props - Array of StopLoss objects for the new records.
|
642
|
+
* @param globalClient - Apollo Client instance.
|
640
643
|
* @returns The count of created records or null.
|
641
644
|
*/
|
642
|
-
async createMany(props) {
|
645
|
+
async createMany(props, globalClient) {
|
646
|
+
const client = globalClient || importedClient;
|
643
647
|
const CREATE_MANY_STOPLOSS = gql `
|
644
648
|
mutation createManyStopLoss($data: [StopLossCreateManyInput!]!) {
|
645
649
|
createManyStopLoss(data: $data) {
|
@@ -673,9 +677,11 @@ export const StopLoss = {
|
|
673
677
|
/**
|
674
678
|
* Update a single StopLoss record.
|
675
679
|
* @param props - Properties to update.
|
680
|
+
* @param globalClient - Apollo Client instance.
|
676
681
|
* @returns The updated StopLoss or null.
|
677
682
|
*/
|
678
|
-
async update(props) {
|
683
|
+
async update(props, globalClient) {
|
684
|
+
const client = globalClient || importedClient;
|
679
685
|
const UPDATE_ONE_STOPLOSS = gql `
|
680
686
|
mutation updateOneStopLoss($data: StopLossUpdateInput!, $where: StopLossWhereUniqueInput!) {
|
681
687
|
updateOneStopLoss(data: $data, where: $where) {
|
@@ -3196,9 +3202,11 @@ export const StopLoss = {
|
|
3196
3202
|
/**
|
3197
3203
|
* Upsert a single StopLoss record.
|
3198
3204
|
* @param props - Properties to update.
|
3205
|
+
* @param globalClient - Apollo Client instance.
|
3199
3206
|
* @returns The updated StopLoss or null.
|
3200
3207
|
*/
|
3201
|
-
async upsert(props) {
|
3208
|
+
async upsert(props, globalClient) {
|
3209
|
+
const client = globalClient || importedClient;
|
3202
3210
|
const UPSERT_ONE_STOPLOSS = gql `
|
3203
3211
|
mutation upsertOneStopLoss($where: StopLossWhereUniqueInput!, $create: StopLossCreateInput!, $update: StopLossUpdateInput!) {
|
3204
3212
|
upsertOneStopLoss(where: $where, create: $create, update: $update) {
|
@@ -6296,9 +6304,11 @@ export const StopLoss = {
|
|
6296
6304
|
/**
|
6297
6305
|
* Update multiple StopLoss records.
|
6298
6306
|
* @param props - Array of StopLoss objects for the updated records.
|
6307
|
+
* @param globalClient - Apollo Client instance.
|
6299
6308
|
* @returns The count of created records or null.
|
6300
6309
|
*/
|
6301
|
-
async updateMany(props) {
|
6310
|
+
async updateMany(props, globalClient) {
|
6311
|
+
const client = globalClient || importedClient;
|
6302
6312
|
const UPDATE_MANY_STOPLOSS = gql `
|
6303
6313
|
mutation updateManyStopLoss($data: [StopLossCreateManyInput!]!) {
|
6304
6314
|
updateManyStopLoss(data: $data) {
|
@@ -8819,9 +8829,11 @@ export const StopLoss = {
|
|
8819
8829
|
/**
|
8820
8830
|
* Delete a single StopLoss record.
|
8821
8831
|
* @param props - Properties to update.
|
8832
|
+
* @param globalClient - Apollo Client instance.
|
8822
8833
|
* @returns The deleted StopLoss or null.
|
8823
8834
|
*/
|
8824
|
-
async delete(props) {
|
8835
|
+
async delete(props, globalClient) {
|
8836
|
+
const client = globalClient || importedClient;
|
8825
8837
|
const DELETE_ONE_STOPLOSS = gql `
|
8826
8838
|
mutation deleteOneStopLoss($where: StopLossWhereUniqueInput!) {
|
8827
8839
|
deleteOneStopLoss(where: $where) {
|
@@ -8853,9 +8865,11 @@ export const StopLoss = {
|
|
8853
8865
|
/**
|
8854
8866
|
* Retrieve a single StopLoss record by ID.
|
8855
8867
|
* @param props - Properties to update.
|
8868
|
+
* @param globalClient - Apollo Client instance.
|
8856
8869
|
* @returns The retrieved StopLoss or null.
|
8857
8870
|
*/
|
8858
|
-
async get(props) {
|
8871
|
+
async get(props, globalClient) {
|
8872
|
+
const client = globalClient || importedClient;
|
8859
8873
|
const GET_STOPLOSS = gql `
|
8860
8874
|
query getStopLoss($where: StopLossWhereUniqueInput!) {
|
8861
8875
|
getStopLoss(where: $where) {
|
@@ -8887,9 +8901,11 @@ export const StopLoss = {
|
|
8887
8901
|
},
|
8888
8902
|
/**
|
8889
8903
|
* Retrieve all StopLosses records.
|
8904
|
+
* @param globalClient - Apollo Client instance.
|
8890
8905
|
* @returns An array of StopLoss records or null.
|
8891
8906
|
*/
|
8892
|
-
async getAll() {
|
8907
|
+
async getAll(globalClient) {
|
8908
|
+
const client = globalClient || importedClient;
|
8893
8909
|
const GET_ALL_STOPLOSS = gql `
|
8894
8910
|
query getAllStopLoss {
|
8895
8911
|
stopLosses {
|
@@ -8915,9 +8931,11 @@ export const StopLoss = {
|
|
8915
8931
|
/**
|
8916
8932
|
* Find multiple StopLoss records based on conditions.
|
8917
8933
|
* @param props - Conditions to find records.
|
8934
|
+
* @param globalClient - Apollo Client instance.
|
8918
8935
|
* @returns An array of found StopLoss records or null.
|
8919
8936
|
*/
|
8920
|
-
async findMany(props) {
|
8937
|
+
async findMany(props, globalClient) {
|
8938
|
+
const client = globalClient || importedClient;
|
8921
8939
|
const FIND_MANY_STOPLOSS = gql `
|
8922
8940
|
query findManyStopLoss($where: StopLossWhereInput!) {
|
8923
8941
|
stopLosses(where: $where) {
|
package/server/TakeProfit.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { TakeProfit as TakeProfitType } from './generated/typegraphql-prisma/models/TakeProfit';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const TakeProfit: {
|
3
4
|
/**
|
4
5
|
* Create a new TakeProfit record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created TakeProfit or null.
|
7
9
|
*/
|
8
|
-
create(props: TakeProfitType): Promise<TakeProfitType>;
|
10
|
+
create(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType>;
|
9
11
|
/**
|
10
12
|
* Create multiple TakeProfit records.
|
11
13
|
* @param props - Array of TakeProfit objects for the new records.
|
14
|
+
* @param globalClient - Apollo Client instance.
|
12
15
|
* @returns The count of created records or null.
|
13
16
|
*/
|
14
|
-
createMany(props: TakeProfitType[]): Promise<{
|
17
|
+
createMany(props: TakeProfitType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single TakeProfit record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated TakeProfit or null.
|
21
25
|
*/
|
22
|
-
update(props: TakeProfitType): Promise<TakeProfitType>;
|
26
|
+
update(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single TakeProfit record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated TakeProfit or null.
|
27
32
|
*/
|
28
|
-
upsert(props: TakeProfitType): Promise<TakeProfitType>;
|
33
|
+
upsert(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType>;
|
29
34
|
/**
|
30
35
|
* Update multiple TakeProfit records.
|
31
36
|
* @param props - Array of TakeProfit objects for the updated records.
|
37
|
+
* @param globalClient - Apollo Client instance.
|
32
38
|
* @returns The count of created records or null.
|
33
39
|
*/
|
34
|
-
updateMany(props: TakeProfitType[]): Promise<{
|
40
|
+
updateMany(props: TakeProfitType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single TakeProfit record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted TakeProfit or null.
|
41
48
|
*/
|
42
|
-
delete(props: TakeProfitType): Promise<TakeProfitType>;
|
49
|
+
delete(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single TakeProfit record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved TakeProfit or null.
|
47
55
|
*/
|
48
|
-
get(props: TakeProfitType): Promise<TakeProfitType | null>;
|
56
|
+
get(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all TakeProfits records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of TakeProfit records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<TakeProfitType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<TakeProfitType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple TakeProfit records based on conditions.
|
56
65
|
* @param props - Conditions to find records.
|
66
|
+
* @param globalClient - Apollo Client instance.
|
57
67
|
* @returns An array of found TakeProfit records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: TakeProfitType): Promise<TakeProfitType[] | null>;
|
69
|
+
findMany(props: TakeProfitType, globalClient?: ApolloClient<any>): Promise<TakeProfitType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=TakeProfit.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TakeProfit.d.ts","sourceRoot":"","sources":["../../src/TakeProfit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,kDAAkD,CAAC;
|
1
|
+
{"version":3,"file":"TakeProfit.d.ts","sourceRoot":"","sources":["../../src/TakeProfit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAmB9D,eAAO,MAAM,UAAU;IAErB;;;;;OAKG;kBAEiB,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IA0mBhG;;;;;OAKG;sBACqB,cAAc,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAmC9G;;;;;OAKG;kBACiB,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IA09E9F;;;;;OAKG;kBACiB,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IA2hG9F;;;;;OAKG;sBACqB,cAAc,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA69E9G;;;;;OAKG;kBACiB,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;IAiC9F;;;;;OAKG;eACc,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAiClG;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE,GAAG,IAAI,CAAC;IAyBhF;;;;;OAKG;oBACmB,cAAc,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,cAAc,EAAE,GAAG,IAAI,CAAC;CAyC1G,CAAC"}
|