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/Action.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 Action model.
|
@@ -174,7 +174,6 @@ export const Action = {
|
|
174
174
|
* @returns The created Action or null.
|
175
175
|
*/
|
176
176
|
async create(props) {
|
177
|
-
const client = createApolloClient();
|
178
177
|
const CREATE_ONE_ACTION = gql `
|
179
178
|
mutation createOneAction($data: ActionCreateInput!) {
|
180
179
|
createOneAction(data: $data) {
|
@@ -963,7 +962,6 @@ export const Action = {
|
|
963
962
|
* @returns The count of created records or null.
|
964
963
|
*/
|
965
964
|
async createMany(props) {
|
966
|
-
const client = createApolloClient();
|
967
965
|
const CREATE_MANY_ACTION = gql `
|
968
966
|
mutation createManyAction($data: [ActionCreateManyInput!]!) {
|
969
967
|
createManyAction(data: $data) {
|
@@ -1003,7 +1001,6 @@ export const Action = {
|
|
1003
1001
|
* @returns The updated Action or null.
|
1004
1002
|
*/
|
1005
1003
|
async update(props) {
|
1006
|
-
const client = createApolloClient();
|
1007
1004
|
const UPDATE_ONE_ACTION = gql `
|
1008
1005
|
mutation updateOneAction($data: ActionUpdateInput!, $where: ActionWhereUniqueInput!) {
|
1009
1006
|
updateOneAction(data: $data, where: $where) {
|
@@ -3958,7 +3955,6 @@ export const Action = {
|
|
3958
3955
|
* @returns The count of created records or null.
|
3959
3956
|
*/
|
3960
3957
|
async updateMany(props) {
|
3961
|
-
const client = createApolloClient();
|
3962
3958
|
const UPDATE_MANY_ACTION = gql `
|
3963
3959
|
mutation updateManyAction($data: [ActionCreateManyInput!]!) {
|
3964
3960
|
updateManyAction(data: $data) {
|
@@ -6913,7 +6909,6 @@ export const Action = {
|
|
6913
6909
|
* @returns The deleted Action or null.
|
6914
6910
|
*/
|
6915
6911
|
async delete(props) {
|
6916
|
-
const client = createApolloClient();
|
6917
6912
|
const DELETE_ONE_ACTION = gql `
|
6918
6913
|
mutation deleteOneAction($where: ActionWhereUniqueInput!) {
|
6919
6914
|
deleteOneAction(where: $where) {
|
@@ -6948,7 +6943,6 @@ export const Action = {
|
|
6948
6943
|
* @returns The retrieved Action or null.
|
6949
6944
|
*/
|
6950
6945
|
async get(props) {
|
6951
|
-
const client = createApolloClient();
|
6952
6946
|
const GET_ACTION = gql `
|
6953
6947
|
query getAction($where: ActionWhereUniqueInput!) {
|
6954
6948
|
getAction(where: $where) {
|
@@ -6989,7 +6983,6 @@ export const Action = {
|
|
6989
6983
|
* @returns An array of Action records or null.
|
6990
6984
|
*/
|
6991
6985
|
async getAll() {
|
6992
|
-
const client = createApolloClient();
|
6993
6986
|
const GET_ALL_ACTION = gql `
|
6994
6987
|
query getAllAction {
|
6995
6988
|
actions {
|
@@ -7018,7 +7011,6 @@ export const Action = {
|
|
7018
7011
|
* @returns An array of found Action records or null.
|
7019
7012
|
*/
|
7020
7013
|
async findMany(props) {
|
7021
|
-
const client = createApolloClient();
|
7022
7014
|
const FIND_MANY_ACTION = gql `
|
7023
7015
|
query findManyAction($where: ActionWhereInput!) {
|
7024
7016
|
actions(where: $where) {
|
package/server/Alert.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAqB/E,eAAO,MAAM,KAAK;IAEhB;;;;OAIG;kBAEiB,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAqB/E,eAAO,MAAM,KAAK;IAEhB;;;;OAIG;kBAEiB,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAmlBpD;;;;OAIG;sBACqB,SAAS,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAkCvE;;;;OAIG;kBACiB,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IA01ElD;;;;OAIG;sBACqB,SAAS,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA61EvE;;;;OAIG;kBACiB,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IA+BlD;;;;OAIG;eACc,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAqCtD;;;OAGG;cACa,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;IAuB3C;;;;OAIG;oBACmB,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;CA2C9D,CAAC"}
|