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.
Files changed (107) hide show
  1. package/Account.cjs +75 -21
  2. package/Action.cjs +75 -21
  3. package/Alert.cjs +75 -21
  4. package/AlpacaAccount.cjs +75 -21
  5. package/Asset.cjs +75 -21
  6. package/Authenticator.cjs +75 -21
  7. package/Contract.cjs +75 -21
  8. package/Customer.cjs +75 -21
  9. package/Deliverable.cjs +75 -21
  10. package/EconomicEvent.cjs +75 -21
  11. package/MarketSentiment.cjs +75 -21
  12. package/NewsArticle.cjs +75 -21
  13. package/NewsArticleAssetSentiment.cjs +75 -21
  14. package/Order.cjs +75 -21
  15. package/Position.cjs +75 -21
  16. package/ScheduledOptionOrder.cjs +75 -21
  17. package/Session.cjs +75 -21
  18. package/StopLoss.cjs +75 -21
  19. package/TakeProfit.cjs +75 -21
  20. package/Trade.cjs +75 -21
  21. package/User.cjs +75 -21
  22. package/VerificationToken.cjs +75 -21
  23. package/apollo-client.client.cjs +17 -0
  24. package/apollo-client.client.d.ts +7 -0
  25. package/apollo-client.server.cjs +21 -0
  26. package/apollo-client.server.d.ts +7 -0
  27. package/client.cjs +80 -59
  28. package/client.d.ts +26 -17
  29. package/esm/Account.d.ts.map +1 -1
  30. package/esm/Account.js.map +1 -1
  31. package/esm/Account.mjs +64 -10
  32. package/esm/Action.d.ts.map +1 -1
  33. package/esm/Action.js.map +1 -1
  34. package/esm/Action.mjs +64 -10
  35. package/esm/Alert.d.ts.map +1 -1
  36. package/esm/Alert.js.map +1 -1
  37. package/esm/Alert.mjs +64 -10
  38. package/esm/AlpacaAccount.d.ts.map +1 -1
  39. package/esm/AlpacaAccount.js.map +1 -1
  40. package/esm/AlpacaAccount.mjs +64 -10
  41. package/esm/Asset.d.ts.map +1 -1
  42. package/esm/Asset.js.map +1 -1
  43. package/esm/Asset.mjs +64 -10
  44. package/esm/Authenticator.d.ts.map +1 -1
  45. package/esm/Authenticator.js.map +1 -1
  46. package/esm/Authenticator.mjs +64 -10
  47. package/esm/Contract.d.ts.map +1 -1
  48. package/esm/Contract.js.map +1 -1
  49. package/esm/Contract.mjs +64 -10
  50. package/esm/Customer.d.ts.map +1 -1
  51. package/esm/Customer.js.map +1 -1
  52. package/esm/Customer.mjs +64 -10
  53. package/esm/Deliverable.d.ts.map +1 -1
  54. package/esm/Deliverable.js.map +1 -1
  55. package/esm/Deliverable.mjs +64 -10
  56. package/esm/EconomicEvent.d.ts.map +1 -1
  57. package/esm/EconomicEvent.js.map +1 -1
  58. package/esm/EconomicEvent.mjs +64 -10
  59. package/esm/MarketSentiment.d.ts.map +1 -1
  60. package/esm/MarketSentiment.js.map +1 -1
  61. package/esm/MarketSentiment.mjs +64 -10
  62. package/esm/NewsArticle.d.ts.map +1 -1
  63. package/esm/NewsArticle.js.map +1 -1
  64. package/esm/NewsArticle.mjs +64 -10
  65. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  66. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  67. package/esm/NewsArticleAssetSentiment.mjs +64 -10
  68. package/esm/Order.d.ts.map +1 -1
  69. package/esm/Order.js.map +1 -1
  70. package/esm/Order.mjs +64 -10
  71. package/esm/Position.d.ts.map +1 -1
  72. package/esm/Position.js.map +1 -1
  73. package/esm/Position.mjs +64 -10
  74. package/esm/ScheduledOptionOrder.d.ts.map +1 -1
  75. package/esm/ScheduledOptionOrder.js.map +1 -1
  76. package/esm/ScheduledOptionOrder.mjs +64 -10
  77. package/esm/Session.d.ts.map +1 -1
  78. package/esm/Session.js.map +1 -1
  79. package/esm/Session.mjs +64 -10
  80. package/esm/StopLoss.d.ts.map +1 -1
  81. package/esm/StopLoss.js.map +1 -1
  82. package/esm/StopLoss.mjs +64 -10
  83. package/esm/TakeProfit.d.ts.map +1 -1
  84. package/esm/TakeProfit.js.map +1 -1
  85. package/esm/TakeProfit.mjs +64 -10
  86. package/esm/Trade.d.ts.map +1 -1
  87. package/esm/Trade.js.map +1 -1
  88. package/esm/Trade.mjs +64 -10
  89. package/esm/User.d.ts.map +1 -1
  90. package/esm/User.js.map +1 -1
  91. package/esm/User.mjs +64 -10
  92. package/esm/VerificationToken.d.ts.map +1 -1
  93. package/esm/VerificationToken.js.map +1 -1
  94. package/esm/VerificationToken.mjs +64 -10
  95. package/esm/apollo-client.client.d.ts +7 -0
  96. package/esm/apollo-client.client.d.ts.map +1 -0
  97. package/esm/apollo-client.client.js.map +1 -0
  98. package/esm/apollo-client.client.mjs +8 -0
  99. package/esm/apollo-client.server.d.ts +7 -0
  100. package/esm/apollo-client.server.d.ts.map +1 -0
  101. package/esm/apollo-client.server.js.map +1 -0
  102. package/esm/apollo-client.server.mjs +12 -0
  103. package/esm/client.d.ts +26 -17
  104. package/esm/client.d.ts.map +1 -1
  105. package/esm/client.js.map +1 -1
  106. package/esm/client.mjs +45 -60
  107. package/package.json +1 -1
package/esm/Order.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { client as importedClient, ApolloError, gql } from './client.mjs';
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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) {
@@ -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;IAumClH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAiDlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA8/IhH;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA4jLhH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAigJlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAiChH;;;;;OAKG;eACc,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAsCpH;;;;OAIG;0BACyB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,EAAE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