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/Account.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 Account model.
@@ -207,7 +207,13 @@ export const Account = {
207
207
  * @returns The created Account or null.
208
208
  */
209
209
  async create(props, globalClient) {
210
- const client = globalClient || importedClient;
210
+ const [modules, client] = await Promise.all([
211
+ getApolloModules(),
212
+ globalClient
213
+ ? Promise.resolve(globalClient)
214
+ : importedClient
215
+ ]);
216
+ const { gql, ApolloError } = modules;
211
217
  const CREATE_ONE_ACCOUNT = gql `
212
218
  mutation createOneAccount($data: AccountCreateInput!) {
213
219
  createOneAccount(data: $data) {
@@ -524,7 +530,13 @@ export const Account = {
524
530
  * @returns The count of created records or null.
525
531
  */
526
532
  async createMany(props, globalClient) {
527
- const client = globalClient || importedClient;
533
+ const [modules, client] = await Promise.all([
534
+ getApolloModules(),
535
+ globalClient
536
+ ? Promise.resolve(globalClient)
537
+ : importedClient
538
+ ]);
539
+ const { gql, ApolloError } = modules;
528
540
  const CREATE_MANY_ACCOUNT = gql `
529
541
  mutation createManyAccount($data: [AccountCreateManyInput!]!) {
530
542
  createManyAccount(data: $data) {
@@ -570,7 +582,13 @@ export const Account = {
570
582
  * @returns The updated Account or null.
571
583
  */
572
584
  async update(props, globalClient) {
573
- const client = globalClient || importedClient;
585
+ const [modules, client] = await Promise.all([
586
+ getApolloModules(),
587
+ globalClient
588
+ ? Promise.resolve(globalClient)
589
+ : importedClient
590
+ ]);
591
+ const { gql, ApolloError } = modules;
574
592
  const UPDATE_ONE_ACCOUNT = gql `
575
593
  mutation updateOneAccount($data: AccountUpdateInput!, $where: AccountWhereUniqueInput!) {
576
594
  updateOneAccount(data: $data, where: $where) {
@@ -1672,7 +1690,13 @@ export const Account = {
1672
1690
  * @returns The updated Account or null.
1673
1691
  */
1674
1692
  async upsert(props, globalClient) {
1675
- const client = globalClient || importedClient;
1693
+ const [modules, client] = await Promise.all([
1694
+ getApolloModules(),
1695
+ globalClient
1696
+ ? Promise.resolve(globalClient)
1697
+ : importedClient
1698
+ ]);
1699
+ const { gql, ApolloError } = modules;
1676
1700
  const UPSERT_ONE_ACCOUNT = gql `
1677
1701
  mutation upsertOneAccount($where: AccountWhereUniqueInput!, $create: AccountCreateInput!, $update: AccountUpdateInput!) {
1678
1702
  upsertOneAccount(where: $where, create: $create, update: $update) {
@@ -3048,7 +3072,13 @@ export const Account = {
3048
3072
  * @returns The count of created records or null.
3049
3073
  */
3050
3074
  async updateMany(props, globalClient) {
3051
- const client = globalClient || importedClient;
3075
+ const [modules, client] = await Promise.all([
3076
+ getApolloModules(),
3077
+ globalClient
3078
+ ? Promise.resolve(globalClient)
3079
+ : importedClient
3080
+ ]);
3081
+ const { gql, ApolloError } = modules;
3052
3082
  const UPDATE_MANY_ACCOUNT = gql `
3053
3083
  mutation updateManyAccount($data: [AccountCreateManyInput!]!) {
3054
3084
  updateManyAccount(data: $data) {
@@ -4150,7 +4180,13 @@ export const Account = {
4150
4180
  * @returns The deleted Account or null.
4151
4181
  */
4152
4182
  async delete(props, globalClient) {
4153
- const client = globalClient || importedClient;
4183
+ const [modules, client] = await Promise.all([
4184
+ getApolloModules(),
4185
+ globalClient
4186
+ ? Promise.resolve(globalClient)
4187
+ : importedClient
4188
+ ]);
4189
+ const { gql, ApolloError } = modules;
4154
4190
  const DELETE_ONE_ACCOUNT = gql `
4155
4191
  mutation deleteOneAccount($where: AccountWhereUniqueInput!) {
4156
4192
  deleteOneAccount(where: $where) {
@@ -4186,7 +4222,13 @@ export const Account = {
4186
4222
  * @returns The retrieved Account or null.
4187
4223
  */
4188
4224
  async get(props, globalClient) {
4189
- const client = globalClient || importedClient;
4225
+ const [modules, client] = await Promise.all([
4226
+ getApolloModules(),
4227
+ globalClient
4228
+ ? Promise.resolve(globalClient)
4229
+ : importedClient
4230
+ ]);
4231
+ const { gql, ApolloError } = modules;
4190
4232
  const GET_ACCOUNT = gql `
4191
4233
  query getAccount($where: AccountWhereUniqueInput!) {
4192
4234
  getAccount(where: $where) {
@@ -4227,7 +4269,13 @@ export const Account = {
4227
4269
  * @returns An array of Account records or null.
4228
4270
  */
4229
4271
  async getAll(globalClient) {
4230
- const client = globalClient || importedClient;
4272
+ const [modules, client] = await Promise.all([
4273
+ getApolloModules(),
4274
+ globalClient
4275
+ ? Promise.resolve(globalClient)
4276
+ : importedClient
4277
+ ]);
4278
+ const { gql, ApolloError } = modules;
4231
4279
  const GET_ALL_ACCOUNT = gql `
4232
4280
  query getAllAccount {
4233
4281
  accounts {
@@ -4257,7 +4305,13 @@ export const Account = {
4257
4305
  * @returns An array of found Account records or null.
4258
4306
  */
4259
4307
  async findMany(props, globalClient) {
4260
- const client = globalClient || importedClient;
4308
+ const [modules, client] = await Promise.all([
4309
+ getApolloModules(),
4310
+ globalClient
4311
+ ? Promise.resolve(globalClient)
4312
+ : importedClient
4313
+ ]);
4314
+ const { gql, ApolloError } = modules;
4261
4315
  const FIND_MANY_ACCOUNT = gql `
4262
4316
  query findManyAccount($where: AccountWhereInput!) {
4263
4317
  accounts(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/Action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiJ7G,eAAO,MAAM,MAAM;IAEjB;;;;;OAKG;kBAEiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAshC9G;;;;;OAKG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA6ChI;;;;;OAKG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAuxI5G;;;;;OAKG;kBACiB,UAAU,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAowK5G;;;;;OAKG;sBACqB,UAAU,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CA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