adaptic-backend 1.0.14 → 1.0.15
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 +15 -7
- 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 +11 -7
- 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 +15 -7
- package/News.d.ts +2 -3
- package/News.js +13 -7
- package/NewsAssetSentiment.d.ts +2 -3
- package/NewsAssetSentiment.js +10 -7
- package/Order.d.ts +2 -3
- package/Order.js +15 -7
- 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 +15 -7
- package/TradeStep.d.ts +2 -3
- package/TradeStep.js +6 -7
- package/TradingAccount.d.ts +2 -3
- package/TradingAccount.js +12 -7
- package/User.d.ts +2 -3
- package/User.js +15 -7
- package/VerificationToken.d.ts +2 -3
- package/VerificationToken.js +6 -7
- package/generated/typegraphql-prisma/enhance.js +1 -1
- package/generated/typegraphql-prisma/enhance.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 +15 -7
- 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 +11 -7
- 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 +15 -7
- 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 +13 -7
- 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 +10 -7
- 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 +15 -7
- 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 +15 -7
- 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 +6 -7
- 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 +12 -7
- 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 +15 -7
- 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 +1 -1
- 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.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,
|
|
@@ -565,7 +568,6 @@ exports.Holding = {
|
|
|
565
568
|
},
|
|
566
569
|
/**
|
|
567
570
|
* Update a single Holding record.
|
|
568
|
-
* @param id - Unique identifier of the record to update.
|
|
569
571
|
* @param props - Properties to update.
|
|
570
572
|
* @param client - Apollo Client instance.
|
|
571
573
|
* @returns The updated Holding or null.
|
|
@@ -1099,6 +1101,9 @@ exports.Holding = {
|
|
|
1099
1101
|
upsert: props.tradingAccount.environmentVariables.map((item) => ({
|
|
1100
1102
|
where: {
|
|
1101
1103
|
id: item.id !== undefined ? item.id : undefined,
|
|
1104
|
+
key: item.key !== undefined ? {
|
|
1105
|
+
equals: item.key
|
|
1106
|
+
} : undefined,
|
|
1102
1107
|
},
|
|
1103
1108
|
update: {
|
|
1104
1109
|
key: item.key !== undefined ? {
|
|
@@ -1223,6 +1228,9 @@ exports.Holding = {
|
|
|
1223
1228
|
connectOrCreate: props.tradingAccount.environmentVariables.map((item) => ({
|
|
1224
1229
|
where: {
|
|
1225
1230
|
id: item.id !== undefined ? item.id : undefined,
|
|
1231
|
+
key: item.key !== undefined ? {
|
|
1232
|
+
equals: item.key
|
|
1233
|
+
} : undefined,
|
|
1226
1234
|
},
|
|
1227
1235
|
create: {
|
|
1228
1236
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -1447,7 +1455,7 @@ exports.Holding = {
|
|
|
1447
1455
|
},
|
|
1448
1456
|
/**
|
|
1449
1457
|
* Delete a single Holding record.
|
|
1450
|
-
* @param
|
|
1458
|
+
* @param props - Properties to update.
|
|
1451
1459
|
* @param client - Apollo Client instance.
|
|
1452
1460
|
* @returns The deleted Holding or null.
|
|
1453
1461
|
*/
|
|
@@ -1770,7 +1778,7 @@ exports.Holding = {
|
|
|
1770
1778
|
},
|
|
1771
1779
|
/**
|
|
1772
1780
|
* Retrieve a single Holding record by ID.
|
|
1773
|
-
* @param
|
|
1781
|
+
* @param props - Properties to update.
|
|
1774
1782
|
* @param client - Apollo Client instance.
|
|
1775
1783
|
* @returns The retrieved Holding or null.
|
|
1776
1784
|
*/
|
|
@@ -2098,7 +2106,7 @@ exports.Holding = {
|
|
|
2098
2106
|
var _a, _b;
|
|
2099
2107
|
const GET_ALL_HOLDING = (0, client_1.gql) `
|
|
2100
2108
|
query getAllHolding {
|
|
2101
|
-
|
|
2109
|
+
holdings {
|
|
2102
2110
|
id
|
|
2103
2111
|
tradingAccountId
|
|
2104
2112
|
assetId
|
|
@@ -2395,7 +2403,7 @@ exports.Holding = {
|
|
|
2395
2403
|
const response = await client.query({ query: GET_ALL_HOLDING });
|
|
2396
2404
|
if (response.errors && response.errors.length > 0)
|
|
2397
2405
|
throw new Error(response.errors[0].message);
|
|
2398
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2406
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.holdings) !== null && _b !== void 0 ? _b : null;
|
|
2399
2407
|
}
|
|
2400
2408
|
catch (error) {
|
|
2401
2409
|
console.error('Error in getAllHolding:', error);
|
|
@@ -2411,7 +2419,7 @@ exports.Holding = {
|
|
|
2411
2419
|
async findMany(props, client) {
|
|
2412
2420
|
const FIND_MANY_HOLDING = (0, client_1.gql) `
|
|
2413
2421
|
query findManyHolding($where: HoldingWhereInput!) {
|
|
2414
|
-
|
|
2422
|
+
holdings(where: $where) {
|
|
2415
2423
|
id
|
|
2416
2424
|
tradingAccountId
|
|
2417
2425
|
assetId
|
|
@@ -2717,7 +2725,7 @@ exports.Holding = {
|
|
|
2717
2725
|
if (response.errors && response.errors.length > 0)
|
|
2718
2726
|
throw new Error(response.errors[0].message);
|
|
2719
2727
|
if (response && response.data && response.data.Holdings) {
|
|
2720
|
-
return response.data.
|
|
2728
|
+
return response.data.holdings;
|
|
2721
2729
|
}
|
|
2722
2730
|
else {
|
|
2723
2731
|
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
|
@@ -252,7 +252,6 @@ exports.News = {
|
|
|
252
252
|
},
|
|
253
253
|
/**
|
|
254
254
|
* Update a single News record.
|
|
255
|
-
* @param id - Unique identifier of the record to update.
|
|
256
255
|
* @param props - Properties to update.
|
|
257
256
|
* @param client - Apollo Client instance.
|
|
258
257
|
* @returns The updated News or null.
|
|
@@ -387,6 +386,7 @@ exports.News = {
|
|
|
387
386
|
const variables = {
|
|
388
387
|
where: {
|
|
389
388
|
id: props.id !== undefined ? props.id : undefined,
|
|
389
|
+
url: props.url !== undefined ? props.url : undefined,
|
|
390
390
|
title: props.title !== undefined ? {
|
|
391
391
|
equals: props.title
|
|
392
392
|
} : undefined,
|
|
@@ -502,7 +502,7 @@ exports.News = {
|
|
|
502
502
|
},
|
|
503
503
|
/**
|
|
504
504
|
* Delete a single News record.
|
|
505
|
-
* @param
|
|
505
|
+
* @param props - Properties to update.
|
|
506
506
|
* @param client - Apollo Client instance.
|
|
507
507
|
* @returns The deleted News or null.
|
|
508
508
|
*/
|
|
@@ -656,7 +656,7 @@ exports.News = {
|
|
|
656
656
|
},
|
|
657
657
|
/**
|
|
658
658
|
* Retrieve a single News record by ID.
|
|
659
|
-
* @param
|
|
659
|
+
* @param props - Properties to update.
|
|
660
660
|
* @param client - Apollo Client instance.
|
|
661
661
|
* @returns The retrieved News or null.
|
|
662
662
|
*/
|
|
@@ -796,6 +796,9 @@ exports.News = {
|
|
|
796
796
|
title: props.title !== undefined ? {
|
|
797
797
|
equals: props.title
|
|
798
798
|
} : undefined,
|
|
799
|
+
url: props.url !== undefined ? {
|
|
800
|
+
equals: props.url
|
|
801
|
+
} : undefined,
|
|
799
802
|
},
|
|
800
803
|
};
|
|
801
804
|
try {
|
|
@@ -818,7 +821,7 @@ exports.News = {
|
|
|
818
821
|
var _a, _b;
|
|
819
822
|
const GET_ALL_NEWS = (0, client_1.gql) `
|
|
820
823
|
query getAllNews {
|
|
821
|
-
|
|
824
|
+
news {
|
|
822
825
|
id
|
|
823
826
|
title
|
|
824
827
|
content
|
|
@@ -946,7 +949,7 @@ exports.News = {
|
|
|
946
949
|
const response = await client.query({ query: GET_ALL_NEWS });
|
|
947
950
|
if (response.errors && response.errors.length > 0)
|
|
948
951
|
throw new Error(response.errors[0].message);
|
|
949
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
952
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.news) !== null && _b !== void 0 ? _b : null;
|
|
950
953
|
}
|
|
951
954
|
catch (error) {
|
|
952
955
|
console.error('Error in getAllNews:', error);
|
|
@@ -962,7 +965,7 @@ exports.News = {
|
|
|
962
965
|
async findMany(props, client) {
|
|
963
966
|
const FIND_MANY_NEWS = (0, client_1.gql) `
|
|
964
967
|
query findManyNews($where: NewsWhereInput!) {
|
|
965
|
-
|
|
968
|
+
news(where: $where) {
|
|
966
969
|
id
|
|
967
970
|
title
|
|
968
971
|
content
|
|
@@ -1094,6 +1097,9 @@ exports.News = {
|
|
|
1094
1097
|
title: props.title !== undefined ? {
|
|
1095
1098
|
equals: props.title
|
|
1096
1099
|
} : undefined,
|
|
1100
|
+
url: props.url !== undefined ? {
|
|
1101
|
+
equals: props.url
|
|
1102
|
+
} : undefined,
|
|
1097
1103
|
},
|
|
1098
1104
|
};
|
|
1099
1105
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
|
@@ -1102,7 +1108,7 @@ exports.News = {
|
|
|
1102
1108
|
if (response.errors && response.errors.length > 0)
|
|
1103
1109
|
throw new Error(response.errors[0].message);
|
|
1104
1110
|
if (response && response.data && response.data.News) {
|
|
1105
|
-
return response.data.
|
|
1111
|
+
return response.data.news;
|
|
1106
1112
|
}
|
|
1107
1113
|
else {
|
|
1108
1114
|
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,
|
|
@@ -395,7 +396,6 @@ exports.NewsAssetSentiment = {
|
|
|
395
396
|
},
|
|
396
397
|
/**
|
|
397
398
|
* Update a single NewsAssetSentiment record.
|
|
398
|
-
* @param id - Unique identifier of the record to update.
|
|
399
399
|
* @param props - Properties to update.
|
|
400
400
|
* @param client - Apollo Client instance.
|
|
401
401
|
* @returns The updated NewsAssetSentiment or null.
|
|
@@ -647,6 +647,9 @@ exports.NewsAssetSentiment = {
|
|
|
647
647
|
title: props.news.title !== undefined ? {
|
|
648
648
|
equals: props.news.title
|
|
649
649
|
} : undefined,
|
|
650
|
+
url: props.news.url !== undefined ? {
|
|
651
|
+
equals: props.news.url
|
|
652
|
+
} : undefined,
|
|
650
653
|
},
|
|
651
654
|
update: {
|
|
652
655
|
title: props.news.title !== undefined ? {
|
|
@@ -914,7 +917,7 @@ exports.NewsAssetSentiment = {
|
|
|
914
917
|
},
|
|
915
918
|
/**
|
|
916
919
|
* Delete a single NewsAssetSentiment record.
|
|
917
|
-
* @param
|
|
920
|
+
* @param props - Properties to update.
|
|
918
921
|
* @param client - Apollo Client instance.
|
|
919
922
|
* @returns The deleted NewsAssetSentiment or null.
|
|
920
923
|
*/
|
|
@@ -1165,7 +1168,7 @@ exports.NewsAssetSentiment = {
|
|
|
1165
1168
|
},
|
|
1166
1169
|
/**
|
|
1167
1170
|
* Retrieve a single NewsAssetSentiment record by ID.
|
|
1168
|
-
* @param
|
|
1171
|
+
* @param props - Properties to update.
|
|
1169
1172
|
* @param client - Apollo Client instance.
|
|
1170
1173
|
* @returns The retrieved NewsAssetSentiment or null.
|
|
1171
1174
|
*/
|
|
@@ -1421,7 +1424,7 @@ exports.NewsAssetSentiment = {
|
|
|
1421
1424
|
var _a, _b;
|
|
1422
1425
|
const GET_ALL_NEWSASSETSENTIMENT = (0, client_1.gql) `
|
|
1423
1426
|
query getAllNewsAssetSentiment {
|
|
1424
|
-
|
|
1427
|
+
newsAssetSentiments {
|
|
1425
1428
|
id
|
|
1426
1429
|
assetId
|
|
1427
1430
|
newsId
|
|
@@ -1646,7 +1649,7 @@ exports.NewsAssetSentiment = {
|
|
|
1646
1649
|
const response = await client.query({ query: GET_ALL_NEWSASSETSENTIMENT });
|
|
1647
1650
|
if (response.errors && response.errors.length > 0)
|
|
1648
1651
|
throw new Error(response.errors[0].message);
|
|
1649
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
1652
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsAssetSentiments) !== null && _b !== void 0 ? _b : null;
|
|
1650
1653
|
}
|
|
1651
1654
|
catch (error) {
|
|
1652
1655
|
console.error('Error in getAllNewsAssetSentiment:', error);
|
|
@@ -1662,7 +1665,7 @@ exports.NewsAssetSentiment = {
|
|
|
1662
1665
|
async findMany(props, client) {
|
|
1663
1666
|
const FIND_MANY_NEWSASSETSENTIMENT = (0, client_1.gql) `
|
|
1664
1667
|
query findManyNewsAssetSentiment($where: NewsAssetSentimentWhereInput!) {
|
|
1665
|
-
|
|
1668
|
+
newsAssetSentiments(where: $where) {
|
|
1666
1669
|
id
|
|
1667
1670
|
assetId
|
|
1668
1671
|
newsId
|
|
@@ -1896,7 +1899,7 @@ exports.NewsAssetSentiment = {
|
|
|
1896
1899
|
if (response.errors && response.errors.length > 0)
|
|
1897
1900
|
throw new Error(response.errors[0].message);
|
|
1898
1901
|
if (response && response.data && response.data.NewsAssetSentiments) {
|
|
1899
|
-
return response.data.
|
|
1902
|
+
return response.data.newsAssetSentiments;
|
|
1900
1903
|
}
|
|
1901
1904
|
else {
|
|
1902
1905
|
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
|
*/
|
package/Order.js
CHANGED
|
@@ -555,6 +555,9 @@ exports.Order = {
|
|
|
555
555
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
556
556
|
where: {
|
|
557
557
|
id: item.id !== undefined ? item.id : undefined,
|
|
558
|
+
key: item.key !== undefined ? {
|
|
559
|
+
equals: item.key
|
|
560
|
+
} : undefined,
|
|
558
561
|
},
|
|
559
562
|
create: {
|
|
560
563
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -694,7 +697,6 @@ exports.Order = {
|
|
|
694
697
|
},
|
|
695
698
|
/**
|
|
696
699
|
* Update a single Order record.
|
|
697
|
-
* @param id - Unique identifier of the record to update.
|
|
698
700
|
* @param props - Properties to update.
|
|
699
701
|
* @param client - Apollo Client instance.
|
|
700
702
|
* @returns The updated Order or null.
|
|
@@ -1665,6 +1667,9 @@ exports.Order = {
|
|
|
1665
1667
|
upsert: props.portfolio.environmentVariables.map((item) => ({
|
|
1666
1668
|
where: {
|
|
1667
1669
|
id: item.id !== undefined ? item.id : undefined,
|
|
1670
|
+
key: item.key !== undefined ? {
|
|
1671
|
+
equals: item.key
|
|
1672
|
+
} : undefined,
|
|
1668
1673
|
},
|
|
1669
1674
|
update: {
|
|
1670
1675
|
key: item.key !== undefined ? {
|
|
@@ -1786,6 +1791,9 @@ exports.Order = {
|
|
|
1786
1791
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
1787
1792
|
where: {
|
|
1788
1793
|
id: item.id !== undefined ? item.id : undefined,
|
|
1794
|
+
key: item.key !== undefined ? {
|
|
1795
|
+
equals: item.key
|
|
1796
|
+
} : undefined,
|
|
1789
1797
|
},
|
|
1790
1798
|
create: {
|
|
1791
1799
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -1995,7 +2003,7 @@ exports.Order = {
|
|
|
1995
2003
|
},
|
|
1996
2004
|
/**
|
|
1997
2005
|
* Delete a single Order record.
|
|
1998
|
-
* @param
|
|
2006
|
+
* @param props - Properties to update.
|
|
1999
2007
|
* @param client - Apollo Client instance.
|
|
2000
2008
|
* @returns The deleted Order or null.
|
|
2001
2009
|
*/
|
|
@@ -2287,7 +2295,7 @@ exports.Order = {
|
|
|
2287
2295
|
},
|
|
2288
2296
|
/**
|
|
2289
2297
|
* Retrieve a single Order record by ID.
|
|
2290
|
-
* @param
|
|
2298
|
+
* @param props - Properties to update.
|
|
2291
2299
|
* @param client - Apollo Client instance.
|
|
2292
2300
|
* @returns The retrieved Order or null.
|
|
2293
2301
|
*/
|
|
@@ -2584,7 +2592,7 @@ exports.Order = {
|
|
|
2584
2592
|
var _a, _b;
|
|
2585
2593
|
const GET_ALL_ORDER = (0, client_1.gql) `
|
|
2586
2594
|
query getAllOrder {
|
|
2587
|
-
|
|
2595
|
+
orders {
|
|
2588
2596
|
id
|
|
2589
2597
|
userId
|
|
2590
2598
|
portfolioId
|
|
@@ -2850,7 +2858,7 @@ exports.Order = {
|
|
|
2850
2858
|
const response = await client.query({ query: GET_ALL_ORDER });
|
|
2851
2859
|
if (response.errors && response.errors.length > 0)
|
|
2852
2860
|
throw new Error(response.errors[0].message);
|
|
2853
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2861
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.orders) !== null && _b !== void 0 ? _b : null;
|
|
2854
2862
|
}
|
|
2855
2863
|
catch (error) {
|
|
2856
2864
|
console.error('Error in getAllOrder:', error);
|
|
@@ -2866,7 +2874,7 @@ exports.Order = {
|
|
|
2866
2874
|
async findMany(props, client) {
|
|
2867
2875
|
const FIND_MANY_ORDER = (0, client_1.gql) `
|
|
2868
2876
|
query findManyOrder($where: OrderWhereInput!) {
|
|
2869
|
-
|
|
2877
|
+
orders(where: $where) {
|
|
2870
2878
|
id
|
|
2871
2879
|
userId
|
|
2872
2880
|
portfolioId
|
|
@@ -3141,7 +3149,7 @@ exports.Order = {
|
|
|
3141
3149
|
if (response.errors && response.errors.length > 0)
|
|
3142
3150
|
throw new Error(response.errors[0].message);
|
|
3143
3151
|
if (response && response.data && response.data.Orders) {
|
|
3144
|
-
return response.data.
|
|
3152
|
+
return response.data.orders;
|
|
3145
3153
|
}
|
|
3146
3154
|
else {
|
|
3147
3155
|
return [];
|
package/PerformanceMetric.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const PerformanceMetric: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single PerformanceMetric 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 PerformanceMetric or null.
|
|
@@ -30,14 +29,14 @@ export declare const PerformanceMetric: {
|
|
|
30
29
|
update(props: PerformanceMetricType, client: ApolloClient<NormalizedCacheObject>): Promise<PerformanceMetricType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single PerformanceMetric record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted PerformanceMetric or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: PerformanceMetricType, client: ApolloClient<NormalizedCacheObject>): Promise<PerformanceMetricType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single PerformanceMetric record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved PerformanceMetric or null.
|
|
43
42
|
*/
|