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
package/esm/Alert.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 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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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 = globalClient || importedClient;
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;IAiwC5H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA+CvI;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4/J1H;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAotM1H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;Q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