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/Contract.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 Contract model.
|
@@ -233,9 +233,11 @@ export const Contract = {
|
|
233
233
|
/**
|
234
234
|
* Create a new Contract record.
|
235
235
|
* @param props - Properties for the new record.
|
236
|
+
* @param client - Apollo Client instance.
|
236
237
|
* @returns The created Contract or null.
|
237
238
|
*/
|
238
|
-
async create(props) {
|
239
|
+
async create(props, globalClient) {
|
240
|
+
const client = globalClient || importedClient;
|
239
241
|
const CREATE_ONE_CONTRACT = gql `
|
240
242
|
mutation createOneContract($data: ContractCreateInput!) {
|
241
243
|
createOneContract(data: $data) {
|
@@ -1200,9 +1202,11 @@ export const Contract = {
|
|
1200
1202
|
/**
|
1201
1203
|
* Create multiple Contract records.
|
1202
1204
|
* @param props - Array of Contract objects for the new records.
|
1205
|
+
* @param globalClient - Apollo Client instance.
|
1203
1206
|
* @returns The count of created records or null.
|
1204
1207
|
*/
|
1205
|
-
async createMany(props) {
|
1208
|
+
async createMany(props, globalClient) {
|
1209
|
+
const client = globalClient || importedClient;
|
1206
1210
|
const CREATE_MANY_CONTRACT = gql `
|
1207
1211
|
mutation createManyContract($data: [ContractCreateManyInput!]!) {
|
1208
1212
|
createManyContract(data: $data) {
|
@@ -1254,9 +1258,11 @@ export const Contract = {
|
|
1254
1258
|
/**
|
1255
1259
|
* Update a single Contract record.
|
1256
1260
|
* @param props - Properties to update.
|
1261
|
+
* @param globalClient - Apollo Client instance.
|
1257
1262
|
* @returns The updated Contract or null.
|
1258
1263
|
*/
|
1259
|
-
async update(props) {
|
1264
|
+
async update(props, globalClient) {
|
1265
|
+
const client = globalClient || importedClient;
|
1260
1266
|
const UPDATE_ONE_CONTRACT = gql `
|
1261
1267
|
mutation updateOneContract($data: ContractUpdateInput!, $where: ContractWhereUniqueInput!) {
|
1262
1268
|
updateOneContract(data: $data, where: $where) {
|
@@ -4960,9 +4966,11 @@ export const Contract = {
|
|
4960
4966
|
/**
|
4961
4967
|
* Upsert a single Contract record.
|
4962
4968
|
* @param props - Properties to update.
|
4969
|
+
* @param globalClient - Apollo Client instance.
|
4963
4970
|
* @returns The updated Contract or null.
|
4964
4971
|
*/
|
4965
|
-
async upsert(props) {
|
4972
|
+
async upsert(props, globalClient) {
|
4973
|
+
const client = globalClient || importedClient;
|
4966
4974
|
const UPSERT_ONE_CONTRACT = gql `
|
4967
4975
|
mutation upsertOneContract($where: ContractWhereUniqueInput!, $create: ContractCreateInput!, $update: ContractUpdateInput!) {
|
4968
4976
|
upsertOneContract(where: $where, create: $create, update: $update) {
|
@@ -9592,9 +9600,11 @@ export const Contract = {
|
|
9592
9600
|
/**
|
9593
9601
|
* Update multiple Contract records.
|
9594
9602
|
* @param props - Array of Contract objects for the updated records.
|
9603
|
+
* @param globalClient - Apollo Client instance.
|
9595
9604
|
* @returns The count of created records or null.
|
9596
9605
|
*/
|
9597
|
-
async updateMany(props) {
|
9606
|
+
async updateMany(props, globalClient) {
|
9607
|
+
const client = globalClient || importedClient;
|
9598
9608
|
const UPDATE_MANY_CONTRACT = gql `
|
9599
9609
|
mutation updateManyContract($data: [ContractCreateManyInput!]!) {
|
9600
9610
|
updateManyContract(data: $data) {
|
@@ -13298,9 +13308,11 @@ export const Contract = {
|
|
13298
13308
|
/**
|
13299
13309
|
* Delete a single Contract record.
|
13300
13310
|
* @param props - Properties to update.
|
13311
|
+
* @param globalClient - Apollo Client instance.
|
13301
13312
|
* @returns The deleted Contract or null.
|
13302
13313
|
*/
|
13303
|
-
async delete(props) {
|
13314
|
+
async delete(props, globalClient) {
|
13315
|
+
const client = globalClient || importedClient;
|
13304
13316
|
const DELETE_ONE_CONTRACT = gql `
|
13305
13317
|
mutation deleteOneContract($where: ContractWhereUniqueInput!) {
|
13306
13318
|
deleteOneContract(where: $where) {
|
@@ -13332,9 +13344,11 @@ export const Contract = {
|
|
13332
13344
|
/**
|
13333
13345
|
* Retrieve a single Contract record by ID.
|
13334
13346
|
* @param props - Properties to update.
|
13347
|
+
* @param globalClient - Apollo Client instance.
|
13335
13348
|
* @returns The retrieved Contract or null.
|
13336
13349
|
*/
|
13337
|
-
async get(props) {
|
13350
|
+
async get(props, globalClient) {
|
13351
|
+
const client = globalClient || importedClient;
|
13338
13352
|
const GET_CONTRACT = gql `
|
13339
13353
|
query getContract($where: ContractWhereUniqueInput!) {
|
13340
13354
|
getContract(where: $where) {
|
@@ -13373,9 +13387,11 @@ export const Contract = {
|
|
13373
13387
|
},
|
13374
13388
|
/**
|
13375
13389
|
* Retrieve all Contracts records.
|
13390
|
+
* @param globalClient - Apollo Client instance.
|
13376
13391
|
* @returns An array of Contract records or null.
|
13377
13392
|
*/
|
13378
|
-
async getAll() {
|
13393
|
+
async getAll(globalClient) {
|
13394
|
+
const client = globalClient || importedClient;
|
13379
13395
|
const GET_ALL_CONTRACT = gql `
|
13380
13396
|
query getAllContract {
|
13381
13397
|
contracts {
|
@@ -13401,9 +13417,11 @@ export const Contract = {
|
|
13401
13417
|
/**
|
13402
13418
|
* Find multiple Contract records based on conditions.
|
13403
13419
|
* @param props - Conditions to find records.
|
13420
|
+
* @param globalClient - Apollo Client instance.
|
13404
13421
|
* @returns An array of found Contract records or null.
|
13405
13422
|
*/
|
13406
|
-
async findMany(props) {
|
13423
|
+
async findMany(props, globalClient) {
|
13424
|
+
const client = globalClient || importedClient;
|
13407
13425
|
const FIND_MANY_CONTRACT = gql `
|
13408
13426
|
query findManyContract($where: ContractWhereInput!) {
|
13409
13427
|
contracts(where: $where) {
|
package/server/Customer.d.ts
CHANGED
@@ -1,61 +1,71 @@
|
|
1
1
|
import { Customer as CustomerType } from './generated/typegraphql-prisma/models/Customer';
|
2
|
+
import { ApolloClient } from '@apollo/client';
|
2
3
|
export declare const Customer: {
|
3
4
|
/**
|
4
5
|
* Create a new Customer record.
|
5
6
|
* @param props - Properties for the new record.
|
7
|
+
* @param client - Apollo Client instance.
|
6
8
|
* @returns The created Customer or null.
|
7
9
|
*/
|
8
|
-
create(props: CustomerType): Promise<CustomerType>;
|
10
|
+
create(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType>;
|
9
11
|
/**
|
10
12
|
* Create multiple Customer records.
|
11
13
|
* @param props - Array of Customer 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: CustomerType[]): Promise<{
|
17
|
+
createMany(props: CustomerType[], globalClient?: ApolloClient<any>): Promise<{
|
15
18
|
count: number;
|
16
19
|
} | null>;
|
17
20
|
/**
|
18
21
|
* Update a single Customer record.
|
19
22
|
* @param props - Properties to update.
|
23
|
+
* @param globalClient - Apollo Client instance.
|
20
24
|
* @returns The updated Customer or null.
|
21
25
|
*/
|
22
|
-
update(props: CustomerType): Promise<CustomerType>;
|
26
|
+
update(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType>;
|
23
27
|
/**
|
24
28
|
* Upsert a single Customer record.
|
25
29
|
* @param props - Properties to update.
|
30
|
+
* @param globalClient - Apollo Client instance.
|
26
31
|
* @returns The updated Customer or null.
|
27
32
|
*/
|
28
|
-
upsert(props: CustomerType): Promise<CustomerType>;
|
33
|
+
upsert(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType>;
|
29
34
|
/**
|
30
35
|
* Update multiple Customer records.
|
31
36
|
* @param props - Array of Customer 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: CustomerType[]): Promise<{
|
40
|
+
updateMany(props: CustomerType[], globalClient?: ApolloClient<any>): Promise<{
|
35
41
|
count: number;
|
36
42
|
} | null>;
|
37
43
|
/**
|
38
44
|
* Delete a single Customer record.
|
39
45
|
* @param props - Properties to update.
|
46
|
+
* @param globalClient - Apollo Client instance.
|
40
47
|
* @returns The deleted Customer or null.
|
41
48
|
*/
|
42
|
-
delete(props: CustomerType): Promise<CustomerType>;
|
49
|
+
delete(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType>;
|
43
50
|
/**
|
44
51
|
* Retrieve a single Customer record by ID.
|
45
52
|
* @param props - Properties to update.
|
53
|
+
* @param globalClient - Apollo Client instance.
|
46
54
|
* @returns The retrieved Customer or null.
|
47
55
|
*/
|
48
|
-
get(props: CustomerType): Promise<CustomerType | null>;
|
56
|
+
get(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType | null>;
|
49
57
|
/**
|
50
58
|
* Retrieve all Customers records.
|
59
|
+
* @param globalClient - Apollo Client instance.
|
51
60
|
* @returns An array of Customer records or null.
|
52
61
|
*/
|
53
|
-
getAll(): Promise<CustomerType[] | null>;
|
62
|
+
getAll(globalClient?: ApolloClient<any>): Promise<CustomerType[] | null>;
|
54
63
|
/**
|
55
64
|
* Find multiple Customer 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 Customer records or null.
|
58
68
|
*/
|
59
|
-
findMany(props: CustomerType): Promise<CustomerType[] | null>;
|
69
|
+
findMany(props: CustomerType, globalClient?: ApolloClient<any>): Promise<CustomerType[] | null>;
|
60
70
|
};
|
61
71
|
//# sourceMappingURL=Customer.d.ts.map
|
package/server/Customer.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/Customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAC;AA8L9D,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAkS5F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAuC5G;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAs9B1F;;;;;OAKG;kBACiB,YAAY,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAktC1F;;;;;OAKG;sBACqB,YAAY,EAAE,iBAAiB,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAy9B5G;;;;;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;IA2C9F;;;;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;CAqDtG,CAAC"}
|