adaptic-backend 1.0.178 → 1.0.180

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 (91) hide show
  1. package/Account.cjs +8 -16
  2. package/Action.cjs +8 -16
  3. package/Alert.cjs +8 -16
  4. package/AlpacaAccount.cjs +8 -16
  5. package/Asset.cjs +8 -16
  6. package/Authenticator.cjs +8 -16
  7. package/Customer.cjs +8 -16
  8. package/EconomicEvent.cjs +8 -16
  9. package/MarketSentiment.cjs +8 -16
  10. package/NewsArticle.cjs +8 -16
  11. package/NewsArticleAssetSentiment.cjs +8 -16
  12. package/Order.cjs +8 -16
  13. package/Position.cjs +8 -16
  14. package/ScheduledOptionOrder.cjs +8 -16
  15. package/Session.cjs +8 -16
  16. package/StopLoss.cjs +8 -16
  17. package/TakeProfit.cjs +8 -16
  18. package/Trade.cjs +8 -16
  19. package/User.cjs +8 -16
  20. package/VerificationToken.cjs +8 -16
  21. package/client.cjs +3 -0
  22. package/client.d.ts +1 -0
  23. package/generated/typegraphql-prisma/models/Order.cjs +1 -1
  24. package/generated/typegraphql-prisma/models/Order.js.map +1 -1
  25. package/package.json +1 -1
  26. package/server/Account.d.ts.map +1 -1
  27. package/server/Account.js.map +1 -1
  28. package/server/Account.mjs +1 -9
  29. package/server/Action.d.ts.map +1 -1
  30. package/server/Action.js.map +1 -1
  31. package/server/Action.mjs +1 -9
  32. package/server/Alert.d.ts.map +1 -1
  33. package/server/Alert.js.map +1 -1
  34. package/server/Alert.mjs +1 -9
  35. package/server/AlpacaAccount.d.ts.map +1 -1
  36. package/server/AlpacaAccount.js.map +1 -1
  37. package/server/AlpacaAccount.mjs +1 -9
  38. package/server/Asset.d.ts.map +1 -1
  39. package/server/Asset.js.map +1 -1
  40. package/server/Asset.mjs +1 -9
  41. package/server/Authenticator.d.ts.map +1 -1
  42. package/server/Authenticator.js.map +1 -1
  43. package/server/Authenticator.mjs +1 -9
  44. package/server/Customer.d.ts.map +1 -1
  45. package/server/Customer.js.map +1 -1
  46. package/server/Customer.mjs +1 -9
  47. package/server/EconomicEvent.d.ts.map +1 -1
  48. package/server/EconomicEvent.js.map +1 -1
  49. package/server/EconomicEvent.mjs +1 -9
  50. package/server/MarketSentiment.d.ts.map +1 -1
  51. package/server/MarketSentiment.js.map +1 -1
  52. package/server/MarketSentiment.mjs +1 -9
  53. package/server/NewsArticle.d.ts.map +1 -1
  54. package/server/NewsArticle.js.map +1 -1
  55. package/server/NewsArticle.mjs +1 -9
  56. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  57. package/server/NewsArticleAssetSentiment.js.map +1 -1
  58. package/server/NewsArticleAssetSentiment.mjs +1 -9
  59. package/server/Order.d.ts.map +1 -1
  60. package/server/Order.js.map +1 -1
  61. package/server/Order.mjs +1 -9
  62. package/server/Position.d.ts.map +1 -1
  63. package/server/Position.js.map +1 -1
  64. package/server/Position.mjs +1 -9
  65. package/server/ScheduledOptionOrder.d.ts.map +1 -1
  66. package/server/ScheduledOptionOrder.js.map +1 -1
  67. package/server/ScheduledOptionOrder.mjs +1 -9
  68. package/server/Session.d.ts.map +1 -1
  69. package/server/Session.js.map +1 -1
  70. package/server/Session.mjs +1 -9
  71. package/server/StopLoss.d.ts.map +1 -1
  72. package/server/StopLoss.js.map +1 -1
  73. package/server/StopLoss.mjs +1 -9
  74. package/server/TakeProfit.d.ts.map +1 -1
  75. package/server/TakeProfit.js.map +1 -1
  76. package/server/TakeProfit.mjs +1 -9
  77. package/server/Trade.d.ts.map +1 -1
  78. package/server/Trade.js.map +1 -1
  79. package/server/Trade.mjs +1 -9
  80. package/server/User.d.ts.map +1 -1
  81. package/server/User.js.map +1 -1
  82. package/server/User.mjs +1 -9
  83. package/server/VerificationToken.d.ts.map +1 -1
  84. package/server/VerificationToken.js.map +1 -1
  85. package/server/VerificationToken.mjs +1 -9
  86. package/server/client.d.ts +1 -0
  87. package/server/client.d.ts.map +1 -1
  88. package/server/client.js.map +1 -1
  89. package/server/client.mjs +2 -0
  90. package/server/generated/typegraphql-prisma/models/Order.js.map +1 -1
  91. package/server/generated/typegraphql-prisma/models/Order.mjs +1 -1
@@ -1,6 +1,6 @@
1
1
  import pkg from '@apollo/client';
2
2
  const { ApolloError, gql } = pkg;
3
- import { createApolloClient } from './client.mjs';
3
+ import { client } from './client.mjs';
4
4
  import { removeUndefinedProps } from './utils.mjs';
5
5
  /**
6
6
  * CRUD operations for the Authenticator model.
@@ -193,7 +193,6 @@ export const Authenticator = {
193
193
  * @returns The created Authenticator or null.
194
194
  */
195
195
  async create(props) {
196
- const client = createApolloClient();
197
196
  const CREATE_ONE_AUTHENTICATOR = gql `
198
197
  mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
199
198
  createOneAuthenticator(data: $data) {
@@ -500,7 +499,6 @@ export const Authenticator = {
500
499
  * @returns The count of created records or null.
501
500
  */
502
501
  async createMany(props) {
503
- const client = createApolloClient();
504
502
  const CREATE_MANY_AUTHENTICATOR = gql `
505
503
  mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
506
504
  createManyAuthenticator(data: $data) {
@@ -538,7 +536,6 @@ export const Authenticator = {
538
536
  * @returns The updated Authenticator or null.
539
537
  */
540
538
  async update(props) {
541
- const client = createApolloClient();
542
539
  const UPDATE_ONE_AUTHENTICATOR = gql `
543
540
  mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
544
541
  updateOneAuthenticator(data: $data, where: $where) {
@@ -1526,7 +1523,6 @@ export const Authenticator = {
1526
1523
  * @returns The count of created records or null.
1527
1524
  */
1528
1525
  async updateMany(props) {
1529
- const client = createApolloClient();
1530
1526
  const UPDATE_MANY_AUTHENTICATOR = gql `
1531
1527
  mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
1532
1528
  updateManyAuthenticator(data: $data) {
@@ -2514,7 +2510,6 @@ export const Authenticator = {
2514
2510
  * @returns The deleted Authenticator or null.
2515
2511
  */
2516
2512
  async delete(props) {
2517
- const client = createApolloClient();
2518
2513
  const DELETE_ONE_AUTHENTICATOR = gql `
2519
2514
  mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
2520
2515
  deleteOneAuthenticator(where: $where) {
@@ -2549,7 +2544,6 @@ export const Authenticator = {
2549
2544
  * @returns The retrieved Authenticator or null.
2550
2545
  */
2551
2546
  async get(props) {
2552
- const client = createApolloClient();
2553
2547
  const GET_AUTHENTICATOR = gql `
2554
2548
  query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
2555
2549
  getAuthenticator(where: $where) {
@@ -2591,7 +2585,6 @@ export const Authenticator = {
2591
2585
  * @returns An array of Authenticator records or null.
2592
2586
  */
2593
2587
  async getAll() {
2594
- const client = createApolloClient();
2595
2588
  const GET_ALL_AUTHENTICATOR = gql `
2596
2589
  query getAllAuthenticator {
2597
2590
  authenticators {
@@ -2620,7 +2613,6 @@ export const Authenticator = {
2620
2613
  * @returns An array of found Authenticator records or null.
2621
2614
  */
2622
2615
  async findMany(props) {
2623
- const client = createApolloClient();
2624
2616
  const FIND_MANY_AUTHENTICATOR = gql `
2625
2617
  query findManyAuthenticator($where: AuthenticatorWhereInput!) {
2626
2618
  authenticators(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AA+LxF,eAAO,MAAM,QAAQ;IAEnB;;;;OAIG;kBAEiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA0S1D;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAuC1E;;;;OAIG;kBACiB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA+7BxD;;;;OAIG;sBACqB,YAAY,EAAE,GAAG,OAAO,CAAC;QAAE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