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/Trade.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 Trade model.
|
@@ -208,9 +208,11 @@ export const Trade = {
|
|
208
208
|
/**
|
209
209
|
* Create a new Trade record.
|
210
210
|
* @param props - Properties for the new record.
|
211
|
+
* @param client - Apollo Client instance.
|
211
212
|
* @returns The created Trade or null.
|
212
213
|
*/
|
213
|
-
async create(props) {
|
214
|
+
async create(props, globalClient) {
|
215
|
+
const client = globalClient || importedClient;
|
214
216
|
const CREATE_ONE_TRADE = gql `
|
215
217
|
mutation createOneTrade($data: TradeCreateInput!) {
|
216
218
|
createOneTrade(data: $data) {
|
@@ -1454,9 +1456,11 @@ export const Trade = {
|
|
1454
1456
|
/**
|
1455
1457
|
* Create multiple Trade records.
|
1456
1458
|
* @param props - Array of Trade objects for the new records.
|
1459
|
+
* @param globalClient - Apollo Client instance.
|
1457
1460
|
* @returns The count of created records or null.
|
1458
1461
|
*/
|
1459
|
-
async createMany(props) {
|
1462
|
+
async createMany(props, globalClient) {
|
1463
|
+
const client = globalClient || importedClient;
|
1460
1464
|
const CREATE_MANY_TRADE = gql `
|
1461
1465
|
mutation createManyTrade($data: [TradeCreateManyInput!]!) {
|
1462
1466
|
createManyTrade(data: $data) {
|
@@ -1500,9 +1504,11 @@ export const Trade = {
|
|
1500
1504
|
/**
|
1501
1505
|
* Update a single Trade record.
|
1502
1506
|
* @param props - Properties to update.
|
1507
|
+
* @param globalClient - Apollo Client instance.
|
1503
1508
|
* @returns The updated Trade or null.
|
1504
1509
|
*/
|
1505
|
-
async update(props) {
|
1510
|
+
async update(props, globalClient) {
|
1511
|
+
const client = globalClient || importedClient;
|
1506
1512
|
const UPDATE_ONE_TRADE = gql `
|
1507
1513
|
mutation updateOneTrade($data: TradeUpdateInput!, $where: TradeWhereUniqueInput!) {
|
1508
1514
|
updateOneTrade(data: $data, where: $where) {
|
@@ -6629,9 +6635,11 @@ export const Trade = {
|
|
6629
6635
|
/**
|
6630
6636
|
* Upsert a single Trade record.
|
6631
6637
|
* @param props - Properties to update.
|
6638
|
+
* @param globalClient - Apollo Client instance.
|
6632
6639
|
* @returns The updated Trade or null.
|
6633
6640
|
*/
|
6634
|
-
async upsert(props) {
|
6641
|
+
async upsert(props, globalClient) {
|
6642
|
+
const client = globalClient || importedClient;
|
6635
6643
|
const UPSERT_ONE_TRADE = gql `
|
6636
6644
|
mutation upsertOneTrade($where: TradeWhereUniqueInput!, $create: TradeCreateInput!, $update: TradeUpdateInput!) {
|
6637
6645
|
upsertOneTrade(where: $where, create: $create, update: $update) {
|
@@ -12963,9 +12971,11 @@ export const Trade = {
|
|
12963
12971
|
/**
|
12964
12972
|
* Update multiple Trade records.
|
12965
12973
|
* @param props - Array of Trade objects for the updated records.
|
12974
|
+
* @param globalClient - Apollo Client instance.
|
12966
12975
|
* @returns The count of created records or null.
|
12967
12976
|
*/
|
12968
|
-
async updateMany(props) {
|
12977
|
+
async updateMany(props, globalClient) {
|
12978
|
+
const client = globalClient || importedClient;
|
12969
12979
|
const UPDATE_MANY_TRADE = gql `
|
12970
12980
|
mutation updateManyTrade($data: [TradeCreateManyInput!]!) {
|
12971
12981
|
updateManyTrade(data: $data) {
|
@@ -18092,9 +18102,11 @@ export const Trade = {
|
|
18092
18102
|
/**
|
18093
18103
|
* Delete a single Trade record.
|
18094
18104
|
* @param props - Properties to update.
|
18105
|
+
* @param globalClient - Apollo Client instance.
|
18095
18106
|
* @returns The deleted Trade or null.
|
18096
18107
|
*/
|
18097
|
-
async delete(props) {
|
18108
|
+
async delete(props, globalClient) {
|
18109
|
+
const client = globalClient || importedClient;
|
18098
18110
|
const DELETE_ONE_TRADE = gql `
|
18099
18111
|
mutation deleteOneTrade($where: TradeWhereUniqueInput!) {
|
18100
18112
|
deleteOneTrade(where: $where) {
|
@@ -18126,9 +18138,11 @@ export const Trade = {
|
|
18126
18138
|
/**
|
18127
18139
|
* Retrieve a single Trade record by ID.
|
18128
18140
|
* @param props - Properties to update.
|
18141
|
+
* @param globalClient - Apollo Client instance.
|
18129
18142
|
* @returns The retrieved Trade or null.
|
18130
18143
|
*/
|
18131
|
-
async get(props) {
|
18144
|
+
async get(props, globalClient) {
|
18145
|
+
const client = globalClient || importedClient;
|
18132
18146
|
const GET_TRADE = gql `
|
18133
18147
|
query getTrade($where: TradeWhereUniqueInput!) {
|
18134
18148
|
getTrade(where: $where) {
|
@@ -18162,9 +18176,11 @@ export const Trade = {
|
|
18162
18176
|
},
|
18163
18177
|
/**
|
18164
18178
|
* Retrieve all Trades records.
|
18179
|
+
* @param globalClient - Apollo Client instance.
|
18165
18180
|
* @returns An array of Trade records or null.
|
18166
18181
|
*/
|
18167
|
-
async getAll() {
|
18182
|
+
async getAll(globalClient) {
|
18183
|
+
const client = globalClient || importedClient;
|
18168
18184
|
const GET_ALL_TRADE = gql `
|
18169
18185
|
query getAllTrade {
|
18170
18186
|
trades {
|
@@ -18190,9 +18206,11 @@ export const Trade = {
|
|
18190
18206
|
/**
|
18191
18207
|
* Find multiple Trade records based on conditions.
|
18192
18208
|
* @param props - Conditions to find records.
|
18209
|
+
* @param globalClient - Apollo Client instance.
|
18193
18210
|
* @returns An array of found Trade records or null.
|
18194
18211
|
*/
|
18195
|
-
async findMany(props) {
|
18212
|
+
async findMany(props, globalClient) {
|
18213
|
+
const client = globalClient || importedClient;
|
18196
18214
|
const FIND_MANY_TRADE = gql `
|
18197
18215
|
query findManyTrade($where: TradeWhereInput!) {
|
18198
18216
|
trades(where: $where) {
|
package/server/User.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { User as UserType } from './generated/typegraphql-prisma/models/User';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const User: {
|
3
4
|
/**
|
4
5
|
* Create a new User record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created User or null.
|
7
9
|
*/
|
8
|
-
create(props: UserType): Promise<UserType>;
|
10
|
+
create(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType>;
|
9
11
|
/**
|
10
12
|
* Create multiple User records.
|
11
13
|
* @param props - Array of User 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: UserType[]): Promise<{
|
17
|
+
createMany(props: UserType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single User record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated User or null.
|
21
25
|
*/
|
22
|
-
update(props: UserType): Promise<UserType>;
|
26
|
+
update(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single User record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated User or null.
|
27
32
|
*/
|
28
|
-
upsert(props: UserType): Promise<UserType>;
|
33
|
+
upsert(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType>;
|
29
34
|
/**
|
30
35
|
* Update multiple User records.
|
31
36
|
* @param props - Array of User 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: UserType[]): Promise<{
|
40
|
+
updateMany(props: UserType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single User record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted User or null.
|
41
48
|
*/
|
42
|
-
delete(props: UserType): Promise<UserType>;
|
49
|
+
delete(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single User record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved User or null.
|
47
55
|
*/
|
48
|
-
get(props: UserType): Promise<UserType | null>;
|
56
|
+
get(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all Users records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of User records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<UserType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<UserType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple User 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 User records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: UserType): Promise<UserType[] | null>;
|
69
|
+
findMany(props: UserType, globalClient?: ApolloClient<any>): Promise<UserType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=User.d.ts.map
|
package/server/User.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/User.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAC;
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/User.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAkY9D,eAAO,MAAM,IAAI;IAEf;;;;;OAKG;kBAEiB,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAsnBpF;;;;;OAKG;sBACqB,QAAQ,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4CxG;;;;;OAKG;kBACiB,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAq4ElF;;;;;OAKG;kBACiB,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAk9FlF;;;;;OAKG;sBACqB,QAAQ,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAw4ExG;;;;;OAKG;kBACiB,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAiClF;;;;;OAKG;eACc,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAoCtF;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC;IAyB1E;;;;;OAKG;oBACmB,QAAQ,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC;CA4C9F,CAAC"}
|