adaptic-backend 1.0.292 → 1.0.293
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/package.json +1 -1
package/esm/Alert.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 Alert model.
|
@@ -22,7 +22,13 @@ export const Alert = {
|
|
22
22
|
* @returns The created Alert or null.
|
23
23
|
*/
|
24
24
|
async create(props, globalClient) {
|
25
|
-
const client =
|
25
|
+
const [modules, client] = await Promise.all([
|
26
|
+
getApolloModules(),
|
27
|
+
globalClient
|
28
|
+
? Promise.resolve(globalClient)
|
29
|
+
: importedClient
|
30
|
+
]);
|
31
|
+
const { gql, ApolloError } = modules;
|
26
32
|
const CREATE_ONE_ALERT = gql `
|
27
33
|
mutation createOneAlert($data: AlertCreateInput!) {
|
28
34
|
createOneAlert(data: $data) {
|
@@ -689,7 +695,13 @@ export const Alert = {
|
|
689
695
|
* @returns The count of created records or null.
|
690
696
|
*/
|
691
697
|
async createMany(props, globalClient) {
|
692
|
-
const client =
|
698
|
+
const [modules, client] = await Promise.all([
|
699
|
+
getApolloModules(),
|
700
|
+
globalClient
|
701
|
+
? Promise.resolve(globalClient)
|
702
|
+
: importedClient
|
703
|
+
]);
|
704
|
+
const { gql, ApolloError } = modules;
|
693
705
|
const CREATE_MANY_ALERT = gql `
|
694
706
|
mutation createManyAlert($data: [AlertCreateManyInput!]!) {
|
695
707
|
createManyAlert(data: $data) {
|
@@ -728,7 +740,13 @@ export const Alert = {
|
|
728
740
|
* @returns The updated Alert or null.
|
729
741
|
*/
|
730
742
|
async update(props, globalClient) {
|
731
|
-
const client =
|
743
|
+
const [modules, client] = await Promise.all([
|
744
|
+
getApolloModules(),
|
745
|
+
globalClient
|
746
|
+
? Promise.resolve(globalClient)
|
747
|
+
: importedClient
|
748
|
+
]);
|
749
|
+
const { gql, ApolloError } = modules;
|
732
750
|
const UPDATE_ONE_ALERT = gql `
|
733
751
|
mutation updateOneAlert($data: AlertUpdateInput!, $where: AlertWhereUniqueInput!) {
|
734
752
|
updateOneAlert(data: $data, where: $where) {
|
@@ -3544,7 +3562,13 @@ export const Alert = {
|
|
3544
3562
|
* @returns The updated Alert or null.
|
3545
3563
|
*/
|
3546
3564
|
async upsert(props, globalClient) {
|
3547
|
-
const client =
|
3565
|
+
const [modules, client] = await Promise.all([
|
3566
|
+
getApolloModules(),
|
3567
|
+
globalClient
|
3568
|
+
? Promise.resolve(globalClient)
|
3569
|
+
: importedClient
|
3570
|
+
]);
|
3571
|
+
const { gql, ApolloError } = modules;
|
3548
3572
|
const UPSERT_ONE_ALERT = gql `
|
3549
3573
|
mutation upsertOneAlert($where: AlertWhereUniqueInput!, $create: AlertCreateInput!, $update: AlertUpdateInput!) {
|
3550
3574
|
upsertOneAlert(where: $where, create: $create, update: $update) {
|
@@ -6984,7 +7008,13 @@ export const Alert = {
|
|
6984
7008
|
* @returns The count of created records or null.
|
6985
7009
|
*/
|
6986
7010
|
async updateMany(props, globalClient) {
|
6987
|
-
const client =
|
7011
|
+
const [modules, client] = await Promise.all([
|
7012
|
+
getApolloModules(),
|
7013
|
+
globalClient
|
7014
|
+
? Promise.resolve(globalClient)
|
7015
|
+
: importedClient
|
7016
|
+
]);
|
7017
|
+
const { gql, ApolloError } = modules;
|
6988
7018
|
const UPDATE_MANY_ALERT = gql `
|
6989
7019
|
mutation updateManyAlert($data: [AlertCreateManyInput!]!) {
|
6990
7020
|
updateManyAlert(data: $data) {
|
@@ -9800,7 +9830,13 @@ export const Alert = {
|
|
9800
9830
|
* @returns The deleted Alert or null.
|
9801
9831
|
*/
|
9802
9832
|
async delete(props, globalClient) {
|
9803
|
-
const client =
|
9833
|
+
const [modules, client] = await Promise.all([
|
9834
|
+
getApolloModules(),
|
9835
|
+
globalClient
|
9836
|
+
? Promise.resolve(globalClient)
|
9837
|
+
: importedClient
|
9838
|
+
]);
|
9839
|
+
const { gql, ApolloError } = modules;
|
9804
9840
|
const DELETE_ONE_ALERT = gql `
|
9805
9841
|
mutation deleteOneAlert($where: AlertWhereUniqueInput!) {
|
9806
9842
|
deleteOneAlert(where: $where) {
|
@@ -9836,7 +9872,13 @@ export const Alert = {
|
|
9836
9872
|
* @returns The retrieved Alert or null.
|
9837
9873
|
*/
|
9838
9874
|
async get(props, globalClient) {
|
9839
|
-
const client =
|
9875
|
+
const [modules, client] = await Promise.all([
|
9876
|
+
getApolloModules(),
|
9877
|
+
globalClient
|
9878
|
+
? Promise.resolve(globalClient)
|
9879
|
+
: importedClient
|
9880
|
+
]);
|
9881
|
+
const { gql, ApolloError } = modules;
|
9840
9882
|
const GET_ALERT = gql `
|
9841
9883
|
query getAlert($where: AlertWhereUniqueInput!) {
|
9842
9884
|
getAlert(where: $where) {
|
@@ -9874,7 +9916,13 @@ export const Alert = {
|
|
9874
9916
|
* @returns An array of Alert records or null.
|
9875
9917
|
*/
|
9876
9918
|
async getAll(globalClient) {
|
9877
|
-
const client =
|
9919
|
+
const [modules, client] = await Promise.all([
|
9920
|
+
getApolloModules(),
|
9921
|
+
globalClient
|
9922
|
+
? Promise.resolve(globalClient)
|
9923
|
+
: importedClient
|
9924
|
+
]);
|
9925
|
+
const { gql, ApolloError } = modules;
|
9878
9926
|
const GET_ALL_ALERT = gql `
|
9879
9927
|
query getAllAlert {
|
9880
9928
|
alerts {
|
@@ -9904,7 +9952,13 @@ export const Alert = {
|
|
9904
9952
|
* @returns An array of found Alert records or null.
|
9905
9953
|
*/
|
9906
9954
|
async findMany(props, globalClient) {
|
9907
|
-
const client =
|
9955
|
+
const [modules, client] = await Promise.all([
|
9956
|
+
getApolloModules(),
|
9957
|
+
globalClient
|
9958
|
+
? Promise.resolve(globalClient)
|
9959
|
+
: importedClient
|
9960
|
+
]);
|
9961
|
+
const { gql, ApolloError } = modules;
|
9908
9962
|
const FIND_MANY_ALERT = gql `
|
9909
9963
|
query findManyAlert($where: AlertWhereInput!) {
|
9910
9964
|
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;AACzG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAqZ7G,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;kBAEiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,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;AACzG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAqZ7G,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;kBAEiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAwwC5H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAuDvI;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAogK1H;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4tM1H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAugKvI;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAyC1H;;;;;OAKG;eACc,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IA2C9H;;;;OAIG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAiCzG;;;;;OAKG;oBACmB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CAiDtI,CAAC"}
|