adaptic-backend 1.0.178 → 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 +8 -16
- package/Action.cjs +8 -16
- package/Alert.cjs +8 -16
- package/AlpacaAccount.cjs +8 -16
- package/Asset.cjs +8 -16
- package/Authenticator.cjs +8 -16
- package/Customer.cjs +8 -16
- package/EconomicEvent.cjs +8 -16
- package/MarketSentiment.cjs +8 -16
- package/NewsArticle.cjs +8 -16
- package/NewsArticleAssetSentiment.cjs +8 -16
- package/Order.cjs +8 -16
- package/Position.cjs +8 -16
- package/ScheduledOptionOrder.cjs +8 -16
- package/Session.cjs +8 -16
- package/StopLoss.cjs +8 -16
- package/TakeProfit.cjs +8 -16
- package/Trade.cjs +8 -16
- package/User.cjs +8 -16
- package/VerificationToken.cjs +8 -16
- package/client.cjs +3 -0
- package/client.d.ts +1 -0
- package/generated/typegraphql-prisma/models/Order.cjs +1 -1
- package/generated/typegraphql-prisma/models/Order.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 +1 -9
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +1 -9
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +1 -9
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +1 -9
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +1 -9
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +1 -9
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +1 -9
- 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 +1 -9
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +1 -9
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +1 -9
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +1 -9
- 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 +1 -9
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +1 -9
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +1 -9
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +1 -9
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +1 -9
- 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/models/Order.js.map +1 -1
- package/server/generated/typegraphql-prisma/models/Order.mjs +1 -1
package/Account.cjs
CHANGED
@@ -195,7 +195,6 @@ exports.Account = {
|
|
195
195
|
* @returns The created Account or null.
|
196
196
|
*/
|
197
197
|
async create(props) {
|
198
|
-
const client = (0, client_2.createApolloClient)();
|
199
198
|
const CREATE_ONE_ACCOUNT = (0, client_1.gql) `
|
200
199
|
mutation createOneAccount($data: AccountCreateInput!) {
|
201
200
|
createOneAccount(data: $data) {
|
@@ -478,7 +477,7 @@ exports.Account = {
|
|
478
477
|
};
|
479
478
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
480
479
|
try {
|
481
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ACCOUNT, variables: filteredVariables });
|
480
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ACCOUNT, variables: filteredVariables });
|
482
481
|
if (response.errors && response.errors.length > 0)
|
483
482
|
throw new Error(response.errors[0].message);
|
484
483
|
if (response && response.data && response.data.createOneAccount) {
|
@@ -499,7 +498,6 @@ exports.Account = {
|
|
499
498
|
* @returns The count of created records or null.
|
500
499
|
*/
|
501
500
|
async createMany(props) {
|
502
|
-
const client = (0, client_2.createApolloClient)();
|
503
501
|
const CREATE_MANY_ACCOUNT = (0, client_1.gql) `
|
504
502
|
mutation createManyAccount($data: [AccountCreateManyInput!]!) {
|
505
503
|
createManyAccount(data: $data) {
|
@@ -523,7 +521,7 @@ exports.Account = {
|
|
523
521
|
};
|
524
522
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
525
523
|
try {
|
526
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ACCOUNT, variables: filteredVariables });
|
524
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ACCOUNT, variables: filteredVariables });
|
527
525
|
if (response.errors && response.errors.length > 0)
|
528
526
|
throw new Error(response.errors[0].message);
|
529
527
|
if (response && response.data && response.data.createManyAccount) {
|
@@ -544,7 +542,6 @@ exports.Account = {
|
|
544
542
|
* @returns The updated Account or null.
|
545
543
|
*/
|
546
544
|
async update(props) {
|
547
|
-
const client = (0, client_2.createApolloClient)();
|
548
545
|
const UPDATE_ONE_ACCOUNT = (0, client_1.gql) `
|
549
546
|
mutation updateOneAccount($data: AccountUpdateInput!, $where: AccountWhereUniqueInput!) {
|
550
547
|
updateOneAccount(data: $data, where: $where) {
|
@@ -1499,7 +1496,7 @@ exports.Account = {
|
|
1499
1496
|
};
|
1500
1497
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1501
1498
|
try {
|
1502
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ACCOUNT, variables: filteredVariables });
|
1499
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ACCOUNT, variables: filteredVariables });
|
1503
1500
|
if (response.errors && response.errors.length > 0)
|
1504
1501
|
throw new Error(response.errors[0].message);
|
1505
1502
|
if (response && response.data && response.data.updateOneAccount) {
|
@@ -1520,7 +1517,6 @@ exports.Account = {
|
|
1520
1517
|
* @returns The count of created records or null.
|
1521
1518
|
*/
|
1522
1519
|
async updateMany(props) {
|
1523
|
-
const client = (0, client_2.createApolloClient)();
|
1524
1520
|
const UPDATE_MANY_ACCOUNT = (0, client_1.gql) `
|
1525
1521
|
mutation updateManyAccount($data: [AccountCreateManyInput!]!) {
|
1526
1522
|
updateManyAccount(data: $data) {
|
@@ -2475,7 +2471,7 @@ exports.Account = {
|
|
2475
2471
|
}));
|
2476
2472
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2477
2473
|
try {
|
2478
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ACCOUNT, variables: filteredVariables });
|
2474
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ACCOUNT, variables: filteredVariables });
|
2479
2475
|
if (response.errors && response.errors.length > 0)
|
2480
2476
|
throw new Error(response.errors[0].message);
|
2481
2477
|
if (response && response.data && response.data.updateManyAccount) {
|
@@ -2496,7 +2492,6 @@ exports.Account = {
|
|
2496
2492
|
* @returns The deleted Account or null.
|
2497
2493
|
*/
|
2498
2494
|
async delete(props) {
|
2499
|
-
const client = (0, client_2.createApolloClient)();
|
2500
2495
|
const DELETE_ONE_ACCOUNT = (0, client_1.gql) `
|
2501
2496
|
mutation deleteOneAccount($where: AccountWhereUniqueInput!) {
|
2502
2497
|
deleteOneAccount(where: $where) {
|
@@ -2510,7 +2505,7 @@ exports.Account = {
|
|
2510
2505
|
};
|
2511
2506
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2512
2507
|
try {
|
2513
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ACCOUNT, variables: filteredVariables });
|
2508
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ACCOUNT, variables: filteredVariables });
|
2514
2509
|
if (response.errors && response.errors.length > 0)
|
2515
2510
|
throw new Error(response.errors[0].message);
|
2516
2511
|
if (response && response.data && response.data.deleteOneAccount) {
|
@@ -2532,7 +2527,6 @@ exports.Account = {
|
|
2532
2527
|
*/
|
2533
2528
|
async get(props) {
|
2534
2529
|
var _a, _b;
|
2535
|
-
const client = (0, client_2.createApolloClient)();
|
2536
2530
|
const GET_ACCOUNT = (0, client_1.gql) `
|
2537
2531
|
query getAccount($where: AccountWhereUniqueInput!) {
|
2538
2532
|
getAccount(where: $where) {
|
@@ -2562,7 +2556,7 @@ exports.Account = {
|
|
2562
2556
|
};
|
2563
2557
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2564
2558
|
try {
|
2565
|
-
const response = await client.query({ query: GET_ACCOUNT, variables: filteredVariables });
|
2559
|
+
const response = await client_2.client.query({ query: GET_ACCOUNT, variables: filteredVariables });
|
2566
2560
|
if (response.errors && response.errors.length > 0)
|
2567
2561
|
throw new Error(response.errors[0].message);
|
2568
2562
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAccount) !== null && _b !== void 0 ? _b : null;
|
@@ -2583,7 +2577,6 @@ exports.Account = {
|
|
2583
2577
|
*/
|
2584
2578
|
async getAll() {
|
2585
2579
|
var _a, _b;
|
2586
|
-
const client = (0, client_2.createApolloClient)();
|
2587
2580
|
const GET_ALL_ACCOUNT = (0, client_1.gql) `
|
2588
2581
|
query getAllAccount {
|
2589
2582
|
accounts {
|
@@ -2591,7 +2584,7 @@ exports.Account = {
|
|
2591
2584
|
}
|
2592
2585
|
}`;
|
2593
2586
|
try {
|
2594
|
-
const response = await client.query({ query: GET_ALL_ACCOUNT });
|
2587
|
+
const response = await client_2.client.query({ query: GET_ALL_ACCOUNT });
|
2595
2588
|
if (response.errors && response.errors.length > 0)
|
2596
2589
|
throw new Error(response.errors[0].message);
|
2597
2590
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.accounts) !== null && _b !== void 0 ? _b : null;
|
@@ -2612,7 +2605,6 @@ exports.Account = {
|
|
2612
2605
|
* @returns An array of found Account records or null.
|
2613
2606
|
*/
|
2614
2607
|
async findMany(props) {
|
2615
|
-
const client = (0, client_2.createApolloClient)();
|
2616
2608
|
const FIND_MANY_ACCOUNT = (0, client_1.gql) `
|
2617
2609
|
query findManyAccount($where: AccountWhereInput!) {
|
2618
2610
|
accounts(where: $where) {
|
@@ -2644,7 +2636,7 @@ exports.Account = {
|
|
2644
2636
|
};
|
2645
2637
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2646
2638
|
try {
|
2647
|
-
const response = await client.query({ query: FIND_MANY_ACCOUNT, variables: filteredVariables });
|
2639
|
+
const response = await client_2.client.query({ query: FIND_MANY_ACCOUNT, variables: filteredVariables });
|
2648
2640
|
if (response.errors && response.errors.length > 0)
|
2649
2641
|
throw new Error(response.errors[0].message);
|
2650
2642
|
if (response && response.data && response.data.Accounts) {
|
package/Action.cjs
CHANGED
@@ -176,7 +176,6 @@ exports.Action = {
|
|
176
176
|
* @returns The created Action or null.
|
177
177
|
*/
|
178
178
|
async create(props) {
|
179
|
-
const client = (0, client_2.createApolloClient)();
|
180
179
|
const CREATE_ONE_ACTION = (0, client_1.gql) `
|
181
180
|
mutation createOneAction($data: ActionCreateInput!) {
|
182
181
|
createOneAction(data: $data) {
|
@@ -944,7 +943,7 @@ exports.Action = {
|
|
944
943
|
};
|
945
944
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
946
945
|
try {
|
947
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ACTION, variables: filteredVariables });
|
946
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ACTION, variables: filteredVariables });
|
948
947
|
if (response.errors && response.errors.length > 0)
|
949
948
|
throw new Error(response.errors[0].message);
|
950
949
|
if (response && response.data && response.data.createOneAction) {
|
@@ -965,7 +964,6 @@ exports.Action = {
|
|
965
964
|
* @returns The count of created records or null.
|
966
965
|
*/
|
967
966
|
async createMany(props) {
|
968
|
-
const client = (0, client_2.createApolloClient)();
|
969
967
|
const CREATE_MANY_ACTION = (0, client_1.gql) `
|
970
968
|
mutation createManyAction($data: [ActionCreateManyInput!]!) {
|
971
969
|
createManyAction(data: $data) {
|
@@ -984,7 +982,7 @@ exports.Action = {
|
|
984
982
|
};
|
985
983
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
986
984
|
try {
|
987
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ACTION, variables: filteredVariables });
|
985
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ACTION, variables: filteredVariables });
|
988
986
|
if (response.errors && response.errors.length > 0)
|
989
987
|
throw new Error(response.errors[0].message);
|
990
988
|
if (response && response.data && response.data.createManyAction) {
|
@@ -1005,7 +1003,6 @@ exports.Action = {
|
|
1005
1003
|
* @returns The updated Action or null.
|
1006
1004
|
*/
|
1007
1005
|
async update(props) {
|
1008
|
-
const client = (0, client_2.createApolloClient)();
|
1009
1006
|
const UPDATE_ONE_ACTION = (0, client_1.gql) `
|
1010
1007
|
mutation updateOneAction($data: ActionUpdateInput!, $where: ActionWhereUniqueInput!) {
|
1011
1008
|
updateOneAction(data: $data, where: $where) {
|
@@ -3939,7 +3936,7 @@ exports.Action = {
|
|
3939
3936
|
};
|
3940
3937
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
3941
3938
|
try {
|
3942
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ACTION, variables: filteredVariables });
|
3939
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ACTION, variables: filteredVariables });
|
3943
3940
|
if (response.errors && response.errors.length > 0)
|
3944
3941
|
throw new Error(response.errors[0].message);
|
3945
3942
|
if (response && response.data && response.data.updateOneAction) {
|
@@ -3960,7 +3957,6 @@ exports.Action = {
|
|
3960
3957
|
* @returns The count of created records or null.
|
3961
3958
|
*/
|
3962
3959
|
async updateMany(props) {
|
3963
|
-
const client = (0, client_2.createApolloClient)();
|
3964
3960
|
const UPDATE_MANY_ACTION = (0, client_1.gql) `
|
3965
3961
|
mutation updateManyAction($data: [ActionCreateManyInput!]!) {
|
3966
3962
|
updateManyAction(data: $data) {
|
@@ -6894,7 +6890,7 @@ exports.Action = {
|
|
6894
6890
|
}));
|
6895
6891
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
6896
6892
|
try {
|
6897
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ACTION, variables: filteredVariables });
|
6893
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ACTION, variables: filteredVariables });
|
6898
6894
|
if (response.errors && response.errors.length > 0)
|
6899
6895
|
throw new Error(response.errors[0].message);
|
6900
6896
|
if (response && response.data && response.data.updateManyAction) {
|
@@ -6915,7 +6911,6 @@ exports.Action = {
|
|
6915
6911
|
* @returns The deleted Action or null.
|
6916
6912
|
*/
|
6917
6913
|
async delete(props) {
|
6918
|
-
const client = (0, client_2.createApolloClient)();
|
6919
6914
|
const DELETE_ONE_ACTION = (0, client_1.gql) `
|
6920
6915
|
mutation deleteOneAction($where: ActionWhereUniqueInput!) {
|
6921
6916
|
deleteOneAction(where: $where) {
|
@@ -6929,7 +6924,7 @@ exports.Action = {
|
|
6929
6924
|
};
|
6930
6925
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
6931
6926
|
try {
|
6932
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ACTION, variables: filteredVariables });
|
6927
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ACTION, variables: filteredVariables });
|
6933
6928
|
if (response.errors && response.errors.length > 0)
|
6934
6929
|
throw new Error(response.errors[0].message);
|
6935
6930
|
if (response && response.data && response.data.deleteOneAction) {
|
@@ -6951,7 +6946,6 @@ exports.Action = {
|
|
6951
6946
|
*/
|
6952
6947
|
async get(props) {
|
6953
6948
|
var _a, _b;
|
6954
|
-
const client = (0, client_2.createApolloClient)();
|
6955
6949
|
const GET_ACTION = (0, client_1.gql) `
|
6956
6950
|
query getAction($where: ActionWhereUniqueInput!) {
|
6957
6951
|
getAction(where: $where) {
|
@@ -6972,7 +6966,7 @@ exports.Action = {
|
|
6972
6966
|
};
|
6973
6967
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
6974
6968
|
try {
|
6975
|
-
const response = await client.query({ query: GET_ACTION, variables: filteredVariables });
|
6969
|
+
const response = await client_2.client.query({ query: GET_ACTION, variables: filteredVariables });
|
6976
6970
|
if (response.errors && response.errors.length > 0)
|
6977
6971
|
throw new Error(response.errors[0].message);
|
6978
6972
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAction) !== null && _b !== void 0 ? _b : null;
|
@@ -6993,7 +6987,6 @@ exports.Action = {
|
|
6993
6987
|
*/
|
6994
6988
|
async getAll() {
|
6995
6989
|
var _a, _b;
|
6996
|
-
const client = (0, client_2.createApolloClient)();
|
6997
6990
|
const GET_ALL_ACTION = (0, client_1.gql) `
|
6998
6991
|
query getAllAction {
|
6999
6992
|
actions {
|
@@ -7001,7 +6994,7 @@ exports.Action = {
|
|
7001
6994
|
}
|
7002
6995
|
}`;
|
7003
6996
|
try {
|
7004
|
-
const response = await client.query({ query: GET_ALL_ACTION });
|
6997
|
+
const response = await client_2.client.query({ query: GET_ALL_ACTION });
|
7005
6998
|
if (response.errors && response.errors.length > 0)
|
7006
6999
|
throw new Error(response.errors[0].message);
|
7007
7000
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.actions) !== null && _b !== void 0 ? _b : null;
|
@@ -7022,7 +7015,6 @@ exports.Action = {
|
|
7022
7015
|
* @returns An array of found Action records or null.
|
7023
7016
|
*/
|
7024
7017
|
async findMany(props) {
|
7025
|
-
const client = (0, client_2.createApolloClient)();
|
7026
7018
|
const FIND_MANY_ACTION = (0, client_1.gql) `
|
7027
7019
|
query findManyAction($where: ActionWhereInput!) {
|
7028
7020
|
actions(where: $where) {
|
@@ -7045,7 +7037,7 @@ exports.Action = {
|
|
7045
7037
|
};
|
7046
7038
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7047
7039
|
try {
|
7048
|
-
const response = await client.query({ query: FIND_MANY_ACTION, variables: filteredVariables });
|
7040
|
+
const response = await client_2.client.query({ query: FIND_MANY_ACTION, variables: filteredVariables });
|
7049
7041
|
if (response.errors && response.errors.length > 0)
|
7050
7042
|
throw new Error(response.errors[0].message);
|
7051
7043
|
if (response && response.data && response.data.Actions) {
|
package/Alert.cjs
CHANGED
@@ -25,7 +25,6 @@ exports.Alert = {
|
|
25
25
|
* @returns The created Alert or null.
|
26
26
|
*/
|
27
27
|
async create(props) {
|
28
|
-
const client = (0, client_2.createApolloClient)();
|
29
28
|
const CREATE_ONE_ALERT = (0, client_1.gql) `
|
30
29
|
mutation createOneAlert($data: AlertCreateInput!) {
|
31
30
|
createOneAlert(data: $data) {
|
@@ -602,7 +601,7 @@ exports.Alert = {
|
|
602
601
|
};
|
603
602
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
604
603
|
try {
|
605
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ALERT, variables: filteredVariables });
|
604
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ALERT, variables: filteredVariables });
|
606
605
|
if (response.errors && response.errors.length > 0)
|
607
606
|
throw new Error(response.errors[0].message);
|
608
607
|
if (response && response.data && response.data.createOneAlert) {
|
@@ -623,7 +622,6 @@ exports.Alert = {
|
|
623
622
|
* @returns The count of created records or null.
|
624
623
|
*/
|
625
624
|
async createMany(props) {
|
626
|
-
const client = (0, client_2.createApolloClient)();
|
627
625
|
const CREATE_MANY_ALERT = (0, client_1.gql) `
|
628
626
|
mutation createManyAlert($data: [AlertCreateManyInput!]!) {
|
629
627
|
createManyAlert(data: $data) {
|
@@ -640,7 +638,7 @@ exports.Alert = {
|
|
640
638
|
};
|
641
639
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
642
640
|
try {
|
643
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ALERT, variables: filteredVariables });
|
641
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ALERT, variables: filteredVariables });
|
644
642
|
if (response.errors && response.errors.length > 0)
|
645
643
|
throw new Error(response.errors[0].message);
|
646
644
|
if (response && response.data && response.data.createManyAlert) {
|
@@ -661,7 +659,6 @@ exports.Alert = {
|
|
661
659
|
* @returns The updated Alert or null.
|
662
660
|
*/
|
663
661
|
async update(props) {
|
664
|
-
const client = (0, client_2.createApolloClient)();
|
665
662
|
const UPDATE_ONE_ALERT = (0, client_1.gql) `
|
666
663
|
mutation updateOneAlert($data: AlertUpdateInput!, $where: AlertWhereUniqueInput!) {
|
667
664
|
updateOneAlert(data: $data, where: $where) {
|
@@ -3038,7 +3035,7 @@ exports.Alert = {
|
|
3038
3035
|
};
|
3039
3036
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
3040
3037
|
try {
|
3041
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ALERT, variables: filteredVariables });
|
3038
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ALERT, variables: filteredVariables });
|
3042
3039
|
if (response.errors && response.errors.length > 0)
|
3043
3040
|
throw new Error(response.errors[0].message);
|
3044
3041
|
if (response && response.data && response.data.updateOneAlert) {
|
@@ -3059,7 +3056,6 @@ exports.Alert = {
|
|
3059
3056
|
* @returns The count of created records or null.
|
3060
3057
|
*/
|
3061
3058
|
async updateMany(props) {
|
3062
|
-
const client = (0, client_2.createApolloClient)();
|
3063
3059
|
const UPDATE_MANY_ALERT = (0, client_1.gql) `
|
3064
3060
|
mutation updateManyAlert($data: [AlertCreateManyInput!]!) {
|
3065
3061
|
updateManyAlert(data: $data) {
|
@@ -5436,7 +5432,7 @@ exports.Alert = {
|
|
5436
5432
|
}));
|
5437
5433
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
5438
5434
|
try {
|
5439
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ALERT, variables: filteredVariables });
|
5435
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ALERT, variables: filteredVariables });
|
5440
5436
|
if (response.errors && response.errors.length > 0)
|
5441
5437
|
throw new Error(response.errors[0].message);
|
5442
5438
|
if (response && response.data && response.data.updateManyAlert) {
|
@@ -5457,7 +5453,6 @@ exports.Alert = {
|
|
5457
5453
|
* @returns The deleted Alert or null.
|
5458
5454
|
*/
|
5459
5455
|
async delete(props) {
|
5460
|
-
const client = (0, client_2.createApolloClient)();
|
5461
5456
|
const DELETE_ONE_ALERT = (0, client_1.gql) `
|
5462
5457
|
mutation deleteOneAlert($where: AlertWhereUniqueInput!) {
|
5463
5458
|
deleteOneAlert(where: $where) {
|
@@ -5471,7 +5466,7 @@ exports.Alert = {
|
|
5471
5466
|
};
|
5472
5467
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
5473
5468
|
try {
|
5474
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ALERT, variables: filteredVariables });
|
5469
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ALERT, variables: filteredVariables });
|
5475
5470
|
if (response.errors && response.errors.length > 0)
|
5476
5471
|
throw new Error(response.errors[0].message);
|
5477
5472
|
if (response && response.data && response.data.deleteOneAlert) {
|
@@ -5493,7 +5488,6 @@ exports.Alert = {
|
|
5493
5488
|
*/
|
5494
5489
|
async get(props) {
|
5495
5490
|
var _a, _b;
|
5496
|
-
const client = (0, client_2.createApolloClient)();
|
5497
5491
|
const GET_ALERT = (0, client_1.gql) `
|
5498
5492
|
query getAlert($where: AlertWhereUniqueInput!) {
|
5499
5493
|
getAlert(where: $where) {
|
@@ -5514,7 +5508,7 @@ exports.Alert = {
|
|
5514
5508
|
};
|
5515
5509
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
5516
5510
|
try {
|
5517
|
-
const response = await client.query({ query: GET_ALERT, variables: filteredVariables });
|
5511
|
+
const response = await client_2.client.query({ query: GET_ALERT, variables: filteredVariables });
|
5518
5512
|
if (response.errors && response.errors.length > 0)
|
5519
5513
|
throw new Error(response.errors[0].message);
|
5520
5514
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAlert) !== null && _b !== void 0 ? _b : null;
|
@@ -5535,7 +5529,6 @@ exports.Alert = {
|
|
5535
5529
|
*/
|
5536
5530
|
async getAll() {
|
5537
5531
|
var _a, _b;
|
5538
|
-
const client = (0, client_2.createApolloClient)();
|
5539
5532
|
const GET_ALL_ALERT = (0, client_1.gql) `
|
5540
5533
|
query getAllAlert {
|
5541
5534
|
alerts {
|
@@ -5543,7 +5536,7 @@ exports.Alert = {
|
|
5543
5536
|
}
|
5544
5537
|
}`;
|
5545
5538
|
try {
|
5546
|
-
const response = await client.query({ query: GET_ALL_ALERT });
|
5539
|
+
const response = await client_2.client.query({ query: GET_ALL_ALERT });
|
5547
5540
|
if (response.errors && response.errors.length > 0)
|
5548
5541
|
throw new Error(response.errors[0].message);
|
5549
5542
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.alerts) !== null && _b !== void 0 ? _b : null;
|
@@ -5564,7 +5557,6 @@ exports.Alert = {
|
|
5564
5557
|
* @returns An array of found Alert records or null.
|
5565
5558
|
*/
|
5566
5559
|
async findMany(props) {
|
5567
|
-
const client = (0, client_2.createApolloClient)();
|
5568
5560
|
const FIND_MANY_ALERT = (0, client_1.gql) `
|
5569
5561
|
query findManyAlert($where: AlertWhereInput!) {
|
5570
5562
|
alerts(where: $where) {
|
@@ -5587,7 +5579,7 @@ exports.Alert = {
|
|
5587
5579
|
};
|
5588
5580
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
5589
5581
|
try {
|
5590
|
-
const response = await client.query({ query: FIND_MANY_ALERT, variables: filteredVariables });
|
5582
|
+
const response = await client_2.client.query({ query: FIND_MANY_ALERT, variables: filteredVariables });
|
5591
5583
|
if (response.errors && response.errors.length > 0)
|
5592
5584
|
throw new Error(response.errors[0].message);
|
5593
5585
|
if (response && response.data && response.data.Alerts) {
|
package/AlpacaAccount.cjs
CHANGED
@@ -466,7 +466,6 @@ exports.AlpacaAccount = {
|
|
466
466
|
* @returns The created AlpacaAccount or null.
|
467
467
|
*/
|
468
468
|
async create(props) {
|
469
|
-
const client = (0, client_2.createApolloClient)();
|
470
469
|
const CREATE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
471
470
|
mutation createOneAlpacaAccount($data: AlpacaAccountCreateInput!) {
|
472
471
|
createOneAlpacaAccount(data: $data) {
|
@@ -1423,7 +1422,7 @@ exports.AlpacaAccount = {
|
|
1423
1422
|
};
|
1424
1423
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1425
1424
|
try {
|
1426
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
1425
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
1427
1426
|
if (response.errors && response.errors.length > 0)
|
1428
1427
|
throw new Error(response.errors[0].message);
|
1429
1428
|
if (response && response.data && response.data.createOneAlpacaAccount) {
|
@@ -1444,7 +1443,6 @@ exports.AlpacaAccount = {
|
|
1444
1443
|
* @returns The count of created records or null.
|
1445
1444
|
*/
|
1446
1445
|
async createMany(props) {
|
1447
|
-
const client = (0, client_2.createApolloClient)();
|
1448
1446
|
const CREATE_MANY_ALPACAACCOUNT = (0, client_1.gql) `
|
1449
1447
|
mutation createManyAlpacaAccount($data: [AlpacaAccountCreateManyInput!]!) {
|
1450
1448
|
createManyAlpacaAccount(data: $data) {
|
@@ -1467,7 +1465,7 @@ exports.AlpacaAccount = {
|
|
1467
1465
|
};
|
1468
1466
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1469
1467
|
try {
|
1470
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
1468
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
1471
1469
|
if (response.errors && response.errors.length > 0)
|
1472
1470
|
throw new Error(response.errors[0].message);
|
1473
1471
|
if (response && response.data && response.data.createManyAlpacaAccount) {
|
@@ -1488,7 +1486,6 @@ exports.AlpacaAccount = {
|
|
1488
1486
|
* @returns The updated AlpacaAccount or null.
|
1489
1487
|
*/
|
1490
1488
|
async update(props) {
|
1491
|
-
const client = (0, client_2.createApolloClient)();
|
1492
1489
|
const UPDATE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
1493
1490
|
mutation updateOneAlpacaAccount($data: AlpacaAccountUpdateInput!, $where: AlpacaAccountWhereUniqueInput!) {
|
1494
1491
|
updateOneAlpacaAccount(data: $data, where: $where) {
|
@@ -4917,7 +4914,7 @@ exports.AlpacaAccount = {
|
|
4917
4914
|
};
|
4918
4915
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
4919
4916
|
try {
|
4920
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
4917
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
4921
4918
|
if (response.errors && response.errors.length > 0)
|
4922
4919
|
throw new Error(response.errors[0].message);
|
4923
4920
|
if (response && response.data && response.data.updateOneAlpacaAccount) {
|
@@ -4938,7 +4935,6 @@ exports.AlpacaAccount = {
|
|
4938
4935
|
* @returns The count of created records or null.
|
4939
4936
|
*/
|
4940
4937
|
async updateMany(props) {
|
4941
|
-
const client = (0, client_2.createApolloClient)();
|
4942
4938
|
const UPDATE_MANY_ALPACAACCOUNT = (0, client_1.gql) `
|
4943
4939
|
mutation updateManyAlpacaAccount($data: [AlpacaAccountCreateManyInput!]!) {
|
4944
4940
|
updateManyAlpacaAccount(data: $data) {
|
@@ -8367,7 +8363,7 @@ exports.AlpacaAccount = {
|
|
8367
8363
|
}));
|
8368
8364
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
8369
8365
|
try {
|
8370
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
8366
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
8371
8367
|
if (response.errors && response.errors.length > 0)
|
8372
8368
|
throw new Error(response.errors[0].message);
|
8373
8369
|
if (response && response.data && response.data.updateManyAlpacaAccount) {
|
@@ -8388,7 +8384,6 @@ exports.AlpacaAccount = {
|
|
8388
8384
|
* @returns The deleted AlpacaAccount or null.
|
8389
8385
|
*/
|
8390
8386
|
async delete(props) {
|
8391
|
-
const client = (0, client_2.createApolloClient)();
|
8392
8387
|
const DELETE_ONE_ALPACAACCOUNT = (0, client_1.gql) `
|
8393
8388
|
mutation deleteOneAlpacaAccount($where: AlpacaAccountWhereUniqueInput!) {
|
8394
8389
|
deleteOneAlpacaAccount(where: $where) {
|
@@ -8402,7 +8397,7 @@ exports.AlpacaAccount = {
|
|
8402
8397
|
};
|
8403
8398
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
8404
8399
|
try {
|
8405
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
8400
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ALPACAACCOUNT, variables: filteredVariables });
|
8406
8401
|
if (response.errors && response.errors.length > 0)
|
8407
8402
|
throw new Error(response.errors[0].message);
|
8408
8403
|
if (response && response.data && response.data.deleteOneAlpacaAccount) {
|
@@ -8424,7 +8419,6 @@ exports.AlpacaAccount = {
|
|
8424
8419
|
*/
|
8425
8420
|
async get(props) {
|
8426
8421
|
var _a, _b;
|
8427
|
-
const client = (0, client_2.createApolloClient)();
|
8428
8422
|
const GET_ALPACAACCOUNT = (0, client_1.gql) `
|
8429
8423
|
query getAlpacaAccount($where: AlpacaAccountWhereUniqueInput!) {
|
8430
8424
|
getAlpacaAccount(where: $where) {
|
@@ -8451,7 +8445,7 @@ exports.AlpacaAccount = {
|
|
8451
8445
|
};
|
8452
8446
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
8453
8447
|
try {
|
8454
|
-
const response = await client.query({ query: GET_ALPACAACCOUNT, variables: filteredVariables });
|
8448
|
+
const response = await client_2.client.query({ query: GET_ALPACAACCOUNT, variables: filteredVariables });
|
8455
8449
|
if (response.errors && response.errors.length > 0)
|
8456
8450
|
throw new Error(response.errors[0].message);
|
8457
8451
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAlpacaAccount) !== null && _b !== void 0 ? _b : null;
|
@@ -8472,7 +8466,6 @@ exports.AlpacaAccount = {
|
|
8472
8466
|
*/
|
8473
8467
|
async getAll() {
|
8474
8468
|
var _a, _b;
|
8475
|
-
const client = (0, client_2.createApolloClient)();
|
8476
8469
|
const GET_ALL_ALPACAACCOUNT = (0, client_1.gql) `
|
8477
8470
|
query getAllAlpacaAccount {
|
8478
8471
|
alpacaAccounts {
|
@@ -8480,7 +8473,7 @@ exports.AlpacaAccount = {
|
|
8480
8473
|
}
|
8481
8474
|
}`;
|
8482
8475
|
try {
|
8483
|
-
const response = await client.query({ query: GET_ALL_ALPACAACCOUNT });
|
8476
|
+
const response = await client_2.client.query({ query: GET_ALL_ALPACAACCOUNT });
|
8484
8477
|
if (response.errors && response.errors.length > 0)
|
8485
8478
|
throw new Error(response.errors[0].message);
|
8486
8479
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.alpacaAccounts) !== null && _b !== void 0 ? _b : null;
|
@@ -8501,7 +8494,6 @@ exports.AlpacaAccount = {
|
|
8501
8494
|
* @returns An array of found AlpacaAccount records or null.
|
8502
8495
|
*/
|
8503
8496
|
async findMany(props) {
|
8504
|
-
const client = (0, client_2.createApolloClient)();
|
8505
8497
|
const FIND_MANY_ALPACAACCOUNT = (0, client_1.gql) `
|
8506
8498
|
query findManyAlpacaAccount($where: AlpacaAccountWhereInput!) {
|
8507
8499
|
alpacaAccounts(where: $where) {
|
@@ -8530,7 +8522,7 @@ exports.AlpacaAccount = {
|
|
8530
8522
|
};
|
8531
8523
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
8532
8524
|
try {
|
8533
|
-
const response = await client.query({ query: FIND_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
8525
|
+
const response = await client_2.client.query({ query: FIND_MANY_ALPACAACCOUNT, variables: filteredVariables });
|
8534
8526
|
if (response.errors && response.errors.length > 0)
|
8535
8527
|
throw new Error(response.errors[0].message);
|
8536
8528
|
if (response && response.data && response.data.AlpacaAccounts) {
|
package/Asset.cjs
CHANGED
@@ -242,7 +242,6 @@ exports.Asset = {
|
|
242
242
|
* @returns The created Asset or null.
|
243
243
|
*/
|
244
244
|
async create(props) {
|
245
|
-
const client = (0, client_2.createApolloClient)();
|
246
245
|
const CREATE_ONE_ASSET = (0, client_1.gql) `
|
247
246
|
mutation createOneAsset($data: AssetCreateInput!) {
|
248
247
|
createOneAsset(data: $data) {
|
@@ -1088,7 +1087,7 @@ exports.Asset = {
|
|
1088
1087
|
};
|
1089
1088
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1090
1089
|
try {
|
1091
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ASSET, variables: filteredVariables });
|
1090
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ASSET, variables: filteredVariables });
|
1092
1091
|
if (response.errors && response.errors.length > 0)
|
1093
1092
|
throw new Error(response.errors[0].message);
|
1094
1093
|
if (response && response.data && response.data.createOneAsset) {
|
@@ -1109,7 +1108,6 @@ exports.Asset = {
|
|
1109
1108
|
* @returns The count of created records or null.
|
1110
1109
|
*/
|
1111
1110
|
async createMany(props) {
|
1112
|
-
const client = (0, client_2.createApolloClient)();
|
1113
1111
|
const CREATE_MANY_ASSET = (0, client_1.gql) `
|
1114
1112
|
mutation createManyAsset($data: [AssetCreateManyInput!]!) {
|
1115
1113
|
createManyAsset(data: $data) {
|
@@ -1177,7 +1175,7 @@ exports.Asset = {
|
|
1177
1175
|
};
|
1178
1176
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1179
1177
|
try {
|
1180
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ASSET, variables: filteredVariables });
|
1178
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ASSET, variables: filteredVariables });
|
1181
1179
|
if (response.errors && response.errors.length > 0)
|
1182
1180
|
throw new Error(response.errors[0].message);
|
1183
1181
|
if (response && response.data && response.data.createManyAsset) {
|
@@ -1198,7 +1196,6 @@ exports.Asset = {
|
|
1198
1196
|
* @returns The updated Asset or null.
|
1199
1197
|
*/
|
1200
1198
|
async update(props) {
|
1201
|
-
const client = (0, client_2.createApolloClient)();
|
1202
1199
|
const UPDATE_ONE_ASSET = (0, client_1.gql) `
|
1203
1200
|
mutation updateOneAsset($data: AssetUpdateInput!, $where: AssetWhereUniqueInput!) {
|
1204
1201
|
updateOneAsset(data: $data, where: $where) {
|
@@ -4205,7 +4202,7 @@ exports.Asset = {
|
|
4205
4202
|
};
|
4206
4203
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
4207
4204
|
try {
|
4208
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ASSET, variables: filteredVariables });
|
4205
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ASSET, variables: filteredVariables });
|
4209
4206
|
if (response.errors && response.errors.length > 0)
|
4210
4207
|
throw new Error(response.errors[0].message);
|
4211
4208
|
if (response && response.data && response.data.updateOneAsset) {
|
@@ -4226,7 +4223,6 @@ exports.Asset = {
|
|
4226
4223
|
* @returns The count of created records or null.
|
4227
4224
|
*/
|
4228
4225
|
async updateMany(props) {
|
4229
|
-
const client = (0, client_2.createApolloClient)();
|
4230
4226
|
const UPDATE_MANY_ASSET = (0, client_1.gql) `
|
4231
4227
|
mutation updateManyAsset($data: [AssetCreateManyInput!]!) {
|
4232
4228
|
updateManyAsset(data: $data) {
|
@@ -7233,7 +7229,7 @@ exports.Asset = {
|
|
7233
7229
|
}));
|
7234
7230
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7235
7231
|
try {
|
7236
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ASSET, variables: filteredVariables });
|
7232
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ASSET, variables: filteredVariables });
|
7237
7233
|
if (response.errors && response.errors.length > 0)
|
7238
7234
|
throw new Error(response.errors[0].message);
|
7239
7235
|
if (response && response.data && response.data.updateManyAsset) {
|
@@ -7254,7 +7250,6 @@ exports.Asset = {
|
|
7254
7250
|
* @returns The deleted Asset or null.
|
7255
7251
|
*/
|
7256
7252
|
async delete(props) {
|
7257
|
-
const client = (0, client_2.createApolloClient)();
|
7258
7253
|
const DELETE_ONE_ASSET = (0, client_1.gql) `
|
7259
7254
|
mutation deleteOneAsset($where: AssetWhereUniqueInput!) {
|
7260
7255
|
deleteOneAsset(where: $where) {
|
@@ -7268,7 +7263,7 @@ exports.Asset = {
|
|
7268
7263
|
};
|
7269
7264
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7270
7265
|
try {
|
7271
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ASSET, variables: filteredVariables });
|
7266
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ASSET, variables: filteredVariables });
|
7272
7267
|
if (response.errors && response.errors.length > 0)
|
7273
7268
|
throw new Error(response.errors[0].message);
|
7274
7269
|
if (response && response.data && response.data.deleteOneAsset) {
|
@@ -7290,7 +7285,6 @@ exports.Asset = {
|
|
7290
7285
|
*/
|
7291
7286
|
async get(props) {
|
7292
7287
|
var _a, _b;
|
7293
|
-
const client = (0, client_2.createApolloClient)();
|
7294
7288
|
const GET_ASSET = (0, client_1.gql) `
|
7295
7289
|
query getAsset($where: AssetWhereUniqueInput!) {
|
7296
7290
|
getAsset(where: $where) {
|
@@ -7359,7 +7353,7 @@ exports.Asset = {
|
|
7359
7353
|
};
|
7360
7354
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7361
7355
|
try {
|
7362
|
-
const response = await client.query({ query: GET_ASSET, variables: filteredVariables });
|
7356
|
+
const response = await client_2.client.query({ query: GET_ASSET, variables: filteredVariables });
|
7363
7357
|
if (response.errors && response.errors.length > 0)
|
7364
7358
|
throw new Error(response.errors[0].message);
|
7365
7359
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAsset) !== null && _b !== void 0 ? _b : null;
|
@@ -7380,7 +7374,6 @@ exports.Asset = {
|
|
7380
7374
|
*/
|
7381
7375
|
async getAll() {
|
7382
7376
|
var _a, _b;
|
7383
|
-
const client = (0, client_2.createApolloClient)();
|
7384
7377
|
const GET_ALL_ASSET = (0, client_1.gql) `
|
7385
7378
|
query getAllAsset {
|
7386
7379
|
assets {
|
@@ -7388,7 +7381,7 @@ exports.Asset = {
|
|
7388
7381
|
}
|
7389
7382
|
}`;
|
7390
7383
|
try {
|
7391
|
-
const response = await client.query({ query: GET_ALL_ASSET });
|
7384
|
+
const response = await client_2.client.query({ query: GET_ALL_ASSET });
|
7392
7385
|
if (response.errors && response.errors.length > 0)
|
7393
7386
|
throw new Error(response.errors[0].message);
|
7394
7387
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.assets) !== null && _b !== void 0 ? _b : null;
|
@@ -7409,7 +7402,6 @@ exports.Asset = {
|
|
7409
7402
|
* @returns An array of found Asset records or null.
|
7410
7403
|
*/
|
7411
7404
|
async findMany(props) {
|
7412
|
-
const client = (0, client_2.createApolloClient)();
|
7413
7405
|
const FIND_MANY_ASSET = (0, client_1.gql) `
|
7414
7406
|
query findManyAsset($where: AssetWhereInput!) {
|
7415
7407
|
assets(where: $where) {
|
@@ -7484,7 +7476,7 @@ exports.Asset = {
|
|
7484
7476
|
};
|
7485
7477
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
7486
7478
|
try {
|
7487
|
-
const response = await client.query({ query: FIND_MANY_ASSET, variables: filteredVariables });
|
7479
|
+
const response = await client_2.client.query({ query: FIND_MANY_ASSET, variables: filteredVariables });
|
7488
7480
|
if (response.errors && response.errors.length > 0)
|
7489
7481
|
throw new Error(response.errors[0].message);
|
7490
7482
|
if (response && response.data && response.data.Assets) {
|