adaptic-backend 1.0.292 → 1.0.294
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 +75 -21
- package/Action.cjs +75 -21
- package/Alert.cjs +75 -21
- package/AlpacaAccount.cjs +75 -21
- package/Asset.cjs +75 -21
- package/Authenticator.cjs +75 -21
- package/Contract.cjs +75 -21
- package/Customer.cjs +75 -21
- package/Deliverable.cjs +75 -21
- package/EconomicEvent.cjs +75 -21
- package/MarketSentiment.cjs +75 -21
- package/NewsArticle.cjs +75 -21
- package/NewsArticleAssetSentiment.cjs +75 -21
- package/Order.cjs +75 -21
- package/Position.cjs +75 -21
- package/ScheduledOptionOrder.cjs +75 -21
- package/Session.cjs +75 -21
- package/StopLoss.cjs +75 -21
- package/TakeProfit.cjs +75 -21
- package/Trade.cjs +75 -21
- package/User.cjs +75 -21
- package/VerificationToken.cjs +75 -21
- package/apollo-client.client.cjs +17 -0
- package/apollo-client.client.d.ts +7 -0
- package/apollo-client.server.cjs +21 -0
- package/apollo-client.server.d.ts +7 -0
- package/client.cjs +80 -59
- package/client.d.ts +26 -17
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +64 -10
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +64 -10
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +64 -10
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +64 -10
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +64 -10
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +64 -10
- package/esm/Contract.d.ts.map +1 -1
- package/esm/Contract.js.map +1 -1
- package/esm/Contract.mjs +64 -10
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +64 -10
- package/esm/Deliverable.d.ts.map +1 -1
- package/esm/Deliverable.js.map +1 -1
- package/esm/Deliverable.mjs +64 -10
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +64 -10
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +64 -10
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +64 -10
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +64 -10
- package/esm/Order.d.ts.map +1 -1
- package/esm/Order.js.map +1 -1
- package/esm/Order.mjs +64 -10
- package/esm/Position.d.ts.map +1 -1
- package/esm/Position.js.map +1 -1
- package/esm/Position.mjs +64 -10
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +64 -10
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +64 -10
- package/esm/StopLoss.d.ts.map +1 -1
- package/esm/StopLoss.js.map +1 -1
- package/esm/StopLoss.mjs +64 -10
- package/esm/TakeProfit.d.ts.map +1 -1
- package/esm/TakeProfit.js.map +1 -1
- package/esm/TakeProfit.mjs +64 -10
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +64 -10
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +64 -10
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +64 -10
- package/esm/apollo-client.client.d.ts +7 -0
- package/esm/apollo-client.client.d.ts.map +1 -0
- package/esm/apollo-client.client.js.map +1 -0
- package/esm/apollo-client.client.mjs +8 -0
- package/esm/apollo-client.server.d.ts +7 -0
- package/esm/apollo-client.server.d.ts.map +1 -0
- package/esm/apollo-client.server.js.map +1 -0
- package/esm/apollo-client.server.mjs +12 -0
- package/esm/client.d.ts +26 -17
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +45 -60
- package/generated/typegraphql-prisma/enhance.cjs +7 -7
- package/generated/typegraphql-prisma/index.cjs +10 -10
- package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +22 -22
- package/generated/typegraphql-prisma/resolvers/crud/index.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +11 -11
- package/generated/typegraphql-prisma/resolvers/relations/index.cjs +2 -2
- package/index.cjs +1 -1
- package/package.json +1 -1
- package/server.cjs +1 -1
package/EconomicEvent.cjs
CHANGED
@@ -25,8 +25,14 @@ exports.EconomicEvent = {
|
|
25
25
|
* @returns The created EconomicEvent or null.
|
26
26
|
*/
|
27
27
|
async create(props, globalClient) {
|
28
|
-
const client =
|
29
|
-
|
28
|
+
const [modules, client] = await Promise.all([
|
29
|
+
(0, client_1.getApolloModules)(),
|
30
|
+
globalClient
|
31
|
+
? Promise.resolve(globalClient)
|
32
|
+
: client_1.client
|
33
|
+
]);
|
34
|
+
const { gql, ApolloError } = modules;
|
35
|
+
const CREATE_ONE_ECONOMICEVENT = gql `
|
30
36
|
mutation createOneEconomicEvent($data: EconomicEventCreateInput!) {
|
31
37
|
createOneEconomicEvent(data: $data) {
|
32
38
|
${selectionSet}
|
@@ -65,8 +71,14 @@ exports.EconomicEvent = {
|
|
65
71
|
* @returns The count of created records or null.
|
66
72
|
*/
|
67
73
|
async createMany(props, globalClient) {
|
68
|
-
const client =
|
69
|
-
|
74
|
+
const [modules, client] = await Promise.all([
|
75
|
+
(0, client_1.getApolloModules)(),
|
76
|
+
globalClient
|
77
|
+
? Promise.resolve(globalClient)
|
78
|
+
: client_1.client
|
79
|
+
]);
|
80
|
+
const { gql, ApolloError } = modules;
|
81
|
+
const CREATE_MANY_ECONOMICEVENT = gql `
|
70
82
|
mutation createManyEconomicEvent($data: [EconomicEventCreateManyInput!]!) {
|
71
83
|
createManyEconomicEvent(data: $data) {
|
72
84
|
count
|
@@ -104,8 +116,14 @@ exports.EconomicEvent = {
|
|
104
116
|
* @returns The updated EconomicEvent or null.
|
105
117
|
*/
|
106
118
|
async update(props, globalClient) {
|
107
|
-
const client =
|
108
|
-
|
119
|
+
const [modules, client] = await Promise.all([
|
120
|
+
(0, client_1.getApolloModules)(),
|
121
|
+
globalClient
|
122
|
+
? Promise.resolve(globalClient)
|
123
|
+
: client_1.client
|
124
|
+
]);
|
125
|
+
const { gql, ApolloError } = modules;
|
126
|
+
const UPDATE_ONE_ECONOMICEVENT = gql `
|
109
127
|
mutation updateOneEconomicEvent($data: EconomicEventUpdateInput!, $where: EconomicEventWhereUniqueInput!) {
|
110
128
|
updateOneEconomicEvent(data: $data, where: $where) {
|
111
129
|
${selectionSet}
|
@@ -166,8 +184,14 @@ exports.EconomicEvent = {
|
|
166
184
|
* @returns The updated EconomicEvent or null.
|
167
185
|
*/
|
168
186
|
async upsert(props, globalClient) {
|
169
|
-
const client =
|
170
|
-
|
187
|
+
const [modules, client] = await Promise.all([
|
188
|
+
(0, client_1.getApolloModules)(),
|
189
|
+
globalClient
|
190
|
+
? Promise.resolve(globalClient)
|
191
|
+
: client_1.client
|
192
|
+
]);
|
193
|
+
const { gql, ApolloError } = modules;
|
194
|
+
const UPSERT_ONE_ECONOMICEVENT = gql `
|
171
195
|
mutation upsertOneEconomicEvent($where: EconomicEventWhereUniqueInput!, $create: EconomicEventCreateInput!, $update: EconomicEventUpdateInput!) {
|
172
196
|
upsertOneEconomicEvent(where: $where, create: $create, update: $update) {
|
173
197
|
${selectionSet}
|
@@ -225,8 +249,14 @@ exports.EconomicEvent = {
|
|
225
249
|
* @returns The count of created records or null.
|
226
250
|
*/
|
227
251
|
async updateMany(props, globalClient) {
|
228
|
-
const client =
|
229
|
-
|
252
|
+
const [modules, client] = await Promise.all([
|
253
|
+
(0, client_1.getApolloModules)(),
|
254
|
+
globalClient
|
255
|
+
? Promise.resolve(globalClient)
|
256
|
+
: client_1.client
|
257
|
+
]);
|
258
|
+
const { gql, ApolloError } = modules;
|
259
|
+
const UPDATE_MANY_ECONOMICEVENT = gql `
|
230
260
|
mutation updateManyEconomicEvent($data: [EconomicEventCreateManyInput!]!) {
|
231
261
|
updateManyEconomicEvent(data: $data) {
|
232
262
|
count
|
@@ -287,8 +317,14 @@ exports.EconomicEvent = {
|
|
287
317
|
* @returns The deleted EconomicEvent or null.
|
288
318
|
*/
|
289
319
|
async delete(props, globalClient) {
|
290
|
-
const client =
|
291
|
-
|
320
|
+
const [modules, client] = await Promise.all([
|
321
|
+
(0, client_1.getApolloModules)(),
|
322
|
+
globalClient
|
323
|
+
? Promise.resolve(globalClient)
|
324
|
+
: client_1.client
|
325
|
+
]);
|
326
|
+
const { gql, ApolloError } = modules;
|
327
|
+
const DELETE_ONE_ECONOMICEVENT = gql `
|
292
328
|
mutation deleteOneEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
293
329
|
deleteOneEconomicEvent(where: $where) {
|
294
330
|
${selectionSet}
|
@@ -324,8 +360,14 @@ exports.EconomicEvent = {
|
|
324
360
|
*/
|
325
361
|
async get(props, globalClient) {
|
326
362
|
var _a, _b;
|
327
|
-
const client =
|
328
|
-
|
363
|
+
const [modules, client] = await Promise.all([
|
364
|
+
(0, client_1.getApolloModules)(),
|
365
|
+
globalClient
|
366
|
+
? Promise.resolve(globalClient)
|
367
|
+
: client_1.client
|
368
|
+
]);
|
369
|
+
const { gql, ApolloError } = modules;
|
370
|
+
const GET_ECONOMICEVENT = gql `
|
329
371
|
query getEconomicEvent($where: EconomicEventWhereUniqueInput!) {
|
330
372
|
getEconomicEvent(where: $where) {
|
331
373
|
${selectionSet}
|
@@ -347,7 +389,7 @@ exports.EconomicEvent = {
|
|
347
389
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getEconomicEvent) !== null && _b !== void 0 ? _b : null;
|
348
390
|
}
|
349
391
|
catch (error) {
|
350
|
-
if (error instanceof
|
392
|
+
if (error instanceof ApolloError && error.message === 'No EconomicEvent found') {
|
351
393
|
return null;
|
352
394
|
}
|
353
395
|
else {
|
@@ -363,8 +405,14 @@ exports.EconomicEvent = {
|
|
363
405
|
*/
|
364
406
|
async getAll(globalClient) {
|
365
407
|
var _a, _b;
|
366
|
-
const client =
|
367
|
-
|
408
|
+
const [modules, client] = await Promise.all([
|
409
|
+
(0, client_1.getApolloModules)(),
|
410
|
+
globalClient
|
411
|
+
? Promise.resolve(globalClient)
|
412
|
+
: client_1.client
|
413
|
+
]);
|
414
|
+
const { gql, ApolloError } = modules;
|
415
|
+
const GET_ALL_ECONOMICEVENT = gql `
|
368
416
|
query getAllEconomicEvent {
|
369
417
|
economicEvents {
|
370
418
|
${selectionSet}
|
@@ -377,7 +425,7 @@ exports.EconomicEvent = {
|
|
377
425
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.economicEvents) !== null && _b !== void 0 ? _b : null;
|
378
426
|
}
|
379
427
|
catch (error) {
|
380
|
-
if (error instanceof
|
428
|
+
if (error instanceof ApolloError && error.message === 'No EconomicEvent found') {
|
381
429
|
return null;
|
382
430
|
}
|
383
431
|
else {
|
@@ -393,8 +441,14 @@ exports.EconomicEvent = {
|
|
393
441
|
* @returns An array of found EconomicEvent records or null.
|
394
442
|
*/
|
395
443
|
async findMany(props, globalClient) {
|
396
|
-
const client =
|
397
|
-
|
444
|
+
const [modules, client] = await Promise.all([
|
445
|
+
(0, client_1.getApolloModules)(),
|
446
|
+
globalClient
|
447
|
+
? Promise.resolve(globalClient)
|
448
|
+
: client_1.client
|
449
|
+
]);
|
450
|
+
const { gql, ApolloError } = modules;
|
451
|
+
const FIND_MANY_ECONOMICEVENT = gql `
|
398
452
|
query findManyEconomicEvent($where: EconomicEventWhereInput!) {
|
399
453
|
economicEvents(where: $where) {
|
400
454
|
${selectionSet}
|
@@ -423,7 +477,7 @@ exports.EconomicEvent = {
|
|
423
477
|
}
|
424
478
|
}
|
425
479
|
catch (error) {
|
426
|
-
if (error instanceof
|
480
|
+
if (error instanceof ApolloError && error.message === 'No EconomicEvent found') {
|
427
481
|
return null;
|
428
482
|
}
|
429
483
|
else {
|
package/MarketSentiment.cjs
CHANGED
@@ -24,8 +24,14 @@ exports.MarketSentiment = {
|
|
24
24
|
* @returns The created MarketSentiment or null.
|
25
25
|
*/
|
26
26
|
async create(props, globalClient) {
|
27
|
-
const client =
|
28
|
-
|
27
|
+
const [modules, client] = await Promise.all([
|
28
|
+
(0, client_1.getApolloModules)(),
|
29
|
+
globalClient
|
30
|
+
? Promise.resolve(globalClient)
|
31
|
+
: client_1.client
|
32
|
+
]);
|
33
|
+
const { gql, ApolloError } = modules;
|
34
|
+
const CREATE_ONE_MARKETSENTIMENT = gql `
|
29
35
|
mutation createOneMarketSentiment($data: MarketSentimentCreateInput!) {
|
30
36
|
createOneMarketSentiment(data: $data) {
|
31
37
|
${selectionSet}
|
@@ -63,8 +69,14 @@ exports.MarketSentiment = {
|
|
63
69
|
* @returns The count of created records or null.
|
64
70
|
*/
|
65
71
|
async createMany(props, globalClient) {
|
66
|
-
const client =
|
67
|
-
|
72
|
+
const [modules, client] = await Promise.all([
|
73
|
+
(0, client_1.getApolloModules)(),
|
74
|
+
globalClient
|
75
|
+
? Promise.resolve(globalClient)
|
76
|
+
: client_1.client
|
77
|
+
]);
|
78
|
+
const { gql, ApolloError } = modules;
|
79
|
+
const CREATE_MANY_MARKETSENTIMENT = gql `
|
68
80
|
mutation createManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
69
81
|
createManyMarketSentiment(data: $data) {
|
70
82
|
count
|
@@ -101,8 +113,14 @@ exports.MarketSentiment = {
|
|
101
113
|
* @returns The updated MarketSentiment or null.
|
102
114
|
*/
|
103
115
|
async update(props, globalClient) {
|
104
|
-
const client =
|
105
|
-
|
116
|
+
const [modules, client] = await Promise.all([
|
117
|
+
(0, client_1.getApolloModules)(),
|
118
|
+
globalClient
|
119
|
+
? Promise.resolve(globalClient)
|
120
|
+
: client_1.client
|
121
|
+
]);
|
122
|
+
const { gql, ApolloError } = modules;
|
123
|
+
const UPDATE_ONE_MARKETSENTIMENT = gql `
|
106
124
|
mutation updateOneMarketSentiment($data: MarketSentimentUpdateInput!, $where: MarketSentimentWhereUniqueInput!) {
|
107
125
|
updateOneMarketSentiment(data: $data, where: $where) {
|
108
126
|
${selectionSet}
|
@@ -157,8 +175,14 @@ exports.MarketSentiment = {
|
|
157
175
|
* @returns The updated MarketSentiment or null.
|
158
176
|
*/
|
159
177
|
async upsert(props, globalClient) {
|
160
|
-
const client =
|
161
|
-
|
178
|
+
const [modules, client] = await Promise.all([
|
179
|
+
(0, client_1.getApolloModules)(),
|
180
|
+
globalClient
|
181
|
+
? Promise.resolve(globalClient)
|
182
|
+
: client_1.client
|
183
|
+
]);
|
184
|
+
const { gql, ApolloError } = modules;
|
185
|
+
const UPSERT_ONE_MARKETSENTIMENT = gql `
|
162
186
|
mutation upsertOneMarketSentiment($where: MarketSentimentWhereUniqueInput!, $create: MarketSentimentCreateInput!, $update: MarketSentimentUpdateInput!) {
|
163
187
|
upsertOneMarketSentiment(where: $where, create: $create, update: $update) {
|
164
188
|
${selectionSet}
|
@@ -209,8 +233,14 @@ exports.MarketSentiment = {
|
|
209
233
|
* @returns The count of created records or null.
|
210
234
|
*/
|
211
235
|
async updateMany(props, globalClient) {
|
212
|
-
const client =
|
213
|
-
|
236
|
+
const [modules, client] = await Promise.all([
|
237
|
+
(0, client_1.getApolloModules)(),
|
238
|
+
globalClient
|
239
|
+
? Promise.resolve(globalClient)
|
240
|
+
: client_1.client
|
241
|
+
]);
|
242
|
+
const { gql, ApolloError } = modules;
|
243
|
+
const UPDATE_MANY_MARKETSENTIMENT = gql `
|
214
244
|
mutation updateManyMarketSentiment($data: [MarketSentimentCreateManyInput!]!) {
|
215
245
|
updateManyMarketSentiment(data: $data) {
|
216
246
|
count
|
@@ -265,8 +295,14 @@ exports.MarketSentiment = {
|
|
265
295
|
* @returns The deleted MarketSentiment or null.
|
266
296
|
*/
|
267
297
|
async delete(props, globalClient) {
|
268
|
-
const client =
|
269
|
-
|
298
|
+
const [modules, client] = await Promise.all([
|
299
|
+
(0, client_1.getApolloModules)(),
|
300
|
+
globalClient
|
301
|
+
? Promise.resolve(globalClient)
|
302
|
+
: client_1.client
|
303
|
+
]);
|
304
|
+
const { gql, ApolloError } = modules;
|
305
|
+
const DELETE_ONE_MARKETSENTIMENT = gql `
|
270
306
|
mutation deleteOneMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
271
307
|
deleteOneMarketSentiment(where: $where) {
|
272
308
|
${selectionSet}
|
@@ -302,8 +338,14 @@ exports.MarketSentiment = {
|
|
302
338
|
*/
|
303
339
|
async get(props, globalClient) {
|
304
340
|
var _a, _b;
|
305
|
-
const client =
|
306
|
-
|
341
|
+
const [modules, client] = await Promise.all([
|
342
|
+
(0, client_1.getApolloModules)(),
|
343
|
+
globalClient
|
344
|
+
? Promise.resolve(globalClient)
|
345
|
+
: client_1.client
|
346
|
+
]);
|
347
|
+
const { gql, ApolloError } = modules;
|
348
|
+
const GET_MARKETSENTIMENT = gql `
|
307
349
|
query getMarketSentiment($where: MarketSentimentWhereUniqueInput!) {
|
308
350
|
getMarketSentiment(where: $where) {
|
309
351
|
${selectionSet}
|
@@ -322,7 +364,7 @@ exports.MarketSentiment = {
|
|
322
364
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getMarketSentiment) !== null && _b !== void 0 ? _b : null;
|
323
365
|
}
|
324
366
|
catch (error) {
|
325
|
-
if (error instanceof
|
367
|
+
if (error instanceof ApolloError && error.message === 'No MarketSentiment found') {
|
326
368
|
return null;
|
327
369
|
}
|
328
370
|
else {
|
@@ -338,8 +380,14 @@ exports.MarketSentiment = {
|
|
338
380
|
*/
|
339
381
|
async getAll(globalClient) {
|
340
382
|
var _a, _b;
|
341
|
-
const client =
|
342
|
-
|
383
|
+
const [modules, client] = await Promise.all([
|
384
|
+
(0, client_1.getApolloModules)(),
|
385
|
+
globalClient
|
386
|
+
? Promise.resolve(globalClient)
|
387
|
+
: client_1.client
|
388
|
+
]);
|
389
|
+
const { gql, ApolloError } = modules;
|
390
|
+
const GET_ALL_MARKETSENTIMENT = gql `
|
343
391
|
query getAllMarketSentiment {
|
344
392
|
marketSentiments {
|
345
393
|
${selectionSet}
|
@@ -352,7 +400,7 @@ exports.MarketSentiment = {
|
|
352
400
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.marketSentiments) !== null && _b !== void 0 ? _b : null;
|
353
401
|
}
|
354
402
|
catch (error) {
|
355
|
-
if (error instanceof
|
403
|
+
if (error instanceof ApolloError && error.message === 'No MarketSentiment found') {
|
356
404
|
return null;
|
357
405
|
}
|
358
406
|
else {
|
@@ -368,8 +416,14 @@ exports.MarketSentiment = {
|
|
368
416
|
* @returns An array of found MarketSentiment records or null.
|
369
417
|
*/
|
370
418
|
async findMany(props, globalClient) {
|
371
|
-
const client =
|
372
|
-
|
419
|
+
const [modules, client] = await Promise.all([
|
420
|
+
(0, client_1.getApolloModules)(),
|
421
|
+
globalClient
|
422
|
+
? Promise.resolve(globalClient)
|
423
|
+
: client_1.client
|
424
|
+
]);
|
425
|
+
const { gql, ApolloError } = modules;
|
426
|
+
const FIND_MANY_MARKETSENTIMENT = gql `
|
373
427
|
query findManyMarketSentiment($where: MarketSentimentWhereInput!) {
|
374
428
|
marketSentiments(where: $where) {
|
375
429
|
${selectionSet}
|
@@ -395,7 +449,7 @@ exports.MarketSentiment = {
|
|
395
449
|
}
|
396
450
|
}
|
397
451
|
catch (error) {
|
398
|
-
if (error instanceof
|
452
|
+
if (error instanceof ApolloError && error.message === 'No MarketSentiment found') {
|
399
453
|
return null;
|
400
454
|
}
|
401
455
|
else {
|
package/NewsArticle.cjs
CHANGED
@@ -103,8 +103,14 @@ exports.NewsArticle = {
|
|
103
103
|
* @returns The created NewsArticle or null.
|
104
104
|
*/
|
105
105
|
async create(props, globalClient) {
|
106
|
-
const client =
|
107
|
-
|
106
|
+
const [modules, client] = await Promise.all([
|
107
|
+
(0, client_1.getApolloModules)(),
|
108
|
+
globalClient
|
109
|
+
? Promise.resolve(globalClient)
|
110
|
+
: client_1.client
|
111
|
+
]);
|
112
|
+
const { gql, ApolloError } = modules;
|
113
|
+
const CREATE_ONE_NEWSARTICLE = gql `
|
108
114
|
mutation createOneNewsArticle($data: NewsArticleCreateInput!) {
|
109
115
|
createOneNewsArticle(data: $data) {
|
110
116
|
${selectionSet}
|
@@ -411,8 +417,14 @@ exports.NewsArticle = {
|
|
411
417
|
* @returns The count of created records or null.
|
412
418
|
*/
|
413
419
|
async createMany(props, globalClient) {
|
414
|
-
const client =
|
415
|
-
|
420
|
+
const [modules, client] = await Promise.all([
|
421
|
+
(0, client_1.getApolloModules)(),
|
422
|
+
globalClient
|
423
|
+
? Promise.resolve(globalClient)
|
424
|
+
: client_1.client
|
425
|
+
]);
|
426
|
+
const { gql, ApolloError } = modules;
|
427
|
+
const CREATE_MANY_NEWSARTICLE = gql `
|
416
428
|
mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
417
429
|
createManyNewsArticle(data: $data) {
|
418
430
|
count
|
@@ -463,8 +475,14 @@ exports.NewsArticle = {
|
|
463
475
|
* @returns The updated NewsArticle or null.
|
464
476
|
*/
|
465
477
|
async update(props, globalClient) {
|
466
|
-
const client =
|
467
|
-
|
478
|
+
const [modules, client] = await Promise.all([
|
479
|
+
(0, client_1.getApolloModules)(),
|
480
|
+
globalClient
|
481
|
+
? Promise.resolve(globalClient)
|
482
|
+
: client_1.client
|
483
|
+
]);
|
484
|
+
const { gql, ApolloError } = modules;
|
485
|
+
const UPDATE_ONE_NEWSARTICLE = gql `
|
468
486
|
mutation updateOneNewsArticle($data: NewsArticleUpdateInput!, $where: NewsArticleWhereUniqueInput!) {
|
469
487
|
updateOneNewsArticle(data: $data, where: $where) {
|
470
488
|
${selectionSet}
|
@@ -1678,8 +1696,14 @@ exports.NewsArticle = {
|
|
1678
1696
|
* @returns The updated NewsArticle or null.
|
1679
1697
|
*/
|
1680
1698
|
async upsert(props, globalClient) {
|
1681
|
-
const client =
|
1682
|
-
|
1699
|
+
const [modules, client] = await Promise.all([
|
1700
|
+
(0, client_1.getApolloModules)(),
|
1701
|
+
globalClient
|
1702
|
+
? Promise.resolve(globalClient)
|
1703
|
+
: client_1.client
|
1704
|
+
]);
|
1705
|
+
const { gql, ApolloError } = modules;
|
1706
|
+
const UPSERT_ONE_NEWSARTICLE = gql `
|
1683
1707
|
mutation upsertOneNewsArticle($where: NewsArticleWhereUniqueInput!, $create: NewsArticleCreateInput!, $update: NewsArticleUpdateInput!) {
|
1684
1708
|
upsertOneNewsArticle(where: $where, create: $create, update: $update) {
|
1685
1709
|
${selectionSet}
|
@@ -3158,8 +3182,14 @@ exports.NewsArticle = {
|
|
3158
3182
|
* @returns The count of created records or null.
|
3159
3183
|
*/
|
3160
3184
|
async updateMany(props, globalClient) {
|
3161
|
-
const client =
|
3162
|
-
|
3185
|
+
const [modules, client] = await Promise.all([
|
3186
|
+
(0, client_1.getApolloModules)(),
|
3187
|
+
globalClient
|
3188
|
+
? Promise.resolve(globalClient)
|
3189
|
+
: client_1.client
|
3190
|
+
]);
|
3191
|
+
const { gql, ApolloError } = modules;
|
3192
|
+
const UPDATE_MANY_NEWSARTICLE = gql `
|
3163
3193
|
mutation updateManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
|
3164
3194
|
updateManyNewsArticle(data: $data) {
|
3165
3195
|
count
|
@@ -4373,8 +4403,14 @@ exports.NewsArticle = {
|
|
4373
4403
|
* @returns The deleted NewsArticle or null.
|
4374
4404
|
*/
|
4375
4405
|
async delete(props, globalClient) {
|
4376
|
-
const client =
|
4377
|
-
|
4406
|
+
const [modules, client] = await Promise.all([
|
4407
|
+
(0, client_1.getApolloModules)(),
|
4408
|
+
globalClient
|
4409
|
+
? Promise.resolve(globalClient)
|
4410
|
+
: client_1.client
|
4411
|
+
]);
|
4412
|
+
const { gql, ApolloError } = modules;
|
4413
|
+
const DELETE_ONE_NEWSARTICLE = gql `
|
4378
4414
|
mutation deleteOneNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
4379
4415
|
deleteOneNewsArticle(where: $where) {
|
4380
4416
|
${selectionSet}
|
@@ -4410,8 +4446,14 @@ exports.NewsArticle = {
|
|
4410
4446
|
*/
|
4411
4447
|
async get(props, globalClient) {
|
4412
4448
|
var _a, _b;
|
4413
|
-
const client =
|
4414
|
-
|
4449
|
+
const [modules, client] = await Promise.all([
|
4450
|
+
(0, client_1.getApolloModules)(),
|
4451
|
+
globalClient
|
4452
|
+
? Promise.resolve(globalClient)
|
4453
|
+
: client_1.client
|
4454
|
+
]);
|
4455
|
+
const { gql, ApolloError } = modules;
|
4456
|
+
const GET_NEWSARTICLE = gql `
|
4415
4457
|
query getNewsArticle($where: NewsArticleWhereUniqueInput!) {
|
4416
4458
|
getNewsArticle(where: $where) {
|
4417
4459
|
${selectionSet}
|
@@ -4434,7 +4476,7 @@ exports.NewsArticle = {
|
|
4434
4476
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.getNewsArticle) !== null && _b !== void 0 ? _b : null;
|
4435
4477
|
}
|
4436
4478
|
catch (error) {
|
4437
|
-
if (error instanceof
|
4479
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticle found') {
|
4438
4480
|
return null;
|
4439
4481
|
}
|
4440
4482
|
else {
|
@@ -4450,8 +4492,14 @@ exports.NewsArticle = {
|
|
4450
4492
|
*/
|
4451
4493
|
async getAll(globalClient) {
|
4452
4494
|
var _a, _b;
|
4453
|
-
const client =
|
4454
|
-
|
4495
|
+
const [modules, client] = await Promise.all([
|
4496
|
+
(0, client_1.getApolloModules)(),
|
4497
|
+
globalClient
|
4498
|
+
? Promise.resolve(globalClient)
|
4499
|
+
: client_1.client
|
4500
|
+
]);
|
4501
|
+
const { gql, ApolloError } = modules;
|
4502
|
+
const GET_ALL_NEWSARTICLE = gql `
|
4455
4503
|
query getAllNewsArticle {
|
4456
4504
|
newsArticles {
|
4457
4505
|
${selectionSet}
|
@@ -4464,7 +4512,7 @@ exports.NewsArticle = {
|
|
4464
4512
|
return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.newsArticles) !== null && _b !== void 0 ? _b : null;
|
4465
4513
|
}
|
4466
4514
|
catch (error) {
|
4467
|
-
if (error instanceof
|
4515
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticle found') {
|
4468
4516
|
return null;
|
4469
4517
|
}
|
4470
4518
|
else {
|
@@ -4480,8 +4528,14 @@ exports.NewsArticle = {
|
|
4480
4528
|
* @returns An array of found NewsArticle records or null.
|
4481
4529
|
*/
|
4482
4530
|
async findMany(props, globalClient) {
|
4483
|
-
const client =
|
4484
|
-
|
4531
|
+
const [modules, client] = await Promise.all([
|
4532
|
+
(0, client_1.getApolloModules)(),
|
4533
|
+
globalClient
|
4534
|
+
? Promise.resolve(globalClient)
|
4535
|
+
: client_1.client
|
4536
|
+
]);
|
4537
|
+
const { gql, ApolloError } = modules;
|
4538
|
+
const FIND_MANY_NEWSARTICLE = gql `
|
4485
4539
|
query findManyNewsArticle($where: NewsArticleWhereInput!) {
|
4486
4540
|
newsArticles(where: $where) {
|
4487
4541
|
${selectionSet}
|
@@ -4513,7 +4567,7 @@ exports.NewsArticle = {
|
|
4513
4567
|
}
|
4514
4568
|
}
|
4515
4569
|
catch (error) {
|
4516
|
-
if (error instanceof
|
4570
|
+
if (error instanceof ApolloError && error.message === 'No NewsArticle found') {
|
4517
4571
|
return null;
|
4518
4572
|
}
|
4519
4573
|
else {
|