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/Session.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 Session model.
|
@@ -76,9 +76,11 @@ export const Session = {
|
|
76
76
|
/**
|
77
77
|
* Create a new Session record.
|
78
78
|
* @param props - Properties for the new record.
|
79
|
+
* @param client - Apollo Client instance.
|
79
80
|
* @returns The created Session or null.
|
80
81
|
*/
|
81
|
-
async create(props) {
|
82
|
+
async create(props, globalClient) {
|
83
|
+
const client = globalClient || importedClient;
|
82
84
|
const CREATE_ONE_SESSION = gql `
|
83
85
|
mutation createOneSession($data: SessionCreateInput!) {
|
84
86
|
createOneSession(data: $data) {
|
@@ -374,9 +376,11 @@ export const Session = {
|
|
374
376
|
/**
|
375
377
|
* Create multiple Session records.
|
376
378
|
* @param props - Array of Session objects for the new records.
|
379
|
+
* @param globalClient - Apollo Client instance.
|
377
380
|
* @returns The count of created records or null.
|
378
381
|
*/
|
379
|
-
async createMany(props) {
|
382
|
+
async createMany(props, globalClient) {
|
383
|
+
const client = globalClient || importedClient;
|
380
384
|
const CREATE_MANY_SESSION = gql `
|
381
385
|
mutation createManySession($data: [SessionCreateManyInput!]!) {
|
382
386
|
createManySession(data: $data) {
|
@@ -410,9 +414,11 @@ export const Session = {
|
|
410
414
|
/**
|
411
415
|
* Update a single Session record.
|
412
416
|
* @param props - Properties to update.
|
417
|
+
* @param globalClient - Apollo Client instance.
|
413
418
|
* @returns The updated Session or null.
|
414
419
|
*/
|
415
|
-
async update(props) {
|
420
|
+
async update(props, globalClient) {
|
421
|
+
const client = globalClient || importedClient;
|
416
422
|
const UPDATE_ONE_SESSION = gql `
|
417
423
|
mutation updateOneSession($data: SessionUpdateInput!, $where: SessionWhereUniqueInput!) {
|
418
424
|
updateOneSession(data: $data, where: $where) {
|
@@ -1423,9 +1429,11 @@ export const Session = {
|
|
1423
1429
|
/**
|
1424
1430
|
* Upsert a single Session record.
|
1425
1431
|
* @param props - Properties to update.
|
1432
|
+
* @param globalClient - Apollo Client instance.
|
1426
1433
|
* @returns The updated Session or null.
|
1427
1434
|
*/
|
1428
|
-
async upsert(props) {
|
1435
|
+
async upsert(props, globalClient) {
|
1436
|
+
const client = globalClient || importedClient;
|
1429
1437
|
const UPSERT_ONE_SESSION = gql `
|
1430
1438
|
mutation upsertOneSession($where: SessionWhereUniqueInput!, $create: SessionCreateInput!, $update: SessionUpdateInput!) {
|
1431
1439
|
upsertOneSession(where: $where, create: $create, update: $update) {
|
@@ -2693,9 +2701,11 @@ export const Session = {
|
|
2693
2701
|
/**
|
2694
2702
|
* Update multiple Session records.
|
2695
2703
|
* @param props - Array of Session objects for the updated records.
|
2704
|
+
* @param globalClient - Apollo Client instance.
|
2696
2705
|
* @returns The count of created records or null.
|
2697
2706
|
*/
|
2698
|
-
async updateMany(props) {
|
2707
|
+
async updateMany(props, globalClient) {
|
2708
|
+
const client = globalClient || importedClient;
|
2699
2709
|
const UPDATE_MANY_SESSION = gql `
|
2700
2710
|
mutation updateManySession($data: [SessionCreateManyInput!]!) {
|
2701
2711
|
updateManySession(data: $data) {
|
@@ -3706,9 +3716,11 @@ export const Session = {
|
|
3706
3716
|
/**
|
3707
3717
|
* Delete a single Session record.
|
3708
3718
|
* @param props - Properties to update.
|
3719
|
+
* @param globalClient - Apollo Client instance.
|
3709
3720
|
* @returns The deleted Session or null.
|
3710
3721
|
*/
|
3711
|
-
async delete(props) {
|
3722
|
+
async delete(props, globalClient) {
|
3723
|
+
const client = globalClient || importedClient;
|
3712
3724
|
const DELETE_ONE_SESSION = gql `
|
3713
3725
|
mutation deleteOneSession($where: SessionWhereUniqueInput!) {
|
3714
3726
|
deleteOneSession(where: $where) {
|
@@ -3740,9 +3752,11 @@ export const Session = {
|
|
3740
3752
|
/**
|
3741
3753
|
* Retrieve a single Session record by ID.
|
3742
3754
|
* @param props - Properties to update.
|
3755
|
+
* @param globalClient - Apollo Client instance.
|
3743
3756
|
* @returns The retrieved Session or null.
|
3744
3757
|
*/
|
3745
|
-
async get(props) {
|
3758
|
+
async get(props, globalClient) {
|
3759
|
+
const client = globalClient || importedClient;
|
3746
3760
|
const GET_SESSION = gql `
|
3747
3761
|
query getSession($where: SessionWhereUniqueInput!) {
|
3748
3762
|
getSession(where: $where) {
|
@@ -3776,9 +3790,11 @@ export const Session = {
|
|
3776
3790
|
},
|
3777
3791
|
/**
|
3778
3792
|
* Retrieve all Sessions records.
|
3793
|
+
* @param globalClient - Apollo Client instance.
|
3779
3794
|
* @returns An array of Session records or null.
|
3780
3795
|
*/
|
3781
|
-
async getAll() {
|
3796
|
+
async getAll(globalClient) {
|
3797
|
+
const client = globalClient || importedClient;
|
3782
3798
|
const GET_ALL_SESSION = gql `
|
3783
3799
|
query getAllSession {
|
3784
3800
|
sessions {
|
@@ -3804,9 +3820,11 @@ export const Session = {
|
|
3804
3820
|
/**
|
3805
3821
|
* Find multiple Session records based on conditions.
|
3806
3822
|
* @param props - Conditions to find records.
|
3823
|
+
* @param globalClient - Apollo Client instance.
|
3807
3824
|
* @returns An array of found Session records or null.
|
3808
3825
|
*/
|
3809
|
-
async findMany(props) {
|
3826
|
+
async findMany(props, globalClient) {
|
3827
|
+
const client = globalClient || importedClient;
|
3810
3828
|
const FIND_MANY_SESSION = gql `
|
3811
3829
|
query findManySession($where: SessionWhereInput!) {
|
3812
3830
|
sessions(where: $where) {
|
package/server/StopLoss.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { StopLoss as StopLossType } from './generated/typegraphql-prisma/models/StopLoss';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const StopLoss: {
|
3
4
|
/**
|
4
5
|
* Create a new StopLoss record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created StopLoss or null.
|
7
9
|
*/
|
8
|
-
create(props: StopLossType): Promise<StopLossType>;
|
10
|
+
create(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType>;
|
9
11
|
/**
|
10
12
|
* Create multiple StopLoss records.
|
11
13
|
* @param props - Array of StopLoss 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: StopLossType[]): Promise<{
|
17
|
+
createMany(props: StopLossType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single StopLoss record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated StopLoss or null.
|
21
25
|
*/
|
22
|
-
update(props: StopLossType): Promise<StopLossType>;
|
26
|
+
update(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single StopLoss record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated StopLoss or null.
|
27
32
|
*/
|
28
|
-
upsert(props: StopLossType): Promise<StopLossType>;
|
33
|
+
upsert(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType>;
|
29
34
|
/**
|
30
35
|
* Update multiple StopLoss records.
|
31
36
|
* @param props - Array of StopLoss 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: StopLossType[]): Promise<{
|
40
|
+
updateMany(props: StopLossType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single StopLoss record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted StopLoss or null.
|
41
48
|
*/
|
42
|
-
delete(props: StopLossType): Promise<StopLossType>;
|
49
|
+
delete(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single StopLoss record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved StopLoss or null.
|
47
55
|
*/
|
48
|
-
get(props: StopLossType): Promise<StopLossType | null>;
|
56
|
+
get(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all StopLosses records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of StopLoss records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<StopLossType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<StopLossType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple StopLoss 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 StopLoss records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: StopLossType): Promise<StopLossType[] | null>;
|
69
|
+
findMany(props: StopLossType, globalClient?: ApolloClient<any>): Promise<StopLossType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=StopLoss.d.ts.map
|
package/server/StopLoss.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StopLoss.d.ts","sourceRoot":"","sources":["../../src/StopLoss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"StopLoss.d.ts","sourceRoot":"","sources":["../../src/StopLoss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAmB9D,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA0mB5F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAmC5G;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA09E1F;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA2hG1F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA69E5G;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAiC1F;;;;;OAKG;eACc,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAiC9F;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;IAyB9E;;;;;OAKG;oBACmB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC;CAyCtG,CAAC"}
|