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/Action.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 Action model.
|
@@ -148,7 +148,13 @@ export const Action = {
|
|
148
148
|
* @returns The created Action or null.
|
149
149
|
*/
|
150
150
|
async create(props, globalClient) {
|
151
|
-
const client =
|
151
|
+
const [modules, client] = await Promise.all([
|
152
|
+
getApolloModules(),
|
153
|
+
globalClient
|
154
|
+
? Promise.resolve(globalClient)
|
155
|
+
: importedClient
|
156
|
+
]);
|
157
|
+
const { gql, ApolloError } = modules;
|
152
158
|
const CREATE_ONE_ACTION = gql `
|
153
159
|
mutation createOneAction($data: ActionCreateInput!) {
|
154
160
|
createOneAction(data: $data) {
|
@@ -1196,7 +1202,13 @@ export const Action = {
|
|
1196
1202
|
* @returns The count of created records or null.
|
1197
1203
|
*/
|
1198
1204
|
async createMany(props, globalClient) {
|
1199
|
-
const client =
|
1205
|
+
const [modules, client] = await Promise.all([
|
1206
|
+
getApolloModules(),
|
1207
|
+
globalClient
|
1208
|
+
? Promise.resolve(globalClient)
|
1209
|
+
: importedClient
|
1210
|
+
]);
|
1211
|
+
const { gql, ApolloError } = modules;
|
1200
1212
|
const CREATE_MANY_ACTION = gql `
|
1201
1213
|
mutation createManyAction($data: [ActionCreateManyInput!]!) {
|
1202
1214
|
createManyAction(data: $data) {
|
@@ -1244,7 +1256,13 @@ export const Action = {
|
|
1244
1256
|
* @returns The updated Action or null.
|
1245
1257
|
*/
|
1246
1258
|
async update(props, globalClient) {
|
1247
|
-
const client =
|
1259
|
+
const [modules, client] = await Promise.all([
|
1260
|
+
getApolloModules(),
|
1261
|
+
globalClient
|
1262
|
+
? Promise.resolve(globalClient)
|
1263
|
+
: importedClient
|
1264
|
+
]);
|
1265
|
+
const { gql, ApolloError } = modules;
|
1248
1266
|
const UPDATE_ONE_ACTION = gql `
|
1249
1267
|
mutation updateOneAction($data: ActionUpdateInput!, $where: ActionWhereUniqueInput!) {
|
1250
1268
|
updateOneAction(data: $data, where: $where) {
|
@@ -5622,7 +5640,13 @@ export const Action = {
|
|
5622
5640
|
* @returns The updated Action or null.
|
5623
5641
|
*/
|
5624
5642
|
async upsert(props, globalClient) {
|
5625
|
-
const client =
|
5643
|
+
const [modules, client] = await Promise.all([
|
5644
|
+
getApolloModules(),
|
5645
|
+
globalClient
|
5646
|
+
? Promise.resolve(globalClient)
|
5647
|
+
: importedClient
|
5648
|
+
]);
|
5649
|
+
const { gql, ApolloError } = modules;
|
5626
5650
|
const UPSERT_ONE_ACTION = gql `
|
5627
5651
|
mutation upsertOneAction($where: ActionWhereUniqueInput!, $create: ActionCreateInput!, $update: ActionUpdateInput!) {
|
5628
5652
|
upsertOneAction(where: $where, create: $create, update: $update) {
|
@@ -11005,7 +11029,13 @@ export const Action = {
|
|
11005
11029
|
* @returns The count of created records or null.
|
11006
11030
|
*/
|
11007
11031
|
async updateMany(props, globalClient) {
|
11008
|
-
const client =
|
11032
|
+
const [modules, client] = await Promise.all([
|
11033
|
+
getApolloModules(),
|
11034
|
+
globalClient
|
11035
|
+
? Promise.resolve(globalClient)
|
11036
|
+
: importedClient
|
11037
|
+
]);
|
11038
|
+
const { gql, ApolloError } = modules;
|
11009
11039
|
const UPDATE_MANY_ACTION = gql `
|
11010
11040
|
mutation updateManyAction($data: [ActionCreateManyInput!]!) {
|
11011
11041
|
updateManyAction(data: $data) {
|
@@ -15383,7 +15413,13 @@ export const Action = {
|
|
15383
15413
|
* @returns The deleted Action or null.
|
15384
15414
|
*/
|
15385
15415
|
async delete(props, globalClient) {
|
15386
|
-
const client =
|
15416
|
+
const [modules, client] = await Promise.all([
|
15417
|
+
getApolloModules(),
|
15418
|
+
globalClient
|
15419
|
+
? Promise.resolve(globalClient)
|
15420
|
+
: importedClient
|
15421
|
+
]);
|
15422
|
+
const { gql, ApolloError } = modules;
|
15387
15423
|
const DELETE_ONE_ACTION = gql `
|
15388
15424
|
mutation deleteOneAction($where: ActionWhereUniqueInput!) {
|
15389
15425
|
deleteOneAction(where: $where) {
|
@@ -15419,7 +15455,13 @@ export const Action = {
|
|
15419
15455
|
* @returns The retrieved Action or null.
|
15420
15456
|
*/
|
15421
15457
|
async get(props, globalClient) {
|
15422
|
-
const client =
|
15458
|
+
const [modules, client] = await Promise.all([
|
15459
|
+
getApolloModules(),
|
15460
|
+
globalClient
|
15461
|
+
? Promise.resolve(globalClient)
|
15462
|
+
: importedClient
|
15463
|
+
]);
|
15464
|
+
const { gql, ApolloError } = modules;
|
15423
15465
|
const GET_ACTION = gql `
|
15424
15466
|
query getAction($where: ActionWhereUniqueInput!) {
|
15425
15467
|
getAction(where: $where) {
|
@@ -15457,7 +15499,13 @@ export const Action = {
|
|
15457
15499
|
* @returns An array of Action records or null.
|
15458
15500
|
*/
|
15459
15501
|
async getAll(globalClient) {
|
15460
|
-
const client =
|
15502
|
+
const [modules, client] = await Promise.all([
|
15503
|
+
getApolloModules(),
|
15504
|
+
globalClient
|
15505
|
+
? Promise.resolve(globalClient)
|
15506
|
+
: importedClient
|
15507
|
+
]);
|
15508
|
+
const { gql, ApolloError } = modules;
|
15461
15509
|
const GET_ALL_ACTION = gql `
|
15462
15510
|
query getAllAction {
|
15463
15511
|
actions {
|
@@ -15487,7 +15535,13 @@ export const Action = {
|
|
15487
15535
|
* @returns An array of found Action records or null.
|
15488
15536
|
*/
|
15489
15537
|
async findMany(props, globalClient) {
|
15490
|
-
const client =
|
15538
|
+
const [modules, client] = await Promise.all([
|
15539
|
+
getApolloModules(),
|
15540
|
+
globalClient
|
15541
|
+
? Promise.resolve(globalClient)
|
15542
|
+
: importedClient
|
15543
|
+
]);
|
15544
|
+
const { gql, ApolloError } = modules;
|
15491
15545
|
const FIND_MANY_ACTION = gql `
|
15492
15546
|
query findManyAction($where: ActionWhereInput!) {
|
15493
15547
|
actions(where: $where) {
|
package/esm/Alert.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAmB7G,eAAO,MAAM,KAAK;IAEhB;;;;;OAKG;kBAEiB,SAAS,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../src/Alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAmB7G,eAAO,MAAM,KAAK;IAEhB;;;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