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.
Files changed (116) 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/generated/typegraphql-prisma/enhance.cjs +7 -7
  108. package/generated/typegraphql-prisma/index.cjs +10 -10
  109. package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +22 -22
  110. package/generated/typegraphql-prisma/resolvers/crud/index.cjs +3 -3
  111. package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
  112. package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +11 -11
  113. package/generated/typegraphql-prisma/resolvers/relations/index.cjs +2 -2
  114. package/index.cjs +1 -1
  115. package/package.json +1 -1
  116. package/server.cjs +1 -1
@@ -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 NewsArticleAssetSentiment model.
@@ -100,7 +100,13 @@ export const NewsArticleAssetSentiment = {
100
100
  * @returns The created NewsArticleAssetSentiment or null.
101
101
  */
102
102
  async create(props, globalClient) {
103
- const client = globalClient || importedClient;
103
+ const [modules, client] = await Promise.all([
104
+ getApolloModules(),
105
+ globalClient
106
+ ? Promise.resolve(globalClient)
107
+ : importedClient
108
+ ]);
109
+ const { gql, ApolloError } = modules;
104
110
  const CREATE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
105
111
  mutation createOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentCreateInput!) {
106
112
  createOneNewsArticleAssetSentiment(data: $data) {
@@ -720,7 +726,13 @@ export const NewsArticleAssetSentiment = {
720
726
  * @returns The count of created records or null.
721
727
  */
722
728
  async createMany(props, globalClient) {
723
- const client = globalClient || importedClient;
729
+ const [modules, client] = await Promise.all([
730
+ getApolloModules(),
731
+ globalClient
732
+ ? Promise.resolve(globalClient)
733
+ : importedClient
734
+ ]);
735
+ const { gql, ApolloError } = modules;
724
736
  const CREATE_MANY_NEWSARTICLEASSETSENTIMENT = gql `
725
737
  mutation createManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
726
738
  createManyNewsArticleAssetSentiment(data: $data) {
@@ -761,7 +773,13 @@ export const NewsArticleAssetSentiment = {
761
773
  * @returns The updated NewsArticleAssetSentiment or null.
762
774
  */
763
775
  async update(props, globalClient) {
764
- const client = globalClient || importedClient;
776
+ const [modules, client] = await Promise.all([
777
+ getApolloModules(),
778
+ globalClient
779
+ ? Promise.resolve(globalClient)
780
+ : importedClient
781
+ ]);
782
+ const { gql, ApolloError } = modules;
765
783
  const UPDATE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
766
784
  mutation updateOneNewsArticleAssetSentiment($data: NewsArticleAssetSentimentUpdateInput!, $where: NewsArticleAssetSentimentWhereUniqueInput!) {
767
785
  updateOneNewsArticleAssetSentiment(data: $data, where: $where) {
@@ -3161,7 +3179,13 @@ export const NewsArticleAssetSentiment = {
3161
3179
  * @returns The updated NewsArticleAssetSentiment or null.
3162
3180
  */
3163
3181
  async upsert(props, globalClient) {
3164
- const client = globalClient || importedClient;
3182
+ const [modules, client] = await Promise.all([
3183
+ getApolloModules(),
3184
+ globalClient
3185
+ ? Promise.resolve(globalClient)
3186
+ : importedClient
3187
+ ]);
3188
+ const { gql, ApolloError } = modules;
3165
3189
  const UPSERT_ONE_NEWSARTICLEASSETSENTIMENT = gql `
3166
3190
  mutation upsertOneNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!, $create: NewsArticleAssetSentimentCreateInput!, $update: NewsArticleAssetSentimentUpdateInput!) {
3167
3191
  upsertOneNewsArticleAssetSentiment(where: $where, create: $create, update: $update) {
@@ -6144,7 +6168,13 @@ export const NewsArticleAssetSentiment = {
6144
6168
  * @returns The count of created records or null.
6145
6169
  */
6146
6170
  async updateMany(props, globalClient) {
6147
- const client = globalClient || importedClient;
6171
+ const [modules, client] = await Promise.all([
6172
+ getApolloModules(),
6173
+ globalClient
6174
+ ? Promise.resolve(globalClient)
6175
+ : importedClient
6176
+ ]);
6177
+ const { gql, ApolloError } = modules;
6148
6178
  const UPDATE_MANY_NEWSARTICLEASSETSENTIMENT = gql `
6149
6179
  mutation updateManyNewsArticleAssetSentiment($data: [NewsArticleAssetSentimentCreateManyInput!]!) {
6150
6180
  updateManyNewsArticleAssetSentiment(data: $data) {
@@ -8544,7 +8574,13 @@ export const NewsArticleAssetSentiment = {
8544
8574
  * @returns The deleted NewsArticleAssetSentiment or null.
8545
8575
  */
8546
8576
  async delete(props, globalClient) {
8547
- const client = globalClient || importedClient;
8577
+ const [modules, client] = await Promise.all([
8578
+ getApolloModules(),
8579
+ globalClient
8580
+ ? Promise.resolve(globalClient)
8581
+ : importedClient
8582
+ ]);
8583
+ const { gql, ApolloError } = modules;
8548
8584
  const DELETE_ONE_NEWSARTICLEASSETSENTIMENT = gql `
8549
8585
  mutation deleteOneNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
8550
8586
  deleteOneNewsArticleAssetSentiment(where: $where) {
@@ -8580,7 +8616,13 @@ export const NewsArticleAssetSentiment = {
8580
8616
  * @returns The retrieved NewsArticleAssetSentiment or null.
8581
8617
  */
8582
8618
  async get(props, globalClient) {
8583
- const client = globalClient || importedClient;
8619
+ const [modules, client] = await Promise.all([
8620
+ getApolloModules(),
8621
+ globalClient
8622
+ ? Promise.resolve(globalClient)
8623
+ : importedClient
8624
+ ]);
8625
+ const { gql, ApolloError } = modules;
8584
8626
  const GET_NEWSARTICLEASSETSENTIMENT = gql `
8585
8627
  query getNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereUniqueInput!) {
8586
8628
  getNewsArticleAssetSentiment(where: $where) {
@@ -8619,7 +8661,13 @@ export const NewsArticleAssetSentiment = {
8619
8661
  * @returns An array of NewsArticleAssetSentiment records or null.
8620
8662
  */
8621
8663
  async getAll(globalClient) {
8622
- const client = globalClient || importedClient;
8664
+ const [modules, client] = await Promise.all([
8665
+ getApolloModules(),
8666
+ globalClient
8667
+ ? Promise.resolve(globalClient)
8668
+ : importedClient
8669
+ ]);
8670
+ const { gql, ApolloError } = modules;
8623
8671
  const GET_ALL_NEWSARTICLEASSETSENTIMENT = gql `
8624
8672
  query getAllNewsArticleAssetSentiment {
8625
8673
  newsArticleAssetSentiments {
@@ -8649,7 +8697,13 @@ export const NewsArticleAssetSentiment = {
8649
8697
  * @returns An array of found NewsArticleAssetSentiment records or null.
8650
8698
  */
8651
8699
  async findMany(props, globalClient) {
8652
- const client = globalClient || importedClient;
8700
+ const [modules, client] = await Promise.all([
8701
+ getApolloModules(),
8702
+ globalClient
8703
+ ? Promise.resolve(globalClient)
8704
+ : importedClient
8705
+ ]);
8706
+ const { gql, ApolloError } = modules;
8653
8707
  const FIND_MANY_NEWSARTICLEASSETSENTIMENT = gql `
8654
8708
  query findManyNewsArticleAssetSentiment($where: NewsArticleAssetSentimentWhereInput!) {
8655
8709
  newsArticleAssetSentiments(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../src/Order.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAA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