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/Customer.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 Customer model.
@@ -207,7 +207,13 @@ export const Customer = {
207
207
  * @returns The created Customer 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_CUSTOMER = gql `
212
218
  mutation createOneCustomer($data: CustomerCreateInput!) {
213
219
  createOneCustomer(data: $data) {
@@ -519,7 +525,13 @@ export const Customer = {
519
525
  * @returns The count of created records or null.
520
526
  */
521
527
  async createMany(props, globalClient) {
522
- const client = globalClient || importedClient;
528
+ const [modules, client] = await Promise.all([
529
+ getApolloModules(),
530
+ globalClient
531
+ ? Promise.resolve(globalClient)
532
+ : importedClient
533
+ ]);
534
+ const { gql, ApolloError } = modules;
523
535
  const CREATE_MANY_CUSTOMER = gql `
524
536
  mutation createManyCustomer($data: [CustomerCreateManyInput!]!) {
525
537
  createManyCustomer(data: $data) {
@@ -561,7 +573,13 @@ export const Customer = {
561
573
  * @returns The updated Customer or null.
562
574
  */
563
575
  async update(props, globalClient) {
564
- const client = globalClient || importedClient;
576
+ const [modules, client] = await Promise.all([
577
+ getApolloModules(),
578
+ globalClient
579
+ ? Promise.resolve(globalClient)
580
+ : importedClient
581
+ ]);
582
+ const { gql, ApolloError } = modules;
565
583
  const UPDATE_ONE_CUSTOMER = gql `
566
584
  mutation updateOneCustomer($data: CustomerUpdateInput!, $where: CustomerWhereUniqueInput!) {
567
585
  updateOneCustomer(data: $data, where: $where) {
@@ -1652,7 +1670,13 @@ export const Customer = {
1652
1670
  * @returns The updated Customer or null.
1653
1671
  */
1654
1672
  async upsert(props, globalClient) {
1655
- const client = globalClient || importedClient;
1673
+ const [modules, client] = await Promise.all([
1674
+ getApolloModules(),
1675
+ globalClient
1676
+ ? Promise.resolve(globalClient)
1677
+ : importedClient
1678
+ ]);
1679
+ const { gql, ApolloError } = modules;
1656
1680
  const UPSERT_ONE_CUSTOMER = gql `
1657
1681
  mutation upsertOneCustomer($where: CustomerWhereUniqueInput!, $create: CustomerCreateInput!, $update: CustomerUpdateInput!) {
1658
1682
  upsertOneCustomer(where: $where, create: $create, update: $update) {
@@ -3015,7 +3039,13 @@ export const Customer = {
3015
3039
  * @returns The count of created records or null.
3016
3040
  */
3017
3041
  async updateMany(props, globalClient) {
3018
- const client = globalClient || importedClient;
3042
+ const [modules, client] = await Promise.all([
3043
+ getApolloModules(),
3044
+ globalClient
3045
+ ? Promise.resolve(globalClient)
3046
+ : importedClient
3047
+ ]);
3048
+ const { gql, ApolloError } = modules;
3019
3049
  const UPDATE_MANY_CUSTOMER = gql `
3020
3050
  mutation updateManyCustomer($data: [CustomerCreateManyInput!]!) {
3021
3051
  updateManyCustomer(data: $data) {
@@ -4106,7 +4136,13 @@ export const Customer = {
4106
4136
  * @returns The deleted Customer or null.
4107
4137
  */
4108
4138
  async delete(props, globalClient) {
4109
- const client = globalClient || importedClient;
4139
+ const [modules, client] = await Promise.all([
4140
+ getApolloModules(),
4141
+ globalClient
4142
+ ? Promise.resolve(globalClient)
4143
+ : importedClient
4144
+ ]);
4145
+ const { gql, ApolloError } = modules;
4110
4146
  const DELETE_ONE_CUSTOMER = gql `
4111
4147
  mutation deleteOneCustomer($where: CustomerWhereUniqueInput!) {
4112
4148
  deleteOneCustomer(where: $where) {
@@ -4142,7 +4178,13 @@ export const Customer = {
4142
4178
  * @returns The retrieved Customer or null.
4143
4179
  */
4144
4180
  async get(props, globalClient) {
4145
- const client = globalClient || importedClient;
4181
+ const [modules, client] = await Promise.all([
4182
+ getApolloModules(),
4183
+ globalClient
4184
+ ? Promise.resolve(globalClient)
4185
+ : importedClient
4186
+ ]);
4187
+ const { gql, ApolloError } = modules;
4146
4188
  const GET_CUSTOMER = gql `
4147
4189
  query getCustomer($where: CustomerWhereUniqueInput!) {
4148
4190
  getCustomer(where: $where) {
@@ -4188,7 +4230,13 @@ export const Customer = {
4188
4230
  * @returns An array of Customer records or null.
4189
4231
  */
4190
4232
  async getAll(globalClient) {
4191
- 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;
4192
4240
  const GET_ALL_CUSTOMER = gql `
4193
4241
  query getAllCustomer {
4194
4242
  customers {
@@ -4218,7 +4266,13 @@ export const Customer = {
4218
4266
  * @returns An array of found Customer records or null.
4219
4267
  */
4220
4268
  async findMany(props, globalClient) {
4221
- const client = globalClient || importedClient;
4269
+ const [modules, client] = await Promise.all([
4270
+ getApolloModules(),
4271
+ globalClient
4272
+ ? Promise.resolve(globalClient)
4273
+ : importedClient
4274
+ ]);
4275
+ const { gql, ApolloError } = modules;
4222
4276
  const FIND_MANY_CUSTOMER = gql `
4223
4277
  query findManyCustomer($where: CustomerWhereInput!) {
4224
4278
  customers(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Deliverable.d.ts","sourceRoot":"","sources":["../../src/Deliverable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwP7G,eAAO,MAAM,WAAW;IAEtB;;;;;OAKG;kBAEiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAugBxH;;;;;OAKG;sBACqB,eAAe,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAyCrI;;;;;OAKG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IA8oEtH;;;;;OAKG;kBACiB,eAAe,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IA4mFtH;;;;;OAKG;sBACqB,eAAe,EAAE,iBAAiB,gBAAgB,CAAC,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