adaptic-backend 1.0.34 → 1.0.36
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 +8 -30
- 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/TradeStep.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TradeStep = 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 TradeStep model.
|
|
@@ -13,7 +14,8 @@ exports.TradeStep = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created TradeStep 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_TRADESTEP = (0, client_1.gql) `
|
|
18
20
|
mutation createOneTradeStep($data: TradeStepCreateInput!) {
|
|
19
21
|
createOneTradeStep(data: $data) {
|
|
@@ -524,7 +526,8 @@ exports.TradeStep = {
|
|
|
524
526
|
* @param client - Apollo Client instance.
|
|
525
527
|
* @returns The count of created records or null.
|
|
526
528
|
*/
|
|
527
|
-
async createMany(props
|
|
529
|
+
async createMany(props) {
|
|
530
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
528
531
|
const CREATE_MANY_TRADESTEP = (0, client_1.gql) `
|
|
529
532
|
mutation createManyTradeStep($data: [TradeStepCreateManyInput!]!) {
|
|
530
533
|
createManyTradeStep(data: $data) {
|
|
@@ -574,7 +577,8 @@ exports.TradeStep = {
|
|
|
574
577
|
* @param client - Apollo Client instance.
|
|
575
578
|
* @returns The updated TradeStep or null.
|
|
576
579
|
*/
|
|
577
|
-
async update(props
|
|
580
|
+
async update(props) {
|
|
581
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
578
582
|
const UPDATE_ONE_TRADESTEP = (0, client_1.gql) `
|
|
579
583
|
mutation updateOneTradeStep($data: TradeStepUpdateInput!, $where: TradeStepWhereUniqueInput!) {
|
|
580
584
|
updateOneTradeStep(data: $data, where: $where) {
|
|
@@ -1430,7 +1434,8 @@ exports.TradeStep = {
|
|
|
1430
1434
|
* @param client - Apollo Client instance.
|
|
1431
1435
|
* @returns The deleted TradeStep or null.
|
|
1432
1436
|
*/
|
|
1433
|
-
async delete(props
|
|
1437
|
+
async delete(props) {
|
|
1438
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1434
1439
|
const DELETE_ONE_TRADESTEP = (0, client_1.gql) `
|
|
1435
1440
|
mutation deleteOneTradeStep($where: TradeStepWhereUniqueInput!) {
|
|
1436
1441
|
deleteOneTradeStep(where: $where) {
|
|
@@ -1808,8 +1813,9 @@ exports.TradeStep = {
|
|
|
1808
1813
|
* @param client - Apollo Client instance.
|
|
1809
1814
|
* @returns The retrieved TradeStep or null.
|
|
1810
1815
|
*/
|
|
1811
|
-
async get(props
|
|
1816
|
+
async get(props) {
|
|
1812
1817
|
var _a, _b;
|
|
1818
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1813
1819
|
const GET_TRADESTEP = (0, client_1.gql) `
|
|
1814
1820
|
query getTradeStep($where: TradeStepWhereUniqueInput!) {
|
|
1815
1821
|
getTradeStep(where: $where) {
|
|
@@ -2186,8 +2192,9 @@ exports.TradeStep = {
|
|
|
2186
2192
|
* @param client - Apollo Client instance.
|
|
2187
2193
|
* @returns An array of TradeStep records or null.
|
|
2188
2194
|
*/
|
|
2189
|
-
async getAll(
|
|
2195
|
+
async getAll() {
|
|
2190
2196
|
var _a, _b;
|
|
2197
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2191
2198
|
const GET_ALL_TRADESTEP = (0, client_1.gql) `
|
|
2192
2199
|
query getAllTradeStep {
|
|
2193
2200
|
tradeSteps {
|
|
@@ -2559,7 +2566,8 @@ exports.TradeStep = {
|
|
|
2559
2566
|
* @param client - Apollo Client instance.
|
|
2560
2567
|
* @returns An array of found TradeStep records or null.
|
|
2561
2568
|
*/
|
|
2562
|
-
async findMany(props
|
|
2569
|
+
async findMany(props) {
|
|
2570
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
2563
2571
|
const FIND_MANY_TRADESTEP = (0, client_1.gql) `
|
|
2564
2572
|
query findManyTradeStep($where: TradeStepWhereInput!) {
|
|
2565
2573
|
tradeSteps(where: $where) {
|
package/TradingAccount.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TradingAccount as TradingAccountType } from './generated/typegraphql-prisma/models/TradingAccount';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the TradingAccount model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const TradingAccount: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created TradingAccount or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: TradingAccountType
|
|
12
|
+
create(props: TradingAccountType): Promise<TradingAccountType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple TradingAccount 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: TradingAccountType[]
|
|
19
|
+
createMany(props: TradingAccountType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const TradingAccount: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated TradingAccount or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: TradingAccountType
|
|
28
|
+
update(props: TradingAccountType): Promise<TradingAccountType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single TradingAccount record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted TradingAccount or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: TradingAccountType
|
|
35
|
+
delete(props: TradingAccountType): Promise<TradingAccountType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single TradingAccount record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved TradingAccount or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: TradingAccountType
|
|
42
|
+
get(props: TradingAccountType): Promise<TradingAccountType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all TradingAccounts records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of TradingAccount records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<TradingAccountType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple TradingAccount 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 TradingAccount records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: TradingAccountType
|
|
55
|
+
findMany(props: TradingAccountType): Promise<TradingAccountType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=TradingAccount.d.ts.map
|
package/TradingAccount.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TradingAccount = 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 TradingAccount model.
|
|
@@ -13,7 +14,8 @@ exports.TradingAccount = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created TradingAccount 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_TRADINGACCOUNT = (0, client_1.gql) `
|
|
18
20
|
mutation createOneTradingAccount($data: TradingAccountCreateInput!) {
|
|
19
21
|
createOneTradingAccount(data: $data) {
|
|
@@ -1079,7 +1081,8 @@ exports.TradingAccount = {
|
|
|
1079
1081
|
* @param client - Apollo Client instance.
|
|
1080
1082
|
* @returns The count of created records or null.
|
|
1081
1083
|
*/
|
|
1082
|
-
async createMany(props
|
|
1084
|
+
async createMany(props) {
|
|
1085
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1083
1086
|
const CREATE_MANY_TRADINGACCOUNT = (0, client_1.gql) `
|
|
1084
1087
|
mutation createManyTradingAccount($data: [TradingAccountCreateManyInput!]!) {
|
|
1085
1088
|
createManyTradingAccount(data: $data) {
|
|
@@ -1117,7 +1120,8 @@ exports.TradingAccount = {
|
|
|
1117
1120
|
* @param client - Apollo Client instance.
|
|
1118
1121
|
* @returns The updated TradingAccount or null.
|
|
1119
1122
|
*/
|
|
1120
|
-
async update(props
|
|
1123
|
+
async update(props) {
|
|
1124
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1121
1125
|
const UPDATE_ONE_TRADINGACCOUNT = (0, client_1.gql) `
|
|
1122
1126
|
mutation updateOneTradingAccount($data: TradingAccountUpdateInput!, $where: TradingAccountWhereUniqueInput!) {
|
|
1123
1127
|
updateOneTradingAccount(data: $data, where: $where) {
|
|
@@ -3973,7 +3977,8 @@ exports.TradingAccount = {
|
|
|
3973
3977
|
* @param client - Apollo Client instance.
|
|
3974
3978
|
* @returns The deleted TradingAccount or null.
|
|
3975
3979
|
*/
|
|
3976
|
-
async delete(props
|
|
3980
|
+
async delete(props) {
|
|
3981
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3977
3982
|
const DELETE_ONE_TRADINGACCOUNT = (0, client_1.gql) `
|
|
3978
3983
|
mutation deleteOneTradingAccount($where: TradingAccountWhereUniqueInput!) {
|
|
3979
3984
|
deleteOneTradingAccount(where: $where) {
|
|
@@ -4348,8 +4353,9 @@ exports.TradingAccount = {
|
|
|
4348
4353
|
* @param client - Apollo Client instance.
|
|
4349
4354
|
* @returns The retrieved TradingAccount or null.
|
|
4350
4355
|
*/
|
|
4351
|
-
async get(props
|
|
4356
|
+
async get(props) {
|
|
4352
4357
|
var _a, _b;
|
|
4358
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
4353
4359
|
const GET_TRADINGACCOUNT = (0, client_1.gql) `
|
|
4354
4360
|
query getTradingAccount($where: TradingAccountWhereUniqueInput!) {
|
|
4355
4361
|
getTradingAccount(where: $where) {
|
|
@@ -4727,8 +4733,9 @@ exports.TradingAccount = {
|
|
|
4727
4733
|
* @param client - Apollo Client instance.
|
|
4728
4734
|
* @returns An array of TradingAccount records or null.
|
|
4729
4735
|
*/
|
|
4730
|
-
async getAll(
|
|
4736
|
+
async getAll() {
|
|
4731
4737
|
var _a, _b;
|
|
4738
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
4732
4739
|
const GET_ALL_TRADINGACCOUNT = (0, client_1.gql) `
|
|
4733
4740
|
query getAllTradingAccount {
|
|
4734
4741
|
tradingAccounts {
|
|
@@ -5097,7 +5104,8 @@ exports.TradingAccount = {
|
|
|
5097
5104
|
* @param client - Apollo Client instance.
|
|
5098
5105
|
* @returns An array of found TradingAccount records or null.
|
|
5099
5106
|
*/
|
|
5100
|
-
async findMany(props
|
|
5107
|
+
async findMany(props) {
|
|
5108
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
5101
5109
|
const FIND_MANY_TRADINGACCOUNT = (0, client_1.gql) `
|
|
5102
5110
|
query findManyTradingAccount($where: TradingAccountWhereInput!) {
|
|
5103
5111
|
tradingAccounts(where: $where) {
|
package/User.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { User as UserType } from './generated/typegraphql-prisma/models/User';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the User model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const User: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created User or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: UserType
|
|
12
|
+
create(props: UserType): Promise<UserType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple User 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: UserType[]
|
|
19
|
+
createMany(props: UserType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const User: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated User or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: UserType
|
|
28
|
+
update(props: UserType): Promise<UserType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single User record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted User or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: UserType
|
|
35
|
+
delete(props: UserType): Promise<UserType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single User record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved User or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: UserType
|
|
42
|
+
get(props: UserType): Promise<UserType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all Users records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of User records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<UserType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple User 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 User records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: UserType
|
|
55
|
+
findMany(props: UserType): Promise<UserType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=User.d.ts.map
|
package/User.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.User = 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 User model.
|
|
@@ -13,7 +14,8 @@ exports.User = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created User 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_USER = (0, client_1.gql) `
|
|
18
20
|
mutation createOneUser($data: UserCreateInput!) {
|
|
19
21
|
createOneUser(data: $data) {
|
|
@@ -985,7 +987,8 @@ exports.User = {
|
|
|
985
987
|
* @param client - Apollo Client instance.
|
|
986
988
|
* @returns The count of created records or null.
|
|
987
989
|
*/
|
|
988
|
-
async createMany(props
|
|
990
|
+
async createMany(props) {
|
|
991
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
989
992
|
const CREATE_MANY_USER = (0, client_1.gql) `
|
|
990
993
|
mutation createManyUser($data: [UserCreateManyInput!]!) {
|
|
991
994
|
createManyUser(data: $data) {
|
|
@@ -1030,7 +1033,8 @@ exports.User = {
|
|
|
1030
1033
|
* @param client - Apollo Client instance.
|
|
1031
1034
|
* @returns The updated User or null.
|
|
1032
1035
|
*/
|
|
1033
|
-
async update(props
|
|
1036
|
+
async update(props) {
|
|
1037
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
1034
1038
|
const UPDATE_ONE_USER = (0, client_1.gql) `
|
|
1035
1039
|
mutation updateOneUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) {
|
|
1036
1040
|
updateOneUser(data: $data, where: $where) {
|
|
@@ -3335,7 +3339,8 @@ exports.User = {
|
|
|
3335
3339
|
* @param client - Apollo Client instance.
|
|
3336
3340
|
* @returns The deleted User or null.
|
|
3337
3341
|
*/
|
|
3338
|
-
async delete(props
|
|
3342
|
+
async delete(props) {
|
|
3343
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3339
3344
|
const DELETE_ONE_USER = (0, client_1.gql) `
|
|
3340
3345
|
mutation deleteOneUser($where: UserWhereUniqueInput!) {
|
|
3341
3346
|
deleteOneUser(where: $where) {
|
|
@@ -3722,8 +3727,9 @@ exports.User = {
|
|
|
3722
3727
|
* @param client - Apollo Client instance.
|
|
3723
3728
|
* @returns The retrieved User or null.
|
|
3724
3729
|
*/
|
|
3725
|
-
async get(props
|
|
3730
|
+
async get(props) {
|
|
3726
3731
|
var _a, _b;
|
|
3732
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
3727
3733
|
const GET_USER = (0, client_1.gql) `
|
|
3728
3734
|
query getUser($where: UserWhereUniqueInput!) {
|
|
3729
3735
|
getUser(where: $where) {
|
|
@@ -4113,8 +4119,9 @@ exports.User = {
|
|
|
4113
4119
|
* @param client - Apollo Client instance.
|
|
4114
4120
|
* @returns An array of User records or null.
|
|
4115
4121
|
*/
|
|
4116
|
-
async getAll(
|
|
4122
|
+
async getAll() {
|
|
4117
4123
|
var _a, _b;
|
|
4124
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
4118
4125
|
const GET_ALL_USER = (0, client_1.gql) `
|
|
4119
4126
|
query getAllUser {
|
|
4120
4127
|
users {
|
|
@@ -4495,7 +4502,8 @@ exports.User = {
|
|
|
4495
4502
|
* @param client - Apollo Client instance.
|
|
4496
4503
|
* @returns An array of found User records or null.
|
|
4497
4504
|
*/
|
|
4498
|
-
async findMany(props
|
|
4505
|
+
async findMany(props) {
|
|
4506
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
4499
4507
|
const FIND_MANY_USER = (0, client_1.gql) `
|
|
4500
4508
|
query findManyUser($where: UserWhereInput!) {
|
|
4501
4509
|
users(where: $where) {
|
package/VerificationToken.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VerificationToken as VerificationTokenType } from './generated/typegraphql-prisma/models/VerificationToken';
|
|
2
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
2
|
/**
|
|
4
3
|
* CRUD operations for the VerificationToken model.
|
|
5
4
|
*/
|
|
@@ -10,14 +9,14 @@ export declare const VerificationToken: {
|
|
|
10
9
|
* @param client - Apollo Client instance.
|
|
11
10
|
* @returns The created VerificationToken or null.
|
|
12
11
|
*/
|
|
13
|
-
create(props: VerificationTokenType
|
|
12
|
+
create(props: VerificationTokenType): Promise<VerificationTokenType>;
|
|
14
13
|
/**
|
|
15
14
|
* Create multiple VerificationToken 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: VerificationTokenType[]
|
|
19
|
+
createMany(props: VerificationTokenType[]): Promise<{
|
|
21
20
|
count: number;
|
|
22
21
|
} | null>;
|
|
23
22
|
/**
|
|
@@ -26,33 +25,33 @@ export declare const VerificationToken: {
|
|
|
26
25
|
* @param client - Apollo Client instance.
|
|
27
26
|
* @returns The updated VerificationToken or null.
|
|
28
27
|
*/
|
|
29
|
-
update(props: VerificationTokenType
|
|
28
|
+
update(props: VerificationTokenType): Promise<VerificationTokenType>;
|
|
30
29
|
/**
|
|
31
30
|
* Delete a single VerificationToken record.
|
|
32
31
|
* @param props - Properties to update.
|
|
33
32
|
* @param client - Apollo Client instance.
|
|
34
33
|
* @returns The deleted VerificationToken or null.
|
|
35
34
|
*/
|
|
36
|
-
delete(props: VerificationTokenType
|
|
35
|
+
delete(props: VerificationTokenType): Promise<VerificationTokenType>;
|
|
37
36
|
/**
|
|
38
37
|
* Retrieve a single VerificationToken record by ID.
|
|
39
38
|
* @param props - Properties to update.
|
|
40
39
|
* @param client - Apollo Client instance.
|
|
41
40
|
* @returns The retrieved VerificationToken or null.
|
|
42
41
|
*/
|
|
43
|
-
get(props: VerificationTokenType
|
|
42
|
+
get(props: VerificationTokenType): Promise<VerificationTokenType | null>;
|
|
44
43
|
/**
|
|
45
44
|
* Retrieve all VerificationTokens records.
|
|
46
45
|
* @param client - Apollo Client instance.
|
|
47
46
|
* @returns An array of VerificationToken records or null.
|
|
48
47
|
*/
|
|
49
|
-
getAll(
|
|
48
|
+
getAll(): Promise<VerificationTokenType[] | null>;
|
|
50
49
|
/**
|
|
51
50
|
* Find multiple VerificationToken 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 VerificationToken records or null.
|
|
55
54
|
*/
|
|
56
|
-
findMany(props: VerificationTokenType
|
|
55
|
+
findMany(props: VerificationTokenType): Promise<VerificationTokenType[] | null>;
|
|
57
56
|
};
|
|
58
57
|
//# sourceMappingURL=VerificationToken.d.ts.map
|
package/VerificationToken.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VerificationToken = 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 VerificationToken model.
|
|
@@ -13,7 +14,8 @@ exports.VerificationToken = {
|
|
|
13
14
|
* @param client - Apollo Client instance.
|
|
14
15
|
* @returns The created VerificationToken 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_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
18
20
|
mutation createOneVerificationToken($data: VerificationTokenCreateInput!) {
|
|
19
21
|
createOneVerificationToken(data: $data) {
|
|
@@ -54,7 +56,8 @@ exports.VerificationToken = {
|
|
|
54
56
|
* @param client - Apollo Client instance.
|
|
55
57
|
* @returns The count of created records or null.
|
|
56
58
|
*/
|
|
57
|
-
async createMany(props
|
|
59
|
+
async createMany(props) {
|
|
60
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
58
61
|
const CREATE_MANY_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
59
62
|
mutation createManyVerificationToken($data: [VerificationTokenCreateManyInput!]!) {
|
|
60
63
|
createManyVerificationToken(data: $data) {
|
|
@@ -91,7 +94,8 @@ exports.VerificationToken = {
|
|
|
91
94
|
* @param client - Apollo Client instance.
|
|
92
95
|
* @returns The updated VerificationToken or null.
|
|
93
96
|
*/
|
|
94
|
-
async update(props
|
|
97
|
+
async update(props) {
|
|
98
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
95
99
|
const UPDATE_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
96
100
|
mutation updateOneVerificationToken($data: VerificationTokenUpdateInput!, $where: VerificationTokenWhereUniqueInput!) {
|
|
97
101
|
updateOneVerificationToken(data: $data, where: $where) {
|
|
@@ -130,7 +134,8 @@ exports.VerificationToken = {
|
|
|
130
134
|
* @param client - Apollo Client instance.
|
|
131
135
|
* @returns The deleted VerificationToken or null.
|
|
132
136
|
*/
|
|
133
|
-
async delete(props
|
|
137
|
+
async delete(props) {
|
|
138
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
134
139
|
const DELETE_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
135
140
|
mutation deleteOneVerificationToken($where: VerificationTokenWhereUniqueInput!) {
|
|
136
141
|
deleteOneVerificationToken(where: $where) {
|
|
@@ -168,8 +173,9 @@ exports.VerificationToken = {
|
|
|
168
173
|
* @param client - Apollo Client instance.
|
|
169
174
|
* @returns The retrieved VerificationToken or null.
|
|
170
175
|
*/
|
|
171
|
-
async get(props
|
|
176
|
+
async get(props) {
|
|
172
177
|
var _a, _b;
|
|
178
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
173
179
|
const GET_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
174
180
|
query getVerificationToken($where: VerificationTokenWhereUniqueInput!) {
|
|
175
181
|
getVerificationToken(where: $where) {
|
|
@@ -206,8 +212,9 @@ exports.VerificationToken = {
|
|
|
206
212
|
* @param client - Apollo Client instance.
|
|
207
213
|
* @returns An array of VerificationToken records or null.
|
|
208
214
|
*/
|
|
209
|
-
async getAll(
|
|
215
|
+
async getAll() {
|
|
210
216
|
var _a, _b;
|
|
217
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
211
218
|
const GET_ALL_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
212
219
|
query getAllVerificationToken {
|
|
213
220
|
verificationTokens {
|
|
@@ -239,7 +246,8 @@ exports.VerificationToken = {
|
|
|
239
246
|
* @param client - Apollo Client instance.
|
|
240
247
|
* @returns An array of found VerificationToken records or null.
|
|
241
248
|
*/
|
|
242
|
-
async findMany(props
|
|
249
|
+
async findMany(props) {
|
|
250
|
+
const client = await (0, client_2.initializeApolloServerSide)();
|
|
243
251
|
const FIND_MANY_VERIFICATIONTOKEN = (0, client_1.gql) `
|
|
244
252
|
query findManyVerificationToken($where: VerificationTokenWhereInput!) {
|
|
245
253
|
verificationTokens(where: $where) {
|
package/client.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApolloClient } from "@apollo/client";
|
|
2
|
+
export type { NormalizedCacheObject, ApolloClient } from "@apollo/client";
|
|
3
|
+
export declare function initializeApolloServerSide(): Promise<ApolloClient<import("@apollo/client").NormalizedCacheObject>>;
|
|
4
|
+
export declare function initializeApolloClientSide(): Promise<ApolloClient<import("@apollo/client").NormalizedCacheObject>>;
|
|
5
|
+
export declare const makeClient: () => Promise<ApolloClient<any>>;
|
|
6
|
+
//# sourceMappingURL=client.d.ts.map
|
package/client.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.makeClient = void 0;
|
|
5
|
+
exports.initializeApolloServerSide = initializeApolloServerSide;
|
|
6
|
+
exports.initializeApolloClientSide = initializeApolloClientSide;
|
|
7
|
+
const client_1 = require("@apollo/client");
|
|
8
|
+
const utilities_1 = require("@apollo/client/utilities");
|
|
9
|
+
const context_1 = require("@apollo/client/link/context");
|
|
10
|
+
const graphql_ws_1 = require("graphql-ws");
|
|
11
|
+
const subscriptions_1 = require("@apollo/client/link/subscriptions");
|
|
12
|
+
const jwt_1 = require("next-auth/jwt");
|
|
13
|
+
const httpUrl = (_a = process.env.BACKEND_HTTPS_URL) !== null && _a !== void 0 ? _a : "http://localhost:4000/graphql";
|
|
14
|
+
const wsUrl = (_b = process.env.BACKEND_WS_URL) !== null && _b !== void 0 ? _b : "ws://localhost:4000/subscriptions";
|
|
15
|
+
async function getAuthToken() {
|
|
16
|
+
const secret = process.env.JWT_SECRET;
|
|
17
|
+
const salt = process.env.JWT_SALT;
|
|
18
|
+
const secureCookie = process.env.NODE_ENV === "production";
|
|
19
|
+
if (secret && salt) {
|
|
20
|
+
return await (0, jwt_1.getToken)({
|
|
21
|
+
secureCookie,
|
|
22
|
+
secret,
|
|
23
|
+
salt,
|
|
24
|
+
req: {
|
|
25
|
+
headers: {
|
|
26
|
+
cookie: "",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function createApolloClient(token) {
|
|
34
|
+
const httpLink = new client_1.HttpLink({
|
|
35
|
+
uri: httpUrl,
|
|
36
|
+
});
|
|
37
|
+
const authLink = (0, context_1.setContext)((_, { headers }) => ({
|
|
38
|
+
headers: {
|
|
39
|
+
...headers,
|
|
40
|
+
authorization: token ? `Bearer ${token}` : "",
|
|
41
|
+
},
|
|
42
|
+
}));
|
|
43
|
+
const httpAuthLink = authLink.concat(httpLink);
|
|
44
|
+
const link = typeof window === "undefined"
|
|
45
|
+
? httpAuthLink
|
|
46
|
+
: (0, client_1.split)(({ query }) => {
|
|
47
|
+
const definition = (0, utilities_1.getMainDefinition)(query);
|
|
48
|
+
return (definition.kind === "OperationDefinition" &&
|
|
49
|
+
definition.operation === "subscription");
|
|
50
|
+
}, new subscriptions_1.GraphQLWsLink((0, graphql_ws_1.createClient)({
|
|
51
|
+
url: wsUrl,
|
|
52
|
+
connectionParams: async () => {
|
|
53
|
+
const token = await getAuthToken();
|
|
54
|
+
return { authorization: token ? `Bearer ${token}` : "" };
|
|
55
|
+
},
|
|
56
|
+
on: {
|
|
57
|
+
connected: () => console.log("WebSocket connection opened"),
|
|
58
|
+
opened: () => console.log("WebSocket connection established"),
|
|
59
|
+
closed: () => console.log("WebSocket connection closed"),
|
|
60
|
+
error: (error) => console.error("WebSocket connection error:", error),
|
|
61
|
+
},
|
|
62
|
+
})), httpAuthLink);
|
|
63
|
+
return new client_1.ApolloClient({
|
|
64
|
+
link,
|
|
65
|
+
cache: new client_1.InMemoryCache(),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async function initializeApolloServerSide() {
|
|
69
|
+
const token = await getAuthToken();
|
|
70
|
+
return createApolloClient(token);
|
|
71
|
+
}
|
|
72
|
+
async function initializeApolloClientSide() {
|
|
73
|
+
const token = await getAuthToken();
|
|
74
|
+
return createApolloClient(token);
|
|
75
|
+
}
|
|
76
|
+
const makeClient = async () => {
|
|
77
|
+
return initializeApolloClientSide();
|
|
78
|
+
};
|
|
79
|
+
exports.makeClient = makeClient;
|
|
80
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhance.d.ts","sourceRoot":"","sources":["../../../src/generated/typegraphql-prisma/enhance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAEzD,OAAO,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,yBAAyB,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,CAAC;AAE7F,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC;AAmpBF,KAAK,kBAAkB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAExD,KAAK,wBAAwB,CAC3B,MAAM,SAAS,kBAAkB,IAC/B,MAAM,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC;AAEvD,MAAM,MAAM,qBAAqB,CAC/B,MAAM,SAAS,kBAAkB,IAC/B,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,GAAG,yBAAyB,CAAC,CAAC,GAChG;IACA,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;CAC/B,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG;KAC/B,MAAM,IAAI,kBAAkB,CAAC,CAAC,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AE,CAAC;IACzB,MAAM,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;KAChC,MAAM,IAAI,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC;CACtD,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,oBAAoB,EAAE,oBAAoB,QAc3C"}
|
|
@@ -1045,7 +1045,7 @@ const inputsInfo = {
|
|
|
1045
1045
|
SessionScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "sessionToken", "userId", "expires", "createdAt", "updatedAt"],
|
|
1046
1046
|
UserWhereInput: ["AND", "OR", "NOT", "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
|
|
1047
1047
|
UserOrderByWithRelationInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
|
|
1048
|
-
UserWhereUniqueInput: ["id", "email", "AND", "OR", "NOT", "name", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "
|
|
1048
|
+
UserWhereUniqueInput: ["id", "email", "alpacaAccountId", "AND", "OR", "NOT", "name", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "customer", "accounts", "sessions", "authenticators", "trades", "orders", "aiRecommendations", "riskAllocations", "alerts", "performanceMetrics", "tradingAccount", "alpacaAccount"],
|
|
1049
1049
|
UserOrderByWithAggregationInput: ["id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId", "_count", "_avg", "_max", "_min", "_sum"],
|
|
1050
1050
|
UserScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt", "role", "bio", "jobTitle", "currentMode", "customerId", "plan", "alpacaAccountId"],
|
|
1051
1051
|
AlpacaAccountWhereInput: ["AND", "OR", "NOT", "id", "APIKey", "APISecret", "configuration", "updatedAt", "userId", "user"],
|
|
@@ -1242,6 +1242,7 @@ const inputsInfo = {
|
|
|
1242
1242
|
EnumUserRoleFilter: ["equals", "in", "notIn", "not"],
|
|
1243
1243
|
IntNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|
|
1244
1244
|
EnumSubscriptionPlanNullableFilter: ["equals", "in", "notIn", "not"],
|
|
1245
|
+
UuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not"],
|
|
1245
1246
|
CustomerNullableRelationFilter: ["is", "isNot"],
|
|
1246
1247
|
AccountListRelationFilter: ["every", "some", "none"],
|
|
1247
1248
|
SessionListRelationFilter: ["every", "some", "none"],
|
|
@@ -1275,6 +1276,7 @@ const inputsInfo = {
|
|
|
1275
1276
|
EnumUserRoleWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
|
|
1276
1277
|
IntNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
|
|
1277
1278
|
EnumSubscriptionPlanNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
|
|
1279
|
+
UuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "mode", "not", "_count", "_min", "_max"],
|
|
1278
1280
|
JsonNullableFilter: ["equals", "path", "string_contains", "string_starts_with", "string_ends_with", "array_contains", "array_starts_with", "array_ends_with", "lt", "lte", "gt", "gte", "not"],
|
|
1279
1281
|
AlpacaAccountCountOrderByAggregateInput: ["id", "APIKey", "APISecret", "configuration", "updatedAt", "userId"],
|
|
1280
1282
|
AlpacaAccountMaxOrderByAggregateInput: ["id", "APIKey", "APISecret", "updatedAt", "userId"],
|
|
@@ -1548,12 +1550,14 @@ const inputsInfo = {
|
|
|
1548
1550
|
NestedEnumUserRoleFilter: ["equals", "in", "notIn", "not"],
|
|
1549
1551
|
NestedIntNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|
|
1550
1552
|
NestedEnumSubscriptionPlanNullableFilter: ["equals", "in", "notIn", "not"],
|
|
1553
|
+
NestedUuidNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|
|
1551
1554
|
NestedStringNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "contains", "startsWith", "endsWith", "not", "_count", "_min", "_max"],
|
|
1552
1555
|
NestedDateTimeNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_min", "_max"],
|
|
1553
1556
|
NestedEnumUserRoleWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
|
|
1554
1557
|
NestedIntNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
|
|
1555
1558
|
NestedFloatNullableFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|
|
1556
1559
|
NestedEnumSubscriptionPlanNullableWithAggregatesFilter: ["equals", "in", "notIn", "not", "_count", "_min", "_max"],
|
|
1560
|
+
NestedUuidNullableWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_min", "_max"],
|
|
1557
1561
|
NestedJsonNullableFilter: ["equals", "path", "string_contains", "string_starts_with", "string_ends_with", "array_contains", "array_starts_with", "array_ends_with", "lt", "lte", "gt", "gte", "not"],
|
|
1558
1562
|
NestedIntWithAggregatesFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not", "_count", "_avg", "_sum", "_min", "_max"],
|
|
1559
1563
|
NestedFloatFilter: ["equals", "in", "notIn", "lt", "lte", "gt", "gte", "not"],
|