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/Trade.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 Trade model.
|
@@ -226,7 +226,13 @@ export const Trade = {
|
|
226
226
|
* @returns The created Trade or null.
|
227
227
|
*/
|
228
228
|
async create(props, globalClient) {
|
229
|
-
const client =
|
229
|
+
const [modules, client] = await Promise.all([
|
230
|
+
getApolloModules(),
|
231
|
+
globalClient
|
232
|
+
? Promise.resolve(globalClient)
|
233
|
+
: importedClient
|
234
|
+
]);
|
235
|
+
const { gql, ApolloError } = modules;
|
230
236
|
const CREATE_ONE_TRADE = gql `
|
231
237
|
mutation createOneTrade($data: TradeCreateInput!) {
|
232
238
|
createOneTrade(data: $data) {
|
@@ -1571,7 +1577,13 @@ export const Trade = {
|
|
1571
1577
|
* @returns The count of created records or null.
|
1572
1578
|
*/
|
1573
1579
|
async createMany(props, globalClient) {
|
1574
|
-
const client =
|
1580
|
+
const [modules, client] = await Promise.all([
|
1581
|
+
getApolloModules(),
|
1582
|
+
globalClient
|
1583
|
+
? Promise.resolve(globalClient)
|
1584
|
+
: importedClient
|
1585
|
+
]);
|
1586
|
+
const { gql, ApolloError } = modules;
|
1575
1587
|
const CREATE_MANY_TRADE = gql `
|
1576
1588
|
mutation createManyTrade($data: [TradeCreateManyInput!]!) {
|
1577
1589
|
createManyTrade(data: $data) {
|
@@ -1619,7 +1631,13 @@ export const Trade = {
|
|
1619
1631
|
* @returns The updated Trade or null.
|
1620
1632
|
*/
|
1621
1633
|
async update(props, globalClient) {
|
1622
|
-
const client =
|
1634
|
+
const [modules, client] = await Promise.all([
|
1635
|
+
getApolloModules(),
|
1636
|
+
globalClient
|
1637
|
+
? Promise.resolve(globalClient)
|
1638
|
+
: importedClient
|
1639
|
+
]);
|
1640
|
+
const { gql, ApolloError } = modules;
|
1623
1641
|
const UPDATE_ONE_TRADE = gql `
|
1624
1642
|
mutation updateOneTrade($data: TradeUpdateInput!, $where: TradeWhereUniqueInput!) {
|
1625
1643
|
updateOneTrade(data: $data, where: $where) {
|
@@ -7201,7 +7219,13 @@ export const Trade = {
|
|
7201
7219
|
* @returns The updated Trade or null.
|
7202
7220
|
*/
|
7203
7221
|
async upsert(props, globalClient) {
|
7204
|
-
const client =
|
7222
|
+
const [modules, client] = await Promise.all([
|
7223
|
+
getApolloModules(),
|
7224
|
+
globalClient
|
7225
|
+
? Promise.resolve(globalClient)
|
7226
|
+
: importedClient
|
7227
|
+
]);
|
7228
|
+
const { gql, ApolloError } = modules;
|
7205
7229
|
const UPSERT_ONE_TRADE = gql `
|
7206
7230
|
mutation upsertOneTrade($where: TradeWhereUniqueInput!, $create: TradeCreateInput!, $update: TradeUpdateInput!) {
|
7207
7231
|
upsertOneTrade(where: $where, create: $create, update: $update) {
|
@@ -14085,7 +14109,13 @@ export const Trade = {
|
|
14085
14109
|
* @returns The count of created records or null.
|
14086
14110
|
*/
|
14087
14111
|
async updateMany(props, globalClient) {
|
14088
|
-
const client =
|
14112
|
+
const [modules, client] = await Promise.all([
|
14113
|
+
getApolloModules(),
|
14114
|
+
globalClient
|
14115
|
+
? Promise.resolve(globalClient)
|
14116
|
+
: importedClient
|
14117
|
+
]);
|
14118
|
+
const { gql, ApolloError } = modules;
|
14089
14119
|
const UPDATE_MANY_TRADE = gql `
|
14090
14120
|
mutation updateManyTrade($data: [TradeCreateManyInput!]!) {
|
14091
14121
|
updateManyTrade(data: $data) {
|
@@ -19667,7 +19697,13 @@ export const Trade = {
|
|
19667
19697
|
* @returns The deleted Trade or null.
|
19668
19698
|
*/
|
19669
19699
|
async delete(props, globalClient) {
|
19670
|
-
const client =
|
19700
|
+
const [modules, client] = await Promise.all([
|
19701
|
+
getApolloModules(),
|
19702
|
+
globalClient
|
19703
|
+
? Promise.resolve(globalClient)
|
19704
|
+
: importedClient
|
19705
|
+
]);
|
19706
|
+
const { gql, ApolloError } = modules;
|
19671
19707
|
const DELETE_ONE_TRADE = gql `
|
19672
19708
|
mutation deleteOneTrade($where: TradeWhereUniqueInput!) {
|
19673
19709
|
deleteOneTrade(where: $where) {
|
@@ -19703,7 +19739,13 @@ export const Trade = {
|
|
19703
19739
|
* @returns The retrieved Trade or null.
|
19704
19740
|
*/
|
19705
19741
|
async get(props, globalClient) {
|
19706
|
-
const client =
|
19742
|
+
const [modules, client] = await Promise.all([
|
19743
|
+
getApolloModules(),
|
19744
|
+
globalClient
|
19745
|
+
? Promise.resolve(globalClient)
|
19746
|
+
: importedClient
|
19747
|
+
]);
|
19748
|
+
const { gql, ApolloError } = modules;
|
19707
19749
|
const GET_TRADE = gql `
|
19708
19750
|
query getTrade($where: TradeWhereUniqueInput!) {
|
19709
19751
|
getTrade(where: $where) {
|
@@ -19741,7 +19783,13 @@ export const Trade = {
|
|
19741
19783
|
* @returns An array of Trade records or null.
|
19742
19784
|
*/
|
19743
19785
|
async getAll(globalClient) {
|
19744
|
-
const client =
|
19786
|
+
const [modules, client] = await Promise.all([
|
19787
|
+
getApolloModules(),
|
19788
|
+
globalClient
|
19789
|
+
? Promise.resolve(globalClient)
|
19790
|
+
: importedClient
|
19791
|
+
]);
|
19792
|
+
const { gql, ApolloError } = modules;
|
19745
19793
|
const GET_ALL_TRADE = gql `
|
19746
19794
|
query getAllTrade {
|
19747
19795
|
trades {
|
@@ -19771,7 +19819,13 @@ export const Trade = {
|
|
19771
19819
|
* @returns An array of found Trade records or null.
|
19772
19820
|
*/
|
19773
19821
|
async findMany(props, globalClient) {
|
19774
|
-
const client =
|
19822
|
+
const [modules, client] = await Promise.all([
|
19823
|
+
getApolloModules(),
|
19824
|
+
globalClient
|
19825
|
+
? Promise.resolve(globalClient)
|
19826
|
+
: importedClient
|
19827
|
+
]);
|
19828
|
+
const { gql, ApolloError } = modules;
|
19775
19829
|
const FIND_MANY_TRADE = gql `
|
19776
19830
|
query findManyTrade($where: TradeWhereInput!) {
|
19777
19831
|
trades(where: $where) {
|
package/esm/User.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/User.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA+Y7G,eAAO,MAAM,IAAI;IAEf;;;;;OAKG;kBAEiB,QAAQ,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../src/User.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;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