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/Asset.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 Asset model.
|
@@ -71,9 +71,11 @@ export const Asset = {
|
|
71
71
|
/**
|
72
72
|
* Create a new Asset record.
|
73
73
|
* @param props - Properties for the new record.
|
74
|
+
* @param client - Apollo Client instance.
|
74
75
|
* @returns The created Asset or null.
|
75
76
|
*/
|
76
|
-
async create(props) {
|
77
|
+
async create(props, globalClient) {
|
78
|
+
const client = globalClient || importedClient;
|
77
79
|
const CREATE_ONE_ASSET = gql `
|
78
80
|
mutation createOneAsset($data: AssetCreateInput!) {
|
79
81
|
createOneAsset(data: $data) {
|
@@ -1315,9 +1317,11 @@ export const Asset = {
|
|
1315
1317
|
/**
|
1316
1318
|
* Create multiple Asset records.
|
1317
1319
|
* @param props - Array of Asset objects for the new records.
|
1320
|
+
* @param globalClient - Apollo Client instance.
|
1318
1321
|
* @returns The count of created records or null.
|
1319
1322
|
*/
|
1320
|
-
async createMany(props) {
|
1323
|
+
async createMany(props, globalClient) {
|
1324
|
+
const client = globalClient || importedClient;
|
1321
1325
|
const CREATE_MANY_ASSET = gql `
|
1322
1326
|
mutation createManyAsset($data: [AssetCreateManyInput!]!) {
|
1323
1327
|
createManyAsset(data: $data) {
|
@@ -1403,9 +1407,11 @@ export const Asset = {
|
|
1403
1407
|
/**
|
1404
1408
|
* Update a single Asset record.
|
1405
1409
|
* @param props - Properties to update.
|
1410
|
+
* @param globalClient - Apollo Client instance.
|
1406
1411
|
* @returns The updated Asset or null.
|
1407
1412
|
*/
|
1408
|
-
async update(props) {
|
1413
|
+
async update(props, globalClient) {
|
1414
|
+
const client = globalClient || importedClient;
|
1409
1415
|
const UPDATE_ONE_ASSET = gql `
|
1410
1416
|
mutation updateOneAsset($data: AssetUpdateInput!, $where: AssetWhereUniqueInput!) {
|
1411
1417
|
updateOneAsset(data: $data, where: $where) {
|
@@ -6257,9 +6263,11 @@ export const Asset = {
|
|
6257
6263
|
/**
|
6258
6264
|
* Upsert a single Asset record.
|
6259
6265
|
* @param props - Properties to update.
|
6266
|
+
* @param globalClient - Apollo Client instance.
|
6260
6267
|
* @returns The updated Asset or null.
|
6261
6268
|
*/
|
6262
|
-
async upsert(props) {
|
6269
|
+
async upsert(props, globalClient) {
|
6270
|
+
const client = globalClient || importedClient;
|
6263
6271
|
const UPSERT_ONE_ASSET = gql `
|
6264
6272
|
mutation upsertOneAsset($where: AssetWhereUniqueInput!, $create: AssetCreateInput!, $update: AssetUpdateInput!) {
|
6265
6273
|
upsertOneAsset(where: $where, create: $create, update: $update) {
|
@@ -12314,9 +12322,11 @@ export const Asset = {
|
|
12314
12322
|
/**
|
12315
12323
|
* Update multiple Asset records.
|
12316
12324
|
* @param props - Array of Asset objects for the updated records.
|
12325
|
+
* @param globalClient - Apollo Client instance.
|
12317
12326
|
* @returns The count of created records or null.
|
12318
12327
|
*/
|
12319
|
-
async updateMany(props) {
|
12328
|
+
async updateMany(props, globalClient) {
|
12329
|
+
const client = globalClient || importedClient;
|
12320
12330
|
const UPDATE_MANY_ASSET = gql `
|
12321
12331
|
mutation updateManyAsset($data: [AssetCreateManyInput!]!) {
|
12322
12332
|
updateManyAsset(data: $data) {
|
@@ -17168,9 +17178,11 @@ export const Asset = {
|
|
17168
17178
|
/**
|
17169
17179
|
* Delete a single Asset record.
|
17170
17180
|
* @param props - Properties to update.
|
17181
|
+
* @param globalClient - Apollo Client instance.
|
17171
17182
|
* @returns The deleted Asset or null.
|
17172
17183
|
*/
|
17173
|
-
async delete(props) {
|
17184
|
+
async delete(props, globalClient) {
|
17185
|
+
const client = globalClient || importedClient;
|
17174
17186
|
const DELETE_ONE_ASSET = gql `
|
17175
17187
|
mutation deleteOneAsset($where: AssetWhereUniqueInput!) {
|
17176
17188
|
deleteOneAsset(where: $where) {
|
@@ -17202,9 +17214,11 @@ export const Asset = {
|
|
17202
17214
|
/**
|
17203
17215
|
* Retrieve a single Asset record by ID.
|
17204
17216
|
* @param props - Properties to update.
|
17217
|
+
* @param globalClient - Apollo Client instance.
|
17205
17218
|
* @returns The retrieved Asset or null.
|
17206
17219
|
*/
|
17207
|
-
async get(props) {
|
17220
|
+
async get(props, globalClient) {
|
17221
|
+
const client = globalClient || importedClient;
|
17208
17222
|
const GET_ASSET = gql `
|
17209
17223
|
query getAsset($where: AssetWhereUniqueInput!) {
|
17210
17224
|
getAsset(where: $where) {
|
@@ -17237,9 +17251,11 @@ export const Asset = {
|
|
17237
17251
|
},
|
17238
17252
|
/**
|
17239
17253
|
* Retrieve all Assets records.
|
17254
|
+
* @param globalClient - Apollo Client instance.
|
17240
17255
|
* @returns An array of Asset records or null.
|
17241
17256
|
*/
|
17242
|
-
async getAll() {
|
17257
|
+
async getAll(globalClient) {
|
17258
|
+
const client = globalClient || importedClient;
|
17243
17259
|
const GET_ALL_ASSET = gql `
|
17244
17260
|
query getAllAsset {
|
17245
17261
|
assets {
|
@@ -17265,9 +17281,11 @@ export const Asset = {
|
|
17265
17281
|
/**
|
17266
17282
|
* Find multiple Asset records based on conditions.
|
17267
17283
|
* @param props - Conditions to find records.
|
17284
|
+
* @param globalClient - Apollo Client instance.
|
17268
17285
|
* @returns An array of found Asset records or null.
|
17269
17286
|
*/
|
17270
|
-
async findMany(props) {
|
17287
|
+
async findMany(props, globalClient) {
|
17288
|
+
const client = globalClient || importedClient;
|
17271
17289
|
const FIND_MANY_ASSET = gql `
|
17272
17290
|
query findManyAsset($where: AssetWhereInput!) {
|
17273
17291
|
assets(where: $where) {
|
@@ -1,61 +1,71 @@
|
|
1
1
|
import { Authenticator as AuthenticatorType } from './generated/typegraphql-prisma/models/Authenticator';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const Authenticator: {
|
3
4
|
/**
|
4
5
|
* Create a new Authenticator record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created Authenticator or null.
|
7
9
|
*/
|
8
|
-
create(props: AuthenticatorType): Promise<AuthenticatorType>;
|
10
|
+
create(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType>;
|
9
11
|
/**
|
10
12
|
* Create multiple Authenticator records.
|
11
13
|
* @param props - Array of Authenticator 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: AuthenticatorType[]): Promise<{
|
17
|
+
createMany(props: AuthenticatorType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single Authenticator record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated Authenticator or null.
|
21
25
|
*/
|
22
|
-
update(props: AuthenticatorType): Promise<AuthenticatorType>;
|
26
|
+
update(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single Authenticator record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated Authenticator or null.
|
27
32
|
*/
|
28
|
-
upsert(props: AuthenticatorType): Promise<AuthenticatorType>;
|
33
|
+
upsert(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType>;
|
29
34
|
/**
|
30
35
|
* Update multiple Authenticator records.
|
31
36
|
* @param props - Array of Authenticator 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: AuthenticatorType[]): Promise<{
|
40
|
+
updateMany(props: AuthenticatorType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single Authenticator record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted Authenticator or null.
|
41
48
|
*/
|
42
|
-
delete(props: AuthenticatorType): Promise<AuthenticatorType>;
|
49
|
+
delete(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single Authenticator record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved Authenticator or null.
|
47
55
|
*/
|
48
|
-
get(props: AuthenticatorType): Promise<AuthenticatorType | null>;
|
56
|
+
get(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all Authenticators records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of Authenticator records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<AuthenticatorType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<AuthenticatorType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple Authenticator 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 Authenticator records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: AuthenticatorType): Promise<AuthenticatorType[] | null>;
|
69
|
+
findMany(props: AuthenticatorType, globalClient?: ApolloClient<any>): Promise<AuthenticatorType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=Authenticator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../src/Authenticator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;
|
1
|
+
{"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../src/Authenticator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AA8L9D,eAAO,MAAM,aAAa;IAExB;;;;;OAKG;kBAEiB,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA0StG;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAoCjH;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAk/BpG;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmvCpG;;;;;OAKG;sBACqB,iBAAiB,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAq/BjH;;;;;OAKG;kBACiB,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAiCpG;;;;;OAKG;eACc,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAmCxG;;;;OAIG;0BACyB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAyBnF;;;;;OAKG;oBACmB,iBAAiB,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC;CAyChH,CAAC"}
|