adaptic-backend 1.0.292 → 1.0.293
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/package.json +1 -1
package/esm/Authenticator.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 Authenticator model.
|
@@ -207,7 +207,13 @@ export const Authenticator = {
|
|
207
207
|
* @returns The created Authenticator or null.
|
208
208
|
*/
|
209
209
|
async create(props, globalClient) {
|
210
|
-
const client =
|
210
|
+
const [modules, client] = await Promise.all([
|
211
|
+
getApolloModules(),
|
212
|
+
globalClient
|
213
|
+
? Promise.resolve(globalClient)
|
214
|
+
: importedClient
|
215
|
+
]);
|
216
|
+
const { gql, ApolloError } = modules;
|
211
217
|
const CREATE_ONE_AUTHENTICATOR = gql `
|
212
218
|
mutation createOneAuthenticator($data: AuthenticatorCreateInput!) {
|
213
219
|
createOneAuthenticator(data: $data) {
|
@@ -527,7 +533,13 @@ export const Authenticator = {
|
|
527
533
|
* @returns The count of created records or null.
|
528
534
|
*/
|
529
535
|
async createMany(props, globalClient) {
|
530
|
-
const client =
|
536
|
+
const [modules, client] = await Promise.all([
|
537
|
+
getApolloModules(),
|
538
|
+
globalClient
|
539
|
+
? Promise.resolve(globalClient)
|
540
|
+
: importedClient
|
541
|
+
]);
|
542
|
+
const { gql, ApolloError } = modules;
|
531
543
|
const CREATE_MANY_AUTHENTICATOR = gql `
|
532
544
|
mutation createManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
533
545
|
createManyAuthenticator(data: $data) {
|
@@ -566,7 +578,13 @@ export const Authenticator = {
|
|
566
578
|
* @returns The updated Authenticator or null.
|
567
579
|
*/
|
568
580
|
async update(props, globalClient) {
|
569
|
-
const client =
|
581
|
+
const [modules, client] = await Promise.all([
|
582
|
+
getApolloModules(),
|
583
|
+
globalClient
|
584
|
+
? Promise.resolve(globalClient)
|
585
|
+
: importedClient
|
586
|
+
]);
|
587
|
+
const { gql, ApolloError } = modules;
|
570
588
|
const UPDATE_ONE_AUTHENTICATOR = gql `
|
571
589
|
mutation updateOneAuthenticator($data: AuthenticatorUpdateInput!, $where: AuthenticatorWhereUniqueInput!) {
|
572
590
|
updateOneAuthenticator(data: $data, where: $where) {
|
@@ -1685,7 +1703,13 @@ export const Authenticator = {
|
|
1685
1703
|
* @returns The updated Authenticator or null.
|
1686
1704
|
*/
|
1687
1705
|
async upsert(props, globalClient) {
|
1688
|
-
const client =
|
1706
|
+
const [modules, client] = await Promise.all([
|
1707
|
+
getApolloModules(),
|
1708
|
+
globalClient
|
1709
|
+
? Promise.resolve(globalClient)
|
1710
|
+
: importedClient
|
1711
|
+
]);
|
1712
|
+
const { gql, ApolloError } = modules;
|
1689
1713
|
const UPSERT_ONE_AUTHENTICATOR = gql `
|
1690
1714
|
mutation upsertOneAuthenticator($where: AuthenticatorWhereUniqueInput!, $create: AuthenticatorCreateInput!, $update: AuthenticatorUpdateInput!) {
|
1691
1715
|
upsertOneAuthenticator(where: $where, create: $create, update: $update) {
|
@@ -3081,7 +3105,13 @@ export const Authenticator = {
|
|
3081
3105
|
* @returns The count of created records or null.
|
3082
3106
|
*/
|
3083
3107
|
async updateMany(props, globalClient) {
|
3084
|
-
const client =
|
3108
|
+
const [modules, client] = await Promise.all([
|
3109
|
+
getApolloModules(),
|
3110
|
+
globalClient
|
3111
|
+
? Promise.resolve(globalClient)
|
3112
|
+
: importedClient
|
3113
|
+
]);
|
3114
|
+
const { gql, ApolloError } = modules;
|
3085
3115
|
const UPDATE_MANY_AUTHENTICATOR = gql `
|
3086
3116
|
mutation updateManyAuthenticator($data: [AuthenticatorCreateManyInput!]!) {
|
3087
3117
|
updateManyAuthenticator(data: $data) {
|
@@ -4200,7 +4230,13 @@ export const Authenticator = {
|
|
4200
4230
|
* @returns The deleted Authenticator or null.
|
4201
4231
|
*/
|
4202
4232
|
async delete(props, globalClient) {
|
4203
|
-
const client =
|
4233
|
+
const [modules, client] = await Promise.all([
|
4234
|
+
getApolloModules(),
|
4235
|
+
globalClient
|
4236
|
+
? Promise.resolve(globalClient)
|
4237
|
+
: importedClient
|
4238
|
+
]);
|
4239
|
+
const { gql, ApolloError } = modules;
|
4204
4240
|
const DELETE_ONE_AUTHENTICATOR = gql `
|
4205
4241
|
mutation deleteOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
4206
4242
|
deleteOneAuthenticator(where: $where) {
|
@@ -4236,7 +4272,13 @@ export const Authenticator = {
|
|
4236
4272
|
* @returns The retrieved Authenticator or null.
|
4237
4273
|
*/
|
4238
4274
|
async get(props, globalClient) {
|
4239
|
-
const client =
|
4275
|
+
const [modules, client] = await Promise.all([
|
4276
|
+
getApolloModules(),
|
4277
|
+
globalClient
|
4278
|
+
? Promise.resolve(globalClient)
|
4279
|
+
: importedClient
|
4280
|
+
]);
|
4281
|
+
const { gql, ApolloError } = modules;
|
4240
4282
|
const GET_AUTHENTICATOR = gql `
|
4241
4283
|
query getAuthenticator($where: AuthenticatorWhereUniqueInput!) {
|
4242
4284
|
getAuthenticator(where: $where) {
|
@@ -4274,7 +4316,13 @@ export const Authenticator = {
|
|
4274
4316
|
* @returns An array of Authenticator records or null.
|
4275
4317
|
*/
|
4276
4318
|
async getAll(globalClient) {
|
4277
|
-
const client =
|
4319
|
+
const [modules, client] = await Promise.all([
|
4320
|
+
getApolloModules(),
|
4321
|
+
globalClient
|
4322
|
+
? Promise.resolve(globalClient)
|
4323
|
+
: importedClient
|
4324
|
+
]);
|
4325
|
+
const { gql, ApolloError } = modules;
|
4278
4326
|
const GET_ALL_AUTHENTICATOR = gql `
|
4279
4327
|
query getAllAuthenticator {
|
4280
4328
|
authenticators {
|
@@ -4304,7 +4352,13 @@ export const Authenticator = {
|
|
4304
4352
|
* @returns An array of found Authenticator records or null.
|
4305
4353
|
*/
|
4306
4354
|
async findMany(props, globalClient) {
|
4307
|
-
const client =
|
4355
|
+
const [modules, client] = await Promise.all([
|
4356
|
+
getApolloModules(),
|
4357
|
+
globalClient
|
4358
|
+
? Promise.resolve(globalClient)
|
4359
|
+
: importedClient
|
4360
|
+
]);
|
4361
|
+
const { gql, ApolloError } = modules;
|
4308
4362
|
const FIND_MANY_AUTHENTICATOR = gql `
|
4309
4363
|
query findManyAuthenticator($where: AuthenticatorWhereInput!) {
|
4310
4364
|
authenticators(where: $where) {
|
package/esm/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;AAC1F,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwP7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,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,EAA4B,gBAAgB,EAAE,qBAAqB,EAAoB,MAAM,UAAU,CAAC;AAwP7G,eAAO,MAAM,QAAQ;IAEnB;;;;;OAKG;kBAEiB,YAAY,iBAAiB,gBAAgB,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IA6hClH;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