adaptic-backend 1.0.292 → 1.0.293

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 (107) 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/package.json +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 Authenticator model.
@@ -207,7 +207,13 @@ export const Authenticator = {
207
207
  * @returns The created Authenticator 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_AUTHENTICATOR = gql `
212
218
  mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
213
219
  createOneAuthenticator(data: $data) {
@@ -527,7 +533,13 @@ export const Authenticator = {
527
533
  * @returns The count of created records or null.
528
534
  */
529
535
  async createMany(props, globalClient) {
530
- const client = globalClient || importedClient;
536
+ const [modules, client] = await Promise.all([
537
+ getApolloModules(),
538
+ globalClient
539
+ ? Promise.resolve(globalClient)
540
+ : importedClient
541
+ ]);
542
+ const { gql, ApolloError } = modules;
531
543
  const CREATE_MANY_AUTHENTICATOR = gql `
532
544
  mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
533
545
  createManyAuthenticator(data: $data) {
@@ -566,7 +578,13 @@ export const Authenticator = {
566
578
  * @returns The updated Authenticator or null.
567
579
  */
568
580
  async update(props, globalClient) {
569
- const client = globalClient || importedClient;
581
+ const [modules, client] = await Promise.all([
582
+ getApolloModules(),
583
+ globalClient
584
+ ? Promise.resolve(globalClient)
585
+ : importedClient
586
+ ]);
587
+ const { gql, ApolloError } = modules;
570
588
  const UPDATE_ONE_AUTHENTICATOR = gql `
571
589
  mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
572
590
  updateOneAuthenticator(data: $data, where: $where) {
@@ -1685,7 +1703,13 @@ export const Authenticator = {
1685
1703
  * @returns The updated Authenticator or null.
1686
1704
  */
1687
1705
  async upsert(props, globalClient) {
1688
- const client = globalClient || importedClient;
1706
+ const [modules, client] = await Promise.all([
1707
+ getApolloModules(),
1708
+ globalClient
1709
+ ? Promise.resolve(globalClient)
1710
+ : importedClient
1711
+ ]);
1712
+ const { gql, ApolloError } = modules;
1689
1713
  const UPSERT_ONE_AUTHENTICATOR = gql `
1690
1714
  mutation upsertOneAuthenticator($where: AuthenticatorWhereUniqueInput!, $create: AuthenticatorCreateInput!, $update: AuthenticatorUpdateInput!) {
1691
1715
  upsertOneAuthenticator(where: $where, create: $create, update: $update) {
@@ -3081,7 +3105,13 @@ export const Authenticator = {
3081
3105
  * @returns The count of created records or null.
3082
3106
  */
3083
3107
  async updateMany(props, globalClient) {
3084
- const client = globalClient || importedClient;
3108
+ const [modules, client] = await Promise.all([
3109
+ getApolloModules(),
3110
+ globalClient
3111
+ ? Promise.resolve(globalClient)
3112
+ : importedClient
3113
+ ]);
3114
+ const { gql, ApolloError } = modules;
3085
3115
  const UPDATE_MANY_AUTHENTICATOR = gql `
3086
3116
  mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
3087
3117
  updateManyAuthenticator(data: $data) {
@@ -4200,7 +4230,13 @@ export const Authenticator = {
4200
4230
  * @returns The deleted Authenticator or null.
4201
4231
  */
4202
4232
  async delete(props, globalClient) {
4203
- const client = globalClient || importedClient;
4233
+ const [modules, client] = await Promise.all([
4234
+ getApolloModules(),
4235
+ globalClient
4236
+ ? Promise.resolve(globalClient)
4237
+ : importedClient
4238
+ ]);
4239
+ const { gql, ApolloError } = modules;
4204
4240
  const DELETE_ONE_AUTHENTICATOR = gql `
4205
4241
  mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
4206
4242
  deleteOneAuthenticator(where: $where) {
@@ -4236,7 +4272,13 @@ export const Authenticator = {
4236
4272
  * @returns The retrieved Authenticator or null.
4237
4273
  */
4238
4274
  async get(props, globalClient) {
4239
- const client = globalClient || importedClient;
4275
+ const [modules, client] = await Promise.all([
4276
+ getApolloModules(),
4277
+ globalClient
4278
+ ? Promise.resolve(globalClient)
4279
+ : importedClient
4280
+ ]);
4281
+ const { gql, ApolloError } = modules;
4240
4282
  const GET_AUTHENTICATOR = gql `
4241
4283
  query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
4242
4284
  getAuthenticator(where: $where) {
@@ -4274,7 +4316,13 @@ export const Authenticator = {
4274
4316
  * @returns An array of Authenticator records or null.
4275
4317
  */
4276
4318
  async getAll(globalClient) {
4277
- const client = globalClient || importedClient;
4319
+ const [modules, client] = await Promise.all([
4320
+ getApolloModules(),
4321
+ globalClient
4322
+ ? Promise.resolve(globalClient)
4323
+ : importedClient
4324
+ ]);
4325
+ const { gql, ApolloError } = modules;
4278
4326
  const GET_ALL_AUTHENTICATOR = gql `
4279
4327
  query getAllAuthenticator {
4280
4328
  authenticators {
@@ -4304,7 +4352,13 @@ export const Authenticator = {
4304
4352
  * @returns An array of found Authenticator records or null.
4305
4353
  */
4306
4354
  async findMany(props, globalClient) {
4307
- const client = globalClient || importedClient;
4355
+ const [modules, client] = await Promise.all([
4356
+ getApolloModules(),
4357
+ globalClient
4358
+ ? Promise.resolve(globalClient)
4359
+ : importedClient
4360
+ ]);
4361
+ const { gql, ApolloError } = modules;
4308
4362
  const FIND_MANY_AUTHENTICATOR = gql `
4309
4363
  query findManyAuthenticator($where: AuthenticatorWhereInput!) {
4310
4364
  authenticators(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../src/Contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwP7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAshClH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAqDlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAu9HhH;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAo8JhH;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA09HlI;;;;;OAKG;kBACiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAiChH;;;;;OAKG;eAC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