adaptic-backend 1.0.34 → 1.0.35
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 +7 -8
- package/AIRecommendation.js +15 -7
- package/Account.d.ts +7 -8
- package/Account.js +15 -7
- package/Alert.d.ts +7 -8
- package/Alert.js +15 -7
- package/AlpacaAccount.d.ts +7 -8
- package/AlpacaAccount.js +15 -7
- package/Asset.d.ts +7 -8
- package/Asset.js +15 -7
- package/Authenticator.d.ts +7 -8
- package/Authenticator.js +15 -7
- package/Customer.d.ts +7 -8
- package/Customer.js +15 -7
- package/EconomicEvent.d.ts +7 -8
- package/EconomicEvent.js +15 -7
- package/EnvironmentVariable.d.ts +7 -8
- package/EnvironmentVariable.js +15 -7
- package/Holding.d.ts +7 -8
- package/Holding.js +15 -7
- package/NewsArticle.d.ts +7 -8
- package/NewsArticle.js +15 -7
- package/NewsArticleAssetSentiment.d.ts +7 -8
- package/NewsArticleAssetSentiment.js +15 -7
- package/Order.d.ts +7 -8
- package/Order.js +15 -7
- package/PerformanceMetric.d.ts +7 -8
- package/PerformanceMetric.js +15 -7
- package/README.md +5 -8
- package/RiskAllocation.d.ts +7 -8
- package/RiskAllocation.js +15 -7
- package/Session.d.ts +7 -8
- package/Session.js +15 -7
- package/Trade.d.ts +7 -8
- package/Trade.js +15 -7
- package/TradeStep.d.ts +7 -8
- package/TradeStep.js +15 -7
- package/TradingAccount.d.ts +7 -8
- package/TradingAccount.js +15 -7
- package/User.d.ts +7 -8
- package/User.js +15 -7
- package/VerificationToken.d.ts +7 -8
- package/VerificationToken.js +15 -7
- package/client.d.ts +6 -0
- package/client.js +80 -0
- package/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/generated/typegraphql-prisma/enhance.js +5 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js +91 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js +111 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js +2 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js +6 -6
- package/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js +119 -0
- package/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/index.js +19 -11
- package/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/index.d.ts +147 -147
- package/package.json +2 -4
- package/server/AIRecommendation.d.ts +7 -8
- 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 +7 -8
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +15 -7
- package/server/Alert.d.ts +7 -8
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +15 -7
- package/server/AlpacaAccount.d.ts +7 -8
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +15 -7
- package/server/Asset.d.ts +7 -8
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +15 -7
- package/server/Authenticator.d.ts +7 -8
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +15 -7
- package/server/Customer.d.ts +7 -8
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +15 -7
- package/server/EconomicEvent.d.ts +7 -8
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +15 -7
- package/server/EnvironmentVariable.d.ts +7 -8
- 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 +7 -8
- package/server/Holding.d.ts.map +1 -1
- package/server/Holding.js.map +1 -1
- package/server/Holding.mjs +15 -7
- package/server/NewsArticle.d.ts +7 -8
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +15 -7
- package/server/NewsArticleAssetSentiment.d.ts +7 -8
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +15 -7
- package/server/Order.d.ts +7 -8
- 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 +7 -8
- 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 +7 -8
- 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 +7 -8
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +15 -7
- package/server/Trade.d.ts +7 -8
- 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 +7 -8
- package/server/TradeStep.d.ts.map +1 -1
- package/server/TradeStep.js.map +1 -1
- package/server/TradeStep.mjs +15 -7
- package/server/TradingAccount.d.ts +7 -8
- package/server/TradingAccount.d.ts.map +1 -1
- package/server/TradingAccount.js.map +1 -1
- package/server/TradingAccount.mjs +15 -7
- package/server/User.d.ts +7 -8
- 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 +7 -8
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +15 -7
- package/server/client.d.ts +6 -0
- package/server/client.d.ts.map +1 -0
- package/server/client.js.map +1 -0
- package/server/client.mjs +74 -0
- package/server/generated/typegraphql-prisma/enhance.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +5 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountScalarWhereWithAggregatesInput.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/AlpacaAccountWhereInput.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts +11 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableFilter.mjs +73 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts +16 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/NestedUuidNullableWithAggregatesFilter.mjs +96 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserScalarWhereWithAggregatesInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereInput.mjs +2 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/UserWhereUniqueInput.mjs +7 -7
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts +13 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableFilter.mjs +82 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts +18 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.d.ts.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.js.map +1 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/UuidNullableWithAggregatesFilter.mjs +105 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +4 -0
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/index.mjs +4 -0
- package/server/index.d.ts +147 -147
package/AIRecommendation.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AIRecommendation as AIRecommendationType } from './generated/typegraphql-prisma/models/AIRecommendation';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the AIRecommendation model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const AIRecommendation: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created AIRecommendation or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AIRecommendationType
|
|
12
|
+
create(props: AIRecommendationType): Promise<AIRecommendationType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple AIRecommendation records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AIRecommendationType[]
|
|
19
|
+
createMany(props: AIRecommendationType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const AIRecommendation: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated AIRecommendation or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AIRecommendationType
|
|
28
|
+
update(props: AIRecommendationType): Promise<AIRecommendationType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single AIRecommendation record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted AIRecommendation or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AIRecommendationType
|
|
35
|
+
delete(props: AIRecommendationType): Promise<AIRecommendationType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single AIRecommendation record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved AIRecommendation or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AIRecommendationType
|
|
42
|
+
get(props: AIRecommendationType): Promise<AIRecommendationType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all AIRecommendations records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of AIRecommendation records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AIRecommendationType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple AIRecommendation records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found AIRecommendation records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AIRecommendationType
|
|
55
|
+
findMany(props: AIRecommendationType): Promise<AIRecommendationType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=AIRecommendation.d.ts.map
|
package/AIRecommendation.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AIRecommendation = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the AIRecommendation model.
|
|
@@ -13,7 +14,8 @@ exports.AIRecommendation = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created AIRecommendation or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_AIRECOMMENDATION = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAIRecommendation($data: AIRecommendationCreateInput!) {
|
|
19
21
|
createOneAIRecommendation(data: $data) {
|
|
@@ -790,7 +792,8 @@ exports.AIRecommendation = {
|
|
|
790
792
|
* @param client - Apollo Client instance.
|
|
791
793
|
* @returns The count of created records or null.
|
|
792
794
|
*/
|
|
793
|
-
async createMany(props
|
|
795
|
+
async createMany(props) {
|
|
796
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
794
797
|
const CREATE_MANY_AIRECOMMENDATION = (0, client_1.gql) `
|
|
795
798
|
mutation createManyAIRecommendation($data: [AIRecommendationCreateManyInput!]!) {
|
|
796
799
|
createManyAIRecommendation(data: $data) {
|
|
@@ -829,7 +832,8 @@ exports.AIRecommendation = {
|
|
|
829
832
|
* @param client - Apollo Client instance.
|
|
830
833
|
* @returns The updated AIRecommendation or null.
|
|
831
834
|
*/
|
|
832
|
-
async update(props
|
|
835
|
+
async update(props) {
|
|
836
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
833
837
|
const UPDATE_ONE_AIRECOMMENDATION = (0, client_1.gql) `
|
|
834
838
|
mutation updateOneAIRecommendation($data: AIRecommendationUpdateInput!, $where: AIRecommendationWhereUniqueInput!) {
|
|
835
839
|
updateOneAIRecommendation(data: $data, where: $where) {
|
|
@@ -2487,7 +2491,8 @@ exports.AIRecommendation = {
|
|
|
2487
2491
|
* @param client - Apollo Client instance.
|
|
2488
2492
|
* @returns The deleted AIRecommendation or null.
|
|
2489
2493
|
*/
|
|
2490
|
-
async delete(props
|
|
2494
|
+
async delete(props) {
|
|
2495
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2491
2496
|
const DELETE_ONE_AIRECOMMENDATION = (0, client_1.gql) `
|
|
2492
2497
|
mutation deleteOneAIRecommendation($where: AIRecommendationWhereUniqueInput!) {
|
|
2493
2498
|
deleteOneAIRecommendation(where: $where) {
|
|
@@ -2841,8 +2846,9 @@ exports.AIRecommendation = {
|
|
|
2841
2846
|
* @param client - Apollo Client instance.
|
|
2842
2847
|
* @returns The retrieved AIRecommendation or null.
|
|
2843
2848
|
*/
|
|
2844
|
-
async get(props
|
|
2849
|
+
async get(props) {
|
|
2845
2850
|
var _a, _b;
|
|
2851
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2846
2852
|
const GET_AIRECOMMENDATION = (0, client_1.gql) `
|
|
2847
2853
|
query getAIRecommendation($where: AIRecommendationWhereUniqueInput!) {
|
|
2848
2854
|
getAIRecommendation(where: $where) {
|
|
@@ -3195,8 +3201,9 @@ exports.AIRecommendation = {
|
|
|
3195
3201
|
* @param client - Apollo Client instance.
|
|
3196
3202
|
* @returns An array of AIRecommendation records or null.
|
|
3197
3203
|
*/
|
|
3198
|
-
async getAll(
|
|
3204
|
+
async getAll() {
|
|
3199
3205
|
var _a, _b;
|
|
3206
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3200
3207
|
const GET_ALL_AIRECOMMENDATION = (0, client_1.gql) `
|
|
3201
3208
|
query getAllAIRecommendation {
|
|
3202
3209
|
aIRecommendations {
|
|
@@ -3544,7 +3551,8 @@ exports.AIRecommendation = {
|
|
|
3544
3551
|
* @param client - Apollo Client instance.
|
|
3545
3552
|
* @returns An array of found AIRecommendation records or null.
|
|
3546
3553
|
*/
|
|
3547
|
-
async findMany(props
|
|
3554
|
+
async findMany(props) {
|
|
3555
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3548
3556
|
const FIND_MANY_AIRECOMMENDATION = (0, client_1.gql) `
|
|
3549
3557
|
query findManyAIRecommendation($where: AIRecommendationWhereInput!) {
|
|
3550
3558
|
aIRecommendations(where: $where) {
|
package/Account.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Account as AccountType } from './generated/typegraphql-prisma/models/Account';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the Account model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const Account: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created Account or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AccountType
|
|
12
|
+
create(props: AccountType): Promise<AccountType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple Account records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AccountType[]
|
|
19
|
+
createMany(props: AccountType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const Account: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated Account or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AccountType
|
|
28
|
+
update(props: AccountType): Promise<AccountType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single Account record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted Account or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AccountType
|
|
35
|
+
delete(props: AccountType): Promise<AccountType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single Account record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved Account or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AccountType
|
|
42
|
+
get(props: AccountType): Promise<AccountType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Accounts records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of Account records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AccountType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple Account records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found Account records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AccountType
|
|
55
|
+
findMany(props: AccountType): Promise<AccountType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=Account.d.ts.map
|
package/Account.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Account = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the Account model.
|
|
@@ -13,7 +14,8 @@ exports.Account = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created Account or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ACCOUNT = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAccount($data: AccountCreateInput!) {
|
|
19
21
|
createOneAccount(data: $data) {
|
|
@@ -544,7 +546,8 @@ exports.Account = {
|
|
|
544
546
|
* @param client - Apollo Client instance.
|
|
545
547
|
* @returns The count of created records or null.
|
|
546
548
|
*/
|
|
547
|
-
async createMany(props
|
|
549
|
+
async createMany(props) {
|
|
550
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
548
551
|
const CREATE_MANY_ACCOUNT = (0, client_1.gql) `
|
|
549
552
|
mutation createManyAccount($data: [AccountCreateManyInput!]!) {
|
|
550
553
|
createManyAccount(data: $data) {
|
|
@@ -589,7 +592,8 @@ exports.Account = {
|
|
|
589
592
|
* @param client - Apollo Client instance.
|
|
590
593
|
* @returns The updated Account or null.
|
|
591
594
|
*/
|
|
592
|
-
async update(props
|
|
595
|
+
async update(props) {
|
|
596
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
593
597
|
const UPDATE_ONE_ACCOUNT = (0, client_1.gql) `
|
|
594
598
|
mutation updateOneAccount($data: AccountUpdateInput!, $where: AccountWhereUniqueInput!) {
|
|
595
599
|
updateOneAccount(data: $data, where: $where) {
|
|
@@ -1450,7 +1454,8 @@ exports.Account = {
|
|
|
1450
1454
|
* @param client - Apollo Client instance.
|
|
1451
1455
|
* @returns The deleted Account or null.
|
|
1452
1456
|
*/
|
|
1453
|
-
async delete(props
|
|
1457
|
+
async delete(props) {
|
|
1458
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1454
1459
|
const DELETE_ONE_ACCOUNT = (0, client_1.gql) `
|
|
1455
1460
|
mutation deleteOneAccount($where: AccountWhereUniqueInput!) {
|
|
1456
1461
|
deleteOneAccount(where: $where) {
|
|
@@ -1804,8 +1809,9 @@ exports.Account = {
|
|
|
1804
1809
|
* @param client - Apollo Client instance.
|
|
1805
1810
|
* @returns The retrieved Account or null.
|
|
1806
1811
|
*/
|
|
1807
|
-
async get(props
|
|
1812
|
+
async get(props) {
|
|
1808
1813
|
var _a, _b;
|
|
1814
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1809
1815
|
const GET_ACCOUNT = (0, client_1.gql) `
|
|
1810
1816
|
query getAccount($where: AccountWhereUniqueInput!) {
|
|
1811
1817
|
getAccount(where: $where) {
|
|
@@ -2158,8 +2164,9 @@ exports.Account = {
|
|
|
2158
2164
|
* @param client - Apollo Client instance.
|
|
2159
2165
|
* @returns An array of Account records or null.
|
|
2160
2166
|
*/
|
|
2161
|
-
async getAll(
|
|
2167
|
+
async getAll() {
|
|
2162
2168
|
var _a, _b;
|
|
2169
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2163
2170
|
const GET_ALL_ACCOUNT = (0, client_1.gql) `
|
|
2164
2171
|
query getAllAccount {
|
|
2165
2172
|
accounts {
|
|
@@ -2507,7 +2514,8 @@ exports.Account = {
|
|
|
2507
2514
|
* @param client - Apollo Client instance.
|
|
2508
2515
|
* @returns An array of found Account records or null.
|
|
2509
2516
|
*/
|
|
2510
|
-
async findMany(props
|
|
2517
|
+
async findMany(props) {
|
|
2518
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2511
2519
|
const FIND_MANY_ACCOUNT = (0, client_1.gql) `
|
|
2512
2520
|
query findManyAccount($where: AccountWhereInput!) {
|
|
2513
2521
|
accounts(where: $where) {
|
package/Alert.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Alert as AlertType } from './generated/typegraphql-prisma/models/Alert';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the Alert model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const Alert: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created Alert or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AlertType
|
|
12
|
+
create(props: AlertType): Promise<AlertType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple Alert records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AlertType[]
|
|
19
|
+
createMany(props: AlertType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const Alert: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated Alert or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AlertType
|
|
28
|
+
update(props: AlertType): Promise<AlertType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single Alert record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted Alert or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AlertType
|
|
35
|
+
delete(props: AlertType): Promise<AlertType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single Alert record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved Alert or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AlertType
|
|
42
|
+
get(props: AlertType): Promise<AlertType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Alerts records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of Alert records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AlertType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple Alert records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found Alert records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AlertType
|
|
55
|
+
findMany(props: AlertType): Promise<AlertType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=Alert.d.ts.map
|
package/Alert.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Alert = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the Alert model.
|
|
@@ -13,7 +14,8 @@ exports.Alert = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created Alert or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ALERT = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAlert($data: AlertCreateInput!) {
|
|
19
21
|
createOneAlert(data: $data) {
|
|
@@ -671,7 +673,8 @@ exports.Alert = {
|
|
|
671
673
|
* @param client - Apollo Client instance.
|
|
672
674
|
* @returns The count of created records or null.
|
|
673
675
|
*/
|
|
674
|
-
async createMany(props
|
|
676
|
+
async createMany(props) {
|
|
677
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
675
678
|
const CREATE_MANY_ALERT = (0, client_1.gql) `
|
|
676
679
|
mutation createManyAlert($data: [AlertCreateManyInput!]!) {
|
|
677
680
|
createManyAlert(data: $data) {
|
|
@@ -710,7 +713,8 @@ exports.Alert = {
|
|
|
710
713
|
* @param client - Apollo Client instance.
|
|
711
714
|
* @returns The updated Alert or null.
|
|
712
715
|
*/
|
|
713
|
-
async update(props
|
|
716
|
+
async update(props) {
|
|
717
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
714
718
|
const UPDATE_ONE_ALERT = (0, client_1.gql) `
|
|
715
719
|
mutation updateOneAlert($data: AlertUpdateInput!, $where: AlertWhereUniqueInput!) {
|
|
716
720
|
updateOneAlert(data: $data, where: $where) {
|
|
@@ -1960,7 +1964,8 @@ exports.Alert = {
|
|
|
1960
1964
|
* @param client - Apollo Client instance.
|
|
1961
1965
|
* @returns The deleted Alert or null.
|
|
1962
1966
|
*/
|
|
1963
|
-
async delete(props
|
|
1967
|
+
async delete(props) {
|
|
1968
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1964
1969
|
const DELETE_ONE_ALERT = (0, client_1.gql) `
|
|
1965
1970
|
mutation deleteOneAlert($where: AlertWhereUniqueInput!) {
|
|
1966
1971
|
deleteOneAlert(where: $where) {
|
|
@@ -2314,8 +2319,9 @@ exports.Alert = {
|
|
|
2314
2319
|
* @param client - Apollo Client instance.
|
|
2315
2320
|
* @returns The retrieved Alert or null.
|
|
2316
2321
|
*/
|
|
2317
|
-
async get(props
|
|
2322
|
+
async get(props) {
|
|
2318
2323
|
var _a, _b;
|
|
2324
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2319
2325
|
const GET_ALERT = (0, client_1.gql) `
|
|
2320
2326
|
query getAlert($where: AlertWhereUniqueInput!) {
|
|
2321
2327
|
getAlert(where: $where) {
|
|
@@ -2668,8 +2674,9 @@ exports.Alert = {
|
|
|
2668
2674
|
* @param client - Apollo Client instance.
|
|
2669
2675
|
* @returns An array of Alert records or null.
|
|
2670
2676
|
*/
|
|
2671
|
-
async getAll(
|
|
2677
|
+
async getAll() {
|
|
2672
2678
|
var _a, _b;
|
|
2679
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2673
2680
|
const GET_ALL_ALERT = (0, client_1.gql) `
|
|
2674
2681
|
query getAllAlert {
|
|
2675
2682
|
alerts {
|
|
@@ -3017,7 +3024,8 @@ exports.Alert = {
|
|
|
3017
3024
|
* @param client - Apollo Client instance.
|
|
3018
3025
|
* @returns An array of found Alert records or null.
|
|
3019
3026
|
*/
|
|
3020
|
-
async findMany(props
|
|
3027
|
+
async findMany(props) {
|
|
3028
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3021
3029
|
const FIND_MANY_ALERT = (0, client_1.gql) `
|
|
3022
3030
|
query findManyAlert($where: AlertWhereInput!) {
|
|
3023
3031
|
alerts(where: $where) {
|
package/AlpacaAccount.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AlpacaAccount as AlpacaAccountType } from './generated/typegraphql-prisma/models/AlpacaAccount';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the AlpacaAccount model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const AlpacaAccount: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created AlpacaAccount or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AlpacaAccountType
|
|
12
|
+
create(props: AlpacaAccountType): Promise<AlpacaAccountType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple AlpacaAccount records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AlpacaAccountType[]
|
|
19
|
+
createMany(props: AlpacaAccountType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const AlpacaAccount: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated AlpacaAccount or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AlpacaAccountType
|
|
28
|
+
update(props: AlpacaAccountType): Promise<AlpacaAccountType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single AlpacaAccount record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted AlpacaAccount or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AlpacaAccountType
|
|
35
|
+
delete(props: AlpacaAccountType): Promise<AlpacaAccountType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single AlpacaAccount record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved AlpacaAccount or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AlpacaAccountType
|
|
42
|
+
get(props: AlpacaAccountType): Promise<AlpacaAccountType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all AlpacaAccounts records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of AlpacaAccount records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AlpacaAccountType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple AlpacaAccount records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found AlpacaAccount records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AlpacaAccountType
|
|
55
|
+
findMany(props: AlpacaAccountType): Promise<AlpacaAccountType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=AlpacaAccount.d.ts.map
|
package/AlpacaAccount.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlpacaAccount = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
+
const client_2 = require("./client");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
7
|
/**
|
|
7
8
|
* CRUD operations for the AlpacaAccount model.
|
|
@@ -13,7 +14,8 @@ exports.AlpacaAccount = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created AlpacaAccount or null.
|
|
15
16
|
*/
|
|
16
|
-
async create(props
|
|
17
|
+
async create(props) {
|
|
18
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
17
19
|
const CREATE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
|
18
20
|
mutation createOneAlpacaAccount($data: AlpacaAccountCreateInput!) {
|
|
19
21
|
createOneAlpacaAccount(data: $data) {
|
|
@@ -544,7 +546,8 @@ exports.AlpacaAccount = {
|
|
|
544
546
|
* @param client - Apollo Client instance.
|
|
545
547
|
* @returns The count of created records or null.
|
|
546
548
|
*/
|
|
547
|
-
async createMany(props
|
|
549
|
+
async createMany(props) {
|
|
550
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
548
551
|
const CREATE_MANY_ALPACAACCOUNT = (0, client_1.gql) `
|
|
549
552
|
mutation createManyAlpacaAccount($data: [AlpacaAccountCreateManyInput!]!) {
|
|
550
553
|
createManyAlpacaAccount(data: $data) {
|
|
@@ -582,7 +585,8 @@ exports.AlpacaAccount = {
|
|
|
582
585
|
* @param client - Apollo Client instance.
|
|
583
586
|
* @returns The updated AlpacaAccount or null.
|
|
584
587
|
*/
|
|
585
|
-
async update(props
|
|
588
|
+
async update(props) {
|
|
589
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
586
590
|
const UPDATE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
|
587
591
|
mutation updateOneAlpacaAccount($data: AlpacaAccountUpdateInput!, $where: AlpacaAccountWhereUniqueInput!) {
|
|
588
592
|
updateOneAlpacaAccount(data: $data, where: $where) {
|
|
@@ -1458,7 +1462,8 @@ exports.AlpacaAccount = {
|
|
|
1458
1462
|
* @param client - Apollo Client instance.
|
|
1459
1463
|
* @returns The deleted AlpacaAccount or null.
|
|
1460
1464
|
*/
|
|
1461
|
-
async delete(props
|
|
1465
|
+
async delete(props) {
|
|
1466
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1462
1467
|
const DELETE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
|
1463
1468
|
mutation deleteOneAlpacaAccount($where: AlpacaAccountWhereUniqueInput!) {
|
|
1464
1469
|
deleteOneAlpacaAccount(where: $where) {
|
|
@@ -1812,8 +1817,9 @@ exports.AlpacaAccount = {
|
|
|
1812
1817
|
* @param client - Apollo Client instance.
|
|
1813
1818
|
* @returns The retrieved AlpacaAccount or null.
|
|
1814
1819
|
*/
|
|
1815
|
-
async get(props
|
|
1820
|
+
async get(props) {
|
|
1816
1821
|
var _a, _b;
|
|
1822
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1817
1823
|
const GET_ALPACAACCOUNT = (0, client_1.gql) `
|
|
1818
1824
|
query getAlpacaAccount($where: AlpacaAccountWhereUniqueInput!) {
|
|
1819
1825
|
getAlpacaAccount(where: $where) {
|
|
@@ -2166,8 +2172,9 @@ exports.AlpacaAccount = {
|
|
|
2166
2172
|
* @param client - Apollo Client instance.
|
|
2167
2173
|
* @returns An array of AlpacaAccount records or null.
|
|
2168
2174
|
*/
|
|
2169
|
-
async getAll(
|
|
2175
|
+
async getAll() {
|
|
2170
2176
|
var _a, _b;
|
|
2177
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2171
2178
|
const GET_ALL_ALPACAACCOUNT = (0, client_1.gql) `
|
|
2172
2179
|
query getAllAlpacaAccount {
|
|
2173
2180
|
alpacaAccounts {
|
|
@@ -2515,7 +2522,8 @@ exports.AlpacaAccount = {
|
|
|
2515
2522
|
* @param client - Apollo Client instance.
|
|
2516
2523
|
* @returns An array of found AlpacaAccount records or null.
|
|
2517
2524
|
*/
|
|
2518
|
-
async findMany(props
|
|
2525
|
+
async findMany(props) {
|
|
2526
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2519
2527
|
const FIND_MANY_ALPACAACCOUNT = (0, client_1.gql) `
|
|
2520
2528
|
query findManyAlpacaAccount($where: AlpacaAccountWhereInput!) {
|
|
2521
2529
|
alpacaAccounts(where: $where) {
|
package/Asset.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Asset as AssetType } from './generated/typegraphql-prisma/models/Asset';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the Asset model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const Asset: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created Asset or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: AssetType
|
|
12
|
+
create(props: AssetType): Promise<AssetType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple Asset records.
|
|
16
15
|
* @param props - Array of properties for the new records.
|
|
17
16
|
* @param client - Apollo Client instance.
|
|
18
17
|
* @returns The count of created records or null.
|
|
19
18
|
*/
|
|
20
|
-
createMany(props: AssetType[]
|
|
19
|
+
createMany(props: AssetType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const Asset: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated Asset or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: AssetType
|
|
28
|
+
update(props: AssetType): Promise<AssetType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single Asset record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted Asset or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: AssetType
|
|
35
|
+
delete(props: AssetType): Promise<AssetType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single Asset record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved Asset or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: AssetType
|
|
42
|
+
get(props: AssetType): Promise<AssetType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Assets records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of Asset records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<AssetType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple Asset records based on conditions.
|
|
52
51
|
* @param where - Conditions to find records.
|
|
53
52
|
* @param client - Apollo Client instance.
|
|
54
53
|
* @returns An array of found Asset records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: AssetType
|
|
55
|
+
findMany(props: AssetType): Promise<AssetType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=Asset.d.ts.map
|