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
package/server/Alert.mjs CHANGED
@@ -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 Alert model.
@@ -20,9 +20,11 @@ export const Alert = {
20
20
  /**
21
21
  * Create a new Alert record.
22
22
  * @param props - Properties for the new record.
23
+ * @param client - Apollo Client instance.
23
24
  * @returns The created Alert or null.
24
25
  */
25
- async create(props) {
26
+ async create(props, globalClient) {
27
+ const client = globalClient || importedClient;
26
28
  const CREATE_ONE_ALERT = gql `
27
29
  mutation createOneAlert($data: AlertCreateInput!) {
28
30
  createOneAlert(data: $data) {
@@ -651,9 +653,11 @@ export const Alert = {
651
653
  /**
652
654
  * Create multiple Alert records.
653
655
  * @param props - Array of Alert objects for the new records.
656
+ * @param globalClient - Apollo Client instance.
654
657
  * @returns The count of created records or null.
655
658
  */
656
- async createMany(props) {
659
+ async createMany(props, globalClient) {
660
+ const client = globalClient || importedClient;
657
661
  const CREATE_MANY_ALERT = gql `
658
662
  mutation createManyAlert($data: [AlertCreateManyInput!]!) {
659
663
  createManyAlert(data: $data) {
@@ -688,9 +692,11 @@ export const Alert = {
688
692
  /**
689
693
  * Update a single Alert record.
690
694
  * @param props - Properties to update.
695
+ * @param globalClient - Apollo Client instance.
691
696
  * @returns The updated Alert or null.
692
697
  */
693
- async update(props) {
698
+ async update(props, globalClient) {
699
+ const client = globalClient || importedClient;
694
700
  const UPDATE_ONE_ALERT = gql `
695
701
  mutation updateOneAlert($data: AlertUpdateInput!, $where: AlertWhereUniqueInput!) {
696
702
  updateOneAlert(data: $data, where: $where) {
@@ -3356,9 +3362,11 @@ export const Alert = {
3356
3362
  /**
3357
3363
  * Upsert a single Alert record.
3358
3364
  * @param props - Properties to update.
3365
+ * @param globalClient - Apollo Client instance.
3359
3366
  * @returns The updated Alert or null.
3360
3367
  */
3361
- async upsert(props) {
3368
+ async upsert(props, globalClient) {
3369
+ const client = globalClient || importedClient;
3362
3370
  const UPSERT_ONE_ALERT = gql `
3363
3371
  mutation upsertOneAlert($where: AlertWhereUniqueInput!, $create: AlertCreateInput!, $update: AlertUpdateInput!) {
3364
3372
  upsertOneAlert(where: $where, create: $create, update: $update) {
@@ -6614,9 +6622,11 @@ export const Alert = {
6614
6622
  /**
6615
6623
  * Update multiple Alert records.
6616
6624
  * @param props - Array of Alert objects for the updated records.
6625
+ * @param globalClient - Apollo Client instance.
6617
6626
  * @returns The count of created records or null.
6618
6627
  */
6619
- async updateMany(props) {
6628
+ async updateMany(props, globalClient) {
6629
+ const client = globalClient || importedClient;
6620
6630
  const UPDATE_MANY_ALERT = gql `
6621
6631
  mutation updateManyAlert($data: [AlertCreateManyInput!]!) {
6622
6632
  updateManyAlert(data: $data) {
@@ -9282,9 +9292,11 @@ export const Alert = {
9282
9292
  /**
9283
9293
  * Delete a single Alert record.
9284
9294
  * @param props - Properties to update.
9295
+ * @param globalClient - Apollo Client instance.
9285
9296
  * @returns The deleted Alert or null.
9286
9297
  */
9287
- async delete(props) {
9298
+ async delete(props, globalClient) {
9299
+ const client = globalClient || importedClient;
9288
9300
  const DELETE_ONE_ALERT = gql `
9289
9301
  mutation deleteOneAlert($where: AlertWhereUniqueInput!) {
9290
9302
  deleteOneAlert(where: $where) {
@@ -9316,9 +9328,11 @@ export const Alert = {
9316
9328
  /**
9317
9329
  * Retrieve a single Alert record by ID.
9318
9330
  * @param props - Properties to update.
9331
+ * @param globalClient - Apollo Client instance.
9319
9332
  * @returns The retrieved Alert or null.
9320
9333
  */
9321
- async get(props) {
9334
+ async get(props, globalClient) {
9335
+ const client = globalClient || importedClient;
9322
9336
  const GET_ALERT = gql `
9323
9337
  query getAlert($where: AlertWhereUniqueInput!) {
9324
9338
  getAlert(where: $where) {
@@ -9352,9 +9366,11 @@ export const Alert = {
9352
9366
  },
9353
9367
  /**
9354
9368
  * Retrieve all Alerts records.
9369
+ * @param globalClient - Apollo Client instance.
9355
9370
  * @returns An array of Alert records or null.
9356
9371
  */
9357
- async getAll() {
9372
+ async getAll(globalClient) {
9373
+ const client = globalClient || importedClient;
9358
9374
  const GET_ALL_ALERT = gql `
9359
9375
  query getAllAlert {
9360
9376
  alerts {
@@ -9380,9 +9396,11 @@ export const Alert = {
9380
9396
  /**
9381
9397
  * Find multiple Alert records based on conditions.
9382
9398
  * @param props - Conditions to find records.
9399
+ * @param globalClient - Apollo Client instance.
9383
9400
  * @returns An array of found Alert records or null.
9384
9401
  */
9385
- async findMany(props) {
9402
+ async findMany(props, globalClient) {
9403
+ const client = globalClient || importedClient;
9386
9404
  const FIND_MANY_ALERT = gql `
9387
9405
  query findManyAlert($where: AlertWhereInput!) {
9388
9406
  alerts(where: $where) {
@@ -1,61 +1,71 @@
1
1
  import { AlpacaAccount as AlpacaAccountType } from './generated/typegraphql-prisma/models/AlpacaAccount';
2
+ import { ApolloClient } from '@apollo/client';
2
3
  export declare const AlpacaAccount: {
3
4
  /**
4
5
  * Create a new AlpacaAccount record.
5
6
  * @param props - Properties for the new record.
7
+ * @param client - Apollo Client instance.
6
8
  * @returns The created AlpacaAccount or null.
7
9
  */
8
- create(props: AlpacaAccountType): Promise<AlpacaAccountType>;
10
+ create(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType>;
9
11
  /**
10
12
  * Create multiple AlpacaAccount records.
11
13
  * @param props - Array of AlpacaAccount 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: AlpacaAccountType[]): Promise<{
17
+ createMany(props: AlpacaAccountType[], globalClient?: ApolloClient<any>): Promise<{
15
18
  count: number;
16
19
  } | null>;
17
20
  /**
18
21
  * Update a single AlpacaAccount record.
19
22
  * @param props - Properties to update.
23
+ * @param globalClient - Apollo Client instance.
20
24
  * @returns The updated AlpacaAccount or null.
21
25
  */
22
- update(props: AlpacaAccountType): Promise<AlpacaAccountType>;
26
+ update(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType>;
23
27
  /**
24
28
  * Upsert a single AlpacaAccount record.
25
29
  * @param props - Properties to update.
30
+ * @param globalClient - Apollo Client instance.
26
31
  * @returns The updated AlpacaAccount or null.
27
32
  */
28
- upsert(props: AlpacaAccountType): Promise<AlpacaAccountType>;
33
+ upsert(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType>;
29
34
  /**
30
35
  * Update multiple AlpacaAccount records.
31
36
  * @param props - Array of AlpacaAccount 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: AlpacaAccountType[]): Promise<{
40
+ updateMany(props: AlpacaAccountType[], globalClient?: ApolloClient<any>): Promise<{
35
41
  count: number;
36
42
  } | null>;
37
43
  /**
38
44
  * Delete a single AlpacaAccount record.
39
45
  * @param props - Properties to update.
46
+ * @param globalClient - Apollo Client instance.
40
47
  * @returns The deleted AlpacaAccount or null.
41
48
  */
42
- delete(props: AlpacaAccountType): Promise<AlpacaAccountType>;
49
+ delete(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType>;
43
50
  /**
44
51
  * Retrieve a single AlpacaAccount record by ID.
45
52
  * @param props - Properties to update.
53
+ * @param globalClient - Apollo Client instance.
46
54
  * @returns The retrieved AlpacaAccount or null.
47
55
  */
48
- get(props: AlpacaAccountType): Promise<AlpacaAccountType | null>;
56
+ get(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType | null>;
49
57
  /**
50
58
  * Retrieve all AlpacaAccounts records.
59
+ * @param globalClient - Apollo Client instance.
51
60
  * @returns An array of AlpacaAccount records or null.
52
61
  */
53
- getAll(): Promise<AlpacaAccountType[] | null>;
62
+ getAll(globalClient?: ApolloClient<any>): Promise<AlpacaAccountType[] | null>;
54
63
  /**
55
64
  * Find multiple AlpacaAccount 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 AlpacaAccount records or null.
58
68
  */
59
- findMany(props: AlpacaAccountType): Promise<AlpacaAccountType[] | null>;
69
+ findMany(props: AlpacaAccountType, globalClient?: ApolloClient<any>): Promise<AlpacaAccountType[] | null>;
60
70
  };
61
71
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../src/AlpacaAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AA2avG,eAAO,MAAM,aAAa;IAExB;;;;OAIG;kBAEiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAorCpE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAwC/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAsqJlE;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmzLlE;;;;OAIG;sBACqB,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAyqJ/E;;;;OAIG;kBACiB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA+BlE;;;;OAIG;eACc,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAiCtE;;;OAGG;cACa,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAuBnD;;;;OAIG;oBACmB,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CAuC9E,CAAC"}
1
+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