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/Authenticator.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 Authenticator model.
|
@@ -193,7 +193,6 @@ export const Authenticator = {
|
|
193
193
|
* @returns The created Authenticator or null.
|
194
194
|
*/
|
195
195
|
async create(props) {
|
196
|
-
const client = createApolloClient();
|
197
196
|
const CREATE_ONE_AUTHENTICATOR = gql `
|
198
197
|
mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
|
199
198
|
createOneAuthenticator(data: $data) {
|
@@ -500,7 +499,6 @@ export const Authenticator = {
|
|
500
499
|
* @returns The count of created records or null.
|
501
500
|
*/
|
502
501
|
async createMany(props) {
|
503
|
-
const client = createApolloClient();
|
504
502
|
const CREATE_MANY_AUTHENTICATOR = gql `
|
505
503
|
mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
506
504
|
createManyAuthenticator(data: $data) {
|
@@ -538,7 +536,6 @@ export const Authenticator = {
|
|
538
536
|
* @returns The updated Authenticator or null.
|
539
537
|
*/
|
540
538
|
async update(props) {
|
541
|
-
const client = createApolloClient();
|
542
539
|
const UPDATE_ONE_AUTHENTICATOR = gql `
|
543
540
|
mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
|
544
541
|
updateOneAuthenticator(data: $data, where: $where) {
|
@@ -1526,7 +1523,6 @@ export const Authenticator = {
|
|
1526
1523
|
* @returns The count of created records or null.
|
1527
1524
|
*/
|
1528
1525
|
async updateMany(props) {
|
1529
|
-
const client = createApolloClient();
|
1530
1526
|
const UPDATE_MANY_AUTHENTICATOR = gql `
|
1531
1527
|
mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
1532
1528
|
updateManyAuthenticator(data: $data) {
|
@@ -2514,7 +2510,6 @@ export const Authenticator = {
|
|
2514
2510
|
* @returns The deleted Authenticator or null.
|
2515
2511
|
*/
|
2516
2512
|
async delete(props) {
|
2517
|
-
const client = createApolloClient();
|
2518
2513
|
const DELETE_ONE_AUTHENTICATOR = gql `
|
2519
2514
|
mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
2520
2515
|
deleteOneAuthenticator(where: $where) {
|
@@ -2549,7 +2544,6 @@ export const Authenticator = {
|
|
2549
2544
|
* @returns The retrieved Authenticator or null.
|
2550
2545
|
*/
|
2551
2546
|
async get(props) {
|
2552
|
-
const client = createApolloClient();
|
2553
2547
|
const GET_AUTHENTICATOR = gql `
|
2554
2548
|
query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
2555
2549
|
getAuthenticator(where: $where) {
|
@@ -2591,7 +2585,6 @@ export const Authenticator = {
|
|
2591
2585
|
* @returns An array of Authenticator records or null.
|
2592
2586
|
*/
|
2593
2587
|
async getAll() {
|
2594
|
-
const client = createApolloClient();
|
2595
2588
|
const GET_ALL_AUTHENTICATOR = gql `
|
2596
2589
|
query getAllAuthenticator {
|
2597
2590
|
authenticators {
|
@@ -2620,7 +2613,6 @@ export const Authenticator = {
|
|
2620
2613
|
* @returns An array of found Authenticator records or null.
|
2621
2614
|
*/
|
2622
2615
|
async findMany(props) {
|
2623
|
-
const client = createApolloClient();
|
2624
2616
|
const FIND_MANY_AUTHENTICATOR = gql `
|
2625
2617
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
2626
2618
|
authenticators(where: $where) {
|
package/server/Customer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AA+LxF,eAAO,MAAM,QAAQ;IAEnB;;;;OAIG;kBAEiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AA+LxF,eAAO,MAAM,QAAQ;IAEnB;;;;OAIG;kBAEiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAwS1D;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAqC1E;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA67BxD;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAg8B1E;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA+BxD;;;;OAIG;eACc,YAAY,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IA6C5D;;;OAGG;cACa,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IAuB9C;;;;OAIG;oBACmB,YAAY,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;CAuDpE,CAAC"}
|