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/NewsArticle.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 NewsArticle model.
|
@@ -98,9 +98,11 @@ export const NewsArticle = {
|
|
98
98
|
/**
|
99
99
|
* Create a new NewsArticle record.
|
100
100
|
* @param props - Properties for the new record.
|
101
|
+
* @param client - Apollo Client instance.
|
101
102
|
* @returns The created NewsArticle or null.
|
102
103
|
*/
|
103
|
-
async create(props) {
|
104
|
+
async create(props, globalClient) {
|
105
|
+
const client = globalClient || importedClient;
|
104
106
|
const CREATE_ONE_NEWSARTICLE = gql `
|
105
107
|
mutation createOneNewsArticle($data: NewsArticleCreateInput!) {
|
106
108
|
createOneNewsArticle(data: $data) {
|
@@ -385,9 +387,11 @@ export const NewsArticle = {
|
|
385
387
|
/**
|
386
388
|
* Create multiple NewsArticle records.
|
387
389
|
* @param props - Array of NewsArticle objects for the new records.
|
390
|
+
* @param globalClient - Apollo Client instance.
|
388
391
|
* @returns The count of created records or null.
|
389
392
|
*/
|
390
|
-
async createMany(props) {
|
393
|
+
async createMany(props, globalClient) {
|
394
|
+
const client = globalClient || importedClient;
|
391
395
|
const CREATE_MANY_NEWSARTICLE = gql `
|
392
396
|
mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
393
397
|
createManyNewsArticle(data: $data) {
|
@@ -431,9 +435,11 @@ export const NewsArticle = {
|
|
431
435
|
/**
|
432
436
|
* Update a single NewsArticle record.
|
433
437
|
* @param props - Properties to update.
|
438
|
+
* @param globalClient - Apollo Client instance.
|
434
439
|
* @returns The updated NewsArticle or null.
|
435
440
|
*/
|
436
|
-
async update(props) {
|
441
|
+
async update(props, globalClient) {
|
442
|
+
const client = globalClient || importedClient;
|
437
443
|
const UPDATE_ONE_NEWSARTICLE = gql `
|
438
444
|
mutation updateOneNewsArticle($data: NewsArticleUpdateInput!, $where: NewsArticleWhereUniqueInput!) {
|
439
445
|
updateOneNewsArticle(data: $data, where: $where) {
|
@@ -1557,9 +1563,11 @@ export const NewsArticle = {
|
|
1557
1563
|
/**
|
1558
1564
|
* Upsert a single NewsArticle record.
|
1559
1565
|
* @param props - Properties to update.
|
1566
|
+
* @param globalClient - Apollo Client instance.
|
1560
1567
|
* @returns The updated NewsArticle or null.
|
1561
1568
|
*/
|
1562
|
-
async upsert(props) {
|
1569
|
+
async upsert(props, globalClient) {
|
1570
|
+
const client = globalClient || importedClient;
|
1563
1571
|
const UPSERT_ONE_NEWSARTICLE = gql `
|
1564
1572
|
mutation upsertOneNewsArticle($where: NewsArticleWhereUniqueInput!, $create: NewsArticleCreateInput!, $update: NewsArticleUpdateInput!) {
|
1565
1573
|
upsertOneNewsArticle(where: $where, create: $create, update: $update) {
|
@@ -2929,9 +2937,11 @@ export const NewsArticle = {
|
|
2929
2937
|
/**
|
2930
2938
|
* Update multiple NewsArticle records.
|
2931
2939
|
* @param props - Array of NewsArticle objects for the updated records.
|
2940
|
+
* @param globalClient - Apollo Client instance.
|
2932
2941
|
* @returns The count of created records or null.
|
2933
2942
|
*/
|
2934
|
-
async updateMany(props) {
|
2943
|
+
async updateMany(props, globalClient) {
|
2944
|
+
const client = globalClient || importedClient;
|
2935
2945
|
const UPDATE_MANY_NEWSARTICLE = gql `
|
2936
2946
|
mutation updateManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
2937
2947
|
updateManyNewsArticle(data: $data) {
|
@@ -4055,9 +4065,11 @@ export const NewsArticle = {
|
|
4055
4065
|
/**
|
4056
4066
|
* Delete a single NewsArticle record.
|
4057
4067
|
* @param props - Properties to update.
|
4068
|
+
* @param globalClient - Apollo Client instance.
|
4058
4069
|
* @returns The deleted NewsArticle or null.
|
4059
4070
|
*/
|
4060
|
-
async delete(props) {
|
4071
|
+
async delete(props, globalClient) {
|
4072
|
+
const client = globalClient || importedClient;
|
4061
4073
|
const DELETE_ONE_NEWSARTICLE = gql `
|
4062
4074
|
mutation deleteOneNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
4063
4075
|
deleteOneNewsArticle(where: $where) {
|
@@ -4089,9 +4101,11 @@ export const NewsArticle = {
|
|
4089
4101
|
/**
|
4090
4102
|
* Retrieve a single NewsArticle record by ID.
|
4091
4103
|
* @param props - Properties to update.
|
4104
|
+
* @param globalClient - Apollo Client instance.
|
4092
4105
|
* @returns The retrieved NewsArticle or null.
|
4093
4106
|
*/
|
4094
|
-
async get(props) {
|
4107
|
+
async get(props, globalClient) {
|
4108
|
+
const client = globalClient || importedClient;
|
4095
4109
|
const GET_NEWSARTICLE = gql `
|
4096
4110
|
query getNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
4097
4111
|
getNewsArticle(where: $where) {
|
@@ -4126,9 +4140,11 @@ export const NewsArticle = {
|
|
4126
4140
|
},
|
4127
4141
|
/**
|
4128
4142
|
* Retrieve all NewsArticles records.
|
4143
|
+
* @param globalClient - Apollo Client instance.
|
4129
4144
|
* @returns An array of NewsArticle records or null.
|
4130
4145
|
*/
|
4131
|
-
async getAll() {
|
4146
|
+
async getAll(globalClient) {
|
4147
|
+
const client = globalClient || importedClient;
|
4132
4148
|
const GET_ALL_NEWSARTICLE = gql `
|
4133
4149
|
query getAllNewsArticle {
|
4134
4150
|
newsArticles {
|
@@ -4154,9 +4170,11 @@ export const NewsArticle = {
|
|
4154
4170
|
/**
|
4155
4171
|
* Find multiple NewsArticle records based on conditions.
|
4156
4172
|
* @param props - Conditions to find records.
|
4173
|
+
* @param globalClient - Apollo Client instance.
|
4157
4174
|
* @returns An array of found NewsArticle records or null.
|
4158
4175
|
*/
|
4159
|
-
async findMany(props) {
|
4176
|
+
async findMany(props, globalClient) {
|
4177
|
+
const client = globalClient || importedClient;
|
4160
4178
|
const FIND_MANY_NEWSARTICLE = gql `
|
4161
4179
|
query findManyNewsArticle($where: NewsArticleWhereInput!) {
|
4162
4180
|
newsArticles(where: $where) {
|
@@ -1,61 +1,71 @@
|
|
1
1
|
import { NewsArticleAssetSentiment as NewsArticleAssetSentimentType } from './generated/typegraphql-prisma/models/NewsArticleAssetSentiment';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const NewsArticleAssetSentiment: {
|
3
4
|
/**
|
4
5
|
* Create a new NewsArticleAssetSentiment record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created NewsArticleAssetSentiment or null.
|
7
9
|
*/
|
8
|
-
create(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
|
10
|
+
create(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
|
9
11
|
/**
|
10
12
|
* Create multiple NewsArticleAssetSentiment records.
|
11
13
|
* @param props - Array of NewsArticleAssetSentiment 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: NewsArticleAssetSentimentType[]): Promise<{
|
17
|
+
createMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single NewsArticleAssetSentiment record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated NewsArticleAssetSentiment or null.
|
21
25
|
*/
|
22
|
-
update(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
|
26
|
+
update(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single NewsArticleAssetSentiment record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated NewsArticleAssetSentiment or null.
|
27
32
|
*/
|
28
|
-
upsert(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
|
33
|
+
upsert(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
|
29
34
|
/**
|
30
35
|
* Update multiple NewsArticleAssetSentiment records.
|
31
36
|
* @param props - Array of NewsArticleAssetSentiment 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: NewsArticleAssetSentimentType[]): Promise<{
|
40
|
+
updateMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single NewsArticleAssetSentiment record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted NewsArticleAssetSentiment or null.
|
41
48
|
*/
|
42
|
-
delete(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
|
49
|
+
delete(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single NewsArticleAssetSentiment record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved NewsArticleAssetSentiment or null.
|
47
55
|
*/
|
48
|
-
get(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType | null>;
|
56
|
+
get(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all NewsArticleAssetSentiments records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of NewsArticleAssetSentiment records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<NewsArticleAssetSentimentType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple NewsArticleAssetSentiment 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 NewsArticleAssetSentiment records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType[] | null>;
|
69
|
+
findMany(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../src/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;
|
1
|
+
{"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../src/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;AAC7I,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAkG9D,eAAO,MAAM,yBAAyB;IAEpC;;;;;OAKG;kBAEiB,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA+iB9H;;;;;OAKG;sBACqB,6BAA6B,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAsC7H;;;;;OAKG;kBACiB,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA+jE5H;;;;;OAKG;kBACiB,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA2kF5H;;;;;OAKG;sBACqB,6BAA6B,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAkkE7H;;;;;OAKG;kBACiB,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAiC5H;;;;;OAKG;eACc,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAoChI;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,EAAE,GAAG,IAAI,CAAC;IAyB/F;;;;;OAKG;oBACmB,6BAA6B,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,6BAA6B,EAAE,GAAG,IAAI,CAAC;CA4CxI,CAAC"}
|