adaptic-backend 1.0.292 → 1.0.294
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 +75 -21
- package/Action.cjs +75 -21
- package/Alert.cjs +75 -21
- package/AlpacaAccount.cjs +75 -21
- package/Asset.cjs +75 -21
- package/Authenticator.cjs +75 -21
- package/Contract.cjs +75 -21
- package/Customer.cjs +75 -21
- package/Deliverable.cjs +75 -21
- package/EconomicEvent.cjs +75 -21
- package/MarketSentiment.cjs +75 -21
- package/NewsArticle.cjs +75 -21
- package/NewsArticleAssetSentiment.cjs +75 -21
- package/Order.cjs +75 -21
- package/Position.cjs +75 -21
- package/ScheduledOptionOrder.cjs +75 -21
- package/Session.cjs +75 -21
- package/StopLoss.cjs +75 -21
- package/TakeProfit.cjs +75 -21
- package/Trade.cjs +75 -21
- package/User.cjs +75 -21
- package/VerificationToken.cjs +75 -21
- package/apollo-client.client.cjs +17 -0
- package/apollo-client.client.d.ts +7 -0
- package/apollo-client.server.cjs +21 -0
- package/apollo-client.server.d.ts +7 -0
- package/client.cjs +80 -59
- package/client.d.ts +26 -17
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +64 -10
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +64 -10
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +64 -10
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +64 -10
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +64 -10
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +64 -10
- package/esm/Contract.d.ts.map +1 -1
- package/esm/Contract.js.map +1 -1
- package/esm/Contract.mjs +64 -10
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +64 -10
- package/esm/Deliverable.d.ts.map +1 -1
- package/esm/Deliverable.js.map +1 -1
- package/esm/Deliverable.mjs +64 -10
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +64 -10
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +64 -10
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +64 -10
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +64 -10
- package/esm/Order.d.ts.map +1 -1
- package/esm/Order.js.map +1 -1
- package/esm/Order.mjs +64 -10
- package/esm/Position.d.ts.map +1 -1
- package/esm/Position.js.map +1 -1
- package/esm/Position.mjs +64 -10
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +64 -10
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +64 -10
- package/esm/StopLoss.d.ts.map +1 -1
- package/esm/StopLoss.js.map +1 -1
- package/esm/StopLoss.mjs +64 -10
- package/esm/TakeProfit.d.ts.map +1 -1
- package/esm/TakeProfit.js.map +1 -1
- package/esm/TakeProfit.mjs +64 -10
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +64 -10
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +64 -10
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +64 -10
- package/esm/apollo-client.client.d.ts +7 -0
- package/esm/apollo-client.client.d.ts.map +1 -0
- package/esm/apollo-client.client.js.map +1 -0
- package/esm/apollo-client.client.mjs +8 -0
- package/esm/apollo-client.server.d.ts +7 -0
- package/esm/apollo-client.server.d.ts.map +1 -0
- package/esm/apollo-client.server.js.map +1 -0
- package/esm/apollo-client.server.mjs +12 -0
- package/esm/client.d.ts +26 -17
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +45 -60
- package/generated/typegraphql-prisma/enhance.cjs +7 -7
- package/generated/typegraphql-prisma/index.cjs +10 -10
- package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +22 -22
- package/generated/typegraphql-prisma/resolvers/crud/index.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +11 -11
- package/generated/typegraphql-prisma/resolvers/relations/index.cjs +2 -2
- package/index.cjs +1 -1
- package/package.json +1 -1
- package/server.cjs +1 -1
package/esm/Session.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { client as importedClient,
|
1
|
+
import { client as importedClient, getApolloModules } from './client.mjs';
|
2
2
|
import { removeUndefinedProps } from './utils.mjs';
|
3
3
|
/**
|
4
4
|
* CRUD operations for the Session model.
|
@@ -78,7 +78,13 @@ export const Session = {
|
|
78
78
|
* @returns The created Session or null.
|
79
79
|
*/
|
80
80
|
async create(props, globalClient) {
|
81
|
-
const client =
|
81
|
+
const [modules, client] = await Promise.all([
|
82
|
+
getApolloModules(),
|
83
|
+
globalClient
|
84
|
+
? Promise.resolve(globalClient)
|
85
|
+
: importedClient
|
86
|
+
]);
|
87
|
+
const { gql, ApolloError } = modules;
|
82
88
|
const CREATE_ONE_SESSION = gql `
|
83
89
|
mutation createOneSession($data: SessionCreateInput!) {
|
84
90
|
createOneSession(data: $data) {
|
@@ -398,7 +404,13 @@ export const Session = {
|
|
398
404
|
* @returns The count of created records or null.
|
399
405
|
*/
|
400
406
|
async createMany(props, globalClient) {
|
401
|
-
const client =
|
407
|
+
const [modules, client] = await Promise.all([
|
408
|
+
getApolloModules(),
|
409
|
+
globalClient
|
410
|
+
? Promise.resolve(globalClient)
|
411
|
+
: importedClient
|
412
|
+
]);
|
413
|
+
const { gql, ApolloError } = modules;
|
402
414
|
const CREATE_MANY_SESSION = gql `
|
403
415
|
mutation createManySession($data: [SessionCreateManyInput!]!) {
|
404
416
|
createManySession(data: $data) {
|
@@ -436,7 +448,13 @@ export const Session = {
|
|
436
448
|
* @returns The updated Session or null.
|
437
449
|
*/
|
438
450
|
async update(props, globalClient) {
|
439
|
-
const client =
|
451
|
+
const [modules, client] = await Promise.all([
|
452
|
+
getApolloModules(),
|
453
|
+
globalClient
|
454
|
+
? Promise.resolve(globalClient)
|
455
|
+
: importedClient
|
456
|
+
]);
|
457
|
+
const { gql, ApolloError } = modules;
|
440
458
|
const UPDATE_ONE_SESSION = gql `
|
441
459
|
mutation updateOneSession($data: SessionUpdateInput!, $where: SessionWhereUniqueInput!) {
|
442
460
|
updateOneSession(data: $data, where: $where) {
|
@@ -1557,7 +1575,13 @@ export const Session = {
|
|
1557
1575
|
* @returns The updated Session or null.
|
1558
1576
|
*/
|
1559
1577
|
async upsert(props, globalClient) {
|
1560
|
-
const client =
|
1578
|
+
const [modules, client] = await Promise.all([
|
1579
|
+
getApolloModules(),
|
1580
|
+
globalClient
|
1581
|
+
? Promise.resolve(globalClient)
|
1582
|
+
: importedClient
|
1583
|
+
]);
|
1584
|
+
const { gql, ApolloError } = modules;
|
1561
1585
|
const UPSERT_ONE_SESSION = gql `
|
1562
1586
|
mutation upsertOneSession($where: SessionWhereUniqueInput!, $create: SessionCreateInput!, $update: SessionUpdateInput!) {
|
1563
1587
|
upsertOneSession(where: $where, create: $create, update: $update) {
|
@@ -2955,7 +2979,13 @@ export const Session = {
|
|
2955
2979
|
* @returns The count of created records or null.
|
2956
2980
|
*/
|
2957
2981
|
async updateMany(props, globalClient) {
|
2958
|
-
const client =
|
2982
|
+
const [modules, client] = await Promise.all([
|
2983
|
+
getApolloModules(),
|
2984
|
+
globalClient
|
2985
|
+
? Promise.resolve(globalClient)
|
2986
|
+
: importedClient
|
2987
|
+
]);
|
2988
|
+
const { gql, ApolloError } = modules;
|
2959
2989
|
const UPDATE_MANY_SESSION = gql `
|
2960
2990
|
mutation updateManySession($data: [SessionCreateManyInput!]!) {
|
2961
2991
|
updateManySession(data: $data) {
|
@@ -4076,7 +4106,13 @@ export const Session = {
|
|
4076
4106
|
* @returns The deleted Session or null.
|
4077
4107
|
*/
|
4078
4108
|
async delete(props, globalClient) {
|
4079
|
-
const client =
|
4109
|
+
const [modules, client] = await Promise.all([
|
4110
|
+
getApolloModules(),
|
4111
|
+
globalClient
|
4112
|
+
? Promise.resolve(globalClient)
|
4113
|
+
: importedClient
|
4114
|
+
]);
|
4115
|
+
const { gql, ApolloError } = modules;
|
4080
4116
|
const DELETE_ONE_SESSION = gql `
|
4081
4117
|
mutation deleteOneSession($where: SessionWhereUniqueInput!) {
|
4082
4118
|
deleteOneSession(where: $where) {
|
@@ -4112,7 +4148,13 @@ export const Session = {
|
|
4112
4148
|
* @returns The retrieved Session or null.
|
4113
4149
|
*/
|
4114
4150
|
async get(props, globalClient) {
|
4115
|
-
const client =
|
4151
|
+
const [modules, client] = await Promise.all([
|
4152
|
+
getApolloModules(),
|
4153
|
+
globalClient
|
4154
|
+
? Promise.resolve(globalClient)
|
4155
|
+
: importedClient
|
4156
|
+
]);
|
4157
|
+
const { gql, ApolloError } = modules;
|
4116
4158
|
const GET_SESSION = gql `
|
4117
4159
|
query getSession($where: SessionWhereUniqueInput!) {
|
4118
4160
|
getSession(where: $where) {
|
@@ -4150,7 +4192,13 @@ export const Session = {
|
|
4150
4192
|
* @returns An array of Session records or null.
|
4151
4193
|
*/
|
4152
4194
|
async getAll(globalClient) {
|
4153
|
-
const client =
|
4195
|
+
const [modules, client] = await Promise.all([
|
4196
|
+
getApolloModules(),
|
4197
|
+
globalClient
|
4198
|
+
? Promise.resolve(globalClient)
|
4199
|
+
: importedClient
|
4200
|
+
]);
|
4201
|
+
const { gql, ApolloError } = modules;
|
4154
4202
|
const GET_ALL_SESSION = gql `
|
4155
4203
|
query getAllSession {
|
4156
4204
|
sessions {
|
@@ -4180,7 +4228,13 @@ export const Session = {
|
|
4180
4228
|
* @returns An array of found Session records or null.
|
4181
4229
|
*/
|
4182
4230
|
async findMany(props, globalClient) {
|
4183
|
-
const client =
|
4231
|
+
const [modules, client] = await Promise.all([
|
4232
|
+
getApolloModules(),
|
4233
|
+
globalClient
|
4234
|
+
? Promise.resolve(globalClient)
|
4235
|
+
: importedClient
|
4236
|
+
]);
|
4237
|
+
const { gql, ApolloError } = modules;
|
4184
4238
|
const FIND_MANY_SESSION = gql `
|
4185
4239
|
query findManySession($where: SessionWhereInput!) {
|
4186
4240
|
sessions(where: $where) {
|
package/esm/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;AAC1F,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAkB7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,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,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAkB7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAg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