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.
- package/Account.cjs +36 -18
- package/Account.d.ts +19 -9
- package/Action.cjs +36 -18
- package/Action.d.ts +19 -9
- package/Alert.cjs +36 -18
- package/Alert.d.ts +19 -9
- package/AlpacaAccount.cjs +36 -18
- package/AlpacaAccount.d.ts +19 -9
- package/Asset.cjs +36 -18
- package/Asset.d.ts +19 -9
- package/Authenticator.cjs +36 -18
- package/Authenticator.d.ts +19 -9
- package/Contract.cjs +36 -18
- package/Contract.d.ts +19 -9
- package/Customer.cjs +36 -18
- package/Customer.d.ts +19 -9
- package/Deliverable.cjs +36 -18
- package/Deliverable.d.ts +19 -9
- package/EconomicEvent.cjs +36 -18
- package/EconomicEvent.d.ts +19 -9
- package/MarketSentiment.cjs +36 -18
- package/MarketSentiment.d.ts +19 -9
- package/NewsArticle.cjs +36 -18
- package/NewsArticle.d.ts +19 -9
- package/NewsArticleAssetSentiment.cjs +36 -18
- package/NewsArticleAssetSentiment.d.ts +19 -9
- package/Order.cjs +36 -18
- package/Order.d.ts +19 -9
- package/Position.cjs +36 -18
- package/Position.d.ts +19 -9
- package/ScheduledOptionOrder.cjs +36 -18
- package/ScheduledOptionOrder.d.ts +19 -9
- package/Session.cjs +36 -18
- package/Session.d.ts +19 -9
- package/StopLoss.cjs +36 -18
- package/StopLoss.d.ts +19 -9
- package/TakeProfit.cjs +36 -18
- package/TakeProfit.d.ts +19 -9
- package/Trade.cjs +36 -18
- package/Trade.d.ts +19 -9
- package/User.cjs +36 -18
- package/User.d.ts +19 -9
- package/VerificationToken.cjs +36 -18
- package/VerificationToken.d.ts +19 -9
- package/client.cjs +0 -1
- package/index.d.ts +198 -198
- package/package.json +1 -1
- package/server/Account.d.ts +19 -9
- package/server/Account.d.ts.map +1 -1
- package/server/Account.js.map +1 -1
- package/server/Account.mjs +28 -10
- package/server/Action.d.ts +19 -9
- package/server/Action.d.ts.map +1 -1
- package/server/Action.js.map +1 -1
- package/server/Action.mjs +28 -10
- package/server/Alert.d.ts +19 -9
- package/server/Alert.d.ts.map +1 -1
- package/server/Alert.js.map +1 -1
- package/server/Alert.mjs +28 -10
- package/server/AlpacaAccount.d.ts +19 -9
- package/server/AlpacaAccount.d.ts.map +1 -1
- package/server/AlpacaAccount.js.map +1 -1
- package/server/AlpacaAccount.mjs +28 -10
- package/server/Asset.d.ts +19 -9
- package/server/Asset.d.ts.map +1 -1
- package/server/Asset.js.map +1 -1
- package/server/Asset.mjs +28 -10
- package/server/Authenticator.d.ts +19 -9
- package/server/Authenticator.d.ts.map +1 -1
- package/server/Authenticator.js.map +1 -1
- package/server/Authenticator.mjs +28 -10
- package/server/Contract.d.ts +19 -9
- package/server/Contract.d.ts.map +1 -1
- package/server/Contract.js.map +1 -1
- package/server/Contract.mjs +28 -10
- package/server/Customer.d.ts +19 -9
- package/server/Customer.d.ts.map +1 -1
- package/server/Customer.js.map +1 -1
- package/server/Customer.mjs +28 -10
- package/server/Deliverable.d.ts +19 -9
- package/server/Deliverable.d.ts.map +1 -1
- package/server/Deliverable.js.map +1 -1
- package/server/Deliverable.mjs +28 -10
- package/server/EconomicEvent.d.ts +19 -9
- package/server/EconomicEvent.d.ts.map +1 -1
- package/server/EconomicEvent.js.map +1 -1
- package/server/EconomicEvent.mjs +28 -10
- package/server/MarketSentiment.d.ts +19 -9
- package/server/MarketSentiment.d.ts.map +1 -1
- package/server/MarketSentiment.js.map +1 -1
- package/server/MarketSentiment.mjs +28 -10
- package/server/NewsArticle.d.ts +19 -9
- package/server/NewsArticle.d.ts.map +1 -1
- package/server/NewsArticle.js.map +1 -1
- package/server/NewsArticle.mjs +28 -10
- package/server/NewsArticleAssetSentiment.d.ts +19 -9
- package/server/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/server/NewsArticleAssetSentiment.js.map +1 -1
- package/server/NewsArticleAssetSentiment.mjs +28 -10
- package/server/Order.d.ts +19 -9
- package/server/Order.d.ts.map +1 -1
- package/server/Order.js.map +1 -1
- package/server/Order.mjs +28 -10
- package/server/Position.d.ts +19 -9
- package/server/Position.d.ts.map +1 -1
- package/server/Position.js.map +1 -1
- package/server/Position.mjs +28 -10
- package/server/ScheduledOptionOrder.d.ts +19 -9
- package/server/ScheduledOptionOrder.d.ts.map +1 -1
- package/server/ScheduledOptionOrder.js.map +1 -1
- package/server/ScheduledOptionOrder.mjs +28 -10
- package/server/Session.d.ts +19 -9
- package/server/Session.d.ts.map +1 -1
- package/server/Session.js.map +1 -1
- package/server/Session.mjs +28 -10
- package/server/StopLoss.d.ts +19 -9
- package/server/StopLoss.d.ts.map +1 -1
- package/server/StopLoss.js.map +1 -1
- package/server/StopLoss.mjs +28 -10
- package/server/TakeProfit.d.ts +19 -9
- package/server/TakeProfit.d.ts.map +1 -1
- package/server/TakeProfit.js.map +1 -1
- package/server/TakeProfit.mjs +28 -10
- package/server/Trade.d.ts +19 -9
- package/server/Trade.d.ts.map +1 -1
- package/server/Trade.js.map +1 -1
- package/server/Trade.mjs +28 -10
- package/server/User.d.ts +19 -9
- package/server/User.d.ts.map +1 -1
- package/server/User.js.map +1 -1
- package/server/User.mjs +28 -10
- package/server/VerificationToken.d.ts +19 -9
- package/server/VerificationToken.d.ts.map +1 -1
- package/server/VerificationToken.js.map +1 -1
- package/server/VerificationToken.mjs +28 -10
- package/server/client.d.ts.map +1 -1
- package/server/client.js.map +1 -1
- package/server/client.mjs +0 -1
- package/server/index.d.ts +198 -198
package/server/Action.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 Action model.
|
@@ -130,9 +130,11 @@ export const Action = {
|
|
130
130
|
/**
|
131
131
|
* Create a new Action record.
|
132
132
|
* @param props - Properties for the new record.
|
133
|
+
* @param client - Apollo Client instance.
|
133
134
|
* @returns The created Action or null.
|
134
135
|
*/
|
135
|
-
async create(props) {
|
136
|
+
async create(props, globalClient) {
|
137
|
+
const client = globalClient || importedClient;
|
136
138
|
const CREATE_ONE_ACTION = gql `
|
137
139
|
mutation createOneAction($data: ActionCreateInput!) {
|
138
140
|
createOneAction(data: $data) {
|
@@ -1110,9 +1112,11 @@ export const Action = {
|
|
1110
1112
|
/**
|
1111
1113
|
* Create multiple Action records.
|
1112
1114
|
* @param props - Array of Action objects for the new records.
|
1115
|
+
* @param globalClient - Apollo Client instance.
|
1113
1116
|
* @returns The count of created records or null.
|
1114
1117
|
*/
|
1115
|
-
async createMany(props) {
|
1118
|
+
async createMany(props, globalClient) {
|
1119
|
+
const client = globalClient || importedClient;
|
1116
1120
|
const CREATE_MANY_ACTION = gql `
|
1117
1121
|
mutation createManyAction($data: [ActionCreateManyInput!]!) {
|
1118
1122
|
createManyAction(data: $data) {
|
@@ -1149,9 +1153,11 @@ export const Action = {
|
|
1149
1153
|
/**
|
1150
1154
|
* Update a single Action record.
|
1151
1155
|
* @param props - Properties to update.
|
1156
|
+
* @param globalClient - Apollo Client instance.
|
1152
1157
|
* @returns The updated Action or null.
|
1153
1158
|
*/
|
1154
|
-
async update(props) {
|
1159
|
+
async update(props, globalClient) {
|
1160
|
+
const client = globalClient || importedClient;
|
1155
1161
|
const UPDATE_ONE_ACTION = gql `
|
1156
1162
|
mutation updateOneAction($data: ActionUpdateInput!, $where: ActionWhereUniqueInput!) {
|
1157
1163
|
updateOneAction(data: $data, where: $where) {
|
@@ -5224,9 +5230,11 @@ export const Action = {
|
|
5224
5230
|
/**
|
5225
5231
|
* Upsert a single Action record.
|
5226
5232
|
* @param props - Properties to update.
|
5233
|
+
* @param globalClient - Apollo Client instance.
|
5227
5234
|
* @returns The updated Action or null.
|
5228
5235
|
*/
|
5229
|
-
async upsert(props) {
|
5236
|
+
async upsert(props, globalClient) {
|
5237
|
+
const client = globalClient || importedClient;
|
5230
5238
|
const UPSERT_ONE_ACTION = gql `
|
5231
5239
|
mutation upsertOneAction($where: ActionWhereUniqueInput!, $create: ActionCreateInput!, $update: ActionUpdateInput!) {
|
5232
5240
|
upsertOneAction(where: $where, create: $create, update: $update) {
|
@@ -10244,9 +10252,11 @@ export const Action = {
|
|
10244
10252
|
/**
|
10245
10253
|
* Update multiple Action records.
|
10246
10254
|
* @param props - Array of Action objects for the updated records.
|
10255
|
+
* @param globalClient - Apollo Client instance.
|
10247
10256
|
* @returns The count of created records or null.
|
10248
10257
|
*/
|
10249
|
-
async updateMany(props) {
|
10258
|
+
async updateMany(props, globalClient) {
|
10259
|
+
const client = globalClient || importedClient;
|
10250
10260
|
const UPDATE_MANY_ACTION = gql `
|
10251
10261
|
mutation updateManyAction($data: [ActionCreateManyInput!]!) {
|
10252
10262
|
updateManyAction(data: $data) {
|
@@ -14319,9 +14329,11 @@ export const Action = {
|
|
14319
14329
|
/**
|
14320
14330
|
* Delete a single Action record.
|
14321
14331
|
* @param props - Properties to update.
|
14332
|
+
* @param globalClient - Apollo Client instance.
|
14322
14333
|
* @returns The deleted Action or null.
|
14323
14334
|
*/
|
14324
|
-
async delete(props) {
|
14335
|
+
async delete(props, globalClient) {
|
14336
|
+
const client = globalClient || importedClient;
|
14325
14337
|
const DELETE_ONE_ACTION = gql `
|
14326
14338
|
mutation deleteOneAction($where: ActionWhereUniqueInput!) {
|
14327
14339
|
deleteOneAction(where: $where) {
|
@@ -14353,9 +14365,11 @@ export const Action = {
|
|
14353
14365
|
/**
|
14354
14366
|
* Retrieve a single Action record by ID.
|
14355
14367
|
* @param props - Properties to update.
|
14368
|
+
* @param globalClient - Apollo Client instance.
|
14356
14369
|
* @returns The retrieved Action or null.
|
14357
14370
|
*/
|
14358
|
-
async get(props) {
|
14371
|
+
async get(props, globalClient) {
|
14372
|
+
const client = globalClient || importedClient;
|
14359
14373
|
const GET_ACTION = gql `
|
14360
14374
|
query getAction($where: ActionWhereUniqueInput!) {
|
14361
14375
|
getAction(where: $where) {
|
@@ -14389,9 +14403,11 @@ export const Action = {
|
|
14389
14403
|
},
|
14390
14404
|
/**
|
14391
14405
|
* Retrieve all Actions records.
|
14406
|
+
* @param globalClient - Apollo Client instance.
|
14392
14407
|
* @returns An array of Action records or null.
|
14393
14408
|
*/
|
14394
|
-
async getAll() {
|
14409
|
+
async getAll(globalClient) {
|
14410
|
+
const client = globalClient || importedClient;
|
14395
14411
|
const GET_ALL_ACTION = gql `
|
14396
14412
|
query getAllAction {
|
14397
14413
|
actions {
|
@@ -14417,9 +14433,11 @@ export const Action = {
|
|
14417
14433
|
/**
|
14418
14434
|
* Find multiple Action records based on conditions.
|
14419
14435
|
* @param props - Conditions to find records.
|
14436
|
+
* @param globalClient - Apollo Client instance.
|
14420
14437
|
* @returns An array of found Action records or null.
|
14421
14438
|
*/
|
14422
|
-
async findMany(props) {
|
14439
|
+
async findMany(props, globalClient) {
|
14440
|
+
const client = globalClient || importedClient;
|
14423
14441
|
const FIND_MANY_ACTION = gql `
|
14424
14442
|
query findManyAction($where: ActionWhereInput!) {
|
14425
14443
|
actions(where: $where) {
|
package/server/Alert.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { Alert as AlertType } from './generated/typegraphql-prisma/models/Alert';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const Alert: {
|
3
4
|
/**
|
4
5
|
* Create a new Alert record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created Alert or null.
|
7
9
|
*/
|
8
|
-
create(props: AlertType): Promise<AlertType>;
|
10
|
+
create(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType>;
|
9
11
|
/**
|
10
12
|
* Create multiple Alert records.
|
11
13
|
* @param props - Array of Alert 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: AlertType[]): Promise<{
|
17
|
+
createMany(props: AlertType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single Alert record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated Alert or null.
|
21
25
|
*/
|
22
|
-
update(props: AlertType): Promise<AlertType>;
|
26
|
+
update(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single Alert record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated Alert or null.
|
27
32
|
*/
|
28
|
-
upsert(props: AlertType): Promise<AlertType>;
|
33
|
+
upsert(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType>;
|
29
34
|
/**
|
30
35
|
* Update multiple Alert records.
|
31
36
|
* @param props - Array of Alert 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: AlertType[]): Promise<{
|
40
|
+
updateMany(props: AlertType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single Alert record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted Alert or null.
|
41
48
|
*/
|
42
|
-
delete(props: AlertType): Promise<AlertType>;
|
49
|
+
delete(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single Alert record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved Alert or null.
|
47
55
|
*/
|
48
|
-
get(props: AlertType): Promise<AlertType | null>;
|
56
|
+
get(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all Alerts records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of Alert records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<AlertType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<AlertType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple Alert 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 Alert records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: AlertType): Promise<AlertType[] | null>;
|
69
|
+
findMany(props: AlertType, globalClient?: ApolloClient<any>): Promise<AlertType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=Alert.d.ts.map
|
package/server/Alert.d.ts.map
CHANGED
@@ -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;
|
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,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAoB9D,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;kBAEiB,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAunBtF;;;;;OAKG;sBACqB,SAAS,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAoCzG;;;;;OAKG;kBACiB,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IA2mFpF;;;;;OAKG;kBACiB,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAyrGpF;;;;;OAKG;sBACqB,SAAS,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA8mFzG;;;;;OAKG;kBACiB,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAiCpF;;;;;OAKG;eACc,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAmCxF;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;IAyB3E;;;;;OAKG;oBACmB,SAAS,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;CAyChG,CAAC"}
|