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 NewsArticle model.
@@ -98,9 +98,11 @@ export const NewsArticle = {
98
98
  /**
99
99
  * Create a new NewsArticle record.
100
100
  * @param props - Properties for the new record.
101
+ * @param client - Apollo Client instance.
101
102
  * @returns The created NewsArticle or null.
102
103
  */
103
- async create(props) {
104
+ async create(props, globalClient) {
105
+ const client = globalClient || importedClient;
104
106
  const CREATE_ONE_NEWSARTICLE = gql `
105
107
  mutation createOneNewsArticle($data: NewsArticleCreateInput!) {
106
108
  createOneNewsArticle(data: $data) {
@@ -385,9 +387,11 @@ export const NewsArticle = {
385
387
  /**
386
388
  * Create multiple NewsArticle records.
387
389
  * @param props - Array of NewsArticle objects for the new records.
390
+ * @param globalClient - Apollo Client instance.
388
391
  * @returns The count of created records or null.
389
392
  */
390
- async createMany(props) {
393
+ async createMany(props, globalClient) {
394
+ const client = globalClient || importedClient;
391
395
  const CREATE_MANY_NEWSARTICLE = gql `
392
396
  mutation createManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
393
397
  createManyNewsArticle(data: $data) {
@@ -431,9 +435,11 @@ export const NewsArticle = {
431
435
  /**
432
436
  * Update a single NewsArticle record.
433
437
  * @param props - Properties to update.
438
+ * @param globalClient - Apollo Client instance.
434
439
  * @returns The updated NewsArticle or null.
435
440
  */
436
- async update(props) {
441
+ async update(props, globalClient) {
442
+ const client = globalClient || importedClient;
437
443
  const UPDATE_ONE_NEWSARTICLE = gql `
438
444
  mutation updateOneNewsArticle($data: NewsArticleUpdateInput!, $where: NewsArticleWhereUniqueInput!) {
439
445
  updateOneNewsArticle(data: $data, where: $where) {
@@ -1557,9 +1563,11 @@ export const NewsArticle = {
1557
1563
  /**
1558
1564
  * Upsert a single NewsArticle record.
1559
1565
  * @param props - Properties to update.
1566
+ * @param globalClient - Apollo Client instance.
1560
1567
  * @returns The updated NewsArticle or null.
1561
1568
  */
1562
- async upsert(props) {
1569
+ async upsert(props, globalClient) {
1570
+ const client = globalClient || importedClient;
1563
1571
  const UPSERT_ONE_NEWSARTICLE = gql `
1564
1572
  mutation upsertOneNewsArticle($where: NewsArticleWhereUniqueInput!, $create: NewsArticleCreateInput!, $update: NewsArticleUpdateInput!) {
1565
1573
  upsertOneNewsArticle(where: $where, create: $create, update: $update) {
@@ -2929,9 +2937,11 @@ export const NewsArticle = {
2929
2937
  /**
2930
2938
  * Update multiple NewsArticle records.
2931
2939
  * @param props - Array of NewsArticle objects for the updated records.
2940
+ * @param globalClient - Apollo Client instance.
2932
2941
  * @returns The count of created records or null.
2933
2942
  */
2934
- async updateMany(props) {
2943
+ async updateMany(props, globalClient) {
2944
+ const client = globalClient || importedClient;
2935
2945
  const UPDATE_MANY_NEWSARTICLE = gql `
2936
2946
  mutation updateManyNewsArticle($data: [NewsArticleCreateManyInput!]!) {
2937
2947
  updateManyNewsArticle(data: $data) {
@@ -4055,9 +4065,11 @@ export const NewsArticle = {
4055
4065
  /**
4056
4066
  * Delete a single NewsArticle record.
4057
4067
  * @param props - Properties to update.
4068
+ * @param globalClient - Apollo Client instance.
4058
4069
  * @returns The deleted NewsArticle or null.
4059
4070
  */
4060
- async delete(props) {
4071
+ async delete(props, globalClient) {
4072
+ const client = globalClient || importedClient;
4061
4073
  const DELETE_ONE_NEWSARTICLE = gql `
4062
4074
  mutation deleteOneNewsArticle($where: NewsArticleWhereUniqueInput!) {
4063
4075
  deleteOneNewsArticle(where: $where) {
@@ -4089,9 +4101,11 @@ export const NewsArticle = {
4089
4101
  /**
4090
4102
  * Retrieve a single NewsArticle record by ID.
4091
4103
  * @param props - Properties to update.
4104
+ * @param globalClient - Apollo Client instance.
4092
4105
  * @returns The retrieved NewsArticle or null.
4093
4106
  */
4094
- async get(props) {
4107
+ async get(props, globalClient) {
4108
+ const client = globalClient || importedClient;
4095
4109
  const GET_NEWSARTICLE = gql `
4096
4110
  query getNewsArticle($where: NewsArticleWhereUniqueInput!) {
4097
4111
  getNewsArticle(where: $where) {
@@ -4126,9 +4140,11 @@ export const NewsArticle = {
4126
4140
  },
4127
4141
  /**
4128
4142
  * Retrieve all NewsArticles records.
4143
+ * @param globalClient - Apollo Client instance.
4129
4144
  * @returns An array of NewsArticle records or null.
4130
4145
  */
4131
- async getAll() {
4146
+ async getAll(globalClient) {
4147
+ const client = globalClient || importedClient;
4132
4148
  const GET_ALL_NEWSARTICLE = gql `
4133
4149
  query getAllNewsArticle {
4134
4150
  newsArticles {
@@ -4154,9 +4170,11 @@ export const NewsArticle = {
4154
4170
  /**
4155
4171
  * Find multiple NewsArticle records based on conditions.
4156
4172
  * @param props - Conditions to find records.
4173
+ * @param globalClient - Apollo Client instance.
4157
4174
  * @returns An array of found NewsArticle records or null.
4158
4175
  */
4159
- async findMany(props) {
4176
+ async findMany(props, globalClient) {
4177
+ const client = globalClient || importedClient;
4160
4178
  const FIND_MANY_NEWSARTICLE = gql `
4161
4179
  query findManyNewsArticle($where: NewsArticleWhereInput!) {
4162
4180
  newsArticles(where: $where) {
@@ -1,61 +1,71 @@
1
1
  import { NewsArticleAssetSentiment as NewsArticleAssetSentimentType } from './generated/typegraphql-prisma/models/NewsArticleAssetSentiment';
2
+ import { ApolloClient } from '@apollo/client';
2
3
  export declare const NewsArticleAssetSentiment: {
3
4
  /**
4
5
  * Create a new NewsArticleAssetSentiment record.
5
6
  * @param props - Properties for the new record.
7
+ * @param client - Apollo Client instance.
6
8
  * @returns The created NewsArticleAssetSentiment or null.
7
9
  */
8
- create(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
10
+ create(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
9
11
  /**
10
12
  * Create multiple NewsArticleAssetSentiment records.
11
13
  * @param props - Array of NewsArticleAssetSentiment 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: NewsArticleAssetSentimentType[]): Promise<{
17
+ createMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClient<any>): Promise<{
15
18
  count: number;
16
19
  } | null>;
17
20
  /**
18
21
  * Update a single NewsArticleAssetSentiment record.
19
22
  * @param props - Properties to update.
23
+ * @param globalClient - Apollo Client instance.
20
24
  * @returns The updated NewsArticleAssetSentiment or null.
21
25
  */
22
- update(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
26
+ update(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
23
27
  /**
24
28
  * Upsert a single NewsArticleAssetSentiment record.
25
29
  * @param props - Properties to update.
30
+ * @param globalClient - Apollo Client instance.
26
31
  * @returns The updated NewsArticleAssetSentiment or null.
27
32
  */
28
- upsert(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
33
+ upsert(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
29
34
  /**
30
35
  * Update multiple NewsArticleAssetSentiment records.
31
36
  * @param props - Array of NewsArticleAssetSentiment 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: NewsArticleAssetSentimentType[]): Promise<{
40
+ updateMany(props: NewsArticleAssetSentimentType[], globalClient?: ApolloClient<any>): Promise<{
35
41
  count: number;
36
42
  } | null>;
37
43
  /**
38
44
  * Delete a single NewsArticleAssetSentiment record.
39
45
  * @param props - Properties to update.
46
+ * @param globalClient - Apollo Client instance.
40
47
  * @returns The deleted NewsArticleAssetSentiment or null.
41
48
  */
42
- delete(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType>;
49
+ delete(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType>;
43
50
  /**
44
51
  * Retrieve a single NewsArticleAssetSentiment record by ID.
45
52
  * @param props - Properties to update.
53
+ * @param globalClient - Apollo Client instance.
46
54
  * @returns The retrieved NewsArticleAssetSentiment or null.
47
55
  */
48
- get(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType | null>;
56
+ get(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType | null>;
49
57
  /**
50
58
  * Retrieve all NewsArticleAssetSentiments records.
59
+ * @param globalClient - Apollo Client instance.
51
60
  * @returns An array of NewsArticleAssetSentiment records or null.
52
61
  */
53
- getAll(): Promise<NewsArticleAssetSentimentType[] | null>;
62
+ getAll(globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType[] | null>;
54
63
  /**
55
64
  * Find multiple NewsArticleAssetSentiment 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 NewsArticleAssetSentiment records or null.
58
68
  */
59
- findMany(props: NewsArticleAssetSentimentType): Promise<NewsArticleAssetSentimentType[] | null>;
69
+ findMany(props: NewsArticleAssetSentimentType, globalClient?: ApolloClient<any>): Promise<NewsArticleAssetSentimentType[] | null>;
60
70
  };
61
71
  //# sourceMappingURL=NewsArticleAssetSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticleAssetSentiment.d.ts","sourceRoot":"","sources":["../../src/NewsArticleAssetSentiment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,iEAAiE,CAAC;AAmG3I,eAAO,MAAM,yBAAyB;IAEpC;;;;OAIG;kBAEiB,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,CAAC;IA6iB5F;;;;OAIG;sBACqB,6BAA6B,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,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