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/Action.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 Action model.
@@ -148,7 +148,13 @@ export const Action = {
148
148
  * @returns The created Action or null.
149
149
  */
150
150
  async create(props, globalClient) {
151
- const client = globalClient || importedClient;
151
+ const [modules, client] = await Promise.all([
152
+ getApolloModules(),
153
+ globalClient
154
+ ? Promise.resolve(globalClient)
155
+ : importedClient
156
+ ]);
157
+ const { gql, ApolloError } = modules;
152
158
  const CREATE_ONE_ACTION = gql `
153
159
  mutation createOneAction($data: ActionCreateInput!) {
154
160
  createOneAction(data: $data) {
@@ -1196,7 +1202,13 @@ export const Action = {
1196
1202
  * @returns The count of created records or null.
1197
1203
  */
1198
1204
  async createMany(props, globalClient) {
1199
- const client = globalClient || importedClient;
1205
+ const [modules, client] = await Promise.all([
1206
+ getApolloModules(),
1207
+ globalClient
1208
+ ? Promise.resolve(globalClient)
1209
+ : importedClient
1210
+ ]);
1211
+ const { gql, ApolloError } = modules;
1200
1212
  const CREATE_MANY_ACTION = gql `
1201
1213
  mutation createManyAction($data: [ActionCreateManyInput!]!) {
1202
1214
  createManyAction(data: $data) {
@@ -1244,7 +1256,13 @@ export const Action = {
1244
1256
  * @returns The updated Action or null.
1245
1257
  */
1246
1258
  async update(props, globalClient) {
1247
- const client = globalClient || importedClient;
1259
+ const [modules, client] = await Promise.all([
1260
+ getApolloModules(),
1261
+ globalClient
1262
+ ? Promise.resolve(globalClient)
1263
+ : importedClient
1264
+ ]);
1265
+ const { gql, ApolloError } = modules;
1248
1266
  const UPDATE_ONE_ACTION = gql `
1249
1267
  mutation updateOneAction($data: ActionUpdateInput!, $where: ActionWhereUniqueInput!) {
1250
1268
  updateOneAction(data: $data, where: $where) {
@@ -5622,7 +5640,13 @@ export const Action = {
5622
5640
  * @returns The updated Action or null.
5623
5641
  */
5624
5642
  async upsert(props, globalClient) {
5625
- const client = globalClient || importedClient;
5643
+ const [modules, client] = await Promise.all([
5644
+ getApolloModules(),
5645
+ globalClient
5646
+ ? Promise.resolve(globalClient)
5647
+ : importedClient
5648
+ ]);
5649
+ const { gql, ApolloError } = modules;
5626
5650
  const UPSERT_ONE_ACTION = gql `
5627
5651
  mutation upsertOneAction($where: ActionWhereUniqueInput!, $create: ActionCreateInput!, $update: ActionUpdateInput!) {
5628
5652
  upsertOneAction(where: $where, create: $create, update: $update) {
@@ -11005,7 +11029,13 @@ export const Action = {
11005
11029
  * @returns The count of created records or null.
11006
11030
  */
11007
11031
  async updateMany(props, globalClient) {
11008
- const client = globalClient || importedClient;
11032
+ const [modules, client] = await Promise.all([
11033
+ getApolloModules(),
11034
+ globalClient
11035
+ ? Promise.resolve(globalClient)
11036
+ : importedClient
11037
+ ]);
11038
+ const { gql, ApolloError } = modules;
11009
11039
  const UPDATE_MANY_ACTION = gql `
11010
11040
  mutation updateManyAction($data: [ActionCreateManyInput!]!) {
11011
11041
  updateManyAction(data: $data) {
@@ -15383,7 +15413,13 @@ export const Action = {
15383
15413
  * @returns The deleted Action or null.
15384
15414
  */
15385
15415
  async delete(props, globalClient) {
15386
- const client = globalClient || importedClient;
15416
+ const [modules, client] = await Promise.all([
15417
+ getApolloModules(),
15418
+ globalClient
15419
+ ? Promise.resolve(globalClient)
15420
+ : importedClient
15421
+ ]);
15422
+ const { gql, ApolloError } = modules;
15387
15423
  const DELETE_ONE_ACTION = gql `
15388
15424
  mutation deleteOneAction($where: ActionWhereUniqueInput!) {
15389
15425
  deleteOneAction(where: $where) {
@@ -15419,7 +15455,13 @@ export const Action = {
15419
15455
  * @returns The retrieved Action or null.
15420
15456
  */
15421
15457
  async get(props, globalClient) {
15422
- const client = globalClient || importedClient;
15458
+ const [modules, client] = await Promise.all([
15459
+ getApolloModules(),
15460
+ globalClient
15461
+ ? Promise.resolve(globalClient)
15462
+ : importedClient
15463
+ ]);
15464
+ const { gql, ApolloError } = modules;
15423
15465
  const GET_ACTION = gql `
15424
15466
  query getAction($where: ActionWhereUniqueInput!) {
15425
15467
  getAction(where: $where) {
@@ -15457,7 +15499,13 @@ export const Action = {
15457
15499
  * @returns An array of Action records or null.
15458
15500
  */
15459
15501
  async getAll(globalClient) {
15460
- const client = globalClient || importedClient;
15502
+ const [modules, client] = await Promise.all([
15503
+ getApolloModules(),
15504
+ globalClient
15505
+ ? Promise.resolve(globalClient)
15506
+ : importedClient
15507
+ ]);
15508
+ const { gql, ApolloError } = modules;
15461
15509
  const GET_ALL_ACTION = gql `
15462
15510
  query getAllAction {
15463
15511
  actions {
@@ -15487,7 +15535,13 @@ export const Action = {
15487
15535
  * @returns An array of found Action records or null.
15488
15536
  */
15489
15537
  async findMany(props, globalClient) {
15490
- const client = globalClient || importedClient;
15538
+ const [modules, client] = await Promise.all([
15539
+ getApolloModules(),
15540
+ globalClient
15541
+ ? Promise.resolve(globalClient)
15542
+ : importedClient
15543
+ ]);
15544
+ const { gql, ApolloError } = modules;
15491
15545
  const FIND_MANY_ACTION = gql `
15492
15546
  query findManyAction($where: ActionWhereInput!) {
15493
15547
  actions(where: $where) {
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAmB7G,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;kBAEiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAypB5G;;;;;OAKG;sBACqB,SAAS,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAoC/H;;;;;OAKG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA6vF1G;;;;;OAKG;kBACiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA62G1G;;;;;OAKG;sBACqB,SAAS,EAAE,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CA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