adaptic-backend 1.0.179 → 1.0.180
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/Account.cjs +15 -37
- package/Action.cjs +23 -61
- package/Alert.cjs +13 -31
- package/AlpacaAccount.cjs +30 -82
- package/Asset.cjs +30 -82
- package/Authenticator.cjs +15 -37
- package/Customer.cjs +15 -37
- package/EconomicEvent.cjs +8 -16
- package/MarketSentiment.cjs +8 -16
- package/NewsArticle.cjs +15 -37
- package/NewsArticleAssetSentiment.cjs +13 -31
- package/Order.cjs +11 -25
- package/Position.cjs +18 -46
- package/ScheduledOptionOrder.cjs +8 -16
- package/Session.cjs +15 -37
- package/StopLoss.cjs +9 -19
- package/TakeProfit.cjs +9 -19
- package/Trade.cjs +21 -55
- package/User.cjs +13 -31
- package/VerificationToken.cjs +8 -16
- package/client.cjs +3 -0
- package/client.d.ts +1 -0
- package/generated/typegraphql-prisma/enhance.cjs +1 -1
- package/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.cjs +6 -7
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -2
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/package.json +1 -1
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +8 -30
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +16 -54
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +6 -24
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +23 -75
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +23 -75
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +8 -30
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +8 -30
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +1 -9
- package/server/MarketSentiment.d.ts.map +1 -1
- package/server/MarketSentiment.js.map +1 -1
- package/server/MarketSentiment.mjs +1 -9
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +8 -30
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +6 -24
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +4 -18
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +11 -39
- package/server/ScheduledOptionOrder.d.ts.map +1 -1
- package/server/ScheduledOptionOrder.js.map +1 -1
- package/server/ScheduledOptionOrder.mjs +1 -9
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +8 -30
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +2 -12
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +2 -12
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +14 -48
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +6 -24
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +1 -9
- package/server/client.d.ts +1 -0
- package/server/client.d.ts.map +1 -1
- package/server/client.js.map +1 -1
- package/server/client.mjs +2 -0
- package/server/generated/typegraphql-prisma/enhance.js.map +1 -1
- package/server/generated/typegraphql-prisma/enhance.mjs +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts +1 -2
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.d.ts.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.js.map +1 -1
- package/server/generated/typegraphql-prisma/resolvers/inputs/OrderWhereUniqueInput.mjs +7 -8
package/Position.cjs
CHANGED
@@ -97,7 +97,6 @@ exports.Position = {
|
|
97
97
|
* @returns The created Position or null.
|
98
98
|
*/
|
99
99
|
async create(props) {
|
100
|
-
const client = (0, client_2.createApolloClient)();
|
101
100
|
const CREATE_ONE_POSITION = (0, client_1.gql) `
|
102
101
|
mutation createOnePosition($data: PositionCreateInput!) {
|
103
102
|
createOnePosition(data: $data) {
|
@@ -277,11 +276,9 @@ exports.Position = {
|
|
277
276
|
: { connectOrCreate: props.asset.orders.map((item) => ({
|
278
277
|
where: {
|
279
278
|
id: item.id !== undefined ? item.id : undefined,
|
279
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
280
280
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
281
281
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
282
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
283
|
-
equals: item.clientOrderId
|
284
|
-
} : undefined,
|
285
282
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
286
283
|
equals: item.alpacaAccountId
|
287
284
|
} : undefined,
|
@@ -745,11 +742,9 @@ exports.Position = {
|
|
745
742
|
: { connectOrCreate: props.alpacaAccount.orders.map((item) => ({
|
746
743
|
where: {
|
747
744
|
id: item.id !== undefined ? item.id : undefined,
|
745
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
748
746
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
749
747
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
750
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
751
|
-
equals: item.clientOrderId
|
752
|
-
} : undefined,
|
753
748
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
754
749
|
equals: item.alpacaAccountId
|
755
750
|
} : undefined,
|
@@ -940,7 +935,7 @@ exports.Position = {
|
|
940
935
|
};
|
941
936
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
942
937
|
try {
|
943
|
-
const response = await client.mutate({ mutation: CREATE_ONE_POSITION, variables: filteredVariables });
|
938
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_POSITION, variables: filteredVariables });
|
944
939
|
if (response.errors && response.errors.length > 0)
|
945
940
|
throw new Error(response.errors[0].message);
|
946
941
|
if (response && response.data && response.data.createOnePosition) {
|
@@ -961,7 +956,6 @@ exports.Position = {
|
|
961
956
|
* @returns The count of created records or null.
|
962
957
|
*/
|
963
958
|
async createMany(props) {
|
964
|
-
const client = (0, client_2.createApolloClient)();
|
965
959
|
const CREATE_MANY_POSITION = (0, client_1.gql) `
|
966
960
|
mutation createManyPosition($data: [PositionCreateManyInput!]!) {
|
967
961
|
createManyPosition(data: $data) {
|
@@ -990,7 +984,7 @@ exports.Position = {
|
|
990
984
|
};
|
991
985
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
992
986
|
try {
|
993
|
-
const response = await client.mutate({ mutation: CREATE_MANY_POSITION, variables: filteredVariables });
|
987
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_POSITION, variables: filteredVariables });
|
994
988
|
if (response.errors && response.errors.length > 0)
|
995
989
|
throw new Error(response.errors[0].message);
|
996
990
|
if (response && response.data && response.data.createManyPosition) {
|
@@ -1011,7 +1005,6 @@ exports.Position = {
|
|
1011
1005
|
* @returns The updated Position or null.
|
1012
1006
|
*/
|
1013
1007
|
async update(props) {
|
1014
|
-
const client = (0, client_2.createApolloClient)();
|
1015
1008
|
const UPDATE_ONE_POSITION = (0, client_1.gql) `
|
1016
1009
|
mutation updateOnePosition($data: PositionUpdateInput!, $where: PositionWhereUniqueInput!) {
|
1017
1010
|
updateOnePosition(data: $data, where: $where) {
|
@@ -1484,11 +1477,9 @@ exports.Position = {
|
|
1484
1477
|
upsert: props.asset.orders.map((item) => ({
|
1485
1478
|
where: {
|
1486
1479
|
id: item.id !== undefined ? item.id : undefined,
|
1480
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1487
1481
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1488
1482
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1489
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1490
|
-
equals: item.clientOrderId
|
1491
|
-
} : undefined,
|
1492
1483
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1493
1484
|
equals: item.alpacaAccountId
|
1494
1485
|
} : undefined,
|
@@ -2122,11 +2113,9 @@ exports.Position = {
|
|
2122
2113
|
: { connectOrCreate: props.asset.orders.map((item) => ({
|
2123
2114
|
where: {
|
2124
2115
|
id: item.id !== undefined ? item.id : undefined,
|
2116
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2125
2117
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2126
2118
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2127
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
2128
|
-
equals: item.clientOrderId
|
2129
|
-
} : undefined,
|
2130
2119
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2131
2120
|
equals: item.alpacaAccountId
|
2132
2121
|
} : undefined,
|
@@ -3122,11 +3111,9 @@ exports.Position = {
|
|
3122
3111
|
upsert: props.alpacaAccount.orders.map((item) => ({
|
3123
3112
|
where: {
|
3124
3113
|
id: item.id !== undefined ? item.id : undefined,
|
3114
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
3125
3115
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
3126
3116
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
3127
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
3128
|
-
equals: item.clientOrderId
|
3129
|
-
} : undefined,
|
3130
3117
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
3131
3118
|
equals: item.alpacaAccountId
|
3132
3119
|
} : undefined,
|
@@ -4008,11 +3995,9 @@ exports.Position = {
|
|
4008
3995
|
: { connectOrCreate: props.alpacaAccount.orders.map((item) => ({
|
4009
3996
|
where: {
|
4010
3997
|
id: item.id !== undefined ? item.id : undefined,
|
3998
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
4011
3999
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
4012
4000
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
4013
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
4014
|
-
equals: item.clientOrderId
|
4015
|
-
} : undefined,
|
4016
4001
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
4017
4002
|
equals: item.alpacaAccountId
|
4018
4003
|
} : undefined,
|
@@ -4203,7 +4188,7 @@ exports.Position = {
|
|
4203
4188
|
};
|
4204
4189
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
4205
4190
|
try {
|
4206
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_POSITION, variables: filteredVariables });
|
4191
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_POSITION, variables: filteredVariables });
|
4207
4192
|
if (response.errors && response.errors.length > 0)
|
4208
4193
|
throw new Error(response.errors[0].message);
|
4209
4194
|
if (response && response.data && response.data.updateOnePosition) {
|
@@ -4224,7 +4209,6 @@ exports.Position = {
|
|
4224
4209
|
* @returns The count of created records or null.
|
4225
4210
|
*/
|
4226
4211
|
async updateMany(props) {
|
4227
|
-
const client = (0, client_2.createApolloClient)();
|
4228
4212
|
const UPDATE_MANY_POSITION = (0, client_1.gql) `
|
4229
4213
|
mutation updateManyPosition($data: [PositionCreateManyInput!]!) {
|
4230
4214
|
updateManyPosition(data: $data) {
|
@@ -4697,11 +4681,9 @@ exports.Position = {
|
|
4697
4681
|
upsert: prop.asset.orders.map((item) => ({
|
4698
4682
|
where: {
|
4699
4683
|
id: item.id !== undefined ? item.id : undefined,
|
4684
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
4700
4685
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
4701
4686
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
4702
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
4703
|
-
equals: item.clientOrderId
|
4704
|
-
} : undefined,
|
4705
4687
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
4706
4688
|
equals: item.alpacaAccountId
|
4707
4689
|
} : undefined,
|
@@ -5335,11 +5317,9 @@ exports.Position = {
|
|
5335
5317
|
: { connectOrCreate: prop.asset.orders.map((item) => ({
|
5336
5318
|
where: {
|
5337
5319
|
id: item.id !== undefined ? item.id : undefined,
|
5320
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
5338
5321
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
5339
5322
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
5340
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
5341
|
-
equals: item.clientOrderId
|
5342
|
-
} : undefined,
|
5343
5323
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
5344
5324
|
equals: item.alpacaAccountId
|
5345
5325
|
} : undefined,
|
@@ -6335,11 +6315,9 @@ exports.Position = {
|
|
6335
6315
|
upsert: prop.alpacaAccount.orders.map((item) => ({
|
6336
6316
|
where: {
|
6337
6317
|
id: item.id !== undefined ? item.id : undefined,
|
6318
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
6338
6319
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
6339
6320
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
6340
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
6341
|
-
equals: item.clientOrderId
|
6342
|
-
} : undefined,
|
6343
6321
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
6344
6322
|
equals: item.alpacaAccountId
|
6345
6323
|
} : undefined,
|
@@ -7221,11 +7199,9 @@ exports.Position = {
|
|
7221
7199
|
: { connectOrCreate: prop.alpacaAccount.orders.map((item) => ({
|
7222
7200
|
where: {
|
7223
7201
|
id: item.id !== undefined ? item.id : undefined,
|
7202
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
7224
7203
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
7225
7204
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
7226
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
7227
|
-
equals: item.clientOrderId
|
7228
|
-
} : undefined,
|
7229
7205
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
7230
7206
|
equals: item.alpacaAccountId
|
7231
7207
|
} : undefined,
|
@@ -7416,7 +7392,7 @@ exports.Position = {
|
|
7416
7392
|
}));
|
7417
7393
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7418
7394
|
try {
|
7419
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_POSITION, variables: filteredVariables });
|
7395
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_POSITION, variables: filteredVariables });
|
7420
7396
|
if (response.errors && response.errors.length > 0)
|
7421
7397
|
throw new Error(response.errors[0].message);
|
7422
7398
|
if (response && response.data && response.data.updateManyPosition) {
|
@@ -7437,7 +7413,6 @@ exports.Position = {
|
|
7437
7413
|
* @returns The deleted Position or null.
|
7438
7414
|
*/
|
7439
7415
|
async delete(props) {
|
7440
|
-
const client = (0, client_2.createApolloClient)();
|
7441
7416
|
const DELETE_ONE_POSITION = (0, client_1.gql) `
|
7442
7417
|
mutation deleteOnePosition($where: PositionWhereUniqueInput!) {
|
7443
7418
|
deleteOnePosition(where: $where) {
|
@@ -7451,7 +7426,7 @@ exports.Position = {
|
|
7451
7426
|
};
|
7452
7427
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7453
7428
|
try {
|
7454
|
-
const response = await client.mutate({ mutation: DELETE_ONE_POSITION, variables: filteredVariables });
|
7429
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_POSITION, variables: filteredVariables });
|
7455
7430
|
if (response.errors && response.errors.length > 0)
|
7456
7431
|
throw new Error(response.errors[0].message);
|
7457
7432
|
if (response && response.data && response.data.deleteOnePosition) {
|
@@ -7473,7 +7448,6 @@ exports.Position = {
|
|
7473
7448
|
*/
|
7474
7449
|
async get(props) {
|
7475
7450
|
var _a, _b;
|
7476
|
-
const client = (0, client_2.createApolloClient)();
|
7477
7451
|
const GET_POSITION = (0, client_1.gql) `
|
7478
7452
|
query getPosition($where: PositionWhereUniqueInput!) {
|
7479
7453
|
getPosition(where: $where) {
|
@@ -7507,7 +7481,7 @@ exports.Position = {
|
|
7507
7481
|
};
|
7508
7482
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7509
7483
|
try {
|
7510
|
-
const response = await client.query({ query: GET_POSITION, variables: filteredVariables });
|
7484
|
+
const response = await client_2.client.query({ query: GET_POSITION, variables: filteredVariables });
|
7511
7485
|
if (response.errors && response.errors.length > 0)
|
7512
7486
|
throw new Error(response.errors[0].message);
|
7513
7487
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getPosition) !== null && _b !== void 0 ? _b : null;
|
@@ -7528,7 +7502,6 @@ exports.Position = {
|
|
7528
7502
|
*/
|
7529
7503
|
async getAll() {
|
7530
7504
|
var _a, _b;
|
7531
|
-
const client = (0, client_2.createApolloClient)();
|
7532
7505
|
const GET_ALL_POSITION = (0, client_1.gql) `
|
7533
7506
|
query getAllPosition {
|
7534
7507
|
positions {
|
@@ -7536,7 +7509,7 @@ exports.Position = {
|
|
7536
7509
|
}
|
7537
7510
|
}`;
|
7538
7511
|
try {
|
7539
|
-
const response = await client.query({ query: GET_ALL_POSITION });
|
7512
|
+
const response = await client_2.client.query({ query: GET_ALL_POSITION });
|
7540
7513
|
if (response.errors && response.errors.length > 0)
|
7541
7514
|
throw new Error(response.errors[0].message);
|
7542
7515
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.positions) !== null && _b !== void 0 ? _b : null;
|
@@ -7557,7 +7530,6 @@ exports.Position = {
|
|
7557
7530
|
* @returns An array of found Position records or null.
|
7558
7531
|
*/
|
7559
7532
|
async findMany(props) {
|
7560
|
-
const client = (0, client_2.createApolloClient)();
|
7561
7533
|
const FIND_MANY_POSITION = (0, client_1.gql) `
|
7562
7534
|
query findManyPosition($where: PositionWhereInput!) {
|
7563
7535
|
positions(where: $where) {
|
@@ -7593,7 +7565,7 @@ exports.Position = {
|
|
7593
7565
|
};
|
7594
7566
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7595
7567
|
try {
|
7596
|
-
const response = await client.query({ query: FIND_MANY_POSITION, variables: filteredVariables });
|
7568
|
+
const response = await client_2.client.query({ query: FIND_MANY_POSITION, variables: filteredVariables });
|
7597
7569
|
if (response.errors && response.errors.length > 0)
|
7598
7570
|
throw new Error(response.errors[0].message);
|
7599
7571
|
if (response && response.data && response.data.Positions) {
|
package/ScheduledOptionOrder.cjs
CHANGED
@@ -21,7 +21,6 @@ exports.ScheduledOptionOrder = {
|
|
21
21
|
* @returns The created ScheduledOptionOrder or null.
|
22
22
|
*/
|
23
23
|
async create(props) {
|
24
|
-
const client = (0, client_2.createApolloClient)();
|
25
24
|
const CREATE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
26
25
|
mutation createOneScheduledOptionOrder($data: ScheduledOptionOrderCreateInput!) {
|
27
26
|
createOneScheduledOptionOrder(data: $data) {
|
@@ -37,7 +36,7 @@ exports.ScheduledOptionOrder = {
|
|
37
36
|
};
|
38
37
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
39
38
|
try {
|
40
|
-
const response = await client.mutate({ mutation: CREATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
39
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
41
40
|
if (response.errors && response.errors.length > 0)
|
42
41
|
throw new Error(response.errors[0].message);
|
43
42
|
if (response && response.data && response.data.createOneScheduledOptionOrder) {
|
@@ -58,7 +57,6 @@ exports.ScheduledOptionOrder = {
|
|
58
57
|
* @returns The count of created records or null.
|
59
58
|
*/
|
60
59
|
async createMany(props) {
|
61
|
-
const client = (0, client_2.createApolloClient)();
|
62
60
|
const CREATE_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
63
61
|
mutation createManyScheduledOptionOrder($data: [ScheduledOptionOrderCreateManyInput!]!) {
|
64
62
|
createManyScheduledOptionOrder(data: $data) {
|
@@ -73,7 +71,7 @@ exports.ScheduledOptionOrder = {
|
|
73
71
|
};
|
74
72
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
75
73
|
try {
|
76
|
-
const response = await client.mutate({ mutation: CREATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
74
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
77
75
|
if (response.errors && response.errors.length > 0)
|
78
76
|
throw new Error(response.errors[0].message);
|
79
77
|
if (response && response.data && response.data.createManyScheduledOptionOrder) {
|
@@ -94,7 +92,6 @@ exports.ScheduledOptionOrder = {
|
|
94
92
|
* @returns The updated ScheduledOptionOrder or null.
|
95
93
|
*/
|
96
94
|
async update(props) {
|
97
|
-
const client = (0, client_2.createApolloClient)();
|
98
95
|
const UPDATE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
99
96
|
mutation updateOneScheduledOptionOrder($data: ScheduledOptionOrderUpdateInput!, $where: ScheduledOptionOrderWhereUniqueInput!) {
|
100
97
|
updateOneScheduledOptionOrder(data: $data, where: $where) {
|
@@ -120,7 +117,7 @@ exports.ScheduledOptionOrder = {
|
|
120
117
|
};
|
121
118
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
122
119
|
try {
|
123
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
120
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
124
121
|
if (response.errors && response.errors.length > 0)
|
125
122
|
throw new Error(response.errors[0].message);
|
126
123
|
if (response && response.data && response.data.updateOneScheduledOptionOrder) {
|
@@ -141,7 +138,6 @@ exports.ScheduledOptionOrder = {
|
|
141
138
|
* @returns The count of created records or null.
|
142
139
|
*/
|
143
140
|
async updateMany(props) {
|
144
|
-
const client = (0, client_2.createApolloClient)();
|
145
141
|
const UPDATE_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
146
142
|
mutation updateManyScheduledOptionOrder($data: [ScheduledOptionOrderCreateManyInput!]!) {
|
147
143
|
updateManyScheduledOptionOrder(data: $data) {
|
@@ -167,7 +163,7 @@ exports.ScheduledOptionOrder = {
|
|
167
163
|
}));
|
168
164
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
169
165
|
try {
|
170
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
166
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
171
167
|
if (response.errors && response.errors.length > 0)
|
172
168
|
throw new Error(response.errors[0].message);
|
173
169
|
if (response && response.data && response.data.updateManyScheduledOptionOrder) {
|
@@ -188,7 +184,6 @@ exports.ScheduledOptionOrder = {
|
|
188
184
|
* @returns The deleted ScheduledOptionOrder or null.
|
189
185
|
*/
|
190
186
|
async delete(props) {
|
191
|
-
const client = (0, client_2.createApolloClient)();
|
192
187
|
const DELETE_ONE_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
193
188
|
mutation deleteOneScheduledOptionOrder($where: ScheduledOptionOrderWhereUniqueInput!) {
|
194
189
|
deleteOneScheduledOptionOrder(where: $where) {
|
@@ -202,7 +197,7 @@ exports.ScheduledOptionOrder = {
|
|
202
197
|
};
|
203
198
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
204
199
|
try {
|
205
|
-
const response = await client.mutate({ mutation: DELETE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
200
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
206
201
|
if (response.errors && response.errors.length > 0)
|
207
202
|
throw new Error(response.errors[0].message);
|
208
203
|
if (response && response.data && response.data.deleteOneScheduledOptionOrder) {
|
@@ -224,7 +219,6 @@ exports.ScheduledOptionOrder = {
|
|
224
219
|
*/
|
225
220
|
async get(props) {
|
226
221
|
var _a, _b;
|
227
|
-
const client = (0, client_2.createApolloClient)();
|
228
222
|
const GET_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
229
223
|
query getScheduledOptionOrder($where: ScheduledOptionOrderWhereUniqueInput!) {
|
230
224
|
getScheduledOptionOrder(where: $where) {
|
@@ -239,7 +233,7 @@ exports.ScheduledOptionOrder = {
|
|
239
233
|
};
|
240
234
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
241
235
|
try {
|
242
|
-
const response = await client.query({ query: GET_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
236
|
+
const response = await client_2.client.query({ query: GET_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
243
237
|
if (response.errors && response.errors.length > 0)
|
244
238
|
throw new Error(response.errors[0].message);
|
245
239
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getScheduledOptionOrder) !== null && _b !== void 0 ? _b : null;
|
@@ -260,7 +254,6 @@ exports.ScheduledOptionOrder = {
|
|
260
254
|
*/
|
261
255
|
async getAll() {
|
262
256
|
var _a, _b;
|
263
|
-
const client = (0, client_2.createApolloClient)();
|
264
257
|
const GET_ALL_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
265
258
|
query getAllScheduledOptionOrder {
|
266
259
|
scheduledOptionOrders {
|
@@ -268,7 +261,7 @@ exports.ScheduledOptionOrder = {
|
|
268
261
|
}
|
269
262
|
}`;
|
270
263
|
try {
|
271
|
-
const response = await client.query({ query: GET_ALL_SCHEDULEDOPTIONORDER });
|
264
|
+
const response = await client_2.client.query({ query: GET_ALL_SCHEDULEDOPTIONORDER });
|
272
265
|
if (response.errors && response.errors.length > 0)
|
273
266
|
throw new Error(response.errors[0].message);
|
274
267
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.scheduledOptionOrders) !== null && _b !== void 0 ? _b : null;
|
@@ -289,7 +282,6 @@ exports.ScheduledOptionOrder = {
|
|
289
282
|
* @returns An array of found ScheduledOptionOrder records or null.
|
290
283
|
*/
|
291
284
|
async findMany(props) {
|
292
|
-
const client = (0, client_2.createApolloClient)();
|
293
285
|
const FIND_MANY_SCHEDULEDOPTIONORDER = (0, client_1.gql) `
|
294
286
|
query findManyScheduledOptionOrder($where: ScheduledOptionOrderWhereInput!) {
|
295
287
|
scheduledOptionOrders(where: $where) {
|
@@ -306,7 +298,7 @@ exports.ScheduledOptionOrder = {
|
|
306
298
|
};
|
307
299
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
308
300
|
try {
|
309
|
-
const response = await client.query({ query: FIND_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
301
|
+
const response = await client_2.client.query({ query: FIND_MANY_SCHEDULEDOPTIONORDER, variables: filteredVariables });
|
310
302
|
if (response.errors && response.errors.length > 0)
|
311
303
|
throw new Error(response.errors[0].message);
|
312
304
|
if (response && response.data && response.data.ScheduledOptionOrders) {
|
package/Session.cjs
CHANGED
@@ -81,7 +81,6 @@ exports.Session = {
|
|
81
81
|
* @returns The created Session or null.
|
82
82
|
*/
|
83
83
|
async create(props) {
|
84
|
-
const client = (0, client_2.createApolloClient)();
|
85
84
|
const CREATE_ONE_SESSION = (0, client_1.gql) `
|
86
85
|
mutation createOneSession($data: SessionCreateInput!) {
|
87
86
|
createOneSession(data: $data) {
|
@@ -264,11 +263,9 @@ exports.Session = {
|
|
264
263
|
: { connectOrCreate: item.orders.map((item) => ({
|
265
264
|
where: {
|
266
265
|
id: item.id !== undefined ? item.id : undefined,
|
266
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
267
267
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
268
268
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
269
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
270
|
-
equals: item.clientOrderId
|
271
|
-
} : undefined,
|
272
269
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
273
270
|
equals: item.alpacaAccountId
|
274
271
|
} : undefined,
|
@@ -369,7 +366,7 @@ exports.Session = {
|
|
369
366
|
};
|
370
367
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
371
368
|
try {
|
372
|
-
const response = await client.mutate({ mutation: CREATE_ONE_SESSION, variables: filteredVariables });
|
369
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_SESSION, variables: filteredVariables });
|
373
370
|
if (response.errors && response.errors.length > 0)
|
374
371
|
throw new Error(response.errors[0].message);
|
375
372
|
if (response && response.data && response.data.createOneSession) {
|
@@ -390,7 +387,6 @@ exports.Session = {
|
|
390
387
|
* @returns The count of created records or null.
|
391
388
|
*/
|
392
389
|
async createMany(props) {
|
393
|
-
const client = (0, client_2.createApolloClient)();
|
394
390
|
const CREATE_MANY_SESSION = (0, client_1.gql) `
|
395
391
|
mutation createManySession($data: [SessionCreateManyInput!]!) {
|
396
392
|
createManySession(data: $data) {
|
@@ -406,7 +402,7 @@ exports.Session = {
|
|
406
402
|
};
|
407
403
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
408
404
|
try {
|
409
|
-
const response = await client.mutate({ mutation: CREATE_MANY_SESSION, variables: filteredVariables });
|
405
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_SESSION, variables: filteredVariables });
|
410
406
|
if (response.errors && response.errors.length > 0)
|
411
407
|
throw new Error(response.errors[0].message);
|
412
408
|
if (response && response.data && response.data.createManySession) {
|
@@ -427,7 +423,6 @@ exports.Session = {
|
|
427
423
|
* @returns The updated Session or null.
|
428
424
|
*/
|
429
425
|
async update(props) {
|
430
|
-
const client = (0, client_2.createApolloClient)();
|
431
426
|
const UPDATE_ONE_SESSION = (0, client_1.gql) `
|
432
427
|
mutation updateOneSession($data: SessionUpdateInput!, $where: SessionWhereUniqueInput!) {
|
433
428
|
updateOneSession(data: $data, where: $where) {
|
@@ -763,11 +758,9 @@ exports.Session = {
|
|
763
758
|
upsert: item.orders.map((item) => ({
|
764
759
|
where: {
|
765
760
|
id: item.id !== undefined ? item.id : undefined,
|
761
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
766
762
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
767
763
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
768
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
769
|
-
equals: item.clientOrderId
|
770
|
-
} : undefined,
|
771
764
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
772
765
|
equals: item.alpacaAccountId
|
773
766
|
} : undefined,
|
@@ -1040,11 +1033,9 @@ exports.Session = {
|
|
1040
1033
|
: { connectOrCreate: item.orders.map((item) => ({
|
1041
1034
|
where: {
|
1042
1035
|
id: item.id !== undefined ? item.id : undefined,
|
1036
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1043
1037
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1044
1038
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1045
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1046
|
-
equals: item.clientOrderId
|
1047
|
-
} : undefined,
|
1048
1039
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1049
1040
|
equals: item.alpacaAccountId
|
1050
1041
|
} : undefined,
|
@@ -1296,11 +1287,9 @@ exports.Session = {
|
|
1296
1287
|
: { connectOrCreate: item.orders.map((item) => ({
|
1297
1288
|
where: {
|
1298
1289
|
id: item.id !== undefined ? item.id : undefined,
|
1290
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1299
1291
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1300
1292
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1301
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1302
|
-
equals: item.clientOrderId
|
1303
|
-
} : undefined,
|
1304
1293
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1305
1294
|
equals: item.alpacaAccountId
|
1306
1295
|
} : undefined,
|
@@ -1401,7 +1390,7 @@ exports.Session = {
|
|
1401
1390
|
};
|
1402
1391
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1403
1392
|
try {
|
1404
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_SESSION, variables: filteredVariables });
|
1393
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_SESSION, variables: filteredVariables });
|
1405
1394
|
if (response.errors && response.errors.length > 0)
|
1406
1395
|
throw new Error(response.errors[0].message);
|
1407
1396
|
if (response && response.data && response.data.updateOneSession) {
|
@@ -1422,7 +1411,6 @@ exports.Session = {
|
|
1422
1411
|
* @returns The count of created records or null.
|
1423
1412
|
*/
|
1424
1413
|
async updateMany(props) {
|
1425
|
-
const client = (0, client_2.createApolloClient)();
|
1426
1414
|
const UPDATE_MANY_SESSION = (0, client_1.gql) `
|
1427
1415
|
mutation updateManySession($data: [SessionCreateManyInput!]!) {
|
1428
1416
|
updateManySession(data: $data) {
|
@@ -1758,11 +1746,9 @@ exports.Session = {
|
|
1758
1746
|
upsert: item.orders.map((item) => ({
|
1759
1747
|
where: {
|
1760
1748
|
id: item.id !== undefined ? item.id : undefined,
|
1749
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1761
1750
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1762
1751
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1763
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1764
|
-
equals: item.clientOrderId
|
1765
|
-
} : undefined,
|
1766
1752
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1767
1753
|
equals: item.alpacaAccountId
|
1768
1754
|
} : undefined,
|
@@ -2035,11 +2021,9 @@ exports.Session = {
|
|
2035
2021
|
: { connectOrCreate: item.orders.map((item) => ({
|
2036
2022
|
where: {
|
2037
2023
|
id: item.id !== undefined ? item.id : undefined,
|
2024
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2038
2025
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2039
2026
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2040
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
2041
|
-
equals: item.clientOrderId
|
2042
|
-
} : undefined,
|
2043
2027
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2044
2028
|
equals: item.alpacaAccountId
|
2045
2029
|
} : undefined,
|
@@ -2291,11 +2275,9 @@ exports.Session = {
|
|
2291
2275
|
: { connectOrCreate: item.orders.map((item) => ({
|
2292
2276
|
where: {
|
2293
2277
|
id: item.id !== undefined ? item.id : undefined,
|
2278
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2294
2279
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2295
2280
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2296
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
2297
|
-
equals: item.clientOrderId
|
2298
|
-
} : undefined,
|
2299
2281
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2300
2282
|
equals: item.alpacaAccountId
|
2301
2283
|
} : undefined,
|
@@ -2396,7 +2378,7 @@ exports.Session = {
|
|
2396
2378
|
}));
|
2397
2379
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2398
2380
|
try {
|
2399
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_SESSION, variables: filteredVariables });
|
2381
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_SESSION, variables: filteredVariables });
|
2400
2382
|
if (response.errors && response.errors.length > 0)
|
2401
2383
|
throw new Error(response.errors[0].message);
|
2402
2384
|
if (response && response.data && response.data.updateManySession) {
|
@@ -2417,7 +2399,6 @@ exports.Session = {
|
|
2417
2399
|
* @returns The deleted Session or null.
|
2418
2400
|
*/
|
2419
2401
|
async delete(props) {
|
2420
|
-
const client = (0, client_2.createApolloClient)();
|
2421
2402
|
const DELETE_ONE_SESSION = (0, client_1.gql) `
|
2422
2403
|
mutation deleteOneSession($where: SessionWhereUniqueInput!) {
|
2423
2404
|
deleteOneSession(where: $where) {
|
@@ -2431,7 +2412,7 @@ exports.Session = {
|
|
2431
2412
|
};
|
2432
2413
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2433
2414
|
try {
|
2434
|
-
const response = await client.mutate({ mutation: DELETE_ONE_SESSION, variables: filteredVariables });
|
2415
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_SESSION, variables: filteredVariables });
|
2435
2416
|
if (response.errors && response.errors.length > 0)
|
2436
2417
|
throw new Error(response.errors[0].message);
|
2437
2418
|
if (response && response.data && response.data.deleteOneSession) {
|
@@ -2453,7 +2434,6 @@ exports.Session = {
|
|
2453
2434
|
*/
|
2454
2435
|
async get(props) {
|
2455
2436
|
var _a, _b;
|
2456
|
-
const client = (0, client_2.createApolloClient)();
|
2457
2437
|
const GET_SESSION = (0, client_1.gql) `
|
2458
2438
|
query getSession($where: SessionWhereUniqueInput!) {
|
2459
2439
|
getSession(where: $where) {
|
@@ -2474,7 +2454,7 @@ exports.Session = {
|
|
2474
2454
|
};
|
2475
2455
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2476
2456
|
try {
|
2477
|
-
const response = await client.query({ query: GET_SESSION, variables: filteredVariables });
|
2457
|
+
const response = await client_2.client.query({ query: GET_SESSION, variables: filteredVariables });
|
2478
2458
|
if (response.errors && response.errors.length > 0)
|
2479
2459
|
throw new Error(response.errors[0].message);
|
2480
2460
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getSession) !== null && _b !== void 0 ? _b : null;
|
@@ -2495,7 +2475,6 @@ exports.Session = {
|
|
2495
2475
|
*/
|
2496
2476
|
async getAll() {
|
2497
2477
|
var _a, _b;
|
2498
|
-
const client = (0, client_2.createApolloClient)();
|
2499
2478
|
const GET_ALL_SESSION = (0, client_1.gql) `
|
2500
2479
|
query getAllSession {
|
2501
2480
|
sessions {
|
@@ -2503,7 +2482,7 @@ exports.Session = {
|
|
2503
2482
|
}
|
2504
2483
|
}`;
|
2505
2484
|
try {
|
2506
|
-
const response = await client.query({ query: GET_ALL_SESSION });
|
2485
|
+
const response = await client_2.client.query({ query: GET_ALL_SESSION });
|
2507
2486
|
if (response.errors && response.errors.length > 0)
|
2508
2487
|
throw new Error(response.errors[0].message);
|
2509
2488
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.sessions) !== null && _b !== void 0 ? _b : null;
|
@@ -2524,7 +2503,6 @@ exports.Session = {
|
|
2524
2503
|
* @returns An array of found Session records or null.
|
2525
2504
|
*/
|
2526
2505
|
async findMany(props) {
|
2527
|
-
const client = (0, client_2.createApolloClient)();
|
2528
2506
|
const FIND_MANY_SESSION = (0, client_1.gql) `
|
2529
2507
|
query findManySession($where: SessionWhereInput!) {
|
2530
2508
|
sessions(where: $where) {
|
@@ -2547,7 +2525,7 @@ exports.Session = {
|
|
2547
2525
|
};
|
2548
2526
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2549
2527
|
try {
|
2550
|
-
const response = await client.query({ query: FIND_MANY_SESSION, variables: filteredVariables });
|
2528
|
+
const response = await client_2.client.query({ query: FIND_MANY_SESSION, variables: filteredVariables });
|
2551
2529
|
if (response.errors && response.errors.length > 0)
|
2552
2530
|
throw new Error(response.errors[0].message);
|
2553
2531
|
if (response && response.data && response.data.Sessions) {
|