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 NewsArticle model.
@@ -100,7 +100,13 @@ export const NewsArticle = {
100
100
  * @returns The created NewsArticle 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_NEWSARTICLE = gql `
105
111
  mutation createOneNewsArticle($data: NewsArticleCreateInput!) {
106
112
  createOneNewsArticle(data: $data) {
@@ -408,7 +414,13 @@ export const NewsArticle = {
408
414
  * @returns The count of created records or null.
409
415
  */
410
416
  async createMany(props, globalClient) {
411
- const client = globalClient || importedClient;
417
+ const [modules, client] = await Promise.all([
418
+ getApolloModules(),
419
+ globalClient
420
+ ? Promise.resolve(globalClient)
421
+ : importedClient
422
+ ]);
423
+ const { gql, ApolloError } = modules;
412
424
  const CREATE_MANY_NEWSARTICLE = gql `
413
425
  mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
414
426
  createManyNewsArticle(data: $data) {
@@ -460,7 +472,13 @@ export const NewsArticle = {
460
472
  * @returns The updated NewsArticle or null.
461
473
  */
462
474
  async update(props, globalClient) {
463
- const client = globalClient || importedClient;
475
+ const [modules, client] = await Promise.all([
476
+ getApolloModules(),
477
+ globalClient
478
+ ? Promise.resolve(globalClient)
479
+ : importedClient
480
+ ]);
481
+ const { gql, ApolloError } = modules;
464
482
  const UPDATE_ONE_NEWSARTICLE = gql `
465
483
  mutation updateOneNewsArticle($data: NewsArticleUpdateInput!, $where: NewsArticleWhereUniqueInput!) {
466
484
  updateOneNewsArticle(data: $data, where: $where) {
@@ -1675,7 +1693,13 @@ export const NewsArticle = {
1675
1693
  * @returns The updated NewsArticle or null.
1676
1694
  */
1677
1695
  async upsert(props, globalClient) {
1678
- const client = globalClient || importedClient;
1696
+ const [modules, client] = await Promise.all([
1697
+ getApolloModules(),
1698
+ globalClient
1699
+ ? Promise.resolve(globalClient)
1700
+ : importedClient
1701
+ ]);
1702
+ const { gql, ApolloError } = modules;
1679
1703
  const UPSERT_ONE_NEWSARTICLE = gql `
1680
1704
  mutation upsertOneNewsArticle($where: NewsArticleWhereUniqueInput!, $create: NewsArticleCreateInput!, $update: NewsArticleUpdateInput!) {
1681
1705
  upsertOneNewsArticle(where: $where, create: $create, update: $update) {
@@ -3155,7 +3179,13 @@ export const NewsArticle = {
3155
3179
  * @returns The count of created records or null.
3156
3180
  */
3157
3181
  async updateMany(props, globalClient) {
3158
- 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;
3159
3189
  const UPDATE_MANY_NEWSARTICLE = gql `
3160
3190
  mutation updateManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
3161
3191
  updateManyNewsArticle(data: $data) {
@@ -4370,7 +4400,13 @@ export const NewsArticle = {
4370
4400
  * @returns The deleted NewsArticle or null.
4371
4401
  */
4372
4402
  async delete(props, globalClient) {
4373
- const client = globalClient || importedClient;
4403
+ const [modules, client] = await Promise.all([
4404
+ getApolloModules(),
4405
+ globalClient
4406
+ ? Promise.resolve(globalClient)
4407
+ : importedClient
4408
+ ]);
4409
+ const { gql, ApolloError } = modules;
4374
4410
  const DELETE_ONE_NEWSARTICLE = gql `
4375
4411
  mutation deleteOneNewsArticle($where: NewsArticleWhereUniqueInput!) {
4376
4412
  deleteOneNewsArticle(where: $where) {
@@ -4406,7 +4442,13 @@ export const NewsArticle = {
4406
4442
  * @returns The retrieved NewsArticle or null.
4407
4443
  */
4408
4444
  async get(props, globalClient) {
4409
- const client = globalClient || importedClient;
4445
+ const [modules, client] = await Promise.all([
4446
+ getApolloModules(),
4447
+ globalClient
4448
+ ? Promise.resolve(globalClient)
4449
+ : importedClient
4450
+ ]);
4451
+ const { gql, ApolloError } = modules;
4410
4452
  const GET_NEWSARTICLE = gql `
4411
4453
  query getNewsArticle($where: NewsArticleWhereUniqueInput!) {
4412
4454
  getNewsArticle(where: $where) {
@@ -4445,7 +4487,13 @@ export const NewsArticle = {
4445
4487
  * @returns An array of NewsArticle records or null.
4446
4488
  */
4447
4489
  async getAll(globalClient) {
4448
- const client = globalClient || importedClient;
4490
+ const [modules, client] = await Promise.all([
4491
+ getApolloModules(),
4492
+ globalClient
4493
+ ? Promise.resolve(globalClient)
4494
+ : importedClient
4495
+ ]);
4496
+ const { gql, ApolloError } = modules;
4449
4497
  const GET_ALL_NEWSARTICLE = gql `
4450
4498
  query getAllNewsArticle {
4451
4499
  newsArticles {
@@ -4475,7 +4523,13 @@ export const NewsArticle = {
4475
4523
  * @returns An array of found NewsArticle records or null.
4476
4524
  */
4477
4525
  async findMany(props, globalClient) {
4478
- const client = globalClient || importedClient;
4526
+ const [modules, client] = await Promise.all([
4527
+ getApolloModules(),
4528
+ globalClient
4529
+ ? Promise.resolve(globalClient)
4530
+ : importedClient
4531
+ ]);
4532
+ const { gql, ApolloError } = modules;
4479
4533
  const FIND_MANY_NEWSARTICLE = gql `
4480
4534
  query findManyNewsArticle($where: NewsArticleWhereInput!) {
4481
4535
  newsArticles(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../src/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;AAC7I,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAiG7G,eAAO,MAAM,yBAAyB;IAEpC;;;;;OAKG;kBAEiB,6BAA6B,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA0mBpJ;;;;;OAKG;sBACqB,6BAA6B,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAsCnJ;;;;;OAKG;kBACiB,6BAA6B,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,6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