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/AIRecommendation.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const AIRecommendation: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single AIRecommendation 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 AIRecommendation or null.
|
|
@@ -30,14 +29,14 @@ export declare const AIRecommendation: {
|
|
|
30
29
|
update(props: AIRecommendationType, client: ApolloClient<NormalizedCacheObject>): Promise<AIRecommendationType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single AIRecommendation record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted AIRecommendation or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: AIRecommendationType, client: ApolloClient<NormalizedCacheObject>): Promise<AIRecommendationType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single AIRecommendation record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved AIRecommendation or null.
|
|
43
42
|
*/
|
package/AIRecommendation.js
CHANGED
|
@@ -558,6 +558,9 @@ exports.AIRecommendation = {
|
|
|
558
558
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
559
559
|
where: {
|
|
560
560
|
id: item.id !== undefined ? item.id : undefined,
|
|
561
|
+
key: item.key !== undefined ? {
|
|
562
|
+
equals: item.key
|
|
563
|
+
} : undefined,
|
|
561
564
|
},
|
|
562
565
|
create: {
|
|
563
566
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -697,7 +700,6 @@ exports.AIRecommendation = {
|
|
|
697
700
|
},
|
|
698
701
|
/**
|
|
699
702
|
* Update a single AIRecommendation record.
|
|
700
|
-
* @param id - Unique identifier of the record to update.
|
|
701
703
|
* @param props - Properties to update.
|
|
702
704
|
* @param client - Apollo Client instance.
|
|
703
705
|
* @returns The updated AIRecommendation or null.
|
|
@@ -1689,6 +1691,9 @@ exports.AIRecommendation = {
|
|
|
1689
1691
|
upsert: props.portfolio.environmentVariables.map((item) => ({
|
|
1690
1692
|
where: {
|
|
1691
1693
|
id: item.id !== undefined ? item.id : undefined,
|
|
1694
|
+
key: item.key !== undefined ? {
|
|
1695
|
+
equals: item.key
|
|
1696
|
+
} : undefined,
|
|
1692
1697
|
},
|
|
1693
1698
|
update: {
|
|
1694
1699
|
key: item.key !== undefined ? {
|
|
@@ -1813,6 +1818,9 @@ exports.AIRecommendation = {
|
|
|
1813
1818
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
1814
1819
|
where: {
|
|
1815
1820
|
id: item.id !== undefined ? item.id : undefined,
|
|
1821
|
+
key: item.key !== undefined ? {
|
|
1822
|
+
equals: item.key
|
|
1823
|
+
} : undefined,
|
|
1816
1824
|
},
|
|
1817
1825
|
create: {
|
|
1818
1826
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -2037,7 +2045,7 @@ exports.AIRecommendation = {
|
|
|
2037
2045
|
},
|
|
2038
2046
|
/**
|
|
2039
2047
|
* Delete a single AIRecommendation record.
|
|
2040
|
-
* @param
|
|
2048
|
+
* @param props - Properties to update.
|
|
2041
2049
|
* @param client - Apollo Client instance.
|
|
2042
2050
|
* @returns The deleted AIRecommendation or null.
|
|
2043
2051
|
*/
|
|
@@ -2329,7 +2337,7 @@ exports.AIRecommendation = {
|
|
|
2329
2337
|
},
|
|
2330
2338
|
/**
|
|
2331
2339
|
* Retrieve a single AIRecommendation record by ID.
|
|
2332
|
-
* @param
|
|
2340
|
+
* @param props - Properties to update.
|
|
2333
2341
|
* @param client - Apollo Client instance.
|
|
2334
2342
|
* @returns The retrieved AIRecommendation or null.
|
|
2335
2343
|
*/
|
|
@@ -2626,7 +2634,7 @@ exports.AIRecommendation = {
|
|
|
2626
2634
|
var _a, _b;
|
|
2627
2635
|
const GET_ALL_AIRECOMMENDATION = (0, client_1.gql) `
|
|
2628
2636
|
query getAllAIRecommendation {
|
|
2629
|
-
|
|
2637
|
+
aIRecommendations {
|
|
2630
2638
|
id
|
|
2631
2639
|
userId
|
|
2632
2640
|
portfolioId
|
|
@@ -2892,7 +2900,7 @@ exports.AIRecommendation = {
|
|
|
2892
2900
|
const response = await client.query({ query: GET_ALL_AIRECOMMENDATION });
|
|
2893
2901
|
if (response.errors && response.errors.length > 0)
|
|
2894
2902
|
throw new Error(response.errors[0].message);
|
|
2895
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2903
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.aIRecommendations) !== null && _b !== void 0 ? _b : null;
|
|
2896
2904
|
}
|
|
2897
2905
|
catch (error) {
|
|
2898
2906
|
console.error('Error in getAllAIRecommendation:', error);
|
|
@@ -2908,7 +2916,7 @@ exports.AIRecommendation = {
|
|
|
2908
2916
|
async findMany(props, client) {
|
|
2909
2917
|
const FIND_MANY_AIRECOMMENDATION = (0, client_1.gql) `
|
|
2910
2918
|
query findManyAIRecommendation($where: AIRecommendationWhereInput!) {
|
|
2911
|
-
|
|
2919
|
+
aIRecommendations(where: $where) {
|
|
2912
2920
|
id
|
|
2913
2921
|
userId
|
|
2914
2922
|
portfolioId
|
|
@@ -3183,7 +3191,7 @@ exports.AIRecommendation = {
|
|
|
3183
3191
|
if (response.errors && response.errors.length > 0)
|
|
3184
3192
|
throw new Error(response.errors[0].message);
|
|
3185
3193
|
if (response && response.data && response.data.AIRecommendations) {
|
|
3186
|
-
return response.data.
|
|
3194
|
+
return response.data.aIRecommendations;
|
|
3187
3195
|
}
|
|
3188
3196
|
else {
|
|
3189
3197
|
return [];
|
package/Account.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Account: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Account 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 Account or null.
|
|
@@ -30,14 +29,14 @@ export declare const Account: {
|
|
|
30
29
|
update(props: AccountType, client: ApolloClient<NormalizedCacheObject>): Promise<AccountType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Account record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Account or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: AccountType, client: ApolloClient<NormalizedCacheObject>): Promise<AccountType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Account record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Account or null.
|
|
43
42
|
*/
|
package/Account.js
CHANGED
|
@@ -511,7 +511,6 @@ exports.Account = {
|
|
|
511
511
|
},
|
|
512
512
|
/**
|
|
513
513
|
* Update a single Account record.
|
|
514
|
-
* @param id - Unique identifier of the record to update.
|
|
515
514
|
* @param props - Properties to update.
|
|
516
515
|
* @param client - Apollo Client instance.
|
|
517
516
|
* @returns The updated Account or null.
|
|
@@ -1271,7 +1270,7 @@ exports.Account = {
|
|
|
1271
1270
|
},
|
|
1272
1271
|
/**
|
|
1273
1272
|
* Delete a single Account record.
|
|
1274
|
-
* @param
|
|
1273
|
+
* @param props - Properties to update.
|
|
1275
1274
|
* @param client - Apollo Client instance.
|
|
1276
1275
|
* @returns The deleted Account or null.
|
|
1277
1276
|
*/
|
|
@@ -1563,7 +1562,7 @@ exports.Account = {
|
|
|
1563
1562
|
},
|
|
1564
1563
|
/**
|
|
1565
1564
|
* Retrieve a single Account record by ID.
|
|
1566
|
-
* @param
|
|
1565
|
+
* @param props - Properties to update.
|
|
1567
1566
|
* @param client - Apollo Client instance.
|
|
1568
1567
|
* @returns The retrieved Account or null.
|
|
1569
1568
|
*/
|
|
@@ -1860,7 +1859,7 @@ exports.Account = {
|
|
|
1860
1859
|
var _a, _b;
|
|
1861
1860
|
const GET_ALL_ACCOUNT = (0, client_1.gql) `
|
|
1862
1861
|
query getAllAccount {
|
|
1863
|
-
|
|
1862
|
+
accounts {
|
|
1864
1863
|
id
|
|
1865
1864
|
userId
|
|
1866
1865
|
type
|
|
@@ -2126,7 +2125,7 @@ exports.Account = {
|
|
|
2126
2125
|
const response = await client.query({ query: GET_ALL_ACCOUNT });
|
|
2127
2126
|
if (response.errors && response.errors.length > 0)
|
|
2128
2127
|
throw new Error(response.errors[0].message);
|
|
2129
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2128
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.accounts) !== null && _b !== void 0 ? _b : null;
|
|
2130
2129
|
}
|
|
2131
2130
|
catch (error) {
|
|
2132
2131
|
console.error('Error in getAllAccount:', error);
|
|
@@ -2142,7 +2141,7 @@ exports.Account = {
|
|
|
2142
2141
|
async findMany(props, client) {
|
|
2143
2142
|
const FIND_MANY_ACCOUNT = (0, client_1.gql) `
|
|
2144
2143
|
query findManyAccount($where: AccountWhereInput!) {
|
|
2145
|
-
|
|
2144
|
+
accounts(where: $where) {
|
|
2146
2145
|
id
|
|
2147
2146
|
userId
|
|
2148
2147
|
type
|
|
@@ -2417,7 +2416,7 @@ exports.Account = {
|
|
|
2417
2416
|
if (response.errors && response.errors.length > 0)
|
|
2418
2417
|
throw new Error(response.errors[0].message);
|
|
2419
2418
|
if (response && response.data && response.data.Accounts) {
|
|
2420
|
-
return response.data.
|
|
2419
|
+
return response.data.accounts;
|
|
2421
2420
|
}
|
|
2422
2421
|
else {
|
|
2423
2422
|
return [];
|
package/Alert.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Alert: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Alert 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 Alert or null.
|
|
@@ -30,14 +29,14 @@ export declare const Alert: {
|
|
|
30
29
|
update(props: AlertType, client: ApolloClient<NormalizedCacheObject>): Promise<AlertType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Alert record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Alert or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: AlertType, client: ApolloClient<NormalizedCacheObject>): Promise<AlertType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Alert record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Alert or null.
|
|
43
42
|
*/
|
package/Alert.js
CHANGED
|
@@ -557,6 +557,9 @@ exports.Alert = {
|
|
|
557
557
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
558
558
|
where: {
|
|
559
559
|
id: item.id !== undefined ? item.id : undefined,
|
|
560
|
+
key: item.key !== undefined ? {
|
|
561
|
+
equals: item.key
|
|
562
|
+
} : undefined,
|
|
560
563
|
},
|
|
561
564
|
create: {
|
|
562
565
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -628,7 +631,6 @@ exports.Alert = {
|
|
|
628
631
|
},
|
|
629
632
|
/**
|
|
630
633
|
* Update a single Alert record.
|
|
631
|
-
* @param id - Unique identifier of the record to update.
|
|
632
634
|
* @param props - Properties to update.
|
|
633
635
|
* @param client - Apollo Client instance.
|
|
634
636
|
* @returns The updated Alert or null.
|
|
@@ -1611,6 +1613,9 @@ exports.Alert = {
|
|
|
1611
1613
|
upsert: props.portfolio.environmentVariables.map((item) => ({
|
|
1612
1614
|
where: {
|
|
1613
1615
|
id: item.id !== undefined ? item.id : undefined,
|
|
1616
|
+
key: item.key !== undefined ? {
|
|
1617
|
+
equals: item.key
|
|
1618
|
+
} : undefined,
|
|
1614
1619
|
},
|
|
1615
1620
|
update: {
|
|
1616
1621
|
key: item.key !== undefined ? {
|
|
@@ -1734,6 +1739,9 @@ exports.Alert = {
|
|
|
1734
1739
|
connectOrCreate: props.portfolio.environmentVariables.map((item) => ({
|
|
1735
1740
|
where: {
|
|
1736
1741
|
id: item.id !== undefined ? item.id : undefined,
|
|
1742
|
+
key: item.key !== undefined ? {
|
|
1743
|
+
equals: item.key
|
|
1744
|
+
} : undefined,
|
|
1737
1745
|
},
|
|
1738
1746
|
create: {
|
|
1739
1747
|
key: item.key !== undefined ? item.key : undefined,
|
|
@@ -1766,7 +1774,7 @@ exports.Alert = {
|
|
|
1766
1774
|
},
|
|
1767
1775
|
/**
|
|
1768
1776
|
* Delete a single Alert record.
|
|
1769
|
-
* @param
|
|
1777
|
+
* @param props - Properties to update.
|
|
1770
1778
|
* @param client - Apollo Client instance.
|
|
1771
1779
|
* @returns The deleted Alert or null.
|
|
1772
1780
|
*/
|
|
@@ -2058,7 +2066,7 @@ exports.Alert = {
|
|
|
2058
2066
|
},
|
|
2059
2067
|
/**
|
|
2060
2068
|
* Retrieve a single Alert record by ID.
|
|
2061
|
-
* @param
|
|
2069
|
+
* @param props - Properties to update.
|
|
2062
2070
|
* @param client - Apollo Client instance.
|
|
2063
2071
|
* @returns The retrieved Alert or null.
|
|
2064
2072
|
*/
|
|
@@ -2355,7 +2363,7 @@ exports.Alert = {
|
|
|
2355
2363
|
var _a, _b;
|
|
2356
2364
|
const GET_ALL_ALERT = (0, client_1.gql) `
|
|
2357
2365
|
query getAllAlert {
|
|
2358
|
-
|
|
2366
|
+
alerts {
|
|
2359
2367
|
id
|
|
2360
2368
|
userId
|
|
2361
2369
|
portfolioId
|
|
@@ -2621,7 +2629,7 @@ exports.Alert = {
|
|
|
2621
2629
|
const response = await client.query({ query: GET_ALL_ALERT });
|
|
2622
2630
|
if (response.errors && response.errors.length > 0)
|
|
2623
2631
|
throw new Error(response.errors[0].message);
|
|
2624
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2632
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.alerts) !== null && _b !== void 0 ? _b : null;
|
|
2625
2633
|
}
|
|
2626
2634
|
catch (error) {
|
|
2627
2635
|
console.error('Error in getAllAlert:', error);
|
|
@@ -2637,7 +2645,7 @@ exports.Alert = {
|
|
|
2637
2645
|
async findMany(props, client) {
|
|
2638
2646
|
const FIND_MANY_ALERT = (0, client_1.gql) `
|
|
2639
2647
|
query findManyAlert($where: AlertWhereInput!) {
|
|
2640
|
-
|
|
2648
|
+
alerts(where: $where) {
|
|
2641
2649
|
id
|
|
2642
2650
|
userId
|
|
2643
2651
|
portfolioId
|
|
@@ -2912,7 +2920,7 @@ exports.Alert = {
|
|
|
2912
2920
|
if (response.errors && response.errors.length > 0)
|
|
2913
2921
|
throw new Error(response.errors[0].message);
|
|
2914
2922
|
if (response && response.data && response.data.Alerts) {
|
|
2915
|
-
return response.data.
|
|
2923
|
+
return response.data.alerts;
|
|
2916
2924
|
}
|
|
2917
2925
|
else {
|
|
2918
2926
|
return [];
|
package/Asset.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Asset: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Asset 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 Asset or null.
|
|
@@ -30,14 +29,14 @@ export declare const Asset: {
|
|
|
30
29
|
update(props: AssetType, client: ApolloClient<NormalizedCacheObject>): Promise<AssetType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Asset record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Asset or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: AssetType, client: ApolloClient<NormalizedCacheObject>): Promise<AssetType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Asset record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Asset or null.
|
|
43
42
|
*/
|
package/Asset.js
CHANGED
|
@@ -489,6 +489,7 @@ exports.Asset = {
|
|
|
489
489
|
connectOrCreate: {
|
|
490
490
|
where: {
|
|
491
491
|
id: item.news.id !== undefined ? item.news.id : undefined,
|
|
492
|
+
url: item.news.url !== undefined ? item.news.url : undefined,
|
|
492
493
|
title: item.news.title !== undefined ? {
|
|
493
494
|
equals: item.news.title
|
|
494
495
|
} : undefined,
|
|
@@ -572,7 +573,6 @@ exports.Asset = {
|
|
|
572
573
|
},
|
|
573
574
|
/**
|
|
574
575
|
* Update a single Asset record.
|
|
575
|
-
* @param id - Unique identifier of the record to update.
|
|
576
576
|
* @param props - Properties to update.
|
|
577
577
|
* @param client - Apollo Client instance.
|
|
578
578
|
* @returns The updated Asset or null.
|
|
@@ -1484,6 +1484,9 @@ exports.Asset = {
|
|
|
1484
1484
|
title: item.news.title !== undefined ? {
|
|
1485
1485
|
equals: item.news.title
|
|
1486
1486
|
} : undefined,
|
|
1487
|
+
url: item.news.url !== undefined ? {
|
|
1488
|
+
equals: item.news.url
|
|
1489
|
+
} : undefined,
|
|
1487
1490
|
},
|
|
1488
1491
|
update: {
|
|
1489
1492
|
title: item.news.title !== undefined ? {
|
|
@@ -1552,6 +1555,7 @@ exports.Asset = {
|
|
|
1552
1555
|
connectOrCreate: {
|
|
1553
1556
|
where: {
|
|
1554
1557
|
id: item.news.id !== undefined ? item.news.id : undefined,
|
|
1558
|
+
url: item.news.url !== undefined ? item.news.url : undefined,
|
|
1555
1559
|
title: item.news.title !== undefined ? {
|
|
1556
1560
|
equals: item.news.title
|
|
1557
1561
|
} : undefined,
|
|
@@ -1597,7 +1601,7 @@ exports.Asset = {
|
|
|
1597
1601
|
},
|
|
1598
1602
|
/**
|
|
1599
1603
|
* Delete a single Asset record.
|
|
1600
|
-
* @param
|
|
1604
|
+
* @param props - Properties to update.
|
|
1601
1605
|
* @param client - Apollo Client instance.
|
|
1602
1606
|
* @returns The deleted Asset or null.
|
|
1603
1607
|
*/
|
|
@@ -1875,7 +1879,7 @@ exports.Asset = {
|
|
|
1875
1879
|
},
|
|
1876
1880
|
/**
|
|
1877
1881
|
* Retrieve a single Asset record by ID.
|
|
1878
|
-
* @param
|
|
1882
|
+
* @param props - Properties to update.
|
|
1879
1883
|
* @param client - Apollo Client instance.
|
|
1880
1884
|
* @returns The retrieved Asset or null.
|
|
1881
1885
|
*/
|
|
@@ -2161,7 +2165,7 @@ exports.Asset = {
|
|
|
2161
2165
|
var _a, _b;
|
|
2162
2166
|
const GET_ALL_ASSET = (0, client_1.gql) `
|
|
2163
2167
|
query getAllAsset {
|
|
2164
|
-
|
|
2168
|
+
assets {
|
|
2165
2169
|
id
|
|
2166
2170
|
symbol
|
|
2167
2171
|
name
|
|
@@ -2413,7 +2417,7 @@ exports.Asset = {
|
|
|
2413
2417
|
const response = await client.query({ query: GET_ALL_ASSET });
|
|
2414
2418
|
if (response.errors && response.errors.length > 0)
|
|
2415
2419
|
throw new Error(response.errors[0].message);
|
|
2416
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2420
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.assets) !== null && _b !== void 0 ? _b : null;
|
|
2417
2421
|
}
|
|
2418
2422
|
catch (error) {
|
|
2419
2423
|
console.error('Error in getAllAsset:', error);
|
|
@@ -2429,7 +2433,7 @@ exports.Asset = {
|
|
|
2429
2433
|
async findMany(props, client) {
|
|
2430
2434
|
const FIND_MANY_ASSET = (0, client_1.gql) `
|
|
2431
2435
|
query findManyAsset($where: AssetWhereInput!) {
|
|
2432
|
-
|
|
2436
|
+
assets(where: $where) {
|
|
2433
2437
|
id
|
|
2434
2438
|
symbol
|
|
2435
2439
|
name
|
|
@@ -2693,7 +2697,7 @@ exports.Asset = {
|
|
|
2693
2697
|
if (response.errors && response.errors.length > 0)
|
|
2694
2698
|
throw new Error(response.errors[0].message);
|
|
2695
2699
|
if (response && response.data && response.data.Assets) {
|
|
2696
|
-
return response.data.
|
|
2700
|
+
return response.data.assets;
|
|
2697
2701
|
}
|
|
2698
2702
|
else {
|
|
2699
2703
|
return [];
|
package/Authenticator.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Authenticator: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Authenticator 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 Authenticator or null.
|
|
@@ -30,14 +29,14 @@ export declare const Authenticator: {
|
|
|
30
29
|
update(props: AuthenticatorType, client: ApolloClient<NormalizedCacheObject>): Promise<AuthenticatorType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Authenticator record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Authenticator or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: AuthenticatorType, client: ApolloClient<NormalizedCacheObject>): Promise<AuthenticatorType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Authenticator record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Authenticator or null.
|
|
43
42
|
*/
|
package/Authenticator.js
CHANGED
|
@@ -504,7 +504,6 @@ exports.Authenticator = {
|
|
|
504
504
|
},
|
|
505
505
|
/**
|
|
506
506
|
* Update a single Authenticator record.
|
|
507
|
-
* @param id - Unique identifier of the record to update.
|
|
508
507
|
* @param props - Properties to update.
|
|
509
508
|
* @param client - Apollo Client instance.
|
|
510
509
|
* @returns The updated Authenticator or null.
|
|
@@ -1281,7 +1280,7 @@ exports.Authenticator = {
|
|
|
1281
1280
|
},
|
|
1282
1281
|
/**
|
|
1283
1282
|
* Delete a single Authenticator record.
|
|
1284
|
-
* @param
|
|
1283
|
+
* @param props - Properties to update.
|
|
1285
1284
|
* @param client - Apollo Client instance.
|
|
1286
1285
|
* @returns The deleted Authenticator or null.
|
|
1287
1286
|
*/
|
|
@@ -1573,7 +1572,7 @@ exports.Authenticator = {
|
|
|
1573
1572
|
},
|
|
1574
1573
|
/**
|
|
1575
1574
|
* Retrieve a single Authenticator record by ID.
|
|
1576
|
-
* @param
|
|
1575
|
+
* @param props - Properties to update.
|
|
1577
1576
|
* @param client - Apollo Client instance.
|
|
1578
1577
|
* @returns The retrieved Authenticator or null.
|
|
1579
1578
|
*/
|
|
@@ -1870,7 +1869,7 @@ exports.Authenticator = {
|
|
|
1870
1869
|
var _a, _b;
|
|
1871
1870
|
const GET_ALL_AUTHENTICATOR = (0, client_1.gql) `
|
|
1872
1871
|
query getAllAuthenticator {
|
|
1873
|
-
|
|
1872
|
+
authenticators {
|
|
1874
1873
|
id
|
|
1875
1874
|
userId
|
|
1876
1875
|
credentialID
|
|
@@ -2136,7 +2135,7 @@ exports.Authenticator = {
|
|
|
2136
2135
|
const response = await client.query({ query: GET_ALL_AUTHENTICATOR });
|
|
2137
2136
|
if (response.errors && response.errors.length > 0)
|
|
2138
2137
|
throw new Error(response.errors[0].message);
|
|
2139
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2138
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.authenticators) !== null && _b !== void 0 ? _b : null;
|
|
2140
2139
|
}
|
|
2141
2140
|
catch (error) {
|
|
2142
2141
|
console.error('Error in getAllAuthenticator:', error);
|
|
@@ -2152,7 +2151,7 @@ exports.Authenticator = {
|
|
|
2152
2151
|
async findMany(props, client) {
|
|
2153
2152
|
const FIND_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
|
2154
2153
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
|
2155
|
-
|
|
2154
|
+
authenticators(where: $where) {
|
|
2156
2155
|
id
|
|
2157
2156
|
userId
|
|
2158
2157
|
credentialID
|
|
@@ -2427,7 +2426,7 @@ exports.Authenticator = {
|
|
|
2427
2426
|
if (response.errors && response.errors.length > 0)
|
|
2428
2427
|
throw new Error(response.errors[0].message);
|
|
2429
2428
|
if (response && response.data && response.data.Authenticators) {
|
|
2430
|
-
return response.data.
|
|
2429
|
+
return response.data.authenticators;
|
|
2431
2430
|
}
|
|
2432
2431
|
else {
|
|
2433
2432
|
return [];
|
package/Customer.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare const Customer: {
|
|
|
22
22
|
} | null>;
|
|
23
23
|
/**
|
|
24
24
|
* Update a single Customer 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 Customer or null.
|
|
@@ -30,14 +29,14 @@ export declare const Customer: {
|
|
|
30
29
|
update(props: CustomerType, client: ApolloClient<NormalizedCacheObject>): Promise<CustomerType>;
|
|
31
30
|
/**
|
|
32
31
|
* Delete a single Customer record.
|
|
33
|
-
* @param
|
|
32
|
+
* @param props - Properties to update.
|
|
34
33
|
* @param client - Apollo Client instance.
|
|
35
34
|
* @returns The deleted Customer or null.
|
|
36
35
|
*/
|
|
37
36
|
delete(props: CustomerType, client: ApolloClient<NormalizedCacheObject>): Promise<CustomerType>;
|
|
38
37
|
/**
|
|
39
38
|
* Retrieve a single Customer record by ID.
|
|
40
|
-
* @param
|
|
39
|
+
* @param props - Properties to update.
|
|
41
40
|
* @param client - Apollo Client instance.
|
|
42
41
|
* @returns The retrieved Customer or null.
|
|
43
42
|
*/
|
package/Customer.js
CHANGED
|
@@ -504,7 +504,6 @@ exports.Customer = {
|
|
|
504
504
|
},
|
|
505
505
|
/**
|
|
506
506
|
* Update a single Customer record.
|
|
507
|
-
* @param id - Unique identifier of the record to update.
|
|
508
507
|
* @param props - Properties to update.
|
|
509
508
|
* @param client - Apollo Client instance.
|
|
510
509
|
* @returns The updated Customer or null.
|
|
@@ -1264,7 +1263,7 @@ exports.Customer = {
|
|
|
1264
1263
|
},
|
|
1265
1264
|
/**
|
|
1266
1265
|
* Delete a single Customer record.
|
|
1267
|
-
* @param
|
|
1266
|
+
* @param props - Properties to update.
|
|
1268
1267
|
* @param client - Apollo Client instance.
|
|
1269
1268
|
* @returns The deleted Customer or null.
|
|
1270
1269
|
*/
|
|
@@ -1556,7 +1555,7 @@ exports.Customer = {
|
|
|
1556
1555
|
},
|
|
1557
1556
|
/**
|
|
1558
1557
|
* Retrieve a single Customer record by ID.
|
|
1559
|
-
* @param
|
|
1558
|
+
* @param props - Properties to update.
|
|
1560
1559
|
* @param client - Apollo Client instance.
|
|
1561
1560
|
* @returns The retrieved Customer or null.
|
|
1562
1561
|
*/
|
|
@@ -1856,7 +1855,7 @@ exports.Customer = {
|
|
|
1856
1855
|
var _a, _b;
|
|
1857
1856
|
const GET_ALL_CUSTOMER = (0, client_1.gql) `
|
|
1858
1857
|
query getAllCustomer {
|
|
1859
|
-
|
|
1858
|
+
customers {
|
|
1860
1859
|
id
|
|
1861
1860
|
authUserId
|
|
1862
1861
|
name
|
|
@@ -2122,7 +2121,7 @@ exports.Customer = {
|
|
|
2122
2121
|
const response = await client.query({ query: GET_ALL_CUSTOMER });
|
|
2123
2122
|
if (response.errors && response.errors.length > 0)
|
|
2124
2123
|
throw new Error(response.errors[0].message);
|
|
2125
|
-
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.
|
|
2124
|
+
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
|
|
2126
2125
|
}
|
|
2127
2126
|
catch (error) {
|
|
2128
2127
|
console.error('Error in getAllCustomer:', error);
|
|
@@ -2138,7 +2137,7 @@ exports.Customer = {
|
|
|
2138
2137
|
async findMany(props, client) {
|
|
2139
2138
|
const FIND_MANY_CUSTOMER = (0, client_1.gql) `
|
|
2140
2139
|
query findManyCustomer($where: CustomerWhereInput!) {
|
|
2141
|
-
|
|
2140
|
+
customers(where: $where) {
|
|
2142
2141
|
id
|
|
2143
2142
|
authUserId
|
|
2144
2143
|
name
|
|
@@ -2416,7 +2415,7 @@ exports.Customer = {
|
|
|
2416
2415
|
if (response.errors && response.errors.length > 0)
|
|
2417
2416
|
throw new Error(response.errors[0].message);
|
|
2418
2417
|
if (response && response.data && response.data.Customers) {
|
|
2419
|
-
return response.data.
|
|
2418
|
+
return response.data.customers;
|
|
2420
2419
|
}
|
|
2421
2420
|
else {
|
|
2422
2421
|
return [];
|
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
|
*/
|