adaptic-backend 1.0.14 → 1.0.16
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/AIRecommendation.d.ts +2 -3
- package/AIRecommendation.js +20 -10
- package/Account.d.ts +2 -3
- package/Account.js +6 -7
- package/Alert.d.ts +2 -3
- package/Alert.js +15 -7
- package/Asset.d.ts +2 -3
- package/Asset.js +19 -10
- package/Authenticator.d.ts +2 -3
- package/Authenticator.js +6 -7
- package/Customer.d.ts +2 -3
- package/Customer.js +6 -7
- package/EconomicEvent.d.ts +2 -3
- package/EconomicEvent.js +6 -7
- package/EnvironmentVariable.d.ts +2 -3
- package/EnvironmentVariable.js +15 -7
- package/Holding.d.ts +2 -3
- package/Holding.js +20 -10
- package/News.d.ts +2 -3
- package/News.js +20 -13
- package/NewsAssetSentiment.d.ts +2 -3
- package/NewsAssetSentiment.js +15 -10
- package/Order.d.ts +2 -3
- package/Order.js +20 -10
- package/PerformanceMetric.d.ts +2 -3
- package/PerformanceMetric.js +15 -7
- package/RiskAllocation.d.ts +2 -3
- package/RiskAllocation.js +15 -7
- package/Session.d.ts +2 -3
- package/Session.js +6 -7
- package/Trade.d.ts +2 -3
- package/Trade.js +20 -10
- package/TradeStep.d.ts +2 -3
- package/TradeStep.js +13 -13
- package/TradingAccount.d.ts +2 -3
- package/TradingAccount.js +40 -31
- package/User.d.ts +2 -3
- package/User.js +36 -25
- package/VerificationToken.d.ts +2 -3
- package/VerificationToken.js +6 -7
- package/generated/typegraphql-prisma/enhance.js +2 -2
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +1 -2
- package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js +6 -7
- package/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js +6 -6
- package/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
- package/package.json +1 -1
- package/server/AIRecommendation.d.ts +2 -3
- package/server/AIRecommendation.d.ts.map +1 -1
- package/server/AIRecommendation.js.map +1 -1
- package/server/AIRecommendation.mjs +20 -10
- package/server/Account.d.ts +2 -3
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +6 -7
- package/server/Alert.d.ts +2 -3
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +15 -7
- package/server/Asset.d.ts +2 -3
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +19 -10
- package/server/Authenticator.d.ts +2 -3
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +6 -7
- package/server/Customer.d.ts +2 -3
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +6 -7
- package/server/EconomicEvent.d.ts +2 -3
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +6 -7
- package/server/EnvironmentVariable.d.ts +2 -3
- package/server/EnvironmentVariable.d.ts.map +1 -1
- package/server/EnvironmentVariable.js.map +1 -1
- package/server/EnvironmentVariable.mjs +15 -7
- package/server/Holding.d.ts +2 -3
- package/server/Holding.d.ts.map +1 -1
- package/server/Holding.js.map +1 -1
- package/server/Holding.mjs +20 -10
- package/server/News.d.ts +2 -3
- package/server/News.d.ts.map +1 -1
- package/server/News.js.map +1 -1
- package/server/News.mjs +20 -13
- package/server/NewsAssetSentiment.d.ts +2 -3
- package/server/NewsAssetSentiment.d.ts.map +1 -1
- package/server/NewsAssetSentiment.js.map +1 -1
- package/server/NewsAssetSentiment.mjs +15 -10
- package/server/Order.d.ts +2 -3
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +20 -10
- package/server/PerformanceMetric.d.ts +2 -3
- package/server/PerformanceMetric.d.ts.map +1 -1
- package/server/PerformanceMetric.js.map +1 -1
- package/server/PerformanceMetric.mjs +15 -7
- package/server/RiskAllocation.d.ts +2 -3
- package/server/RiskAllocation.d.ts.map +1 -1
- package/server/RiskAllocation.js.map +1 -1
- package/server/RiskAllocation.mjs +15 -7
- package/server/Session.d.ts +2 -3
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +6 -7
- package/server/Trade.d.ts +2 -3
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +20 -10
- package/server/TradeStep.d.ts +2 -3
- package/server/TradeStep.d.ts.map +1 -1
- package/server/TradeStep.js.map +1 -1
- package/server/TradeStep.mjs +13 -13
- package/server/TradingAccount.d.ts +2 -3
- package/server/TradingAccount.d.ts.map +1 -1
- package/server/TradingAccount.js.map +1 -1
- package/server/TradingAccount.mjs +40 -31
- package/server/User.d.ts +2 -3
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +36 -25
- package/server/VerificationToken.d.ts +2 -3
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +6 -7
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +2 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts +1 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AssetWhereUniqueInput.mjs +7 -8
- package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NewsWhereUniqueInput.mjs +7 -7
package/EconomicEvent.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const EconomicEvent: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single EconomicEvent record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated EconomicEvent or null.
|
|
@@ -30,14 +29,14 @@ export declare const EconomicEvent: {
|
|
|
30
29
|
update(props: EconomicEventType, client: ApolloClient<NormalizedCacheObject>): Promise<EconomicEventType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single EconomicEvent record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted EconomicEvent or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: EconomicEventType, client: ApolloClient<NormalizedCacheObject>): Promise<EconomicEventType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single EconomicEvent record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved EconomicEvent or null.
|
|
43
42
|
*/
|
package/EconomicEvent.js
CHANGED
|
@@ -92,7 +92,6 @@ exports.EconomicEvent = {
|
|
|
92
92
|
},
|
|
93
93
|
/**
|
|
94
94
|
* Update a single EconomicEvent record.
|
|
95
|
-
* @param id - Unique identifier of the record to update.
|
|
96
95
|
* @param props - Properties to update.
|
|
97
96
|
* @param client - Apollo Client instance.
|
|
98
97
|
* @returns The updated EconomicEvent or null.
|
|
@@ -145,7 +144,7 @@ exports.EconomicEvent = {
|
|
|
145
144
|
},
|
|
146
145
|
/**
|
|
147
146
|
* Delete a single EconomicEvent record.
|
|
148
|
-
* @param
|
|
147
|
+
* @param props - Properties to update.
|
|
149
148
|
* @param client - Apollo Client instance.
|
|
150
149
|
* @returns The deleted EconomicEvent or null.
|
|
151
150
|
*/
|
|
@@ -185,7 +184,7 @@ exports.EconomicEvent = {
|
|
|
185
184
|
},
|
|
186
185
|
/**
|
|
187
186
|
* Retrieve a single EconomicEvent record by ID.
|
|
188
|
-
* @param
|
|
187
|
+
* @param props - Properties to update.
|
|
189
188
|
* @param client - Apollo Client instance.
|
|
190
189
|
* @returns The retrieved EconomicEvent or null.
|
|
191
190
|
*/
|
|
@@ -233,7 +232,7 @@ exports.EconomicEvent = {
|
|
|
233
232
|
var _a, _b;
|
|
234
233
|
const GET_ALL_ECONOMICEVENT = (0, client_1.gql) `
|
|
235
234
|
query getAllEconomicEvent {
|
|
236
|
-
|
|
235
|
+
economicEvents {
|
|
237
236
|
id
|
|
238
237
|
title
|
|
239
238
|
description
|
|
@@ -247,7 +246,7 @@ exports.EconomicEvent = {
|
|
|
247
246
|
const response = await client.query({ query: GET_ALL_ECONOMICEVENT });
|
|
248
247
|
if (response.errors && response.errors.length > 0)
|
|
249
248
|
throw new Error(response.errors[0].message);
|
|
250
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
249
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.economicEvents) !== null && _b !== void 0 ? _b : null;
|
|
251
250
|
}
|
|
252
251
|
catch (error) {
|
|
253
252
|
console.error('Error in getAllEconomicEvent:', error);
|
|
@@ -263,7 +262,7 @@ exports.EconomicEvent = {
|
|
|
263
262
|
async findMany(props, client) {
|
|
264
263
|
const FIND_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
|
265
264
|
query findManyEconomicEvent($where: EconomicEventWhereInput!) {
|
|
266
|
-
|
|
265
|
+
economicEvents(where: $where) {
|
|
267
266
|
id
|
|
268
267
|
title
|
|
269
268
|
description
|
|
@@ -289,7 +288,7 @@ exports.EconomicEvent = {
|
|
|
289
288
|
if (response.errors && response.errors.length > 0)
|
|
290
289
|
throw new Error(response.errors[0].message);
|
|
291
290
|
if (response && response.data && response.data.EconomicEvents) {
|
|
292
|
-
return response.data.
|
|
291
|
+
return response.data.economicEvents;
|
|
293
292
|
}
|
|
294
293
|
else {
|
|
295
294
|
return [];
|
package/EnvironmentVariable.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const EnvironmentVariable: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single EnvironmentVariable record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated EnvironmentVariable or null.
|
|
@@ -30,14 +29,14 @@ export declare const EnvironmentVariable: {
|
|
|
30
29
|
update(props: EnvironmentVariableType, client: ApolloClient<NormalizedCacheObject>): Promise<EnvironmentVariableType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single EnvironmentVariable record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted EnvironmentVariable or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: EnvironmentVariableType, client: ApolloClient<NormalizedCacheObject>): Promise<EnvironmentVariableType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single EnvironmentVariable record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved EnvironmentVariable or null.
|
|
43
42
|
*/
|
package/EnvironmentVariable.js
CHANGED
|
@@ -468,7 +468,6 @@ exports.EnvironmentVariable = {
|
|
|
468
468
|
},
|
|
469
469
|
/**
|
|
470
470
|
* Update a single EnvironmentVariable record.
|
|
471
|
-
* @param id - Unique identifier of the record to update.
|
|
472
471
|
* @param props - Properties to update.
|
|
473
472
|
* @param client - Apollo Client instance.
|
|
474
473
|
* @returns The updated EnvironmentVariable or null.
|
|
@@ -743,6 +742,9 @@ exports.EnvironmentVariable = {
|
|
|
743
742
|
const variables = {
|
|
744
743
|
where: {
|
|
745
744
|
id: props.id !== undefined ? props.id : undefined,
|
|
745
|
+
key: props.key !== undefined ? {
|
|
746
|
+
equals: props.key
|
|
747
|
+
} : undefined,
|
|
746
748
|
},
|
|
747
749
|
data: {
|
|
748
750
|
description: props.description !== undefined ? {
|
|
@@ -1127,7 +1129,7 @@ exports.EnvironmentVariable = {
|
|
|
1127
1129
|
},
|
|
1128
1130
|
/**
|
|
1129
1131
|
* Delete a single EnvironmentVariable record.
|
|
1130
|
-
* @param
|
|
1132
|
+
* @param props - Properties to update.
|
|
1131
1133
|
* @param client - Apollo Client instance.
|
|
1132
1134
|
* @returns The deleted EnvironmentVariable or null.
|
|
1133
1135
|
*/
|
|
@@ -1421,7 +1423,7 @@ exports.EnvironmentVariable = {
|
|
|
1421
1423
|
},
|
|
1422
1424
|
/**
|
|
1423
1425
|
* Retrieve a single EnvironmentVariable record by ID.
|
|
1424
|
-
* @param
|
|
1426
|
+
* @param props - Properties to update.
|
|
1425
1427
|
* @param client - Apollo Client instance.
|
|
1426
1428
|
* @returns The retrieved EnvironmentVariable or null.
|
|
1427
1429
|
*/
|
|
@@ -1698,6 +1700,9 @@ exports.EnvironmentVariable = {
|
|
|
1698
1700
|
id: props.id !== undefined ? {
|
|
1699
1701
|
equals: props.id
|
|
1700
1702
|
} : undefined,
|
|
1703
|
+
key: props.key !== undefined ? {
|
|
1704
|
+
equals: props.key
|
|
1705
|
+
} : undefined,
|
|
1701
1706
|
},
|
|
1702
1707
|
};
|
|
1703
1708
|
try {
|
|
@@ -1720,7 +1725,7 @@ exports.EnvironmentVariable = {
|
|
|
1720
1725
|
var _a, _b;
|
|
1721
1726
|
const GET_ALL_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
1722
1727
|
query getAllEnvironmentVariable {
|
|
1723
|
-
|
|
1728
|
+
environmentVariables {
|
|
1724
1729
|
id
|
|
1725
1730
|
key
|
|
1726
1731
|
value
|
|
@@ -1988,7 +1993,7 @@ exports.EnvironmentVariable = {
|
|
|
1988
1993
|
const response = await client.query({ query: GET_ALL_ENVIRONMENTVARIABLE });
|
|
1989
1994
|
if (response.errors && response.errors.length > 0)
|
|
1990
1995
|
throw new Error(response.errors[0].message);
|
|
1991
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
1996
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.environmentVariables) !== null && _b !== void 0 ? _b : null;
|
|
1992
1997
|
}
|
|
1993
1998
|
catch (error) {
|
|
1994
1999
|
console.error('Error in getAllEnvironmentVariable:', error);
|
|
@@ -2004,7 +2009,7 @@ exports.EnvironmentVariable = {
|
|
|
2004
2009
|
async findMany(props, client) {
|
|
2005
2010
|
const FIND_MANY_ENVIRONMENTVARIABLE = (0, client_1.gql) `
|
|
2006
2011
|
query findManyEnvironmentVariable($where: EnvironmentVariableWhereInput!) {
|
|
2007
|
-
|
|
2012
|
+
environmentVariables(where: $where) {
|
|
2008
2013
|
id
|
|
2009
2014
|
key
|
|
2010
2015
|
value
|
|
@@ -2273,6 +2278,9 @@ exports.EnvironmentVariable = {
|
|
|
2273
2278
|
id: props.id !== undefined ? {
|
|
2274
2279
|
equals: props.id
|
|
2275
2280
|
} : undefined,
|
|
2281
|
+
key: props.key !== undefined ? {
|
|
2282
|
+
equals: props.key
|
|
2283
|
+
} : undefined,
|
|
2276
2284
|
},
|
|
2277
2285
|
};
|
|
2278
2286
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
@@ -2281,7 +2289,7 @@ exports.EnvironmentVariable = {
|
|
|
2281
2289
|
if (response.errors && response.errors.length > 0)
|
|
2282
2290
|
throw new Error(response.errors[0].message);
|
|
2283
2291
|
if (response && response.data && response.data.EnvironmentVariables) {
|
|
2284
|
-
return response.data.
|
|
2292
|
+
return response.data.environmentVariables;
|
|
2285
2293
|
}
|
|
2286
2294
|
else {
|
|
2287
2295
|
return [];
|
package/Holding.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Holding: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Holding record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated Holding or null.
|
|
@@ -30,14 +29,14 @@ export declare const Holding: {
|
|
|
30
29
|
update(props: HoldingType, client: ApolloClient<NormalizedCacheObject>): Promise<HoldingType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Holding record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Holding or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: HoldingType, client: ApolloClient<NormalizedCacheObject>): Promise<HoldingType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Holding record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Holding or null.
|
|
43
42
|
*/
|
package/Holding.js
CHANGED
|
@@ -427,6 +427,9 @@ exports.Holding = {
|
|
|
427
427
|
connectOrCreate: props.tradingAccount.environmentVariables.map((item) => ({
|
|
428
428
|
where: {
|
|
429
429
|
id: item.id !== undefined ? item.id : undefined,
|
|
430
|
+
key: item.key !== undefined ? {
|
|
431
|
+
equals: item.key
|
|
432
|
+
} : undefined,
|
|
430
433
|
},
|
|
431
434
|
create: {
|
|
432
435
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -442,9 +445,8 @@ exports.Holding = {
|
|
|
442
445
|
connectOrCreate: {
|
|
443
446
|
where: {
|
|
444
447
|
id: props.asset.id !== undefined ? props.asset.id : undefined,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
} : undefined,
|
|
448
|
+
symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
|
|
449
|
+
name: props.asset.name !== undefined ? props.asset.name : undefined,
|
|
448
450
|
},
|
|
449
451
|
create: {
|
|
450
452
|
symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
|
|
@@ -565,7 +567,6 @@ exports.Holding = {
|
|
|
565
567
|
},
|
|
566
568
|
/**
|
|
567
569
|
* Update a single Holding record.
|
|
568
|
-
* @param id - Unique identifier of the record to update.
|
|
569
570
|
* @param props - Properties to update.
|
|
570
571
|
* @param client - Apollo Client instance.
|
|
571
572
|
* @returns The updated Holding or null.
|
|
@@ -1099,6 +1100,9 @@ exports.Holding = {
|
|
|
1099
1100
|
upsert: props.tradingAccount.environmentVariables.map((item) => ({
|
|
1100
1101
|
where: {
|
|
1101
1102
|
id: item.id !== undefined ? item.id : undefined,
|
|
1103
|
+
key: item.key !== undefined ? {
|
|
1104
|
+
equals: item.key
|
|
1105
|
+
} : undefined,
|
|
1102
1106
|
},
|
|
1103
1107
|
update: {
|
|
1104
1108
|
key: item.key !== undefined ? {
|
|
@@ -1223,6 +1227,9 @@ exports.Holding = {
|
|
|
1223
1227
|
connectOrCreate: props.tradingAccount.environmentVariables.map((item) => ({
|
|
1224
1228
|
where: {
|
|
1225
1229
|
id: item.id !== undefined ? item.id : undefined,
|
|
1230
|
+
key: item.key !== undefined ? {
|
|
1231
|
+
equals: item.key
|
|
1232
|
+
} : undefined,
|
|
1226
1233
|
},
|
|
1227
1234
|
create: {
|
|
1228
1235
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -1240,6 +1247,9 @@ exports.Holding = {
|
|
|
1240
1247
|
id: props.asset.id !== undefined ? {
|
|
1241
1248
|
equals: props.asset.id
|
|
1242
1249
|
} : undefined,
|
|
1250
|
+
symbol: props.asset.symbol !== undefined ? {
|
|
1251
|
+
equals: props.asset.symbol
|
|
1252
|
+
} : undefined,
|
|
1243
1253
|
name: props.asset.name !== undefined ? {
|
|
1244
1254
|
equals: props.asset.name
|
|
1245
1255
|
} : undefined,
|
|
@@ -1447,7 +1457,7 @@ exports.Holding = {
|
|
|
1447
1457
|
},
|
|
1448
1458
|
/**
|
|
1449
1459
|
* Delete a single Holding record.
|
|
1450
|
-
* @param
|
|
1460
|
+
* @param props - Properties to update.
|
|
1451
1461
|
* @param client - Apollo Client instance.
|
|
1452
1462
|
* @returns The deleted Holding or null.
|
|
1453
1463
|
*/
|
|
@@ -1770,7 +1780,7 @@ exports.Holding = {
|
|
|
1770
1780
|
},
|
|
1771
1781
|
/**
|
|
1772
1782
|
* Retrieve a single Holding record by ID.
|
|
1773
|
-
* @param
|
|
1783
|
+
* @param props - Properties to update.
|
|
1774
1784
|
* @param client - Apollo Client instance.
|
|
1775
1785
|
* @returns The retrieved Holding or null.
|
|
1776
1786
|
*/
|
|
@@ -2098,7 +2108,7 @@ exports.Holding = {
|
|
|
2098
2108
|
var _a, _b;
|
|
2099
2109
|
const GET_ALL_HOLDING = (0, client_1.gql) `
|
|
2100
2110
|
query getAllHolding {
|
|
2101
|
-
|
|
2111
|
+
holdings {
|
|
2102
2112
|
id
|
|
2103
2113
|
tradingAccountId
|
|
2104
2114
|
assetId
|
|
@@ -2395,7 +2405,7 @@ exports.Holding = {
|
|
|
2395
2405
|
const response = await client.query({ query: GET_ALL_HOLDING });
|
|
2396
2406
|
if (response.errors && response.errors.length > 0)
|
|
2397
2407
|
throw new Error(response.errors[0].message);
|
|
2398
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2408
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.holdings) !== null && _b !== void 0 ? _b : null;
|
|
2399
2409
|
}
|
|
2400
2410
|
catch (error) {
|
|
2401
2411
|
console.error('Error in getAllHolding:', error);
|
|
@@ -2411,7 +2421,7 @@ exports.Holding = {
|
|
|
2411
2421
|
async findMany(props, client) {
|
|
2412
2422
|
const FIND_MANY_HOLDING = (0, client_1.gql) `
|
|
2413
2423
|
query findManyHolding($where: HoldingWhereInput!) {
|
|
2414
|
-
|
|
2424
|
+
holdings(where: $where) {
|
|
2415
2425
|
id
|
|
2416
2426
|
tradingAccountId
|
|
2417
2427
|
assetId
|
|
@@ -2717,7 +2727,7 @@ exports.Holding = {
|
|
|
2717
2727
|
if (response.errors && response.errors.length > 0)
|
|
2718
2728
|
throw new Error(response.errors[0].message);
|
|
2719
2729
|
if (response && response.data && response.data.Holdings) {
|
|
2720
|
-
return response.data.
|
|
2730
|
+
return response.data.holdings;
|
|
2721
2731
|
}
|
|
2722
2732
|
else {
|
|
2723
2733
|
return [];
|
package/News.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const News: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single News record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated News or null.
|
|
@@ -30,14 +29,14 @@ export declare const News: {
|
|
|
30
29
|
update(props: NewsType, client: ApolloClient<NormalizedCacheObject>): Promise<NewsType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single News record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted News or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: NewsType, client: ApolloClient<NormalizedCacheObject>): Promise<NewsType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single News record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved News or null.
|
|
43
42
|
*/
|
package/News.js
CHANGED
|
@@ -169,9 +169,8 @@ exports.News = {
|
|
|
169
169
|
connectOrCreate: {
|
|
170
170
|
where: {
|
|
171
171
|
id: item.asset.id !== undefined ? item.asset.id : undefined,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
} : undefined,
|
|
172
|
+
symbol: item.asset.symbol !== undefined ? item.asset.symbol : undefined,
|
|
173
|
+
name: item.asset.name !== undefined ? item.asset.name : undefined,
|
|
175
174
|
},
|
|
176
175
|
create: {
|
|
177
176
|
symbol: item.asset.symbol !== undefined ? item.asset.symbol : undefined,
|
|
@@ -252,7 +251,6 @@ exports.News = {
|
|
|
252
251
|
},
|
|
253
252
|
/**
|
|
254
253
|
* Update a single News record.
|
|
255
|
-
* @param id - Unique identifier of the record to update.
|
|
256
254
|
* @param props - Properties to update.
|
|
257
255
|
* @param client - Apollo Client instance.
|
|
258
256
|
* @returns The updated News or null.
|
|
@@ -387,6 +385,7 @@ exports.News = {
|
|
|
387
385
|
const variables = {
|
|
388
386
|
where: {
|
|
389
387
|
id: props.id !== undefined ? props.id : undefined,
|
|
388
|
+
url: props.url !== undefined ? props.url : undefined,
|
|
390
389
|
title: props.title !== undefined ? {
|
|
391
390
|
equals: props.title
|
|
392
391
|
} : undefined,
|
|
@@ -431,6 +430,9 @@ exports.News = {
|
|
|
431
430
|
id: item.asset.id !== undefined ? {
|
|
432
431
|
equals: item.asset.id
|
|
433
432
|
} : undefined,
|
|
433
|
+
symbol: item.asset.symbol !== undefined ? {
|
|
434
|
+
equals: item.asset.symbol
|
|
435
|
+
} : undefined,
|
|
434
436
|
name: item.asset.name !== undefined ? {
|
|
435
437
|
equals: item.asset.name
|
|
436
438
|
} : undefined,
|
|
@@ -466,9 +468,8 @@ exports.News = {
|
|
|
466
468
|
connectOrCreate: {
|
|
467
469
|
where: {
|
|
468
470
|
id: item.asset.id !== undefined ? item.asset.id : undefined,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
} : undefined,
|
|
471
|
+
symbol: item.asset.symbol !== undefined ? item.asset.symbol : undefined,
|
|
472
|
+
name: item.asset.name !== undefined ? item.asset.name : undefined,
|
|
472
473
|
},
|
|
473
474
|
create: {
|
|
474
475
|
symbol: item.asset.symbol !== undefined ? item.asset.symbol : undefined,
|
|
@@ -502,7 +503,7 @@ exports.News = {
|
|
|
502
503
|
},
|
|
503
504
|
/**
|
|
504
505
|
* Delete a single News record.
|
|
505
|
-
* @param
|
|
506
|
+
* @param props - Properties to update.
|
|
506
507
|
* @param client - Apollo Client instance.
|
|
507
508
|
* @returns The deleted News or null.
|
|
508
509
|
*/
|
|
@@ -656,7 +657,7 @@ exports.News = {
|
|
|
656
657
|
},
|
|
657
658
|
/**
|
|
658
659
|
* Retrieve a single News record by ID.
|
|
659
|
-
* @param
|
|
660
|
+
* @param props - Properties to update.
|
|
660
661
|
* @param client - Apollo Client instance.
|
|
661
662
|
* @returns The retrieved News or null.
|
|
662
663
|
*/
|
|
@@ -796,6 +797,9 @@ exports.News = {
|
|
|
796
797
|
title: props.title !== undefined ? {
|
|
797
798
|
equals: props.title
|
|
798
799
|
} : undefined,
|
|
800
|
+
url: props.url !== undefined ? {
|
|
801
|
+
equals: props.url
|
|
802
|
+
} : undefined,
|
|
799
803
|
},
|
|
800
804
|
};
|
|
801
805
|
try {
|
|
@@ -818,7 +822,7 @@ exports.News = {
|
|
|
818
822
|
var _a, _b;
|
|
819
823
|
const GET_ALL_NEWS = (0, client_1.gql) `
|
|
820
824
|
query getAllNews {
|
|
821
|
-
|
|
825
|
+
news {
|
|
822
826
|
id
|
|
823
827
|
title
|
|
824
828
|
content
|
|
@@ -946,7 +950,7 @@ exports.News = {
|
|
|
946
950
|
const response = await client.query({ query: GET_ALL_NEWS });
|
|
947
951
|
if (response.errors && response.errors.length > 0)
|
|
948
952
|
throw new Error(response.errors[0].message);
|
|
949
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
953
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.news) !== null && _b !== void 0 ? _b : null;
|
|
950
954
|
}
|
|
951
955
|
catch (error) {
|
|
952
956
|
console.error('Error in getAllNews:', error);
|
|
@@ -962,7 +966,7 @@ exports.News = {
|
|
|
962
966
|
async findMany(props, client) {
|
|
963
967
|
const FIND_MANY_NEWS = (0, client_1.gql) `
|
|
964
968
|
query findManyNews($where: NewsWhereInput!) {
|
|
965
|
-
|
|
969
|
+
news(where: $where) {
|
|
966
970
|
id
|
|
967
971
|
title
|
|
968
972
|
content
|
|
@@ -1094,6 +1098,9 @@ exports.News = {
|
|
|
1094
1098
|
title: props.title !== undefined ? {
|
|
1095
1099
|
equals: props.title
|
|
1096
1100
|
} : undefined,
|
|
1101
|
+
url: props.url !== undefined ? {
|
|
1102
|
+
equals: props.url
|
|
1103
|
+
} : undefined,
|
|
1097
1104
|
},
|
|
1098
1105
|
};
|
|
1099
1106
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
@@ -1102,7 +1109,7 @@ exports.News = {
|
|
|
1102
1109
|
if (response.errors && response.errors.length > 0)
|
|
1103
1110
|
throw new Error(response.errors[0].message);
|
|
1104
1111
|
if (response && response.data && response.data.News) {
|
|
1105
|
-
return response.data.
|
|
1112
|
+
return response.data.news;
|
|
1106
1113
|
}
|
|
1107
1114
|
else {
|
|
1108
1115
|
return [];
|
package/NewsAssetSentiment.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const NewsAssetSentiment: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single NewsAssetSentiment record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated NewsAssetSentiment or null.
|
|
@@ -30,14 +29,14 @@ export declare const NewsAssetSentiment: {
|
|
|
30
29
|
update(props: NewsAssetSentimentType, client: ApolloClient<NormalizedCacheObject>): Promise<NewsAssetSentimentType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single NewsAssetSentiment record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted NewsAssetSentiment or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: NewsAssetSentimentType, client: ApolloClient<NormalizedCacheObject>): Promise<NewsAssetSentimentType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single NewsAssetSentiment record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved NewsAssetSentiment or null.
|
|
43
42
|
*/
|
package/NewsAssetSentiment.js
CHANGED
|
@@ -247,6 +247,7 @@ exports.NewsAssetSentiment = {
|
|
|
247
247
|
connectOrCreate: {
|
|
248
248
|
where: {
|
|
249
249
|
id: props.news.id !== undefined ? props.news.id : undefined,
|
|
250
|
+
url: props.news.url !== undefined ? props.news.url : undefined,
|
|
250
251
|
title: props.news.title !== undefined ? {
|
|
251
252
|
equals: props.news.title
|
|
252
253
|
} : undefined,
|
|
@@ -272,9 +273,8 @@ exports.NewsAssetSentiment = {
|
|
|
272
273
|
connectOrCreate: {
|
|
273
274
|
where: {
|
|
274
275
|
id: props.asset.id !== undefined ? props.asset.id : undefined,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
} : undefined,
|
|
276
|
+
symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
|
|
277
|
+
name: props.asset.name !== undefined ? props.asset.name : undefined,
|
|
278
278
|
},
|
|
279
279
|
create: {
|
|
280
280
|
symbol: props.asset.symbol !== undefined ? props.asset.symbol : undefined,
|
|
@@ -395,7 +395,6 @@ exports.NewsAssetSentiment = {
|
|
|
395
395
|
},
|
|
396
396
|
/**
|
|
397
397
|
* Update a single NewsAssetSentiment record.
|
|
398
|
-
* @param id - Unique identifier of the record to update.
|
|
399
398
|
* @param props - Properties to update.
|
|
400
399
|
* @param client - Apollo Client instance.
|
|
401
400
|
* @returns The updated NewsAssetSentiment or null.
|
|
@@ -647,6 +646,9 @@ exports.NewsAssetSentiment = {
|
|
|
647
646
|
title: props.news.title !== undefined ? {
|
|
648
647
|
equals: props.news.title
|
|
649
648
|
} : undefined,
|
|
649
|
+
url: props.news.url !== undefined ? {
|
|
650
|
+
equals: props.news.url
|
|
651
|
+
} : undefined,
|
|
650
652
|
},
|
|
651
653
|
update: {
|
|
652
654
|
title: props.news.title !== undefined ? {
|
|
@@ -712,6 +714,9 @@ exports.NewsAssetSentiment = {
|
|
|
712
714
|
id: props.asset.id !== undefined ? {
|
|
713
715
|
equals: props.asset.id
|
|
714
716
|
} : undefined,
|
|
717
|
+
symbol: props.asset.symbol !== undefined ? {
|
|
718
|
+
equals: props.asset.symbol
|
|
719
|
+
} : undefined,
|
|
715
720
|
name: props.asset.name !== undefined ? {
|
|
716
721
|
equals: props.asset.name
|
|
717
722
|
} : undefined,
|
|
@@ -914,7 +919,7 @@ exports.NewsAssetSentiment = {
|
|
|
914
919
|
},
|
|
915
920
|
/**
|
|
916
921
|
* Delete a single NewsAssetSentiment record.
|
|
917
|
-
* @param
|
|
922
|
+
* @param props - Properties to update.
|
|
918
923
|
* @param client - Apollo Client instance.
|
|
919
924
|
* @returns The deleted NewsAssetSentiment or null.
|
|
920
925
|
*/
|
|
@@ -1165,7 +1170,7 @@ exports.NewsAssetSentiment = {
|
|
|
1165
1170
|
},
|
|
1166
1171
|
/**
|
|
1167
1172
|
* Retrieve a single NewsAssetSentiment record by ID.
|
|
1168
|
-
* @param
|
|
1173
|
+
* @param props - Properties to update.
|
|
1169
1174
|
* @param client - Apollo Client instance.
|
|
1170
1175
|
* @returns The retrieved NewsAssetSentiment or null.
|
|
1171
1176
|
*/
|
|
@@ -1421,7 +1426,7 @@ exports.NewsAssetSentiment = {
|
|
|
1421
1426
|
var _a, _b;
|
|
1422
1427
|
const GET_ALL_NEWSASSETSENTIMENT = (0, client_1.gql) `
|
|
1423
1428
|
query getAllNewsAssetSentiment {
|
|
1424
|
-
|
|
1429
|
+
newsAssetSentiments {
|
|
1425
1430
|
id
|
|
1426
1431
|
assetId
|
|
1427
1432
|
newsId
|
|
@@ -1646,7 +1651,7 @@ exports.NewsAssetSentiment = {
|
|
|
1646
1651
|
const response = await client.query({ query: GET_ALL_NEWSASSETSENTIMENT });
|
|
1647
1652
|
if (response.errors && response.errors.length > 0)
|
|
1648
1653
|
throw new Error(response.errors[0].message);
|
|
1649
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
1654
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsAssetSentiments) !== null && _b !== void 0 ? _b : null;
|
|
1650
1655
|
}
|
|
1651
1656
|
catch (error) {
|
|
1652
1657
|
console.error('Error in getAllNewsAssetSentiment:', error);
|
|
@@ -1662,7 +1667,7 @@ exports.NewsAssetSentiment = {
|
|
|
1662
1667
|
async findMany(props, client) {
|
|
1663
1668
|
const FIND_MANY_NEWSASSETSENTIMENT = (0, client_1.gql) `
|
|
1664
1669
|
query findManyNewsAssetSentiment($where: NewsAssetSentimentWhereInput!) {
|
|
1665
|
-
|
|
1670
|
+
newsAssetSentiments(where: $where) {
|
|
1666
1671
|
id
|
|
1667
1672
|
assetId
|
|
1668
1673
|
newsId
|
|
@@ -1896,7 +1901,7 @@ exports.NewsAssetSentiment = {
|
|
|
1896
1901
|
if (response.errors && response.errors.length > 0)
|
|
1897
1902
|
throw new Error(response.errors[0].message);
|
|
1898
1903
|
if (response && response.data && response.data.NewsAssetSentiments) {
|
|
1899
|
-
return response.data.
|
|
1904
|
+
return response.data.newsAssetSentiments;
|
|
1900
1905
|
}
|
|
1901
1906
|
else {
|
|
1902
1907
|
return [];
|
package/Order.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Order: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Order record.
|
|
25
|
-
* @param id - Unique identifier of the record to update.
|
|
26
25
|
* @param props - Properties to update.
|
|
27
26
|
* @param client - Apollo Client instance.
|
|
28
27
|
* @returns The updated Order or null.
|
|
@@ -30,14 +29,14 @@ export declare const Order: {
|
|
|
30
29
|
update(props: OrderType, client: ApolloClient<NormalizedCacheObject>): Promise<OrderType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Order record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Order or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: OrderType, client: ApolloClient<NormalizedCacheObject>): Promise<OrderType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Order record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Order or null.
|
|
43
42
|
*/
|