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/Authenticator.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 Authenticator model.
|
@@ -190,9 +190,11 @@ export const Authenticator = {
|
|
190
190
|
/**
|
191
191
|
* Create a new Authenticator record.
|
192
192
|
* @param props - Properties for the new record.
|
193
|
+
* @param client - Apollo Client instance.
|
193
194
|
* @returns The created Authenticator or null.
|
194
195
|
*/
|
195
|
-
async create(props) {
|
196
|
+
async create(props, globalClient) {
|
197
|
+
const client = globalClient || importedClient;
|
196
198
|
const CREATE_ONE_AUTHENTICATOR = gql `
|
197
199
|
mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
|
198
200
|
createOneAuthenticator(data: $data) {
|
@@ -488,9 +490,11 @@ export const Authenticator = {
|
|
488
490
|
/**
|
489
491
|
* Create multiple Authenticator records.
|
490
492
|
* @param props - Array of Authenticator objects for the new records.
|
493
|
+
* @param globalClient - Apollo Client instance.
|
491
494
|
* @returns The count of created records or null.
|
492
495
|
*/
|
493
|
-
async createMany(props) {
|
496
|
+
async createMany(props, globalClient) {
|
497
|
+
const client = globalClient || importedClient;
|
494
498
|
const CREATE_MANY_AUTHENTICATOR = gql `
|
495
499
|
mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
496
500
|
createManyAuthenticator(data: $data) {
|
@@ -525,9 +529,11 @@ export const Authenticator = {
|
|
525
529
|
/**
|
526
530
|
* Update a single Authenticator record.
|
527
531
|
* @param props - Properties to update.
|
532
|
+
* @param globalClient - Apollo Client instance.
|
528
533
|
* @returns The updated Authenticator or null.
|
529
534
|
*/
|
530
|
-
async update(props) {
|
535
|
+
async update(props, globalClient) {
|
536
|
+
const client = globalClient || importedClient;
|
531
537
|
const UPDATE_ONE_AUTHENTICATOR = gql `
|
532
538
|
mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
|
533
539
|
updateOneAuthenticator(data: $data, where: $where) {
|
@@ -1536,9 +1542,11 @@ export const Authenticator = {
|
|
1536
1542
|
/**
|
1537
1543
|
* Upsert a single Authenticator record.
|
1538
1544
|
* @param props - Properties to update.
|
1545
|
+
* @param globalClient - Apollo Client instance.
|
1539
1546
|
* @returns The updated Authenticator or null.
|
1540
1547
|
*/
|
1541
|
-
async upsert(props) {
|
1548
|
+
async upsert(props, globalClient) {
|
1549
|
+
const client = globalClient || importedClient;
|
1542
1550
|
const UPSERT_ONE_AUTHENTICATOR = gql `
|
1543
1551
|
mutation upsertOneAuthenticator($where: AuthenticatorWhereUniqueInput!, $create: AuthenticatorCreateInput!, $update: AuthenticatorUpdateInput!) {
|
1544
1552
|
upsertOneAuthenticator(where: $where, create: $create, update: $update) {
|
@@ -2804,9 +2812,11 @@ export const Authenticator = {
|
|
2804
2812
|
/**
|
2805
2813
|
* Update multiple Authenticator records.
|
2806
2814
|
* @param props - Array of Authenticator objects for the updated records.
|
2815
|
+
* @param globalClient - Apollo Client instance.
|
2807
2816
|
* @returns The count of created records or null.
|
2808
2817
|
*/
|
2809
|
-
async updateMany(props) {
|
2818
|
+
async updateMany(props, globalClient) {
|
2819
|
+
const client = globalClient || importedClient;
|
2810
2820
|
const UPDATE_MANY_AUTHENTICATOR = gql `
|
2811
2821
|
mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
2812
2822
|
updateManyAuthenticator(data: $data) {
|
@@ -3815,9 +3825,11 @@ export const Authenticator = {
|
|
3815
3825
|
/**
|
3816
3826
|
* Delete a single Authenticator record.
|
3817
3827
|
* @param props - Properties to update.
|
3828
|
+
* @param globalClient - Apollo Client instance.
|
3818
3829
|
* @returns The deleted Authenticator or null.
|
3819
3830
|
*/
|
3820
|
-
async delete(props) {
|
3831
|
+
async delete(props, globalClient) {
|
3832
|
+
const client = globalClient || importedClient;
|
3821
3833
|
const DELETE_ONE_AUTHENTICATOR = gql `
|
3822
3834
|
mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
3823
3835
|
deleteOneAuthenticator(where: $where) {
|
@@ -3849,9 +3861,11 @@ export const Authenticator = {
|
|
3849
3861
|
/**
|
3850
3862
|
* Retrieve a single Authenticator record by ID.
|
3851
3863
|
* @param props - Properties to update.
|
3864
|
+
* @param globalClient - Apollo Client instance.
|
3852
3865
|
* @returns The retrieved Authenticator or null.
|
3853
3866
|
*/
|
3854
|
-
async get(props) {
|
3867
|
+
async get(props, globalClient) {
|
3868
|
+
const client = globalClient || importedClient;
|
3855
3869
|
const GET_AUTHENTICATOR = gql `
|
3856
3870
|
query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
3857
3871
|
getAuthenticator(where: $where) {
|
@@ -3885,9 +3899,11 @@ export const Authenticator = {
|
|
3885
3899
|
},
|
3886
3900
|
/**
|
3887
3901
|
* Retrieve all Authenticators records.
|
3902
|
+
* @param globalClient - Apollo Client instance.
|
3888
3903
|
* @returns An array of Authenticator records or null.
|
3889
3904
|
*/
|
3890
|
-
async getAll() {
|
3905
|
+
async getAll(globalClient) {
|
3906
|
+
const client = globalClient || importedClient;
|
3891
3907
|
const GET_ALL_AUTHENTICATOR = gql `
|
3892
3908
|
query getAllAuthenticator {
|
3893
3909
|
authenticators {
|
@@ -3913,9 +3929,11 @@ export const Authenticator = {
|
|
3913
3929
|
/**
|
3914
3930
|
* Find multiple Authenticator records based on conditions.
|
3915
3931
|
* @param props - Conditions to find records.
|
3932
|
+
* @param globalClient - Apollo Client instance.
|
3916
3933
|
* @returns An array of found Authenticator records or null.
|
3917
3934
|
*/
|
3918
|
-
async findMany(props) {
|
3935
|
+
async findMany(props, globalClient) {
|
3936
|
+
const client = globalClient || importedClient;
|
3919
3937
|
const FIND_MANY_AUTHENTICATOR = gql `
|
3920
3938
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
3921
3939
|
authenticators(where: $where) {
|
package/server/Contract.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { Contract as ContractType } from './generated/typegraphql-prisma/models/Contract';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const Contract: {
|
3
4
|
/**
|
4
5
|
* Create a new Contract record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created Contract or null.
|
7
9
|
*/
|
8
|
-
create(props: ContractType): Promise<ContractType>;
|
10
|
+
create(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType>;
|
9
11
|
/**
|
10
12
|
* Create multiple Contract records.
|
11
13
|
* @param props - Array of Contract 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: ContractType[]): Promise<{
|
17
|
+
createMany(props: ContractType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single Contract record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated Contract or null.
|
21
25
|
*/
|
22
|
-
update(props: ContractType): Promise<ContractType>;
|
26
|
+
update(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single Contract record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated Contract or null.
|
27
32
|
*/
|
28
|
-
upsert(props: ContractType): Promise<ContractType>;
|
33
|
+
upsert(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType>;
|
29
34
|
/**
|
30
35
|
* Update multiple Contract records.
|
31
36
|
* @param props - Array of Contract 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: ContractType[]): Promise<{
|
40
|
+
updateMany(props: ContractType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single Contract record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted Contract or null.
|
41
48
|
*/
|
42
|
-
delete(props: ContractType): Promise<ContractType>;
|
49
|
+
delete(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single Contract record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved Contract or null.
|
47
55
|
*/
|
48
|
-
get(props: ContractType): Promise<ContractType | null>;
|
56
|
+
get(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all Contracts records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of Contract records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<ContractType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<ContractType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple Contract 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 Contract records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: ContractType): Promise<ContractType[] | null>;
|
69
|
+
findMany(props: ContractType, globalClient?: ApolloClient<any>): Promise<ContractType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=Contract.d.ts.map
|
package/server/Contract.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../src/Contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"Contract.d.ts","sourceRoot":"","sources":["../../src/Contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AAyO9D,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAu8B5F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAqD5G;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAynH1F;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAuhJ1F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4nH5G;;;;;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;IAwC9F;;;;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;CAkDtG,CAAC"}
|