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/Authenticator.cjs
CHANGED
@@ -195,7 +195,6 @@ exports.Authenticator = {
|
|
195
195
|
* @returns The created Authenticator or null.
|
196
196
|
*/
|
197
197
|
async create(props) {
|
198
|
-
const client = (0, client_2.createApolloClient)();
|
199
198
|
const CREATE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
200
199
|
mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
|
201
200
|
createOneAuthenticator(data: $data) {
|
@@ -481,7 +480,7 @@ exports.Authenticator = {
|
|
481
480
|
};
|
482
481
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
483
482
|
try {
|
484
|
-
const response = await client.mutate({ mutation: CREATE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
483
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
485
484
|
if (response.errors && response.errors.length > 0)
|
486
485
|
throw new Error(response.errors[0].message);
|
487
486
|
if (response && response.data && response.data.createOneAuthenticator) {
|
@@ -502,7 +501,6 @@ exports.Authenticator = {
|
|
502
501
|
* @returns The count of created records or null.
|
503
502
|
*/
|
504
503
|
async createMany(props) {
|
505
|
-
const client = (0, client_2.createApolloClient)();
|
506
504
|
const CREATE_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
507
505
|
mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
508
506
|
createManyAuthenticator(data: $data) {
|
@@ -519,7 +517,7 @@ exports.Authenticator = {
|
|
519
517
|
};
|
520
518
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
521
519
|
try {
|
522
|
-
const response = await client.mutate({ mutation: CREATE_MANY_AUTHENTICATOR, variables: filteredVariables });
|
520
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_AUTHENTICATOR, variables: filteredVariables });
|
523
521
|
if (response.errors && response.errors.length > 0)
|
524
522
|
throw new Error(response.errors[0].message);
|
525
523
|
if (response && response.data && response.data.createManyAuthenticator) {
|
@@ -540,7 +538,6 @@ exports.Authenticator = {
|
|
540
538
|
* @returns The updated Authenticator or null.
|
541
539
|
*/
|
542
540
|
async update(props) {
|
543
|
-
const client = (0, client_2.createApolloClient)();
|
544
541
|
const UPDATE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
545
542
|
mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
|
546
543
|
updateOneAuthenticator(data: $data, where: $where) {
|
@@ -1507,7 +1504,7 @@ exports.Authenticator = {
|
|
1507
1504
|
};
|
1508
1505
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1509
1506
|
try {
|
1510
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
1507
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
1511
1508
|
if (response.errors && response.errors.length > 0)
|
1512
1509
|
throw new Error(response.errors[0].message);
|
1513
1510
|
if (response && response.data && response.data.updateOneAuthenticator) {
|
@@ -1528,7 +1525,6 @@ exports.Authenticator = {
|
|
1528
1525
|
* @returns The count of created records or null.
|
1529
1526
|
*/
|
1530
1527
|
async updateMany(props) {
|
1531
|
-
const client = (0, client_2.createApolloClient)();
|
1532
1528
|
const UPDATE_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
1533
1529
|
mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
1534
1530
|
updateManyAuthenticator(data: $data) {
|
@@ -2495,7 +2491,7 @@ exports.Authenticator = {
|
|
2495
2491
|
}));
|
2496
2492
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2497
2493
|
try {
|
2498
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_AUTHENTICATOR, variables: filteredVariables });
|
2494
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_AUTHENTICATOR, variables: filteredVariables });
|
2499
2495
|
if (response.errors && response.errors.length > 0)
|
2500
2496
|
throw new Error(response.errors[0].message);
|
2501
2497
|
if (response && response.data && response.data.updateManyAuthenticator) {
|
@@ -2516,7 +2512,6 @@ exports.Authenticator = {
|
|
2516
2512
|
* @returns The deleted Authenticator or null.
|
2517
2513
|
*/
|
2518
2514
|
async delete(props) {
|
2519
|
-
const client = (0, client_2.createApolloClient)();
|
2520
2515
|
const DELETE_ONE_AUTHENTICATOR = (0, client_1.gql) `
|
2521
2516
|
mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
2522
2517
|
deleteOneAuthenticator(where: $where) {
|
@@ -2530,7 +2525,7 @@ exports.Authenticator = {
|
|
2530
2525
|
};
|
2531
2526
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2532
2527
|
try {
|
2533
|
-
const response = await client.mutate({ mutation: DELETE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
2528
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_AUTHENTICATOR, variables: filteredVariables });
|
2534
2529
|
if (response.errors && response.errors.length > 0)
|
2535
2530
|
throw new Error(response.errors[0].message);
|
2536
2531
|
if (response && response.data && response.data.deleteOneAuthenticator) {
|
@@ -2552,7 +2547,6 @@ exports.Authenticator = {
|
|
2552
2547
|
*/
|
2553
2548
|
async get(props) {
|
2554
2549
|
var _a, _b;
|
2555
|
-
const client = (0, client_2.createApolloClient)();
|
2556
2550
|
const GET_AUTHENTICATOR = (0, client_1.gql) `
|
2557
2551
|
query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
2558
2552
|
getAuthenticator(where: $where) {
|
@@ -2574,7 +2568,7 @@ exports.Authenticator = {
|
|
2574
2568
|
};
|
2575
2569
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2576
2570
|
try {
|
2577
|
-
const response = await client.query({ query: GET_AUTHENTICATOR, variables: filteredVariables });
|
2571
|
+
const response = await client_2.client.query({ query: GET_AUTHENTICATOR, variables: filteredVariables });
|
2578
2572
|
if (response.errors && response.errors.length > 0)
|
2579
2573
|
throw new Error(response.errors[0].message);
|
2580
2574
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getAuthenticator) !== null && _b !== void 0 ? _b : null;
|
@@ -2595,7 +2589,6 @@ exports.Authenticator = {
|
|
2595
2589
|
*/
|
2596
2590
|
async getAll() {
|
2597
2591
|
var _a, _b;
|
2598
|
-
const client = (0, client_2.createApolloClient)();
|
2599
2592
|
const GET_ALL_AUTHENTICATOR = (0, client_1.gql) `
|
2600
2593
|
query getAllAuthenticator {
|
2601
2594
|
authenticators {
|
@@ -2603,7 +2596,7 @@ exports.Authenticator = {
|
|
2603
2596
|
}
|
2604
2597
|
}`;
|
2605
2598
|
try {
|
2606
|
-
const response = await client.query({ query: GET_ALL_AUTHENTICATOR });
|
2599
|
+
const response = await client_2.client.query({ query: GET_ALL_AUTHENTICATOR });
|
2607
2600
|
if (response.errors && response.errors.length > 0)
|
2608
2601
|
throw new Error(response.errors[0].message);
|
2609
2602
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.authenticators) !== null && _b !== void 0 ? _b : null;
|
@@ -2624,7 +2617,6 @@ exports.Authenticator = {
|
|
2624
2617
|
* @returns An array of found Authenticator records or null.
|
2625
2618
|
*/
|
2626
2619
|
async findMany(props) {
|
2627
|
-
const client = (0, client_2.createApolloClient)();
|
2628
2620
|
const FIND_MANY_AUTHENTICATOR = (0, client_1.gql) `
|
2629
2621
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
2630
2622
|
authenticators(where: $where) {
|
@@ -2648,7 +2640,7 @@ exports.Authenticator = {
|
|
2648
2640
|
};
|
2649
2641
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2650
2642
|
try {
|
2651
|
-
const response = await client.query({ query: FIND_MANY_AUTHENTICATOR, variables: filteredVariables });
|
2643
|
+
const response = await client_2.client.query({ query: FIND_MANY_AUTHENTICATOR, variables: filteredVariables });
|
2652
2644
|
if (response.errors && response.errors.length > 0)
|
2653
2645
|
throw new Error(response.errors[0].message);
|
2654
2646
|
if (response && response.data && response.data.Authenticators) {
|
package/Customer.cjs
CHANGED
@@ -195,7 +195,6 @@ exports.Customer = {
|
|
195
195
|
* @returns The created Customer or null.
|
196
196
|
*/
|
197
197
|
async create(props) {
|
198
|
-
const client = (0, client_2.createApolloClient)();
|
199
198
|
const CREATE_ONE_CUSTOMER = (0, client_1.gql) `
|
200
199
|
mutation createOneCustomer($data: CustomerCreateInput!) {
|
201
200
|
createOneCustomer(data: $data) {
|
@@ -473,7 +472,7 @@ exports.Customer = {
|
|
473
472
|
};
|
474
473
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
475
474
|
try {
|
476
|
-
const response = await client.mutate({ mutation: CREATE_ONE_CUSTOMER, variables: filteredVariables });
|
475
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_CUSTOMER, variables: filteredVariables });
|
477
476
|
if (response.errors && response.errors.length > 0)
|
478
477
|
throw new Error(response.errors[0].message);
|
479
478
|
if (response && response.data && response.data.createOneCustomer) {
|
@@ -494,7 +493,6 @@ exports.Customer = {
|
|
494
493
|
* @returns The count of created records or null.
|
495
494
|
*/
|
496
495
|
async createMany(props) {
|
497
|
-
const client = (0, client_2.createApolloClient)();
|
498
496
|
const CREATE_MANY_CUSTOMER = (0, client_1.gql) `
|
499
497
|
mutation createManyCustomer($data: [CustomerCreateManyInput!]!) {
|
500
498
|
createManyCustomer(data: $data) {
|
@@ -514,7 +512,7 @@ exports.Customer = {
|
|
514
512
|
};
|
515
513
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
516
514
|
try {
|
517
|
-
const response = await client.mutate({ mutation: CREATE_MANY_CUSTOMER, variables: filteredVariables });
|
515
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_CUSTOMER, variables: filteredVariables });
|
518
516
|
if (response.errors && response.errors.length > 0)
|
519
517
|
throw new Error(response.errors[0].message);
|
520
518
|
if (response && response.data && response.data.createManyCustomer) {
|
@@ -535,7 +533,6 @@ exports.Customer = {
|
|
535
533
|
* @returns The updated Customer or null.
|
536
534
|
*/
|
537
535
|
async update(props) {
|
538
|
-
const client = (0, client_2.createApolloClient)();
|
539
536
|
const UPDATE_ONE_CUSTOMER = (0, client_1.gql) `
|
540
537
|
mutation updateOneCustomer($data: CustomerUpdateInput!, $where: CustomerWhereUniqueInput!) {
|
541
538
|
updateOneCustomer(data: $data, where: $where) {
|
@@ -1475,7 +1472,7 @@ exports.Customer = {
|
|
1475
1472
|
};
|
1476
1473
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1477
1474
|
try {
|
1478
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_CUSTOMER, variables: filteredVariables });
|
1475
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_CUSTOMER, variables: filteredVariables });
|
1479
1476
|
if (response.errors && response.errors.length > 0)
|
1480
1477
|
throw new Error(response.errors[0].message);
|
1481
1478
|
if (response && response.data && response.data.updateOneCustomer) {
|
@@ -1496,7 +1493,6 @@ exports.Customer = {
|
|
1496
1493
|
* @returns The count of created records or null.
|
1497
1494
|
*/
|
1498
1495
|
async updateMany(props) {
|
1499
|
-
const client = (0, client_2.createApolloClient)();
|
1500
1496
|
const UPDATE_MANY_CUSTOMER = (0, client_1.gql) `
|
1501
1497
|
mutation updateManyCustomer($data: [CustomerCreateManyInput!]!) {
|
1502
1498
|
updateManyCustomer(data: $data) {
|
@@ -2436,7 +2432,7 @@ exports.Customer = {
|
|
2436
2432
|
}));
|
2437
2433
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2438
2434
|
try {
|
2439
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_CUSTOMER, variables: filteredVariables });
|
2435
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_CUSTOMER, variables: filteredVariables });
|
2440
2436
|
if (response.errors && response.errors.length > 0)
|
2441
2437
|
throw new Error(response.errors[0].message);
|
2442
2438
|
if (response && response.data && response.data.updateManyCustomer) {
|
@@ -2457,7 +2453,6 @@ exports.Customer = {
|
|
2457
2453
|
* @returns The deleted Customer or null.
|
2458
2454
|
*/
|
2459
2455
|
async delete(props) {
|
2460
|
-
const client = (0, client_2.createApolloClient)();
|
2461
2456
|
const DELETE_ONE_CUSTOMER = (0, client_1.gql) `
|
2462
2457
|
mutation deleteOneCustomer($where: CustomerWhereUniqueInput!) {
|
2463
2458
|
deleteOneCustomer(where: $where) {
|
@@ -2471,7 +2466,7 @@ exports.Customer = {
|
|
2471
2466
|
};
|
2472
2467
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2473
2468
|
try {
|
2474
|
-
const response = await client.mutate({ mutation: DELETE_ONE_CUSTOMER, variables: filteredVariables });
|
2469
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_CUSTOMER, variables: filteredVariables });
|
2475
2470
|
if (response.errors && response.errors.length > 0)
|
2476
2471
|
throw new Error(response.errors[0].message);
|
2477
2472
|
if (response && response.data && response.data.deleteOneCustomer) {
|
@@ -2493,7 +2488,6 @@ exports.Customer = {
|
|
2493
2488
|
*/
|
2494
2489
|
async get(props) {
|
2495
2490
|
var _a, _b;
|
2496
|
-
const client = (0, client_2.createApolloClient)();
|
2497
2491
|
const GET_CUSTOMER = (0, client_1.gql) `
|
2498
2492
|
query getCustomer($where: CustomerWhereUniqueInput!) {
|
2499
2493
|
getCustomer(where: $where) {
|
@@ -2522,7 +2516,7 @@ exports.Customer = {
|
|
2522
2516
|
};
|
2523
2517
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2524
2518
|
try {
|
2525
|
-
const response = await client.query({ query: GET_CUSTOMER, variables: filteredVariables });
|
2519
|
+
const response = await client_2.client.query({ query: GET_CUSTOMER, variables: filteredVariables });
|
2526
2520
|
if (response.errors && response.errors.length > 0)
|
2527
2521
|
throw new Error(response.errors[0].message);
|
2528
2522
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getCustomer) !== null && _b !== void 0 ? _b : null;
|
@@ -2543,7 +2537,6 @@ exports.Customer = {
|
|
2543
2537
|
*/
|
2544
2538
|
async getAll() {
|
2545
2539
|
var _a, _b;
|
2546
|
-
const client = (0, client_2.createApolloClient)();
|
2547
2540
|
const GET_ALL_CUSTOMER = (0, client_1.gql) `
|
2548
2541
|
query getAllCustomer {
|
2549
2542
|
customers {
|
@@ -2551,7 +2544,7 @@ exports.Customer = {
|
|
2551
2544
|
}
|
2552
2545
|
}`;
|
2553
2546
|
try {
|
2554
|
-
const response = await client.query({ query: GET_ALL_CUSTOMER });
|
2547
|
+
const response = await client_2.client.query({ query: GET_ALL_CUSTOMER });
|
2555
2548
|
if (response.errors && response.errors.length > 0)
|
2556
2549
|
throw new Error(response.errors[0].message);
|
2557
2550
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
|
@@ -2572,7 +2565,6 @@ exports.Customer = {
|
|
2572
2565
|
* @returns An array of found Customer records or null.
|
2573
2566
|
*/
|
2574
2567
|
async findMany(props) {
|
2575
|
-
const client = (0, client_2.createApolloClient)();
|
2576
2568
|
const FIND_MANY_CUSTOMER = (0, client_1.gql) `
|
2577
2569
|
query findManyCustomer($where: CustomerWhereInput!) {
|
2578
2570
|
customers(where: $where) {
|
@@ -2607,7 +2599,7 @@ exports.Customer = {
|
|
2607
2599
|
};
|
2608
2600
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2609
2601
|
try {
|
2610
|
-
const response = await client.query({ query: FIND_MANY_CUSTOMER, variables: filteredVariables });
|
2602
|
+
const response = await client_2.client.query({ query: FIND_MANY_CUSTOMER, variables: filteredVariables });
|
2611
2603
|
if (response.errors && response.errors.length > 0)
|
2612
2604
|
throw new Error(response.errors[0].message);
|
2613
2605
|
if (response && response.data && response.data.Customers) {
|
package/EconomicEvent.cjs
CHANGED
@@ -25,7 +25,6 @@ exports.EconomicEvent = {
|
|
25
25
|
* @returns The created EconomicEvent or null.
|
26
26
|
*/
|
27
27
|
async create(props) {
|
28
|
-
const client = (0, client_2.createApolloClient)();
|
29
28
|
const CREATE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
30
29
|
mutation createOneEconomicEvent($data: EconomicEventCreateInput!) {
|
31
30
|
createOneEconomicEvent(data: $data) {
|
@@ -43,7 +42,7 @@ exports.EconomicEvent = {
|
|
43
42
|
};
|
44
43
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
45
44
|
try {
|
46
|
-
const response = await client.mutate({ mutation: CREATE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
45
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
47
46
|
if (response.errors && response.errors.length > 0)
|
48
47
|
throw new Error(response.errors[0].message);
|
49
48
|
if (response && response.data && response.data.createOneEconomicEvent) {
|
@@ -64,7 +63,6 @@ exports.EconomicEvent = {
|
|
64
63
|
* @returns The count of created records or null.
|
65
64
|
*/
|
66
65
|
async createMany(props) {
|
67
|
-
const client = (0, client_2.createApolloClient)();
|
68
66
|
const CREATE_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
69
67
|
mutation createManyEconomicEvent($data: [EconomicEventCreateManyInput!]!) {
|
70
68
|
createManyEconomicEvent(data: $data) {
|
@@ -81,7 +79,7 @@ exports.EconomicEvent = {
|
|
81
79
|
};
|
82
80
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
83
81
|
try {
|
84
|
-
const response = await client.mutate({ mutation: CREATE_MANY_ECONOMICEVENT, variables: filteredVariables });
|
82
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_ECONOMICEVENT, variables: filteredVariables });
|
85
83
|
if (response.errors && response.errors.length > 0)
|
86
84
|
throw new Error(response.errors[0].message);
|
87
85
|
if (response && response.data && response.data.createManyEconomicEvent) {
|
@@ -102,7 +100,6 @@ exports.EconomicEvent = {
|
|
102
100
|
* @returns The updated EconomicEvent or null.
|
103
101
|
*/
|
104
102
|
async update(props) {
|
105
|
-
const client = (0, client_2.createApolloClient)();
|
106
103
|
const UPDATE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
107
104
|
mutation updateOneEconomicEvent($data: EconomicEventUpdateInput!, $where: EconomicEventWhereUniqueInput!) {
|
108
105
|
updateOneEconomicEvent(data: $data, where: $where) {
|
@@ -147,7 +144,7 @@ exports.EconomicEvent = {
|
|
147
144
|
};
|
148
145
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
149
146
|
try {
|
150
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
147
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
151
148
|
if (response.errors && response.errors.length > 0)
|
152
149
|
throw new Error(response.errors[0].message);
|
153
150
|
if (response && response.data && response.data.updateOneEconomicEvent) {
|
@@ -168,7 +165,6 @@ exports.EconomicEvent = {
|
|
168
165
|
* @returns The count of created records or null.
|
169
166
|
*/
|
170
167
|
async updateMany(props) {
|
171
|
-
const client = (0, client_2.createApolloClient)();
|
172
168
|
const UPDATE_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
173
169
|
mutation updateManyEconomicEvent($data: [EconomicEventCreateManyInput!]!) {
|
174
170
|
updateManyEconomicEvent(data: $data) {
|
@@ -213,7 +209,7 @@ exports.EconomicEvent = {
|
|
213
209
|
}));
|
214
210
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
215
211
|
try {
|
216
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_ECONOMICEVENT, variables: filteredVariables });
|
212
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_ECONOMICEVENT, variables: filteredVariables });
|
217
213
|
if (response.errors && response.errors.length > 0)
|
218
214
|
throw new Error(response.errors[0].message);
|
219
215
|
if (response && response.data && response.data.updateManyEconomicEvent) {
|
@@ -234,7 +230,6 @@ exports.EconomicEvent = {
|
|
234
230
|
* @returns The deleted EconomicEvent or null.
|
235
231
|
*/
|
236
232
|
async delete(props) {
|
237
|
-
const client = (0, client_2.createApolloClient)();
|
238
233
|
const DELETE_ONE_ECONOMICEVENT = (0, client_1.gql) `
|
239
234
|
mutation deleteOneEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
240
235
|
deleteOneEconomicEvent(where: $where) {
|
@@ -248,7 +243,7 @@ exports.EconomicEvent = {
|
|
248
243
|
};
|
249
244
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
250
245
|
try {
|
251
|
-
const response = await client.mutate({ mutation: DELETE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
246
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_ECONOMICEVENT, variables: filteredVariables });
|
252
247
|
if (response.errors && response.errors.length > 0)
|
253
248
|
throw new Error(response.errors[0].message);
|
254
249
|
if (response && response.data && response.data.deleteOneEconomicEvent) {
|
@@ -270,7 +265,6 @@ exports.EconomicEvent = {
|
|
270
265
|
*/
|
271
266
|
async get(props) {
|
272
267
|
var _a, _b;
|
273
|
-
const client = (0, client_2.createApolloClient)();
|
274
268
|
const GET_ECONOMICEVENT = (0, client_1.gql) `
|
275
269
|
query getEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
276
270
|
getEconomicEvent(where: $where) {
|
@@ -292,7 +286,7 @@ exports.EconomicEvent = {
|
|
292
286
|
};
|
293
287
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
294
288
|
try {
|
295
|
-
const response = await client.query({ query: GET_ECONOMICEVENT, variables: filteredVariables });
|
289
|
+
const response = await client_2.client.query({ query: GET_ECONOMICEVENT, variables: filteredVariables });
|
296
290
|
if (response.errors && response.errors.length > 0)
|
297
291
|
throw new Error(response.errors[0].message);
|
298
292
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getEconomicEvent) !== null && _b !== void 0 ? _b : null;
|
@@ -313,7 +307,6 @@ exports.EconomicEvent = {
|
|
313
307
|
*/
|
314
308
|
async getAll() {
|
315
309
|
var _a, _b;
|
316
|
-
const client = (0, client_2.createApolloClient)();
|
317
310
|
const GET_ALL_ECONOMICEVENT = (0, client_1.gql) `
|
318
311
|
query getAllEconomicEvent {
|
319
312
|
economicEvents {
|
@@ -321,7 +314,7 @@ exports.EconomicEvent = {
|
|
321
314
|
}
|
322
315
|
}`;
|
323
316
|
try {
|
324
|
-
const response = await client.query({ query: GET_ALL_ECONOMICEVENT });
|
317
|
+
const response = await client_2.client.query({ query: GET_ALL_ECONOMICEVENT });
|
325
318
|
if (response.errors && response.errors.length > 0)
|
326
319
|
throw new Error(response.errors[0].message);
|
327
320
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.economicEvents) !== null && _b !== void 0 ? _b : null;
|
@@ -342,7 +335,6 @@ exports.EconomicEvent = {
|
|
342
335
|
* @returns An array of found EconomicEvent records or null.
|
343
336
|
*/
|
344
337
|
async findMany(props) {
|
345
|
-
const client = (0, client_2.createApolloClient)();
|
346
338
|
const FIND_MANY_ECONOMICEVENT = (0, client_1.gql) `
|
347
339
|
query findManyEconomicEvent($where: EconomicEventWhereInput!) {
|
348
340
|
economicEvents(where: $where) {
|
@@ -366,7 +358,7 @@ exports.EconomicEvent = {
|
|
366
358
|
};
|
367
359
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
368
360
|
try {
|
369
|
-
const response = await client.query({ query: FIND_MANY_ECONOMICEVENT, variables: filteredVariables });
|
361
|
+
const response = await client_2.client.query({ query: FIND_MANY_ECONOMICEVENT, variables: filteredVariables });
|
370
362
|
if (response.errors && response.errors.length > 0)
|
371
363
|
throw new Error(response.errors[0].message);
|
372
364
|
if (response && response.data && response.data.EconomicEvents) {
|
package/MarketSentiment.cjs
CHANGED
@@ -24,7 +24,6 @@ exports.MarketSentiment = {
|
|
24
24
|
* @returns The created MarketSentiment or null.
|
25
25
|
*/
|
26
26
|
async create(props) {
|
27
|
-
const client = (0, client_2.createApolloClient)();
|
28
27
|
const CREATE_ONE_MARKETSENTIMENT = (0, client_1.gql) `
|
29
28
|
mutation createOneMarketSentiment($data: MarketSentimentCreateInput!) {
|
30
29
|
createOneMarketSentiment(data: $data) {
|
@@ -41,7 +40,7 @@ exports.MarketSentiment = {
|
|
41
40
|
};
|
42
41
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
43
42
|
try {
|
44
|
-
const response = await client.mutate({ mutation: CREATE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
43
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
45
44
|
if (response.errors && response.errors.length > 0)
|
46
45
|
throw new Error(response.errors[0].message);
|
47
46
|
if (response && response.data && response.data.createOneMarketSentiment) {
|
@@ -62,7 +61,6 @@ exports.MarketSentiment = {
|
|
62
61
|
* @returns The count of created records or null.
|
63
62
|
*/
|
64
63
|
async createMany(props) {
|
65
|
-
const client = (0, client_2.createApolloClient)();
|
66
64
|
const CREATE_MANY_MARKETSENTIMENT = (0, client_1.gql) `
|
67
65
|
mutation createManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
68
66
|
createManyMarketSentiment(data: $data) {
|
@@ -78,7 +76,7 @@ exports.MarketSentiment = {
|
|
78
76
|
};
|
79
77
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
80
78
|
try {
|
81
|
-
const response = await client.mutate({ mutation: CREATE_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
79
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
82
80
|
if (response.errors && response.errors.length > 0)
|
83
81
|
throw new Error(response.errors[0].message);
|
84
82
|
if (response && response.data && response.data.createManyMarketSentiment) {
|
@@ -99,7 +97,6 @@ exports.MarketSentiment = {
|
|
99
97
|
* @returns The updated MarketSentiment or null.
|
100
98
|
*/
|
101
99
|
async update(props) {
|
102
|
-
const client = (0, client_2.createApolloClient)();
|
103
100
|
const UPDATE_ONE_MARKETSENTIMENT = (0, client_1.gql) `
|
104
101
|
mutation updateOneMarketSentiment($data: MarketSentimentUpdateInput!, $where: MarketSentimentWhereUniqueInput!) {
|
105
102
|
updateOneMarketSentiment(data: $data, where: $where) {
|
@@ -138,7 +135,7 @@ exports.MarketSentiment = {
|
|
138
135
|
};
|
139
136
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
140
137
|
try {
|
141
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
138
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
142
139
|
if (response.errors && response.errors.length > 0)
|
143
140
|
throw new Error(response.errors[0].message);
|
144
141
|
if (response && response.data && response.data.updateOneMarketSentiment) {
|
@@ -159,7 +156,6 @@ exports.MarketSentiment = {
|
|
159
156
|
* @returns The count of created records or null.
|
160
157
|
*/
|
161
158
|
async updateMany(props) {
|
162
|
-
const client = (0, client_2.createApolloClient)();
|
163
159
|
const UPDATE_MANY_MARKETSENTIMENT = (0, client_1.gql) `
|
164
160
|
mutation updateManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
165
161
|
updateManyMarketSentiment(data: $data) {
|
@@ -198,7 +194,7 @@ exports.MarketSentiment = {
|
|
198
194
|
}));
|
199
195
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
200
196
|
try {
|
201
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
197
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
202
198
|
if (response.errors && response.errors.length > 0)
|
203
199
|
throw new Error(response.errors[0].message);
|
204
200
|
if (response && response.data && response.data.updateManyMarketSentiment) {
|
@@ -219,7 +215,6 @@ exports.MarketSentiment = {
|
|
219
215
|
* @returns The deleted MarketSentiment or null.
|
220
216
|
*/
|
221
217
|
async delete(props) {
|
222
|
-
const client = (0, client_2.createApolloClient)();
|
223
218
|
const DELETE_ONE_MARKETSENTIMENT = (0, client_1.gql) `
|
224
219
|
mutation deleteOneMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
225
220
|
deleteOneMarketSentiment(where: $where) {
|
@@ -233,7 +228,7 @@ exports.MarketSentiment = {
|
|
233
228
|
};
|
234
229
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
235
230
|
try {
|
236
|
-
const response = await client.mutate({ mutation: DELETE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
231
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_MARKETSENTIMENT, variables: filteredVariables });
|
237
232
|
if (response.errors && response.errors.length > 0)
|
238
233
|
throw new Error(response.errors[0].message);
|
239
234
|
if (response && response.data && response.data.deleteOneMarketSentiment) {
|
@@ -255,7 +250,6 @@ exports.MarketSentiment = {
|
|
255
250
|
*/
|
256
251
|
async get(props) {
|
257
252
|
var _a, _b;
|
258
|
-
const client = (0, client_2.createApolloClient)();
|
259
253
|
const GET_MARKETSENTIMENT = (0, client_1.gql) `
|
260
254
|
query getMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
261
255
|
getMarketSentiment(where: $where) {
|
@@ -274,7 +268,7 @@ exports.MarketSentiment = {
|
|
274
268
|
};
|
275
269
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
276
270
|
try {
|
277
|
-
const response = await client.query({ query: GET_MARKETSENTIMENT, variables: filteredVariables });
|
271
|
+
const response = await client_2.client.query({ query: GET_MARKETSENTIMENT, variables: filteredVariables });
|
278
272
|
if (response.errors && response.errors.length > 0)
|
279
273
|
throw new Error(response.errors[0].message);
|
280
274
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getMarketSentiment) !== null && _b !== void 0 ? _b : null;
|
@@ -295,7 +289,6 @@ exports.MarketSentiment = {
|
|
295
289
|
*/
|
296
290
|
async getAll() {
|
297
291
|
var _a, _b;
|
298
|
-
const client = (0, client_2.createApolloClient)();
|
299
292
|
const GET_ALL_MARKETSENTIMENT = (0, client_1.gql) `
|
300
293
|
query getAllMarketSentiment {
|
301
294
|
marketSentiments {
|
@@ -303,7 +296,7 @@ exports.MarketSentiment = {
|
|
303
296
|
}
|
304
297
|
}`;
|
305
298
|
try {
|
306
|
-
const response = await client.query({ query: GET_ALL_MARKETSENTIMENT });
|
299
|
+
const response = await client_2.client.query({ query: GET_ALL_MARKETSENTIMENT });
|
307
300
|
if (response.errors && response.errors.length > 0)
|
308
301
|
throw new Error(response.errors[0].message);
|
309
302
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.marketSentiments) !== null && _b !== void 0 ? _b : null;
|
@@ -324,7 +317,6 @@ exports.MarketSentiment = {
|
|
324
317
|
* @returns An array of found MarketSentiment records or null.
|
325
318
|
*/
|
326
319
|
async findMany(props) {
|
327
|
-
const client = (0, client_2.createApolloClient)();
|
328
320
|
const FIND_MANY_MARKETSENTIMENT = (0, client_1.gql) `
|
329
321
|
query findManyMarketSentiment($where: MarketSentimentWhereInput!) {
|
330
322
|
marketSentiments(where: $where) {
|
@@ -345,7 +337,7 @@ exports.MarketSentiment = {
|
|
345
337
|
};
|
346
338
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
347
339
|
try {
|
348
|
-
const response = await client.query({ query: FIND_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
340
|
+
const response = await client_2.client.query({ query: FIND_MANY_MARKETSENTIMENT, variables: filteredVariables });
|
349
341
|
if (response.errors && response.errors.length > 0)
|
350
342
|
throw new Error(response.errors[0].message);
|
351
343
|
if (response && response.data && response.data.MarketSentiments) {
|
package/NewsArticle.cjs
CHANGED
@@ -103,7 +103,6 @@ exports.NewsArticle = {
|
|
103
103
|
* @returns The created NewsArticle or null.
|
104
104
|
*/
|
105
105
|
async create(props) {
|
106
|
-
const client = (0, client_2.createApolloClient)();
|
107
106
|
const CREATE_ONE_NEWSARTICLE = (0, client_1.gql) `
|
108
107
|
mutation createOneNewsArticle($data: NewsArticleCreateInput!) {
|
109
108
|
createOneNewsArticle(data: $data) {
|
@@ -339,7 +338,7 @@ exports.NewsArticle = {
|
|
339
338
|
};
|
340
339
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
341
340
|
try {
|
342
|
-
const response = await client.mutate({ mutation: CREATE_ONE_NEWSARTICLE, variables: filteredVariables });
|
341
|
+
const response = await client_2.client.mutate({ mutation: CREATE_ONE_NEWSARTICLE, variables: filteredVariables });
|
343
342
|
if (response.errors && response.errors.length > 0)
|
344
343
|
throw new Error(response.errors[0].message);
|
345
344
|
if (response && response.data && response.data.createOneNewsArticle) {
|
@@ -360,7 +359,6 @@ exports.NewsArticle = {
|
|
360
359
|
* @returns The count of created records or null.
|
361
360
|
*/
|
362
361
|
async createMany(props) {
|
363
|
-
const client = (0, client_2.createApolloClient)();
|
364
362
|
const CREATE_MANY_NEWSARTICLE = (0, client_1.gql) `
|
365
363
|
mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
366
364
|
createManyNewsArticle(data: $data) {
|
@@ -386,7 +384,7 @@ exports.NewsArticle = {
|
|
386
384
|
};
|
387
385
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
388
386
|
try {
|
389
|
-
const response = await client.mutate({ mutation: CREATE_MANY_NEWSARTICLE, variables: filteredVariables });
|
387
|
+
const response = await client_2.client.mutate({ mutation: CREATE_MANY_NEWSARTICLE, variables: filteredVariables });
|
390
388
|
if (response.errors && response.errors.length > 0)
|
391
389
|
throw new Error(response.errors[0].message);
|
392
390
|
if (response && response.data && response.data.createManyNewsArticle) {
|
@@ -407,7 +405,6 @@ exports.NewsArticle = {
|
|
407
405
|
* @returns The updated NewsArticle or null.
|
408
406
|
*/
|
409
407
|
async update(props) {
|
410
|
-
const client = (0, client_2.createApolloClient)();
|
411
408
|
const UPDATE_ONE_NEWSARTICLE = (0, client_1.gql) `
|
412
409
|
mutation updateOneNewsArticle($data: NewsArticleUpdateInput!, $where: NewsArticleWhereUniqueInput!) {
|
413
410
|
updateOneNewsArticle(data: $data, where: $where) {
|
@@ -1321,7 +1318,7 @@ exports.NewsArticle = {
|
|
1321
1318
|
};
|
1322
1319
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1323
1320
|
try {
|
1324
|
-
const response = await client.mutate({ mutation: UPDATE_ONE_NEWSARTICLE, variables: filteredVariables });
|
1321
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_ONE_NEWSARTICLE, variables: filteredVariables });
|
1325
1322
|
if (response.errors && response.errors.length > 0)
|
1326
1323
|
throw new Error(response.errors[0].message);
|
1327
1324
|
if (response && response.data && response.data.updateOneNewsArticle) {
|
@@ -1342,7 +1339,6 @@ exports.NewsArticle = {
|
|
1342
1339
|
* @returns The count of created records or null.
|
1343
1340
|
*/
|
1344
1341
|
async updateMany(props) {
|
1345
|
-
const client = (0, client_2.createApolloClient)();
|
1346
1342
|
const UPDATE_MANY_NEWSARTICLE = (0, client_1.gql) `
|
1347
1343
|
mutation updateManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
1348
1344
|
updateManyNewsArticle(data: $data) {
|
@@ -2256,7 +2252,7 @@ exports.NewsArticle = {
|
|
2256
2252
|
}));
|
2257
2253
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2258
2254
|
try {
|
2259
|
-
const response = await client.mutate({ mutation: UPDATE_MANY_NEWSARTICLE, variables: filteredVariables });
|
2255
|
+
const response = await client_2.client.mutate({ mutation: UPDATE_MANY_NEWSARTICLE, variables: filteredVariables });
|
2260
2256
|
if (response.errors && response.errors.length > 0)
|
2261
2257
|
throw new Error(response.errors[0].message);
|
2262
2258
|
if (response && response.data && response.data.updateManyNewsArticle) {
|
@@ -2277,7 +2273,6 @@ exports.NewsArticle = {
|
|
2277
2273
|
* @returns The deleted NewsArticle or null.
|
2278
2274
|
*/
|
2279
2275
|
async delete(props) {
|
2280
|
-
const client = (0, client_2.createApolloClient)();
|
2281
2276
|
const DELETE_ONE_NEWSARTICLE = (0, client_1.gql) `
|
2282
2277
|
mutation deleteOneNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
2283
2278
|
deleteOneNewsArticle(where: $where) {
|
@@ -2291,7 +2286,7 @@ exports.NewsArticle = {
|
|
2291
2286
|
};
|
2292
2287
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2293
2288
|
try {
|
2294
|
-
const response = await client.mutate({ mutation: DELETE_ONE_NEWSARTICLE, variables: filteredVariables });
|
2289
|
+
const response = await client_2.client.mutate({ mutation: DELETE_ONE_NEWSARTICLE, variables: filteredVariables });
|
2295
2290
|
if (response.errors && response.errors.length > 0)
|
2296
2291
|
throw new Error(response.errors[0].message);
|
2297
2292
|
if (response && response.data && response.data.deleteOneNewsArticle) {
|
@@ -2313,7 +2308,6 @@ exports.NewsArticle = {
|
|
2313
2308
|
*/
|
2314
2309
|
async get(props) {
|
2315
2310
|
var _a, _b;
|
2316
|
-
const client = (0, client_2.createApolloClient)();
|
2317
2311
|
const GET_NEWSARTICLE = (0, client_1.gql) `
|
2318
2312
|
query getNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
2319
2313
|
getNewsArticle(where: $where) {
|
@@ -2344,7 +2338,7 @@ exports.NewsArticle = {
|
|
2344
2338
|
};
|
2345
2339
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2346
2340
|
try {
|
2347
|
-
const response = await client.query({ query: GET_NEWSARTICLE, variables: filteredVariables });
|
2341
|
+
const response = await client_2.client.query({ query: GET_NEWSARTICLE, variables: filteredVariables });
|
2348
2342
|
if (response.errors && response.errors.length > 0)
|
2349
2343
|
throw new Error(response.errors[0].message);
|
2350
2344
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getNewsArticle) !== null && _b !== void 0 ? _b : null;
|
@@ -2365,7 +2359,6 @@ exports.NewsArticle = {
|
|
2365
2359
|
*/
|
2366
2360
|
async getAll() {
|
2367
2361
|
var _a, _b;
|
2368
|
-
const client = (0, client_2.createApolloClient)();
|
2369
2362
|
const GET_ALL_NEWSARTICLE = (0, client_1.gql) `
|
2370
2363
|
query getAllNewsArticle {
|
2371
2364
|
newsArticles {
|
@@ -2373,7 +2366,7 @@ exports.NewsArticle = {
|
|
2373
2366
|
}
|
2374
2367
|
}`;
|
2375
2368
|
try {
|
2376
|
-
const response = await client.query({ query: GET_ALL_NEWSARTICLE });
|
2369
|
+
const response = await client_2.client.query({ query: GET_ALL_NEWSARTICLE });
|
2377
2370
|
if (response.errors && response.errors.length > 0)
|
2378
2371
|
throw new Error(response.errors[0].message);
|
2379
2372
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsArticles) !== null && _b !== void 0 ? _b : null;
|
@@ -2394,7 +2387,6 @@ exports.NewsArticle = {
|
|
2394
2387
|
* @returns An array of found NewsArticle records or null.
|
2395
2388
|
*/
|
2396
2389
|
async findMany(props) {
|
2397
|
-
const client = (0, client_2.createApolloClient)();
|
2398
2390
|
const FIND_MANY_NEWSARTICLE = (0, client_1.gql) `
|
2399
2391
|
query findManyNewsArticle($where: NewsArticleWhereInput!) {
|
2400
2392
|
newsArticles(where: $where) {
|
@@ -2429,7 +2421,7 @@ exports.NewsArticle = {
|
|
2429
2421
|
};
|
2430
2422
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2431
2423
|
try {
|
2432
|
-
const response = await client.query({ query: FIND_MANY_NEWSARTICLE, variables: filteredVariables });
|
2424
|
+
const response = await client_2.client.query({ query: FIND_MANY_NEWSARTICLE, variables: filteredVariables });
|
2433
2425
|
if (response.errors && response.errors.length > 0)
|
2434
2426
|
throw new Error(response.errors[0].message);
|
2435
2427
|
if (response && response.data && response.data.NewsArticles) {
|