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/esm/TakeProfit.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { client as importedClient,
|
1
|
+
import { client as importedClient, getApolloModules } from './client.mjs';
|
2
2
|
import { removeUndefinedProps } from './utils.mjs';
|
3
3
|
/**
|
4
4
|
* CRUD operations for the TakeProfit model.
|
@@ -21,7 +21,13 @@ export const TakeProfit = {
|
|
21
21
|
* @returns The created TakeProfit or null.
|
22
22
|
*/
|
23
23
|
async create(props, globalClient) {
|
24
|
-
const client =
|
24
|
+
const [modules, client] = await Promise.all([
|
25
|
+
getApolloModules(),
|
26
|
+
globalClient
|
27
|
+
? Promise.resolve(globalClient)
|
28
|
+
: importedClient
|
29
|
+
]);
|
30
|
+
const { gql, ApolloError } = modules;
|
25
31
|
const CREATE_ONE_TAKEPROFIT = gql `
|
26
32
|
mutation createOneTakeProfit($data: TakeProfitCreateInput!) {
|
27
33
|
createOneTakeProfit(data: $data) {
|
@@ -672,7 +678,13 @@ export const TakeProfit = {
|
|
672
678
|
* @returns The count of created records or null.
|
673
679
|
*/
|
674
680
|
async createMany(props, globalClient) {
|
675
|
-
const client =
|
681
|
+
const [modules, client] = await Promise.all([
|
682
|
+
getApolloModules(),
|
683
|
+
globalClient
|
684
|
+
? Promise.resolve(globalClient)
|
685
|
+
: importedClient
|
686
|
+
]);
|
687
|
+
const { gql, ApolloError } = modules;
|
676
688
|
const CREATE_MANY_TAKEPROFIT = gql `
|
677
689
|
mutation createManyTakeProfit($data: [TakeProfitCreateManyInput!]!) {
|
678
690
|
createManyTakeProfit(data: $data) {
|
@@ -710,7 +722,13 @@ export const TakeProfit = {
|
|
710
722
|
* @returns The updated TakeProfit or null.
|
711
723
|
*/
|
712
724
|
async update(props, globalClient) {
|
713
|
-
const client =
|
725
|
+
const [modules, client] = await Promise.all([
|
726
|
+
getApolloModules(),
|
727
|
+
globalClient
|
728
|
+
? Promise.resolve(globalClient)
|
729
|
+
: importedClient
|
730
|
+
]);
|
731
|
+
const { gql, ApolloError } = modules;
|
714
732
|
const UPDATE_ONE_TAKEPROFIT = gql `
|
715
733
|
mutation updateOneTakeProfit($data: TakeProfitUpdateInput!, $where: TakeProfitWhereUniqueInput!) {
|
716
734
|
updateOneTakeProfit(data: $data, where: $where) {
|
@@ -3357,7 +3375,13 @@ export const TakeProfit = {
|
|
3357
3375
|
* @returns The updated TakeProfit or null.
|
3358
3376
|
*/
|
3359
3377
|
async upsert(props, globalClient) {
|
3360
|
-
const client =
|
3378
|
+
const [modules, client] = await Promise.all([
|
3379
|
+
getApolloModules(),
|
3380
|
+
globalClient
|
3381
|
+
? Promise.resolve(globalClient)
|
3382
|
+
: importedClient
|
3383
|
+
]);
|
3384
|
+
const { gql, ApolloError } = modules;
|
3361
3385
|
const UPSERT_ONE_TAKEPROFIT = gql `
|
3362
3386
|
mutation upsertOneTakeProfit($where: TakeProfitWhereUniqueInput!, $create: TakeProfitCreateInput!, $update: TakeProfitUpdateInput!) {
|
3363
3387
|
upsertOneTakeProfit(where: $where, create: $create, update: $update) {
|
@@ -6612,7 +6636,13 @@ export const TakeProfit = {
|
|
6612
6636
|
* @returns The count of created records or null.
|
6613
6637
|
*/
|
6614
6638
|
async updateMany(props, globalClient) {
|
6615
|
-
const client =
|
6639
|
+
const [modules, client] = await Promise.all([
|
6640
|
+
getApolloModules(),
|
6641
|
+
globalClient
|
6642
|
+
? Promise.resolve(globalClient)
|
6643
|
+
: importedClient
|
6644
|
+
]);
|
6645
|
+
const { gql, ApolloError } = modules;
|
6616
6646
|
const UPDATE_MANY_TAKEPROFIT = gql `
|
6617
6647
|
mutation updateManyTakeProfit($data: [TakeProfitCreateManyInput!]!) {
|
6618
6648
|
updateManyTakeProfit(data: $data) {
|
@@ -9259,7 +9289,13 @@ export const TakeProfit = {
|
|
9259
9289
|
* @returns The deleted TakeProfit or null.
|
9260
9290
|
*/
|
9261
9291
|
async delete(props, globalClient) {
|
9262
|
-
const client =
|
9292
|
+
const [modules, client] = await Promise.all([
|
9293
|
+
getApolloModules(),
|
9294
|
+
globalClient
|
9295
|
+
? Promise.resolve(globalClient)
|
9296
|
+
: importedClient
|
9297
|
+
]);
|
9298
|
+
const { gql, ApolloError } = modules;
|
9263
9299
|
const DELETE_ONE_TAKEPROFIT = gql `
|
9264
9300
|
mutation deleteOneTakeProfit($where: TakeProfitWhereUniqueInput!) {
|
9265
9301
|
deleteOneTakeProfit(where: $where) {
|
@@ -9295,7 +9331,13 @@ export const TakeProfit = {
|
|
9295
9331
|
* @returns The retrieved TakeProfit or null.
|
9296
9332
|
*/
|
9297
9333
|
async get(props, globalClient) {
|
9298
|
-
const client =
|
9334
|
+
const [modules, client] = await Promise.all([
|
9335
|
+
getApolloModules(),
|
9336
|
+
globalClient
|
9337
|
+
? Promise.resolve(globalClient)
|
9338
|
+
: importedClient
|
9339
|
+
]);
|
9340
|
+
const { gql, ApolloError } = modules;
|
9299
9341
|
const GET_TAKEPROFIT = gql `
|
9300
9342
|
query getTakeProfit($where: TakeProfitWhereUniqueInput!) {
|
9301
9343
|
getTakeProfit(where: $where) {
|
@@ -9331,7 +9373,13 @@ export const TakeProfit = {
|
|
9331
9373
|
* @returns An array of TakeProfit records or null.
|
9332
9374
|
*/
|
9333
9375
|
async getAll(globalClient) {
|
9334
|
-
const client =
|
9376
|
+
const [modules, client] = await Promise.all([
|
9377
|
+
getApolloModules(),
|
9378
|
+
globalClient
|
9379
|
+
? Promise.resolve(globalClient)
|
9380
|
+
: importedClient
|
9381
|
+
]);
|
9382
|
+
const { gql, ApolloError } = modules;
|
9335
9383
|
const GET_ALL_TAKEPROFIT = gql `
|
9336
9384
|
query getAllTakeProfit {
|
9337
9385
|
takeProfits {
|
@@ -9361,7 +9409,13 @@ export const TakeProfit = {
|
|
9361
9409
|
* @returns An array of found TakeProfit records or null.
|
9362
9410
|
*/
|
9363
9411
|
async findMany(props, globalClient) {
|
9364
|
-
const client =
|
9412
|
+
const [modules, client] = await Promise.all([
|
9413
|
+
getApolloModules(),
|
9414
|
+
globalClient
|
9415
|
+
? Promise.resolve(globalClient)
|
9416
|
+
: importedClient
|
9417
|
+
]);
|
9418
|
+
const { gql, ApolloError } = modules;
|
9365
9419
|
const FIND_MANY_TAKEPROFIT = gql `
|
9366
9420
|
query findManyTakeProfit($where: TakeProfitWhereInput!) {
|
9367
9421
|
takeProfits(where: $where) {
|
package/esm/Trade.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Trade.d.ts","sourceRoot":"","sources":["../../src/Trade.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA+N7G,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;kBAEiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"Trade.d.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