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/Order.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 Order model.
|
@@ -148,7 +148,13 @@ export const Order = {
|
|
148
148
|
* @returns The created Order or null.
|
149
149
|
*/
|
150
150
|
async create(props, globalClient) {
|
151
|
-
const client =
|
151
|
+
const [modules, client] = await Promise.all([
|
152
|
+
getApolloModules(),
|
153
|
+
globalClient
|
154
|
+
? Promise.resolve(globalClient)
|
155
|
+
: importedClient
|
156
|
+
]);
|
157
|
+
const { gql, ApolloError } = modules;
|
152
158
|
const CREATE_ONE_ORDER = gql `
|
153
159
|
mutation createOneOrder($data: OrderCreateInput!) {
|
154
160
|
createOneOrder(data: $data) {
|
@@ -1520,7 +1526,13 @@ export const Order = {
|
|
1520
1526
|
* @returns The count of created records or null.
|
1521
1527
|
*/
|
1522
1528
|
async createMany(props, globalClient) {
|
1523
|
-
const client =
|
1529
|
+
const [modules, client] = await Promise.all([
|
1530
|
+
getApolloModules(),
|
1531
|
+
globalClient
|
1532
|
+
? Promise.resolve(globalClient)
|
1533
|
+
: importedClient
|
1534
|
+
]);
|
1535
|
+
const { gql, ApolloError } = modules;
|
1524
1536
|
const CREATE_MANY_ORDER = gql `
|
1525
1537
|
mutation createManyOrder($data: [OrderCreateManyInput!]!) {
|
1526
1538
|
createManyOrder(data: $data) {
|
@@ -1595,7 +1607,13 @@ export const Order = {
|
|
1595
1607
|
* @returns The updated Order or null.
|
1596
1608
|
*/
|
1597
1609
|
async update(props, globalClient) {
|
1598
|
-
const client =
|
1610
|
+
const [modules, client] = await Promise.all([
|
1611
|
+
getApolloModules(),
|
1612
|
+
globalClient
|
1613
|
+
? Promise.resolve(globalClient)
|
1614
|
+
: importedClient
|
1615
|
+
]);
|
1616
|
+
const { gql, ApolloError } = modules;
|
1599
1617
|
const UPDATE_ONE_ORDER = gql `
|
1600
1618
|
mutation updateOneOrder($data: OrderUpdateInput!, $where: OrderWhereUniqueInput!) {
|
1601
1619
|
updateOneOrder(data: $data, where: $where) {
|
@@ -7075,7 +7093,13 @@ export const Order = {
|
|
7075
7093
|
* @returns The updated Order or null.
|
7076
7094
|
*/
|
7077
7095
|
async upsert(props, globalClient) {
|
7078
|
-
const client =
|
7096
|
+
const [modules, client] = await Promise.all([
|
7097
|
+
getApolloModules(),
|
7098
|
+
globalClient
|
7099
|
+
? Promise.resolve(globalClient)
|
7100
|
+
: importedClient
|
7101
|
+
]);
|
7102
|
+
const { gql, ApolloError } = modules;
|
7079
7103
|
const UPSERT_ONE_ORDER = gql `
|
7080
7104
|
mutation upsertOneOrder($where: OrderWhereUniqueInput!, $create: OrderCreateInput!, $update: OrderUpdateInput!) {
|
7081
7105
|
upsertOneOrder(where: $where, create: $create, update: $update) {
|
@@ -13884,7 +13908,13 @@ export const Order = {
|
|
13884
13908
|
* @returns The count of created records or null.
|
13885
13909
|
*/
|
13886
13910
|
async updateMany(props, globalClient) {
|
13887
|
-
const client =
|
13911
|
+
const [modules, client] = await Promise.all([
|
13912
|
+
getApolloModules(),
|
13913
|
+
globalClient
|
13914
|
+
? Promise.resolve(globalClient)
|
13915
|
+
: importedClient
|
13916
|
+
]);
|
13917
|
+
const { gql, ApolloError } = modules;
|
13888
13918
|
const UPDATE_MANY_ORDER = gql `
|
13889
13919
|
mutation updateManyOrder($data: [OrderCreateManyInput!]!) {
|
13890
13920
|
updateManyOrder(data: $data) {
|
@@ -19364,7 +19394,13 @@ export const Order = {
|
|
19364
19394
|
* @returns The deleted Order or null.
|
19365
19395
|
*/
|
19366
19396
|
async delete(props, globalClient) {
|
19367
|
-
const client =
|
19397
|
+
const [modules, client] = await Promise.all([
|
19398
|
+
getApolloModules(),
|
19399
|
+
globalClient
|
19400
|
+
? Promise.resolve(globalClient)
|
19401
|
+
: importedClient
|
19402
|
+
]);
|
19403
|
+
const { gql, ApolloError } = modules;
|
19368
19404
|
const DELETE_ONE_ORDER = gql `
|
19369
19405
|
mutation deleteOneOrder($where: OrderWhereUniqueInput!) {
|
19370
19406
|
deleteOneOrder(where: $where) {
|
@@ -19400,7 +19436,13 @@ export const Order = {
|
|
19400
19436
|
* @returns The retrieved Order or null.
|
19401
19437
|
*/
|
19402
19438
|
async get(props, globalClient) {
|
19403
|
-
const client =
|
19439
|
+
const [modules, client] = await Promise.all([
|
19440
|
+
getApolloModules(),
|
19441
|
+
globalClient
|
19442
|
+
? Promise.resolve(globalClient)
|
19443
|
+
: importedClient
|
19444
|
+
]);
|
19445
|
+
const { gql, ApolloError } = modules;
|
19404
19446
|
const GET_ORDER = gql `
|
19405
19447
|
query getOrder($where: OrderWhereUniqueInput!) {
|
19406
19448
|
getOrder(where: $where) {
|
@@ -19442,7 +19484,13 @@ export const Order = {
|
|
19442
19484
|
* @returns An array of Order records or null.
|
19443
19485
|
*/
|
19444
19486
|
async getAll(globalClient) {
|
19445
|
-
const client =
|
19487
|
+
const [modules, client] = await Promise.all([
|
19488
|
+
getApolloModules(),
|
19489
|
+
globalClient
|
19490
|
+
? Promise.resolve(globalClient)
|
19491
|
+
: importedClient
|
19492
|
+
]);
|
19493
|
+
const { gql, ApolloError } = modules;
|
19446
19494
|
const GET_ALL_ORDER = gql `
|
19447
19495
|
query getAllOrder {
|
19448
19496
|
orders {
|
@@ -19472,7 +19520,13 @@ export const Order = {
|
|
19472
19520
|
* @returns An array of found Order records or null.
|
19473
19521
|
*/
|
19474
19522
|
async findMany(props, globalClient) {
|
19475
|
-
const client =
|
19523
|
+
const [modules, client] = await Promise.all([
|
19524
|
+
getApolloModules(),
|
19525
|
+
globalClient
|
19526
|
+
? Promise.resolve(globalClient)
|
19527
|
+
: importedClient
|
19528
|
+
]);
|
19529
|
+
const { gql, ApolloError } = modules;
|
19476
19530
|
const FIND_MANY_ORDER = gql `
|
19477
19531
|
query findManyOrder($where: OrderWhereInput!) {
|
19478
19532
|
orders(where: $where) {
|
package/esm/Position.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../src/Position.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA4F7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../src/Position.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA4F7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA8mClH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAyDlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAsgJhH;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAokLhH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAygJlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAyChH;;;;;OAKG;eACc,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IA8CpH;;;;OAIG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IAiCpG;;;;;OAKG;oBACmB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;CAoD5H,CAAC"}
|