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/server/Alert.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import pkg from '@apollo/client';
|
2
2
|
const { ApolloError, gql } = pkg;
|
3
|
-
import {
|
3
|
+
import { client } from './client.mjs';
|
4
4
|
import { removeUndefinedProps } from './utils.mjs';
|
5
5
|
/**
|
6
6
|
* CRUD operations for the Alert model.
|
@@ -23,7 +23,6 @@ export const Alert = {
|
|
23
23
|
* @returns The created Alert or null.
|
24
24
|
*/
|
25
25
|
async create(props) {
|
26
|
-
const client = createApolloClient();
|
27
26
|
const CREATE_ONE_ALERT = gql `
|
28
27
|
mutation createOneAlert($data: AlertCreateInput!) {
|
29
28
|
createOneAlert(data: $data) {
|
@@ -621,7 +620,6 @@ export const Alert = {
|
|
621
620
|
* @returns The count of created records or null.
|
622
621
|
*/
|
623
622
|
async createMany(props) {
|
624
|
-
const client = createApolloClient();
|
625
623
|
const CREATE_MANY_ALERT = gql `
|
626
624
|
mutation createManyAlert($data: [AlertCreateManyInput!]!) {
|
627
625
|
createManyAlert(data: $data) {
|
@@ -659,7 +657,6 @@ export const Alert = {
|
|
659
657
|
* @returns The updated Alert or null.
|
660
658
|
*/
|
661
659
|
async update(props) {
|
662
|
-
const client = createApolloClient();
|
663
660
|
const UPDATE_ONE_ALERT = gql `
|
664
661
|
mutation updateOneAlert($data: AlertUpdateInput!, $where: AlertWhereUniqueInput!) {
|
665
662
|
updateOneAlert(data: $data, where: $where) {
|
@@ -3057,7 +3054,6 @@ export const Alert = {
|
|
3057
3054
|
* @returns The count of created records or null.
|
3058
3055
|
*/
|
3059
3056
|
async updateMany(props) {
|
3060
|
-
const client = createApolloClient();
|
3061
3057
|
const UPDATE_MANY_ALERT = gql `
|
3062
3058
|
mutation updateManyAlert($data: [AlertCreateManyInput!]!) {
|
3063
3059
|
updateManyAlert(data: $data) {
|
@@ -5455,7 +5451,6 @@ export const Alert = {
|
|
5455
5451
|
* @returns The deleted Alert or null.
|
5456
5452
|
*/
|
5457
5453
|
async delete(props) {
|
5458
|
-
const client = createApolloClient();
|
5459
5454
|
const DELETE_ONE_ALERT = gql `
|
5460
5455
|
mutation deleteOneAlert($where: AlertWhereUniqueInput!) {
|
5461
5456
|
deleteOneAlert(where: $where) {
|
@@ -5490,7 +5485,6 @@ export const Alert = {
|
|
5490
5485
|
* @returns The retrieved Alert or null.
|
5491
5486
|
*/
|
5492
5487
|
async get(props) {
|
5493
|
-
const client = createApolloClient();
|
5494
5488
|
const GET_ALERT = gql `
|
5495
5489
|
query getAlert($where: AlertWhereUniqueInput!) {
|
5496
5490
|
getAlert(where: $where) {
|
@@ -5531,7 +5525,6 @@ export const Alert = {
|
|
5531
5525
|
* @returns An array of Alert records or null.
|
5532
5526
|
*/
|
5533
5527
|
async getAll() {
|
5534
|
-
const client = createApolloClient();
|
5535
5528
|
const GET_ALL_ALERT = gql `
|
5536
5529
|
query getAllAlert {
|
5537
5530
|
alerts {
|
@@ -5560,7 +5553,6 @@ export const Alert = {
|
|
5560
5553
|
* @returns An array of found Alert records or null.
|
5561
5554
|
*/
|
5562
5555
|
async findMany(props) {
|
5563
|
-
const client = createApolloClient();
|
5564
5556
|
const FIND_MANY_ALERT = gql `
|
5565
5557
|
query findManyAlert($where: AlertWhereInput!) {
|
5566
5558
|
alerts(where: $where) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../src/AlpacaAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AA8cvG,eAAO,MAAM,aAAa;IAExB;;;;OAIG;kBAEiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../src/AlpacaAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AA8cvG,eAAO,MAAM,aAAa;IAExB;;;;OAIG;kBAEiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+8BpE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAwC/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAs3GlE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAy3G/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+BlE;;;;OAIG;eACc,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IA2CtE;;;OAGG;cACa,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAuBnD;;;;OAIG;oBACmB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CAiD9E,CAAC"}
|