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/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) {
|
@@ -370,11 +369,9 @@ exports.Customer = {
|
|
370
369
|
: { connectOrCreate: item.orders.map((item) => ({
|
371
370
|
where: {
|
372
371
|
id: item.id !== undefined ? item.id : undefined,
|
372
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
373
373
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
374
374
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
375
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
376
|
-
equals: item.clientOrderId
|
377
|
-
} : undefined,
|
378
375
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
379
376
|
equals: item.alpacaAccountId
|
380
377
|
} : undefined,
|
@@ -475,7 +472,7 @@ exports.Customer = {
|
|
475
472
|
};
|
476
473
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
477
474
|
try {
|
478
|
-
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 });
|
479
476
|
if (response.errors && response.errors.length > 0)
|
480
477
|
throw new Error(response.errors[0].message);
|
481
478
|
if (response && response.data && response.data.createOneCustomer) {
|
@@ -496,7 +493,6 @@ exports.Customer = {
|
|
496
493
|
* @returns The count of created records or null.
|
497
494
|
*/
|
498
495
|
async createMany(props) {
|
499
|
-
const client = (0, client_2.createApolloClient)();
|
500
496
|
const CREATE_MANY_CUSTOMER = (0, client_1.gql) `
|
501
497
|
mutation createManyCustomer($data: [CustomerCreateManyInput!]!) {
|
502
498
|
createManyCustomer(data: $data) {
|
@@ -516,7 +512,7 @@ exports.Customer = {
|
|
516
512
|
};
|
517
513
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
518
514
|
try {
|
519
|
-
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 });
|
520
516
|
if (response.errors && response.errors.length > 0)
|
521
517
|
throw new Error(response.errors[0].message);
|
522
518
|
if (response && response.data && response.data.createManyCustomer) {
|
@@ -537,7 +533,6 @@ exports.Customer = {
|
|
537
533
|
* @returns The updated Customer or null.
|
538
534
|
*/
|
539
535
|
async update(props) {
|
540
|
-
const client = (0, client_2.createApolloClient)();
|
541
536
|
const UPDATE_ONE_CUSTOMER = (0, client_1.gql) `
|
542
537
|
mutation updateOneCustomer($data: CustomerUpdateInput!, $where: CustomerWhereUniqueInput!) {
|
543
538
|
updateOneCustomer(data: $data, where: $where) {
|
@@ -858,11 +853,9 @@ exports.Customer = {
|
|
858
853
|
upsert: item.orders.map((item) => ({
|
859
854
|
where: {
|
860
855
|
id: item.id !== undefined ? item.id : undefined,
|
856
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
861
857
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
862
858
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
863
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
864
|
-
equals: item.clientOrderId
|
865
|
-
} : undefined,
|
866
859
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
867
860
|
equals: item.alpacaAccountId
|
868
861
|
} : undefined,
|
@@ -1135,11 +1128,9 @@ exports.Customer = {
|
|
1135
1128
|
: { connectOrCreate: item.orders.map((item) => ({
|
1136
1129
|
where: {
|
1137
1130
|
id: item.id !== undefined ? item.id : undefined,
|
1131
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1138
1132
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1139
1133
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1140
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1141
|
-
equals: item.clientOrderId
|
1142
|
-
} : undefined,
|
1143
1134
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1144
1135
|
equals: item.alpacaAccountId
|
1145
1136
|
} : undefined,
|
@@ -1378,11 +1369,9 @@ exports.Customer = {
|
|
1378
1369
|
: { connectOrCreate: item.orders.map((item) => ({
|
1379
1370
|
where: {
|
1380
1371
|
id: item.id !== undefined ? item.id : undefined,
|
1372
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1381
1373
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1382
1374
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1383
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1384
|
-
equals: item.clientOrderId
|
1385
|
-
} : undefined,
|
1386
1375
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1387
1376
|
equals: item.alpacaAccountId
|
1388
1377
|
} : undefined,
|
@@ -1483,7 +1472,7 @@ exports.Customer = {
|
|
1483
1472
|
};
|
1484
1473
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
1485
1474
|
try {
|
1486
|
-
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 });
|
1487
1476
|
if (response.errors && response.errors.length > 0)
|
1488
1477
|
throw new Error(response.errors[0].message);
|
1489
1478
|
if (response && response.data && response.data.updateOneCustomer) {
|
@@ -1504,7 +1493,6 @@ exports.Customer = {
|
|
1504
1493
|
* @returns The count of created records or null.
|
1505
1494
|
*/
|
1506
1495
|
async updateMany(props) {
|
1507
|
-
const client = (0, client_2.createApolloClient)();
|
1508
1496
|
const UPDATE_MANY_CUSTOMER = (0, client_1.gql) `
|
1509
1497
|
mutation updateManyCustomer($data: [CustomerCreateManyInput!]!) {
|
1510
1498
|
updateManyCustomer(data: $data) {
|
@@ -1825,11 +1813,9 @@ exports.Customer = {
|
|
1825
1813
|
upsert: item.orders.map((item) => ({
|
1826
1814
|
where: {
|
1827
1815
|
id: item.id !== undefined ? item.id : undefined,
|
1816
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
1828
1817
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
1829
1818
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
1830
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
1831
|
-
equals: item.clientOrderId
|
1832
|
-
} : undefined,
|
1833
1819
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
1834
1820
|
equals: item.alpacaAccountId
|
1835
1821
|
} : undefined,
|
@@ -2102,11 +2088,9 @@ exports.Customer = {
|
|
2102
2088
|
: { connectOrCreate: item.orders.map((item) => ({
|
2103
2089
|
where: {
|
2104
2090
|
id: item.id !== undefined ? item.id : undefined,
|
2091
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2105
2092
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2106
2093
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2107
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
2108
|
-
equals: item.clientOrderId
|
2109
|
-
} : undefined,
|
2110
2094
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2111
2095
|
equals: item.alpacaAccountId
|
2112
2096
|
} : undefined,
|
@@ -2345,11 +2329,9 @@ exports.Customer = {
|
|
2345
2329
|
: { connectOrCreate: item.orders.map((item) => ({
|
2346
2330
|
where: {
|
2347
2331
|
id: item.id !== undefined ? item.id : undefined,
|
2332
|
+
clientOrderId: item.clientOrderId !== undefined ? item.clientOrderId : undefined,
|
2348
2333
|
actionId: item.actionId !== undefined ? item.actionId : undefined,
|
2349
2334
|
stopLossId: item.stopLossId !== undefined ? item.stopLossId : undefined,
|
2350
|
-
clientOrderId: item.clientOrderId !== undefined ? {
|
2351
|
-
equals: item.clientOrderId
|
2352
|
-
} : undefined,
|
2353
2335
|
alpacaAccountId: item.alpacaAccountId !== undefined ? {
|
2354
2336
|
equals: item.alpacaAccountId
|
2355
2337
|
} : undefined,
|
@@ -2450,7 +2432,7 @@ exports.Customer = {
|
|
2450
2432
|
}));
|
2451
2433
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2452
2434
|
try {
|
2453
|
-
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 });
|
2454
2436
|
if (response.errors && response.errors.length > 0)
|
2455
2437
|
throw new Error(response.errors[0].message);
|
2456
2438
|
if (response && response.data && response.data.updateManyCustomer) {
|
@@ -2471,7 +2453,6 @@ exports.Customer = {
|
|
2471
2453
|
* @returns The deleted Customer or null.
|
2472
2454
|
*/
|
2473
2455
|
async delete(props) {
|
2474
|
-
const client = (0, client_2.createApolloClient)();
|
2475
2456
|
const DELETE_ONE_CUSTOMER = (0, client_1.gql) `
|
2476
2457
|
mutation deleteOneCustomer($where: CustomerWhereUniqueInput!) {
|
2477
2458
|
deleteOneCustomer(where: $where) {
|
@@ -2485,7 +2466,7 @@ exports.Customer = {
|
|
2485
2466
|
};
|
2486
2467
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2487
2468
|
try {
|
2488
|
-
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 });
|
2489
2470
|
if (response.errors && response.errors.length > 0)
|
2490
2471
|
throw new Error(response.errors[0].message);
|
2491
2472
|
if (response && response.data && response.data.deleteOneCustomer) {
|
@@ -2507,7 +2488,6 @@ exports.Customer = {
|
|
2507
2488
|
*/
|
2508
2489
|
async get(props) {
|
2509
2490
|
var _a, _b;
|
2510
|
-
const client = (0, client_2.createApolloClient)();
|
2511
2491
|
const GET_CUSTOMER = (0, client_1.gql) `
|
2512
2492
|
query getCustomer($where: CustomerWhereUniqueInput!) {
|
2513
2493
|
getCustomer(where: $where) {
|
@@ -2536,7 +2516,7 @@ exports.Customer = {
|
|
2536
2516
|
};
|
2537
2517
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2538
2518
|
try {
|
2539
|
-
const response = await client.query({ query: GET_CUSTOMER, variables: filteredVariables });
|
2519
|
+
const response = await client_2.client.query({ query: GET_CUSTOMER, variables: filteredVariables });
|
2540
2520
|
if (response.errors && response.errors.length > 0)
|
2541
2521
|
throw new Error(response.errors[0].message);
|
2542
2522
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getCustomer) !== null && _b !== void 0 ? _b : null;
|
@@ -2557,7 +2537,6 @@ exports.Customer = {
|
|
2557
2537
|
*/
|
2558
2538
|
async getAll() {
|
2559
2539
|
var _a, _b;
|
2560
|
-
const client = (0, client_2.createApolloClient)();
|
2561
2540
|
const GET_ALL_CUSTOMER = (0, client_1.gql) `
|
2562
2541
|
query getAllCustomer {
|
2563
2542
|
customers {
|
@@ -2565,7 +2544,7 @@ exports.Customer = {
|
|
2565
2544
|
}
|
2566
2545
|
}`;
|
2567
2546
|
try {
|
2568
|
-
const response = await client.query({ query: GET_ALL_CUSTOMER });
|
2547
|
+
const response = await client_2.client.query({ query: GET_ALL_CUSTOMER });
|
2569
2548
|
if (response.errors && response.errors.length > 0)
|
2570
2549
|
throw new Error(response.errors[0].message);
|
2571
2550
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.customers) !== null && _b !== void 0 ? _b : null;
|
@@ -2586,7 +2565,6 @@ exports.Customer = {
|
|
2586
2565
|
* @returns An array of found Customer records or null.
|
2587
2566
|
*/
|
2588
2567
|
async findMany(props) {
|
2589
|
-
const client = (0, client_2.createApolloClient)();
|
2590
2568
|
const FIND_MANY_CUSTOMER = (0, client_1.gql) `
|
2591
2569
|
query findManyCustomer($where: CustomerWhereInput!) {
|
2592
2570
|
customers(where: $where) {
|
@@ -2621,7 +2599,7 @@ exports.Customer = {
|
|
2621
2599
|
};
|
2622
2600
|
const filteredVariables = (0, utils_1.removeUndefinedProps)(variables);
|
2623
2601
|
try {
|
2624
|
-
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 });
|
2625
2603
|
if (response.errors && response.errors.length > 0)
|
2626
2604
|
throw new Error(response.errors[0].message);
|
2627
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) {
|