adaptic-backend 1.0.233 → 1.0.235

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 (139) hide show
  1. package/Account.cjs +36 -18
  2. package/Account.d.ts +19 -9
  3. package/Action.cjs +36 -18
  4. package/Action.d.ts +19 -9
  5. package/Alert.cjs +36 -18
  6. package/Alert.d.ts +19 -9
  7. package/AlpacaAccount.cjs +36 -18
  8. package/AlpacaAccount.d.ts +19 -9
  9. package/Asset.cjs +36 -18
  10. package/Asset.d.ts +19 -9
  11. package/Authenticator.cjs +36 -18
  12. package/Authenticator.d.ts +19 -9
  13. package/Contract.cjs +36 -18
  14. package/Contract.d.ts +19 -9
  15. package/Customer.cjs +36 -18
  16. package/Customer.d.ts +19 -9
  17. package/Deliverable.cjs +36 -18
  18. package/Deliverable.d.ts +19 -9
  19. package/EconomicEvent.cjs +36 -18
  20. package/EconomicEvent.d.ts +19 -9
  21. package/MarketSentiment.cjs +36 -18
  22. package/MarketSentiment.d.ts +19 -9
  23. package/NewsArticle.cjs +36 -18
  24. package/NewsArticle.d.ts +19 -9
  25. package/NewsArticleAssetSentiment.cjs +36 -18
  26. package/NewsArticleAssetSentiment.d.ts +19 -9
  27. package/Order.cjs +36 -18
  28. package/Order.d.ts +19 -9
  29. package/Position.cjs +36 -18
  30. package/Position.d.ts +19 -9
  31. package/ScheduledOptionOrder.cjs +36 -18
  32. package/ScheduledOptionOrder.d.ts +19 -9
  33. package/Session.cjs +36 -18
  34. package/Session.d.ts +19 -9
  35. package/StopLoss.cjs +36 -18
  36. package/StopLoss.d.ts +19 -9
  37. package/TakeProfit.cjs +36 -18
  38. package/TakeProfit.d.ts +19 -9
  39. package/Trade.cjs +36 -18
  40. package/Trade.d.ts +19 -9
  41. package/User.cjs +36 -18
  42. package/User.d.ts +19 -9
  43. package/VerificationToken.cjs +36 -18
  44. package/VerificationToken.d.ts +19 -9
  45. package/client.cjs +0 -1
  46. package/index.d.ts +198 -198
  47. package/package.json +1 -1
  48. package/server/Account.d.ts +19 -9
  49. package/server/Account.d.ts.map +1 -1
  50. package/server/Account.js.map +1 -1
  51. package/server/Account.mjs +28 -10
  52. package/server/Action.d.ts +19 -9
  53. package/server/Action.d.ts.map +1 -1
  54. package/server/Action.js.map +1 -1
  55. package/server/Action.mjs +28 -10
  56. package/server/Alert.d.ts +19 -9
  57. package/server/Alert.d.ts.map +1 -1
  58. package/server/Alert.js.map +1 -1
  59. package/server/Alert.mjs +28 -10
  60. package/server/AlpacaAccount.d.ts +19 -9
  61. package/server/AlpacaAccount.d.ts.map +1 -1
  62. package/server/AlpacaAccount.js.map +1 -1
  63. package/server/AlpacaAccount.mjs +28 -10
  64. package/server/Asset.d.ts +19 -9
  65. package/server/Asset.d.ts.map +1 -1
  66. package/server/Asset.js.map +1 -1
  67. package/server/Asset.mjs +28 -10
  68. package/server/Authenticator.d.ts +19 -9
  69. package/server/Authenticator.d.ts.map +1 -1
  70. package/server/Authenticator.js.map +1 -1
  71. package/server/Authenticator.mjs +28 -10
  72. package/server/Contract.d.ts +19 -9
  73. package/server/Contract.d.ts.map +1 -1
  74. package/server/Contract.js.map +1 -1
  75. package/server/Contract.mjs +28 -10
  76. package/server/Customer.d.ts +19 -9
  77. package/server/Customer.d.ts.map +1 -1
  78. package/server/Customer.js.map +1 -1
  79. package/server/Customer.mjs +28 -10
  80. package/server/Deliverable.d.ts +19 -9
  81. package/server/Deliverable.d.ts.map +1 -1
  82. package/server/Deliverable.js.map +1 -1
  83. package/server/Deliverable.mjs +28 -10
  84. package/server/EconomicEvent.d.ts +19 -9
  85. package/server/EconomicEvent.d.ts.map +1 -1
  86. package/server/EconomicEvent.js.map +1 -1
  87. package/server/EconomicEvent.mjs +28 -10
  88. package/server/MarketSentiment.d.ts +19 -9
  89. package/server/MarketSentiment.d.ts.map +1 -1
  90. package/server/MarketSentiment.js.map +1 -1
  91. package/server/MarketSentiment.mjs +28 -10
  92. package/server/NewsArticle.d.ts +19 -9
  93. package/server/NewsArticle.d.ts.map +1 -1
  94. package/server/NewsArticle.js.map +1 -1
  95. package/server/NewsArticle.mjs +28 -10
  96. package/server/NewsArticleAssetSentiment.d.ts +19 -9
  97. package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
  98. package/server/NewsArticleAssetSentiment.js.map +1 -1
  99. package/server/NewsArticleAssetSentiment.mjs +28 -10
  100. package/server/Order.d.ts +19 -9
  101. package/server/Order.d.ts.map +1 -1
  102. package/server/Order.js.map +1 -1
  103. package/server/Order.mjs +28 -10
  104. package/server/Position.d.ts +19 -9
  105. package/server/Position.d.ts.map +1 -1
  106. package/server/Position.js.map +1 -1
  107. package/server/Position.mjs +28 -10
  108. package/server/ScheduledOptionOrder.d.ts +19 -9
  109. package/server/ScheduledOptionOrder.d.ts.map +1 -1
  110. package/server/ScheduledOptionOrder.js.map +1 -1
  111. package/server/ScheduledOptionOrder.mjs +28 -10
  112. package/server/Session.d.ts +19 -9
  113. package/server/Session.d.ts.map +1 -1
  114. package/server/Session.js.map +1 -1
  115. package/server/Session.mjs +28 -10
  116. package/server/StopLoss.d.ts +19 -9
  117. package/server/StopLoss.d.ts.map +1 -1
  118. package/server/StopLoss.js.map +1 -1
  119. package/server/StopLoss.mjs +28 -10
  120. package/server/TakeProfit.d.ts +19 -9
  121. package/server/TakeProfit.d.ts.map +1 -1
  122. package/server/TakeProfit.js.map +1 -1
  123. package/server/TakeProfit.mjs +28 -10
  124. package/server/Trade.d.ts +19 -9
  125. package/server/Trade.d.ts.map +1 -1
  126. package/server/Trade.js.map +1 -1
  127. package/server/Trade.mjs +28 -10
  128. package/server/User.d.ts +19 -9
  129. package/server/User.d.ts.map +1 -1
  130. package/server/User.js.map +1 -1
  131. package/server/User.mjs +28 -10
  132. package/server/VerificationToken.d.ts +19 -9
  133. package/server/VerificationToken.d.ts.map +1 -1
  134. package/server/VerificationToken.js.map +1 -1
  135. package/server/VerificationToken.mjs +28 -10
  136. package/server/client.d.ts.map +1 -1
  137. package/server/client.js.map +1 -1
  138. package/server/client.mjs +0 -1
  139. package/server/index.d.ts +198 -198
@@ -1,6 +1,6 @@
1
1
  import pkg from '@apollo/client';
2
2
  const { ApolloError, gql } = pkg;
3
- import { client } from './client.mjs';
3
+ import { client as importedClient } from './client.mjs';
4
4
  import { removeUndefinedProps } from './utils.mjs';
5
5
  /**
6
6
  * CRUD operations for the Account model.
@@ -190,9 +190,11 @@ export const Account = {
190
190
  /**
191
191
  * Create a new Account record.
192
192
  * @param props - Properties for the new record.
193
+ * @param client - Apollo Client instance.
193
194
  * @returns The created Account or null.
194
195
  */
195
- async create(props) {
196
+ async create(props, globalClient) {
197
+ const client = globalClient || importedClient;
196
198
  const CREATE_ONE_ACCOUNT = gql `
197
199
  mutation createOneAccount($data: AccountCreateInput!) {
198
200
  createOneAccount(data: $data) {
@@ -485,9 +487,11 @@ export const Account = {
485
487
  /**
486
488
  * Create multiple Account records.
487
489
  * @param props - Array of Account objects for the new records.
490
+ * @param globalClient - Apollo Client instance.
488
491
  * @returns The count of created records or null.
489
492
  */
490
- async createMany(props) {
493
+ async createMany(props, globalClient) {
494
+ const client = globalClient || importedClient;
491
495
  const CREATE_MANY_ACCOUNT = gql `
492
496
  mutation createManyAccount($data: [AccountCreateManyInput!]!) {
493
497
  createManyAccount(data: $data) {
@@ -529,9 +533,11 @@ export const Account = {
529
533
  /**
530
534
  * Update a single Account record.
531
535
  * @param props - Properties to update.
536
+ * @param globalClient - Apollo Client instance.
532
537
  * @returns The updated Account or null.
533
538
  */
534
- async update(props) {
539
+ async update(props, globalClient) {
540
+ const client = globalClient || importedClient;
535
541
  const UPDATE_ONE_ACCOUNT = gql `
536
542
  mutation updateOneAccount($data: AccountUpdateInput!, $where: AccountWhereUniqueInput!) {
537
543
  updateOneAccount(data: $data, where: $where) {
@@ -1523,9 +1529,11 @@ export const Account = {
1523
1529
  /**
1524
1530
  * Upsert a single Account record.
1525
1531
  * @param props - Properties to update.
1532
+ * @param globalClient - Apollo Client instance.
1526
1533
  * @returns The updated Account or null.
1527
1534
  */
1528
- async upsert(props) {
1535
+ async upsert(props, globalClient) {
1536
+ const client = globalClient || importedClient;
1529
1537
  const UPSERT_ONE_ACCOUNT = gql `
1530
1538
  mutation upsertOneAccount($where: AccountWhereUniqueInput!, $create: AccountCreateInput!, $update: AccountUpdateInput!) {
1531
1539
  upsertOneAccount(where: $where, create: $create, update: $update) {
@@ -2771,9 +2779,11 @@ export const Account = {
2771
2779
  /**
2772
2780
  * Update multiple Account records.
2773
2781
  * @param props - Array of Account objects for the updated records.
2782
+ * @param globalClient - Apollo Client instance.
2774
2783
  * @returns The count of created records or null.
2775
2784
  */
2776
- async updateMany(props) {
2785
+ async updateMany(props, globalClient) {
2786
+ const client = globalClient || importedClient;
2777
2787
  const UPDATE_MANY_ACCOUNT = gql `
2778
2788
  mutation updateManyAccount($data: [AccountCreateManyInput!]!) {
2779
2789
  updateManyAccount(data: $data) {
@@ -3765,9 +3775,11 @@ export const Account = {
3765
3775
  /**
3766
3776
  * Delete a single Account record.
3767
3777
  * @param props - Properties to update.
3778
+ * @param globalClient - Apollo Client instance.
3768
3779
  * @returns The deleted Account or null.
3769
3780
  */
3770
- async delete(props) {
3781
+ async delete(props, globalClient) {
3782
+ const client = globalClient || importedClient;
3771
3783
  const DELETE_ONE_ACCOUNT = gql `
3772
3784
  mutation deleteOneAccount($where: AccountWhereUniqueInput!) {
3773
3785
  deleteOneAccount(where: $where) {
@@ -3799,9 +3811,11 @@ export const Account = {
3799
3811
  /**
3800
3812
  * Retrieve a single Account record by ID.
3801
3813
  * @param props - Properties to update.
3814
+ * @param globalClient - Apollo Client instance.
3802
3815
  * @returns The retrieved Account or null.
3803
3816
  */
3804
- async get(props) {
3817
+ async get(props, globalClient) {
3818
+ const client = globalClient || importedClient;
3805
3819
  const GET_ACCOUNT = gql `
3806
3820
  query getAccount($where: AccountWhereUniqueInput!) {
3807
3821
  getAccount(where: $where) {
@@ -3838,9 +3852,11 @@ export const Account = {
3838
3852
  },
3839
3853
  /**
3840
3854
  * Retrieve all Accounts records.
3855
+ * @param globalClient - Apollo Client instance.
3841
3856
  * @returns An array of Account records or null.
3842
3857
  */
3843
- async getAll() {
3858
+ async getAll(globalClient) {
3859
+ const client = globalClient || importedClient;
3844
3860
  const GET_ALL_ACCOUNT = gql `
3845
3861
  query getAllAccount {
3846
3862
  accounts {
@@ -3866,9 +3882,11 @@ export const Account = {
3866
3882
  /**
3867
3883
  * Find multiple Account records based on conditions.
3868
3884
  * @param props - Conditions to find records.
3885
+ * @param globalClient - Apollo Client instance.
3869
3886
  * @returns An array of found Account records or null.
3870
3887
  */
3871
- async findMany(props) {
3888
+ async findMany(props, globalClient) {
3889
+ const client = globalClient || importedClient;
3872
3890
  const FIND_MANY_ACCOUNT = gql `
3873
3891
  query findManyAccount($where: AccountWhereInput!) {
3874
3892
  accounts(where: $where) {
@@ -1,61 +1,71 @@
1
1
  import { Action as ActionType } from './generated/typegraphql-prisma/models/Action';
2
+ import { ApolloClient } from '@apollo/client';
2
3
  export declare const Action: {
3
4
  /**
4
5
  * Create a new Action record.
5
6
  * @param props - Properties for the new record.
7
+ * @param client - Apollo Client instance.
6
8
  * @returns The created Action or null.
7
9
  */
8
- create(props: ActionType): Promise<ActionType>;
10
+ create(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType>;
9
11
  /**
10
12
  * Create multiple Action records.
11
13
  * @param props - Array of Action objects for the new records.
14
+ * @param globalClient - Apollo Client instance.
12
15
  * @returns The count of created records or null.
13
16
  */
14
- createMany(props: ActionType[]): Promise<{
17
+ createMany(props: ActionType[], globalClient?: ApolloClient<any>): Promise<{
15
18
  count: number;
16
19
  } | null>;
17
20
  /**
18
21
  * Update a single Action record.
19
22
  * @param props - Properties to update.
23
+ * @param globalClient - Apollo Client instance.
20
24
  * @returns The updated Action or null.
21
25
  */
22
- update(props: ActionType): Promise<ActionType>;
26
+ update(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType>;
23
27
  /**
24
28
  * Upsert a single Action record.
25
29
  * @param props - Properties to update.
30
+ * @param globalClient - Apollo Client instance.
26
31
  * @returns The updated Action or null.
27
32
  */
28
- upsert(props: ActionType): Promise<ActionType>;
33
+ upsert(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType>;
29
34
  /**
30
35
  * Update multiple Action records.
31
36
  * @param props - Array of Action objects for the updated records.
37
+ * @param globalClient - Apollo Client instance.
32
38
  * @returns The count of created records or null.
33
39
  */
34
- updateMany(props: ActionType[]): Promise<{
40
+ updateMany(props: ActionType[], globalClient?: ApolloClient<any>): Promise<{
35
41
  count: number;
36
42
  } | null>;
37
43
  /**
38
44
  * Delete a single Action record.
39
45
  * @param props - Properties to update.
46
+ * @param globalClient - Apollo Client instance.
40
47
  * @returns The deleted Action or null.
41
48
  */
42
- delete(props: ActionType): Promise<ActionType>;
49
+ delete(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType>;
43
50
  /**
44
51
  * Retrieve a single Action record by ID.
45
52
  * @param props - Properties to update.
53
+ * @param globalClient - Apollo Client instance.
46
54
  * @returns The retrieved Action or null.
47
55
  */
48
- get(props: ActionType): Promise<ActionType | null>;
56
+ get(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType | null>;
49
57
  /**
50
58
  * Retrieve all Actions records.
59
+ * @param globalClient - Apollo Client instance.
51
60
  * @returns An array of Action records or null.
52
61
  */
53
- getAll(): Promise<ActionType[] | null>;
62
+ getAll(globalClient?: ApolloClient<any>): Promise<ActionType[] | null>;
54
63
  /**
55
64
  * Find multiple Action records based on conditions.
56
65
  * @param props - Conditions to find records.
66
+ * @param globalClient - Apollo Client instance.
57
67
  * @returns An array of found Action records or null.
58
68
  */
59
- findMany(props: ActionType): Promise<ActionType[] | null>;
69
+ findMany(props: ActionType, globalClient?: ApolloClient<any>): Promise<ActionType[] | null>;
60
70
  };
61
71
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src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