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/Asset.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 Asset model.
@@ -73,7 +73,13 @@ export const Asset = {
73
73
  * @returns The created Asset or null.
74
74
  */
75
75
  async create(props, globalClient) {
76
- const client = globalClient || importedClient;
76
+ const [modules, client] = await Promise.all([
77
+ getApolloModules(),
78
+ globalClient
79
+ ? Promise.resolve(globalClient)
80
+ : importedClient
81
+ ]);
82
+ const { gql, ApolloError } = modules;
77
83
  const CREATE_ONE_ASSET = gql `
78
84
  mutation createOneAsset($data: AssetCreateInput!) {
79
85
  createOneAsset(data: $data) {
@@ -1431,7 +1437,13 @@ export const Asset = {
1431
1437
  * @returns The count of created records or null.
1432
1438
  */
1433
1439
  async createMany(props, globalClient) {
1434
- const client = globalClient || importedClient;
1440
+ const [modules, client] = await Promise.all([
1441
+ getApolloModules(),
1442
+ globalClient
1443
+ ? Promise.resolve(globalClient)
1444
+ : importedClient
1445
+ ]);
1446
+ const { gql, ApolloError } = modules;
1435
1447
  const CREATE_MANY_ASSET = gql `
1436
1448
  mutation createManyAsset($data: [AssetCreateManyInput!]!) {
1437
1449
  createManyAsset(data: $data) {
@@ -1521,7 +1533,13 @@ export const Asset = {
1521
1533
  * @returns The updated Asset or null.
1522
1534
  */
1523
1535
  async update(props, globalClient) {
1524
- const client = globalClient || importedClient;
1536
+ const [modules, client] = await Promise.all([
1537
+ getApolloModules(),
1538
+ globalClient
1539
+ ? Promise.resolve(globalClient)
1540
+ : importedClient
1541
+ ]);
1542
+ const { gql, ApolloError } = modules;
1525
1543
  const UPDATE_ONE_ASSET = gql `
1526
1544
  mutation updateOneAsset($data: AssetUpdateInput!, $where: AssetWhereUniqueInput!) {
1527
1545
  updateOneAsset(data: $data, where: $where) {
@@ -6900,7 +6918,13 @@ export const Asset = {
6900
6918
  * @returns The updated Asset or null.
6901
6919
  */
6902
6920
  async upsert(props, globalClient) {
6903
- const client = globalClient || importedClient;
6921
+ const [modules, client] = await Promise.all([
6922
+ getApolloModules(),
6923
+ globalClient
6924
+ ? Promise.resolve(globalClient)
6925
+ : importedClient
6926
+ ]);
6927
+ const { gql, ApolloError } = modules;
6904
6928
  const UPSERT_ONE_ASSET = gql `
6905
6929
  mutation upsertOneAsset($where: AssetWhereUniqueInput!, $create: AssetCreateInput!, $update: AssetUpdateInput!) {
6906
6930
  upsertOneAsset(where: $where, create: $create, update: $update) {
@@ -13594,7 +13618,13 @@ export const Asset = {
13594
13618
  * @returns The count of created records or null.
13595
13619
  */
13596
13620
  async updateMany(props, globalClient) {
13597
- const client = globalClient || importedClient;
13621
+ const [modules, client] = await Promise.all([
13622
+ getApolloModules(),
13623
+ globalClient
13624
+ ? Promise.resolve(globalClient)
13625
+ : importedClient
13626
+ ]);
13627
+ const { gql, ApolloError } = modules;
13598
13628
  const UPDATE_MANY_ASSET = gql `
13599
13629
  mutation updateManyAsset($data: [AssetCreateManyInput!]!) {
13600
13630
  updateManyAsset(data: $data) {
@@ -18973,7 +19003,13 @@ export const Asset = {
18973
19003
  * @returns The deleted Asset or null.
18974
19004
  */
18975
19005
  async delete(props, globalClient) {
18976
- const client = globalClient || importedClient;
19006
+ const [modules, client] = await Promise.all([
19007
+ getApolloModules(),
19008
+ globalClient
19009
+ ? Promise.resolve(globalClient)
19010
+ : importedClient
19011
+ ]);
19012
+ const { gql, ApolloError } = modules;
18977
19013
  const DELETE_ONE_ASSET = gql `
18978
19014
  mutation deleteOneAsset($where: AssetWhereUniqueInput!) {
18979
19015
  deleteOneAsset(where: $where) {
@@ -19009,7 +19045,13 @@ export const Asset = {
19009
19045
  * @returns The retrieved Asset or null.
19010
19046
  */
19011
19047
  async get(props, globalClient) {
19012
- const client = globalClient || importedClient;
19048
+ const [modules, client] = await Promise.all([
19049
+ getApolloModules(),
19050
+ globalClient
19051
+ ? Promise.resolve(globalClient)
19052
+ : importedClient
19053
+ ]);
19054
+ const { gql, ApolloError } = modules;
19013
19055
  const GET_ASSET = gql `
19014
19056
  query getAsset($where: AssetWhereUniqueInput!) {
19015
19057
  getAsset(where: $where) {
@@ -19046,7 +19088,13 @@ export const Asset = {
19046
19088
  * @returns An array of Asset records or null.
19047
19089
  */
19048
19090
  async getAll(globalClient) {
19049
- const client = globalClient || importedClient;
19091
+ const [modules, client] = await Promise.all([
19092
+ getApolloModules(),
19093
+ globalClient
19094
+ ? Promise.resolve(globalClient)
19095
+ : importedClient
19096
+ ]);
19097
+ const { gql, ApolloError } = modules;
19050
19098
  const GET_ALL_ASSET = gql `
19051
19099
  query getAllAsset {
19052
19100
  assets {
@@ -19076,7 +19124,13 @@ export const Asset = {
19076
19124
  * @returns An array of found Asset records or null.
19077
19125
  */
19078
19126
  async findMany(props, globalClient) {
19079
- const client = globalClient || importedClient;
19127
+ const [modules, client] = await Promise.all([
19128
+ getApolloModules(),
19129
+ globalClient
19130
+ ? Promise.resolve(globalClient)
19131
+ : importedClient
19132
+ ]);
19133
+ const { gql, ApolloError } = modules;
19080
19134
  const FIND_MANY_ASSET = gql `
19081
19135
  query findManyAsset($where: AssetWhereInput!) {
19082
19136
  assets(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../src/Authenticator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AA4M7G,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;kBAEiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA8T5H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAoCvI;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4lC1H;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAi3C1H;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,gBAAg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