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
@@ -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 MarketSentiment model.
|
@@ -19,9 +19,11 @@ export const MarketSentiment = {
|
|
19
19
|
/**
|
20
20
|
* Create a new MarketSentiment record.
|
21
21
|
* @param props - Properties for the new record.
|
22
|
+
* @param client - Apollo Client instance.
|
22
23
|
* @returns The created MarketSentiment or null.
|
23
24
|
*/
|
24
|
-
async create(props) {
|
25
|
+
async create(props, globalClient) {
|
26
|
+
const client = globalClient || importedClient;
|
25
27
|
const CREATE_ONE_MARKETSENTIMENT = gql `
|
26
28
|
mutation createOneMarketSentiment($data: MarketSentimentCreateInput!) {
|
27
29
|
createOneMarketSentiment(data: $data) {
|
@@ -56,9 +58,11 @@ export const MarketSentiment = {
|
|
56
58
|
/**
|
57
59
|
* Create multiple MarketSentiment records.
|
58
60
|
* @param props - Array of MarketSentiment objects for the new records.
|
61
|
+
* @param globalClient - Apollo Client instance.
|
59
62
|
* @returns The count of created records or null.
|
60
63
|
*/
|
61
|
-
async createMany(props) {
|
64
|
+
async createMany(props, globalClient) {
|
65
|
+
const client = globalClient || importedClient;
|
62
66
|
const CREATE_MANY_MARKETSENTIMENT = gql `
|
63
67
|
mutation createManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
64
68
|
createManyMarketSentiment(data: $data) {
|
@@ -92,9 +96,11 @@ export const MarketSentiment = {
|
|
92
96
|
/**
|
93
97
|
* Update a single MarketSentiment record.
|
94
98
|
* @param props - Properties to update.
|
99
|
+
* @param globalClient - Apollo Client instance.
|
95
100
|
* @returns The updated MarketSentiment or null.
|
96
101
|
*/
|
97
|
-
async update(props) {
|
102
|
+
async update(props, globalClient) {
|
103
|
+
const client = globalClient || importedClient;
|
98
104
|
const UPDATE_ONE_MARKETSENTIMENT = gql `
|
99
105
|
mutation updateOneMarketSentiment($data: MarketSentimentUpdateInput!, $where: MarketSentimentWhereUniqueInput!) {
|
100
106
|
updateOneMarketSentiment(data: $data, where: $where) {
|
@@ -146,9 +152,11 @@ export const MarketSentiment = {
|
|
146
152
|
/**
|
147
153
|
* Upsert a single MarketSentiment record.
|
148
154
|
* @param props - Properties to update.
|
155
|
+
* @param globalClient - Apollo Client instance.
|
149
156
|
* @returns The updated MarketSentiment or null.
|
150
157
|
*/
|
151
|
-
async upsert(props) {
|
158
|
+
async upsert(props, globalClient) {
|
159
|
+
const client = globalClient || importedClient;
|
152
160
|
const UPSERT_ONE_MARKETSENTIMENT = gql `
|
153
161
|
mutation upsertOneMarketSentiment($where: MarketSentimentWhereUniqueInput!, $create: MarketSentimentCreateInput!, $update: MarketSentimentUpdateInput!) {
|
154
162
|
upsertOneMarketSentiment(where: $where, create: $create, update: $update) {
|
@@ -196,9 +204,11 @@ export const MarketSentiment = {
|
|
196
204
|
/**
|
197
205
|
* Update multiple MarketSentiment records.
|
198
206
|
* @param props - Array of MarketSentiment objects for the updated records.
|
207
|
+
* @param globalClient - Apollo Client instance.
|
199
208
|
* @returns The count of created records or null.
|
200
209
|
*/
|
201
|
-
async updateMany(props) {
|
210
|
+
async updateMany(props, globalClient) {
|
211
|
+
const client = globalClient || importedClient;
|
202
212
|
const UPDATE_MANY_MARKETSENTIMENT = gql `
|
203
213
|
mutation updateManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
204
214
|
updateManyMarketSentiment(data: $data) {
|
@@ -250,9 +260,11 @@ export const MarketSentiment = {
|
|
250
260
|
/**
|
251
261
|
* Delete a single MarketSentiment record.
|
252
262
|
* @param props - Properties to update.
|
263
|
+
* @param globalClient - Apollo Client instance.
|
253
264
|
* @returns The deleted MarketSentiment or null.
|
254
265
|
*/
|
255
|
-
async delete(props) {
|
266
|
+
async delete(props, globalClient) {
|
267
|
+
const client = globalClient || importedClient;
|
256
268
|
const DELETE_ONE_MARKETSENTIMENT = gql `
|
257
269
|
mutation deleteOneMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
258
270
|
deleteOneMarketSentiment(where: $where) {
|
@@ -284,9 +296,11 @@ export const MarketSentiment = {
|
|
284
296
|
/**
|
285
297
|
* Retrieve a single MarketSentiment record by ID.
|
286
298
|
* @param props - Properties to update.
|
299
|
+
* @param globalClient - Apollo Client instance.
|
287
300
|
* @returns The retrieved MarketSentiment or null.
|
288
301
|
*/
|
289
|
-
async get(props) {
|
302
|
+
async get(props, globalClient) {
|
303
|
+
const client = globalClient || importedClient;
|
290
304
|
const GET_MARKETSENTIMENT = gql `
|
291
305
|
query getMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
292
306
|
getMarketSentiment(where: $where) {
|
@@ -317,9 +331,11 @@ export const MarketSentiment = {
|
|
317
331
|
},
|
318
332
|
/**
|
319
333
|
* Retrieve all MarketSentiments records.
|
334
|
+
* @param globalClient - Apollo Client instance.
|
320
335
|
* @returns An array of MarketSentiment records or null.
|
321
336
|
*/
|
322
|
-
async getAll() {
|
337
|
+
async getAll(globalClient) {
|
338
|
+
const client = globalClient || importedClient;
|
323
339
|
const GET_ALL_MARKETSENTIMENT = gql `
|
324
340
|
query getAllMarketSentiment {
|
325
341
|
marketSentiments {
|
@@ -345,9 +361,11 @@ export const MarketSentiment = {
|
|
345
361
|
/**
|
346
362
|
* Find multiple MarketSentiment records based on conditions.
|
347
363
|
* @param props - Conditions to find records.
|
364
|
+
* @param globalClient - Apollo Client instance.
|
348
365
|
* @returns An array of found MarketSentiment records or null.
|
349
366
|
*/
|
350
|
-
async findMany(props) {
|
367
|
+
async findMany(props, globalClient) {
|
368
|
+
const client = globalClient || importedClient;
|
351
369
|
const FIND_MANY_MARKETSENTIMENT = gql `
|
352
370
|
query findManyMarketSentiment($where: MarketSentimentWhereInput!) {
|
353
371
|
marketSentiments(where: $where) {
|
package/server/NewsArticle.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { NewsArticle as NewsArticleType } from './generated/typegraphql-prisma/models/NewsArticle';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const NewsArticle: {
|
3
4
|
/**
|
4
5
|
* Create a new NewsArticle record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created NewsArticle or null.
|
7
9
|
*/
|
8
|
-
create(props: NewsArticleType): Promise<NewsArticleType>;
|
10
|
+
create(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType>;
|
9
11
|
/**
|
10
12
|
* Create multiple NewsArticle records.
|
11
13
|
* @param props - Array of NewsArticle 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: NewsArticleType[]): Promise<{
|
17
|
+
createMany(props: NewsArticleType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single NewsArticle record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated NewsArticle or null.
|
21
25
|
*/
|
22
|
-
update(props: NewsArticleType): Promise<NewsArticleType>;
|
26
|
+
update(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single NewsArticle record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated NewsArticle or null.
|
27
32
|
*/
|
28
|
-
upsert(props: NewsArticleType): Promise<NewsArticleType>;
|
33
|
+
upsert(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType>;
|
29
34
|
/**
|
30
35
|
* Update multiple NewsArticle records.
|
31
36
|
* @param props - Array of NewsArticle 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: NewsArticleType[]): Promise<{
|
40
|
+
updateMany(props: NewsArticleType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single NewsArticle record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted NewsArticle or null.
|
41
48
|
*/
|
42
|
-
delete(props: NewsArticleType): Promise<NewsArticleType>;
|
49
|
+
delete(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single NewsArticle record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved NewsArticle or null.
|
47
55
|
*/
|
48
|
-
get(props: NewsArticleType): Promise<NewsArticleType | null>;
|
56
|
+
get(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all NewsArticles records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of NewsArticle records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<NewsArticleType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<NewsArticleType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple NewsArticle 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 NewsArticle records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: NewsArticleType): Promise<NewsArticleType[] | null>;
|
69
|
+
findMany(props: NewsArticleType, globalClient?: ApolloClient<any>): Promise<NewsArticleType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=NewsArticle.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../src/NewsArticle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;
|
1
|
+
{"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../src/NewsArticle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAkG9D,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;kBAEiB,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IA+RlG;;;;;OAKG;sBACqB,eAAe,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA6C/G;;;;;OAKG;kBACiB,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAqmChG;;;;;OAKG;kBACiB,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IA21ChG;;;;;OAKG;sBACqB,eAAe,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAwmC/G;;;;;OAKG;kBACiB,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAiChG;;;;;OAKG;eACc,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAoCpG;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAyBjF;;;;;OAKG;oBACmB,eAAe,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;CA4C5G,CAAC"}
|