adaptic-backend 1.0.10 → 1.0.11
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.js +8 -6
- package/Account.js +8 -6
- package/Alert.js +8 -6
- package/Asset.js +8 -6
- package/Authenticator.js +8 -6
- package/Customer.js +8 -6
- package/EconomicEvent.js +8 -6
- package/EnvironmentVariable.js +8 -6
- package/Holding.js +8 -6
- package/News.js +8 -6
- package/Order.js +8 -6
- package/PerformanceMetric.js +8 -6
- package/Portfolio.js +11 -7
- package/PortfolioAllocation.js +8 -6
- package/PortfolioUser.js +8 -6
- package/RiskAllocation.js +8 -6
- package/Session.js +8 -6
- package/Trade.js +8 -6
- package/TradeStep.js +8 -6
- package/User.js +11 -7
- package/VerificationToken.js +8 -6
- package/package.json +1 -1
- package/server/AIRecommendation.d.ts.map +1 -1
- package/server/AIRecommendation.js.map +1 -1
- package/server/AIRecommendation.mjs +8 -6
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +8 -6
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +8 -6
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +8 -6
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +8 -6
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +8 -6
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +8 -6
- package/server/EnvironmentVariable.d.ts.map +1 -1
- package/server/EnvironmentVariable.js.map +1 -1
- package/server/EnvironmentVariable.mjs +8 -6
- package/server/Holding.d.ts.map +1 -1
- package/server/Holding.js.map +1 -1
- package/server/Holding.mjs +8 -6
- package/server/News.d.ts.map +1 -1
- package/server/News.js.map +1 -1
- package/server/News.mjs +8 -6
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +8 -6
- package/server/PerformanceMetric.d.ts.map +1 -1
- package/server/PerformanceMetric.js.map +1 -1
- package/server/PerformanceMetric.mjs +8 -6
- package/server/Portfolio.d.ts.map +1 -1
- package/server/Portfolio.js.map +1 -1
- package/server/Portfolio.mjs +11 -7
- package/server/PortfolioAllocation.d.ts.map +1 -1
- package/server/PortfolioAllocation.js.map +1 -1
- package/server/PortfolioAllocation.mjs +8 -6
- package/server/PortfolioUser.d.ts.map +1 -1
- package/server/PortfolioUser.js.map +1 -1
- package/server/PortfolioUser.mjs +8 -6
- package/server/RiskAllocation.d.ts.map +1 -1
- package/server/RiskAllocation.js.map +1 -1
- package/server/RiskAllocation.mjs +8 -6
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +8 -6
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +8 -6
- package/server/TradeStep.d.ts.map +1 -1
- package/server/TradeStep.js.map +1 -1
- package/server/TradeStep.mjs +8 -6
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +11 -7
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +8 -6
package/AIRecommendation.js
CHANGED
|
@@ -2490,8 +2490,8 @@ exports.AIRecommendation = {
|
|
|
2490
2490
|
*/
|
|
2491
2491
|
async get(props, client) {
|
|
2492
2492
|
var _a, _b;
|
|
2493
|
-
const
|
|
2494
|
-
query
|
|
2493
|
+
const GET_AIRECOMMENDATIONS = (0, client_1.gql) `
|
|
2494
|
+
query getAIRecommendations($where: AIRecommendationWhereInput!) {
|
|
2495
2495
|
aIRecommendations(where: $where) {
|
|
2496
2496
|
id
|
|
2497
2497
|
userId
|
|
@@ -2791,17 +2791,19 @@ exports.AIRecommendation = {
|
|
|
2791
2791
|
}`;
|
|
2792
2792
|
const variables = {
|
|
2793
2793
|
where: {
|
|
2794
|
-
id: props.id !== undefined ?
|
|
2794
|
+
id: props.id !== undefined ? {
|
|
2795
|
+
equals: props.id
|
|
2796
|
+
} : undefined,
|
|
2795
2797
|
},
|
|
2796
2798
|
};
|
|
2797
2799
|
try {
|
|
2798
|
-
const response = await client.query({ query:
|
|
2800
|
+
const response = await client.query({ query: GET_AIRECOMMENDATIONS, variables });
|
|
2799
2801
|
if (response.errors && response.errors.length > 0)
|
|
2800
2802
|
throw new Error(response.errors[0].message);
|
|
2801
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2803
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.aIRecommendations) !== null && _b !== void 0 ? _b : null;
|
|
2802
2804
|
}
|
|
2803
2805
|
catch (error) {
|
|
2804
|
-
console.error('Error in
|
|
2806
|
+
console.error('Error in getAIRecommendations:', error);
|
|
2805
2807
|
throw error;
|
|
2806
2808
|
}
|
|
2807
2809
|
},
|
package/Account.js
CHANGED
|
@@ -1691,8 +1691,8 @@ exports.Account = {
|
|
|
1691
1691
|
*/
|
|
1692
1692
|
async get(props, client) {
|
|
1693
1693
|
var _a, _b;
|
|
1694
|
-
const
|
|
1695
|
-
query
|
|
1694
|
+
const GET_ACCOUNTS = (0, client_1.gql) `
|
|
1695
|
+
query getAccounts($where: AccountWhereInput!) {
|
|
1696
1696
|
accounts(where: $where) {
|
|
1697
1697
|
id
|
|
1698
1698
|
userId
|
|
@@ -1992,17 +1992,19 @@ exports.Account = {
|
|
|
1992
1992
|
}`;
|
|
1993
1993
|
const variables = {
|
|
1994
1994
|
where: {
|
|
1995
|
-
id: props.id !== undefined ?
|
|
1995
|
+
id: props.id !== undefined ? {
|
|
1996
|
+
equals: props.id
|
|
1997
|
+
} : undefined,
|
|
1996
1998
|
},
|
|
1997
1999
|
};
|
|
1998
2000
|
try {
|
|
1999
|
-
const response = await client.query({ query:
|
|
2001
|
+
const response = await client.query({ query: GET_ACCOUNTS, variables });
|
|
2000
2002
|
if (response.errors && response.errors.length > 0)
|
|
2001
2003
|
throw new Error(response.errors[0].message);
|
|
2002
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2004
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.accounts) !== null && _b !== void 0 ? _b : null;
|
|
2003
2005
|
}
|
|
2004
2006
|
catch (error) {
|
|
2005
|
-
console.error('Error in
|
|
2007
|
+
console.error('Error in getAccounts:', error);
|
|
2006
2008
|
throw error;
|
|
2007
2009
|
}
|
|
2008
2010
|
},
|
package/Alert.js
CHANGED
|
@@ -2157,8 +2157,8 @@ exports.Alert = {
|
|
|
2157
2157
|
*/
|
|
2158
2158
|
async get(props, client) {
|
|
2159
2159
|
var _a, _b;
|
|
2160
|
-
const
|
|
2161
|
-
query
|
|
2160
|
+
const GET_ALERTS = (0, client_1.gql) `
|
|
2161
|
+
query getAlerts($where: AlertWhereInput!) {
|
|
2162
2162
|
alerts(where: $where) {
|
|
2163
2163
|
id
|
|
2164
2164
|
userId
|
|
@@ -2458,17 +2458,19 @@ exports.Alert = {
|
|
|
2458
2458
|
}`;
|
|
2459
2459
|
const variables = {
|
|
2460
2460
|
where: {
|
|
2461
|
-
id: props.id !== undefined ?
|
|
2461
|
+
id: props.id !== undefined ? {
|
|
2462
|
+
equals: props.id
|
|
2463
|
+
} : undefined,
|
|
2462
2464
|
},
|
|
2463
2465
|
};
|
|
2464
2466
|
try {
|
|
2465
|
-
const response = await client.query({ query:
|
|
2467
|
+
const response = await client.query({ query: GET_ALERTS, variables });
|
|
2466
2468
|
if (response.errors && response.errors.length > 0)
|
|
2467
2469
|
throw new Error(response.errors[0].message);
|
|
2468
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2470
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.alerts) !== null && _b !== void 0 ? _b : null;
|
|
2469
2471
|
}
|
|
2470
2472
|
catch (error) {
|
|
2471
|
-
console.error('Error in
|
|
2473
|
+
console.error('Error in getAlerts:', error);
|
|
2472
2474
|
throw error;
|
|
2473
2475
|
}
|
|
2474
2476
|
},
|
package/Asset.js
CHANGED
|
@@ -2157,8 +2157,8 @@ exports.Asset = {
|
|
|
2157
2157
|
*/
|
|
2158
2158
|
async get(props, client) {
|
|
2159
2159
|
var _a, _b;
|
|
2160
|
-
const
|
|
2161
|
-
query
|
|
2160
|
+
const GET_ASSETS = (0, client_1.gql) `
|
|
2161
|
+
query getAssets($where: AssetWhereInput!) {
|
|
2162
2162
|
assets(where: $where) {
|
|
2163
2163
|
id
|
|
2164
2164
|
symbol
|
|
@@ -2471,20 +2471,22 @@ exports.Asset = {
|
|
|
2471
2471
|
}`;
|
|
2472
2472
|
const variables = {
|
|
2473
2473
|
where: {
|
|
2474
|
-
id: props.id !== undefined ?
|
|
2474
|
+
id: props.id !== undefined ? {
|
|
2475
|
+
equals: props.id
|
|
2476
|
+
} : undefined,
|
|
2475
2477
|
name: props.name !== undefined ? {
|
|
2476
2478
|
equals: props.name
|
|
2477
2479
|
} : undefined,
|
|
2478
2480
|
},
|
|
2479
2481
|
};
|
|
2480
2482
|
try {
|
|
2481
|
-
const response = await client.query({ query:
|
|
2483
|
+
const response = await client.query({ query: GET_ASSETS, variables });
|
|
2482
2484
|
if (response.errors && response.errors.length > 0)
|
|
2483
2485
|
throw new Error(response.errors[0].message);
|
|
2484
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2486
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.assets) !== null && _b !== void 0 ? _b : null;
|
|
2485
2487
|
}
|
|
2486
2488
|
catch (error) {
|
|
2487
|
-
console.error('Error in
|
|
2489
|
+
console.error('Error in getAssets:', error);
|
|
2488
2490
|
throw error;
|
|
2489
2491
|
}
|
|
2490
2492
|
},
|
package/Authenticator.js
CHANGED
|
@@ -1701,8 +1701,8 @@ exports.Authenticator = {
|
|
|
1701
1701
|
*/
|
|
1702
1702
|
async get(props, client) {
|
|
1703
1703
|
var _a, _b;
|
|
1704
|
-
const
|
|
1705
|
-
query
|
|
1704
|
+
const GET_AUTHENTICATORS = (0, client_1.gql) `
|
|
1705
|
+
query getAuthenticators($where: AuthenticatorWhereInput!) {
|
|
1706
1706
|
authenticators(where: $where) {
|
|
1707
1707
|
id
|
|
1708
1708
|
userId
|
|
@@ -2002,17 +2002,19 @@ exports.Authenticator = {
|
|
|
2002
2002
|
}`;
|
|
2003
2003
|
const variables = {
|
|
2004
2004
|
where: {
|
|
2005
|
-
id: props.id !== undefined ?
|
|
2005
|
+
id: props.id !== undefined ? {
|
|
2006
|
+
equals: props.id
|
|
2007
|
+
} : undefined,
|
|
2006
2008
|
},
|
|
2007
2009
|
};
|
|
2008
2010
|
try {
|
|
2009
|
-
const response = await client.query({ query:
|
|
2011
|
+
const response = await client.query({ query: GET_AUTHENTICATORS, variables });
|
|
2010
2012
|
if (response.errors && response.errors.length > 0)
|
|
2011
2013
|
throw new Error(response.errors[0].message);
|
|
2012
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2014
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.authenticators) !== null && _b !== void 0 ? _b : null;
|
|
2013
2015
|
}
|
|
2014
2016
|
catch (error) {
|
|
2015
|
-
console.error('Error in
|
|
2017
|
+
console.error('Error in getAuthenticators:', error);
|
|
2016
2018
|
throw error;
|
|
2017
2019
|
}
|
|
2018
2020
|
},
|
package/Customer.js
CHANGED
|
@@ -1684,8 +1684,8 @@ exports.Customer = {
|
|
|
1684
1684
|
*/
|
|
1685
1685
|
async get(props, client) {
|
|
1686
1686
|
var _a, _b;
|
|
1687
|
-
const
|
|
1688
|
-
query
|
|
1687
|
+
const GET_CUSTOMERS = (0, client_1.gql) `
|
|
1688
|
+
query getCustomers($where: CustomerWhereInput!) {
|
|
1689
1689
|
customers(where: $where) {
|
|
1690
1690
|
id
|
|
1691
1691
|
authUserId
|
|
@@ -1985,20 +1985,22 @@ exports.Customer = {
|
|
|
1985
1985
|
}`;
|
|
1986
1986
|
const variables = {
|
|
1987
1987
|
where: {
|
|
1988
|
-
id: props.id !== undefined ?
|
|
1988
|
+
id: props.id !== undefined ? {
|
|
1989
|
+
equals: props.id
|
|
1990
|
+
} : undefined,
|
|
1989
1991
|
name: props.name !== undefined ? {
|
|
1990
1992
|
equals: props.name
|
|
1991
1993
|
} : undefined,
|
|
1992
1994
|
},
|
|
1993
1995
|
};
|
|
1994
1996
|
try {
|
|
1995
|
-
const response = await client.query({ query:
|
|
1997
|
+
const response = await client.query({ query: GET_CUSTOMERS, variables });
|
|
1996
1998
|
if (response.errors && response.errors.length > 0)
|
|
1997
1999
|
throw new Error(response.errors[0].message);
|
|
1998
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2000
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
|
|
1999
2001
|
}
|
|
2000
2002
|
catch (error) {
|
|
2001
|
-
console.error('Error in
|
|
2003
|
+
console.error('Error in getCustomers:', error);
|
|
2002
2004
|
throw error;
|
|
2003
2005
|
}
|
|
2004
2006
|
},
|
package/EconomicEvent.js
CHANGED
|
@@ -191,8 +191,8 @@ exports.EconomicEvent = {
|
|
|
191
191
|
*/
|
|
192
192
|
async get(props, client) {
|
|
193
193
|
var _a, _b;
|
|
194
|
-
const
|
|
195
|
-
query
|
|
194
|
+
const GET_ECONOMICEVENTS = (0, client_1.gql) `
|
|
195
|
+
query getEconomicEvents($where: EconomicEventWhereInput!) {
|
|
196
196
|
economicEvents(where: $where) {
|
|
197
197
|
id
|
|
198
198
|
title
|
|
@@ -205,20 +205,22 @@ exports.EconomicEvent = {
|
|
|
205
205
|
}`;
|
|
206
206
|
const variables = {
|
|
207
207
|
where: {
|
|
208
|
-
id: props.id !== undefined ?
|
|
208
|
+
id: props.id !== undefined ? {
|
|
209
|
+
equals: props.id
|
|
210
|
+
} : undefined,
|
|
209
211
|
title: props.title !== undefined ? {
|
|
210
212
|
equals: props.title
|
|
211
213
|
} : undefined,
|
|
212
214
|
},
|
|
213
215
|
};
|
|
214
216
|
try {
|
|
215
|
-
const response = await client.query({ query:
|
|
217
|
+
const response = await client.query({ query: GET_ECONOMICEVENTS, variables });
|
|
216
218
|
if (response.errors && response.errors.length > 0)
|
|
217
219
|
throw new Error(response.errors[0].message);
|
|
218
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
220
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.economicEvents) !== null && _b !== void 0 ? _b : null;
|
|
219
221
|
}
|
|
220
222
|
catch (error) {
|
|
221
|
-
console.error('Error in
|
|
223
|
+
console.error('Error in getEconomicEvents:', error);
|
|
222
224
|
throw error;
|
|
223
225
|
}
|
|
224
226
|
},
|
package/EnvironmentVariable.js
CHANGED
|
@@ -1422,8 +1422,8 @@ exports.EnvironmentVariable = {
|
|
|
1422
1422
|
*/
|
|
1423
1423
|
async get(props, client) {
|
|
1424
1424
|
var _a, _b;
|
|
1425
|
-
const
|
|
1426
|
-
query
|
|
1425
|
+
const GET_ENVIRONMENTVARIABLES = (0, client_1.gql) `
|
|
1426
|
+
query getEnvironmentVariables($where: EnvironmentVariableWhereInput!) {
|
|
1427
1427
|
environmentVariables(where: $where) {
|
|
1428
1428
|
id
|
|
1429
1429
|
key
|
|
@@ -1698,17 +1698,19 @@ exports.EnvironmentVariable = {
|
|
|
1698
1698
|
}`;
|
|
1699
1699
|
const variables = {
|
|
1700
1700
|
where: {
|
|
1701
|
-
id: props.id !== undefined ?
|
|
1701
|
+
id: props.id !== undefined ? {
|
|
1702
|
+
equals: props.id
|
|
1703
|
+
} : undefined,
|
|
1702
1704
|
},
|
|
1703
1705
|
};
|
|
1704
1706
|
try {
|
|
1705
|
-
const response = await client.query({ query:
|
|
1707
|
+
const response = await client.query({ query: GET_ENVIRONMENTVARIABLES, variables });
|
|
1706
1708
|
if (response.errors && response.errors.length > 0)
|
|
1707
1709
|
throw new Error(response.errors[0].message);
|
|
1708
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
1710
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.environmentVariables) !== null && _b !== void 0 ? _b : null;
|
|
1709
1711
|
}
|
|
1710
1712
|
catch (error) {
|
|
1711
|
-
console.error('Error in
|
|
1713
|
+
console.error('Error in getEnvironmentVariables:', error);
|
|
1712
1714
|
throw error;
|
|
1713
1715
|
}
|
|
1714
1716
|
},
|
package/Holding.js
CHANGED
|
@@ -2487,8 +2487,8 @@ exports.Holding = {
|
|
|
2487
2487
|
*/
|
|
2488
2488
|
async get(props, client) {
|
|
2489
2489
|
var _a, _b;
|
|
2490
|
-
const
|
|
2491
|
-
query
|
|
2490
|
+
const GET_HOLDINGS = (0, client_1.gql) `
|
|
2491
|
+
query getHoldings($where: HoldingWhereInput!) {
|
|
2492
2492
|
holdings(where: $where) {
|
|
2493
2493
|
id
|
|
2494
2494
|
userId
|
|
@@ -2788,17 +2788,19 @@ exports.Holding = {
|
|
|
2788
2788
|
}`;
|
|
2789
2789
|
const variables = {
|
|
2790
2790
|
where: {
|
|
2791
|
-
id: props.id !== undefined ?
|
|
2791
|
+
id: props.id !== undefined ? {
|
|
2792
|
+
equals: props.id
|
|
2793
|
+
} : undefined,
|
|
2792
2794
|
},
|
|
2793
2795
|
};
|
|
2794
2796
|
try {
|
|
2795
|
-
const response = await client.query({ query:
|
|
2797
|
+
const response = await client.query({ query: GET_HOLDINGS, variables });
|
|
2796
2798
|
if (response.errors && response.errors.length > 0)
|
|
2797
2799
|
throw new Error(response.errors[0].message);
|
|
2798
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2800
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.holdings) !== null && _b !== void 0 ? _b : null;
|
|
2799
2801
|
}
|
|
2800
2802
|
catch (error) {
|
|
2801
|
-
console.error('Error in
|
|
2803
|
+
console.error('Error in getHoldings:', error);
|
|
2802
2804
|
throw error;
|
|
2803
2805
|
}
|
|
2804
2806
|
},
|
package/News.js
CHANGED
|
@@ -1139,8 +1139,8 @@ exports.News = {
|
|
|
1139
1139
|
*/
|
|
1140
1140
|
async get(props, client) {
|
|
1141
1141
|
var _a, _b;
|
|
1142
|
-
const
|
|
1143
|
-
query
|
|
1142
|
+
const GET_NEWS = (0, client_1.gql) `
|
|
1143
|
+
query getNews($where: NewsWhereInput!) {
|
|
1144
1144
|
news(where: $where) {
|
|
1145
1145
|
id
|
|
1146
1146
|
assetId
|
|
@@ -1370,20 +1370,22 @@ exports.News = {
|
|
|
1370
1370
|
}`;
|
|
1371
1371
|
const variables = {
|
|
1372
1372
|
where: {
|
|
1373
|
-
id: props.id !== undefined ?
|
|
1373
|
+
id: props.id !== undefined ? {
|
|
1374
|
+
equals: props.id
|
|
1375
|
+
} : undefined,
|
|
1374
1376
|
title: props.title !== undefined ? {
|
|
1375
1377
|
equals: props.title
|
|
1376
1378
|
} : undefined,
|
|
1377
1379
|
},
|
|
1378
1380
|
};
|
|
1379
1381
|
try {
|
|
1380
|
-
const response = await client.query({ query:
|
|
1382
|
+
const response = await client.query({ query: GET_NEWS, variables });
|
|
1381
1383
|
if (response.errors && response.errors.length > 0)
|
|
1382
1384
|
throw new Error(response.errors[0].message);
|
|
1383
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
1385
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.news) !== null && _b !== void 0 ? _b : null;
|
|
1384
1386
|
}
|
|
1385
1387
|
catch (error) {
|
|
1386
|
-
console.error('Error in
|
|
1388
|
+
console.error('Error in getNews:', error);
|
|
1387
1389
|
throw error;
|
|
1388
1390
|
}
|
|
1389
1391
|
},
|
package/Order.js
CHANGED
|
@@ -2448,8 +2448,8 @@ exports.Order = {
|
|
|
2448
2448
|
*/
|
|
2449
2449
|
async get(props, client) {
|
|
2450
2450
|
var _a, _b;
|
|
2451
|
-
const
|
|
2452
|
-
query
|
|
2451
|
+
const GET_ORDERS = (0, client_1.gql) `
|
|
2452
|
+
query getOrders($where: OrderWhereInput!) {
|
|
2453
2453
|
orders(where: $where) {
|
|
2454
2454
|
id
|
|
2455
2455
|
userId
|
|
@@ -2749,17 +2749,19 @@ exports.Order = {
|
|
|
2749
2749
|
}`;
|
|
2750
2750
|
const variables = {
|
|
2751
2751
|
where: {
|
|
2752
|
-
id: props.id !== undefined ?
|
|
2752
|
+
id: props.id !== undefined ? {
|
|
2753
|
+
equals: props.id
|
|
2754
|
+
} : undefined,
|
|
2753
2755
|
},
|
|
2754
2756
|
};
|
|
2755
2757
|
try {
|
|
2756
|
-
const response = await client.query({ query:
|
|
2758
|
+
const response = await client.query({ query: GET_ORDERS, variables });
|
|
2757
2759
|
if (response.errors && response.errors.length > 0)
|
|
2758
2760
|
throw new Error(response.errors[0].message);
|
|
2759
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2761
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.orders) !== null && _b !== void 0 ? _b : null;
|
|
2760
2762
|
}
|
|
2761
2763
|
catch (error) {
|
|
2762
|
-
console.error('Error in
|
|
2764
|
+
console.error('Error in getOrders:', error);
|
|
2763
2765
|
throw error;
|
|
2764
2766
|
}
|
|
2765
2767
|
},
|
package/PerformanceMetric.js
CHANGED
|
@@ -2164,8 +2164,8 @@ exports.PerformanceMetric = {
|
|
|
2164
2164
|
*/
|
|
2165
2165
|
async get(props, client) {
|
|
2166
2166
|
var _a, _b;
|
|
2167
|
-
const
|
|
2168
|
-
query
|
|
2167
|
+
const GET_PERFORMANCEMETRICS = (0, client_1.gql) `
|
|
2168
|
+
query getPerformanceMetrics($where: PerformanceMetricWhereInput!) {
|
|
2169
2169
|
performanceMetrics(where: $where) {
|
|
2170
2170
|
id
|
|
2171
2171
|
userId
|
|
@@ -2465,17 +2465,19 @@ exports.PerformanceMetric = {
|
|
|
2465
2465
|
}`;
|
|
2466
2466
|
const variables = {
|
|
2467
2467
|
where: {
|
|
2468
|
-
id: props.id !== undefined ?
|
|
2468
|
+
id: props.id !== undefined ? {
|
|
2469
|
+
equals: props.id
|
|
2470
|
+
} : undefined,
|
|
2469
2471
|
},
|
|
2470
2472
|
};
|
|
2471
2473
|
try {
|
|
2472
|
-
const response = await client.query({ query:
|
|
2474
|
+
const response = await client.query({ query: GET_PERFORMANCEMETRICS, variables });
|
|
2473
2475
|
if (response.errors && response.errors.length > 0)
|
|
2474
2476
|
throw new Error(response.errors[0].message);
|
|
2475
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2477
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.performanceMetrics) !== null && _b !== void 0 ? _b : null;
|
|
2476
2478
|
}
|
|
2477
2479
|
catch (error) {
|
|
2478
|
-
console.error('Error in
|
|
2480
|
+
console.error('Error in getPerformanceMetrics:', error);
|
|
2479
2481
|
throw error;
|
|
2480
2482
|
}
|
|
2481
2483
|
},
|
package/Portfolio.js
CHANGED
|
@@ -2653,8 +2653,8 @@ exports.Portfolio = {
|
|
|
2653
2653
|
*/
|
|
2654
2654
|
async get(props, client) {
|
|
2655
2655
|
var _a, _b;
|
|
2656
|
-
const
|
|
2657
|
-
query
|
|
2656
|
+
const GET_PORTFOLIOS = (0, client_1.gql) `
|
|
2657
|
+
query getPortfolios($where: PortfolioWhereInput!) {
|
|
2658
2658
|
portfolios(where: $where) {
|
|
2659
2659
|
id
|
|
2660
2660
|
name
|
|
@@ -2967,21 +2967,25 @@ exports.Portfolio = {
|
|
|
2967
2967
|
}`;
|
|
2968
2968
|
const variables = {
|
|
2969
2969
|
where: {
|
|
2970
|
-
id: props.id !== undefined ?
|
|
2971
|
-
|
|
2970
|
+
id: props.id !== undefined ? {
|
|
2971
|
+
equals: props.id
|
|
2972
|
+
} : undefined,
|
|
2972
2973
|
name: props.name !== undefined ? {
|
|
2973
2974
|
equals: props.name
|
|
2974
2975
|
} : undefined,
|
|
2976
|
+
slug: props.slug !== undefined ? {
|
|
2977
|
+
equals: props.slug
|
|
2978
|
+
} : undefined,
|
|
2975
2979
|
},
|
|
2976
2980
|
};
|
|
2977
2981
|
try {
|
|
2978
|
-
const response = await client.query({ query:
|
|
2982
|
+
const response = await client.query({ query: GET_PORTFOLIOS, variables });
|
|
2979
2983
|
if (response.errors && response.errors.length > 0)
|
|
2980
2984
|
throw new Error(response.errors[0].message);
|
|
2981
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2985
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.portfolios) !== null && _b !== void 0 ? _b : null;
|
|
2982
2986
|
}
|
|
2983
2987
|
catch (error) {
|
|
2984
|
-
console.error('Error in
|
|
2988
|
+
console.error('Error in getPortfolios:', error);
|
|
2985
2989
|
throw error;
|
|
2986
2990
|
}
|
|
2987
2991
|
},
|
package/PortfolioAllocation.js
CHANGED
|
@@ -1756,8 +1756,8 @@ exports.PortfolioAllocation = {
|
|
|
1756
1756
|
*/
|
|
1757
1757
|
async get(props, client) {
|
|
1758
1758
|
var _a, _b;
|
|
1759
|
-
const
|
|
1760
|
-
query
|
|
1759
|
+
const GET_PORTFOLIOALLOCATIONS = (0, client_1.gql) `
|
|
1760
|
+
query getPortfolioAllocations($where: PortfolioAllocationWhereInput!) {
|
|
1761
1761
|
portfolioAllocations(where: $where) {
|
|
1762
1762
|
id
|
|
1763
1763
|
portfolioId
|
|
@@ -2032,17 +2032,19 @@ exports.PortfolioAllocation = {
|
|
|
2032
2032
|
}`;
|
|
2033
2033
|
const variables = {
|
|
2034
2034
|
where: {
|
|
2035
|
-
id: props.id !== undefined ?
|
|
2035
|
+
id: props.id !== undefined ? {
|
|
2036
|
+
equals: props.id
|
|
2037
|
+
} : undefined,
|
|
2036
2038
|
},
|
|
2037
2039
|
};
|
|
2038
2040
|
try {
|
|
2039
|
-
const response = await client.query({ query:
|
|
2041
|
+
const response = await client.query({ query: GET_PORTFOLIOALLOCATIONS, variables });
|
|
2040
2042
|
if (response.errors && response.errors.length > 0)
|
|
2041
2043
|
throw new Error(response.errors[0].message);
|
|
2042
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2044
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.portfolioAllocations) !== null && _b !== void 0 ? _b : null;
|
|
2043
2045
|
}
|
|
2044
2046
|
catch (error) {
|
|
2045
|
-
console.error('Error in
|
|
2047
|
+
console.error('Error in getPortfolioAllocations:', error);
|
|
2046
2048
|
throw error;
|
|
2047
2049
|
}
|
|
2048
2050
|
},
|
package/PortfolioUser.js
CHANGED
|
@@ -2177,8 +2177,8 @@ exports.PortfolioUser = {
|
|
|
2177
2177
|
*/
|
|
2178
2178
|
async get(props, client) {
|
|
2179
2179
|
var _a, _b;
|
|
2180
|
-
const
|
|
2181
|
-
query
|
|
2180
|
+
const GET_PORTFOLIOUSERS = (0, client_1.gql) `
|
|
2181
|
+
query getPortfolioUsers($where: PortfolioUserWhereInput!) {
|
|
2182
2182
|
portfolioUsers(where: $where) {
|
|
2183
2183
|
id
|
|
2184
2184
|
userId
|
|
@@ -2478,17 +2478,19 @@ exports.PortfolioUser = {
|
|
|
2478
2478
|
}`;
|
|
2479
2479
|
const variables = {
|
|
2480
2480
|
where: {
|
|
2481
|
-
id: props.id !== undefined ?
|
|
2481
|
+
id: props.id !== undefined ? {
|
|
2482
|
+
equals: props.id
|
|
2483
|
+
} : undefined,
|
|
2482
2484
|
},
|
|
2483
2485
|
};
|
|
2484
2486
|
try {
|
|
2485
|
-
const response = await client.query({ query:
|
|
2487
|
+
const response = await client.query({ query: GET_PORTFOLIOUSERS, variables });
|
|
2486
2488
|
if (response.errors && response.errors.length > 0)
|
|
2487
2489
|
throw new Error(response.errors[0].message);
|
|
2488
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2490
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.portfolioUsers) !== null && _b !== void 0 ? _b : null;
|
|
2489
2491
|
}
|
|
2490
2492
|
catch (error) {
|
|
2491
|
-
console.error('Error in
|
|
2493
|
+
console.error('Error in getPortfolioUsers:', error);
|
|
2492
2494
|
throw error;
|
|
2493
2495
|
}
|
|
2494
2496
|
},
|
package/RiskAllocation.js
CHANGED
|
@@ -2167,8 +2167,8 @@ exports.RiskAllocation = {
|
|
|
2167
2167
|
*/
|
|
2168
2168
|
async get(props, client) {
|
|
2169
2169
|
var _a, _b;
|
|
2170
|
-
const
|
|
2171
|
-
query
|
|
2170
|
+
const GET_RISKALLOCATIONS = (0, client_1.gql) `
|
|
2171
|
+
query getRiskAllocations($where: RiskAllocationWhereInput!) {
|
|
2172
2172
|
riskAllocations(where: $where) {
|
|
2173
2173
|
id
|
|
2174
2174
|
userId
|
|
@@ -2468,17 +2468,19 @@ exports.RiskAllocation = {
|
|
|
2468
2468
|
}`;
|
|
2469
2469
|
const variables = {
|
|
2470
2470
|
where: {
|
|
2471
|
-
id: props.id !== undefined ?
|
|
2471
|
+
id: props.id !== undefined ? {
|
|
2472
|
+
equals: props.id
|
|
2473
|
+
} : undefined,
|
|
2472
2474
|
},
|
|
2473
2475
|
};
|
|
2474
2476
|
try {
|
|
2475
|
-
const response = await client.query({ query:
|
|
2477
|
+
const response = await client.query({ query: GET_RISKALLOCATIONS, variables });
|
|
2476
2478
|
if (response.errors && response.errors.length > 0)
|
|
2477
2479
|
throw new Error(response.errors[0].message);
|
|
2478
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2480
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.riskAllocations) !== null && _b !== void 0 ? _b : null;
|
|
2479
2481
|
}
|
|
2480
2482
|
catch (error) {
|
|
2481
|
-
console.error('Error in
|
|
2483
|
+
console.error('Error in getRiskAllocations:', error);
|
|
2482
2484
|
throw error;
|
|
2483
2485
|
}
|
|
2484
2486
|
},
|
package/Session.js
CHANGED
|
@@ -1705,8 +1705,8 @@ exports.Session = {
|
|
|
1705
1705
|
*/
|
|
1706
1706
|
async get(props, client) {
|
|
1707
1707
|
var _a, _b;
|
|
1708
|
-
const
|
|
1709
|
-
query
|
|
1708
|
+
const GET_SESSIONS = (0, client_1.gql) `
|
|
1709
|
+
query getSessions($where: SessionWhereInput!) {
|
|
1710
1710
|
sessions(where: $where) {
|
|
1711
1711
|
id
|
|
1712
1712
|
sessionToken
|
|
@@ -2006,17 +2006,19 @@ exports.Session = {
|
|
|
2006
2006
|
}`;
|
|
2007
2007
|
const variables = {
|
|
2008
2008
|
where: {
|
|
2009
|
-
id: props.id !== undefined ?
|
|
2009
|
+
id: props.id !== undefined ? {
|
|
2010
|
+
equals: props.id
|
|
2011
|
+
} : undefined,
|
|
2010
2012
|
},
|
|
2011
2013
|
};
|
|
2012
2014
|
try {
|
|
2013
|
-
const response = await client.query({ query:
|
|
2015
|
+
const response = await client.query({ query: GET_SESSIONS, variables });
|
|
2014
2016
|
if (response.errors && response.errors.length > 0)
|
|
2015
2017
|
throw new Error(response.errors[0].message);
|
|
2016
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2018
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.sessions) !== null && _b !== void 0 ? _b : null;
|
|
2017
2019
|
}
|
|
2018
2020
|
catch (error) {
|
|
2019
|
-
console.error('Error in
|
|
2021
|
+
console.error('Error in getSessions:', error);
|
|
2020
2022
|
throw error;
|
|
2021
2023
|
}
|
|
2022
2024
|
},
|