adaptic-backend 1.0.9 → 1.0.10

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.
@@ -2492,7 +2492,7 @@ exports.AIRecommendation = {
2492
2492
  var _a, _b;
2493
2493
  const GET_ONE_AIRECOMMENDATION = (0, client_1.gql) `
2494
2494
  query getOneAIRecommendation($where: AIRecommendationWhereUniqueInput!) {
2495
- AIRecommendation(where: $where) {
2495
+ aIRecommendations(where: $where) {
2496
2496
  id
2497
2497
  userId
2498
2498
  portfolioId
package/Account.js CHANGED
@@ -1693,7 +1693,7 @@ exports.Account = {
1693
1693
  var _a, _b;
1694
1694
  const GET_ONE_ACCOUNT = (0, client_1.gql) `
1695
1695
  query getOneAccount($where: AccountWhereUniqueInput!) {
1696
- Account(where: $where) {
1696
+ accounts(where: $where) {
1697
1697
  id
1698
1698
  userId
1699
1699
  type
package/Alert.js CHANGED
@@ -2159,7 +2159,7 @@ exports.Alert = {
2159
2159
  var _a, _b;
2160
2160
  const GET_ONE_ALERT = (0, client_1.gql) `
2161
2161
  query getOneAlert($where: AlertWhereUniqueInput!) {
2162
- Alert(where: $where) {
2162
+ alerts(where: $where) {
2163
2163
  id
2164
2164
  userId
2165
2165
  portfolioId
package/Asset.js CHANGED
@@ -2159,7 +2159,7 @@ exports.Asset = {
2159
2159
  var _a, _b;
2160
2160
  const GET_ONE_ASSET = (0, client_1.gql) `
2161
2161
  query getOneAsset($where: AssetWhereUniqueInput!) {
2162
- Asset(where: $where) {
2162
+ assets(where: $where) {
2163
2163
  id
2164
2164
  symbol
2165
2165
  name
package/Authenticator.js CHANGED
@@ -1703,7 +1703,7 @@ exports.Authenticator = {
1703
1703
  var _a, _b;
1704
1704
  const GET_ONE_AUTHENTICATOR = (0, client_1.gql) `
1705
1705
  query getOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
1706
- Authenticator(where: $where) {
1706
+ authenticators(where: $where) {
1707
1707
  id
1708
1708
  userId
1709
1709
  credentialID
package/Customer.js CHANGED
@@ -1686,7 +1686,7 @@ exports.Customer = {
1686
1686
  var _a, _b;
1687
1687
  const GET_ONE_CUSTOMER = (0, client_1.gql) `
1688
1688
  query getOneCustomer($where: CustomerWhereUniqueInput!) {
1689
- Customer(where: $where) {
1689
+ customers(where: $where) {
1690
1690
  id
1691
1691
  authUserId
1692
1692
  name
package/EconomicEvent.js CHANGED
@@ -193,7 +193,7 @@ exports.EconomicEvent = {
193
193
  var _a, _b;
194
194
  const GET_ONE_ECONOMICEVENT = (0, client_1.gql) `
195
195
  query getOneEconomicEvent($where: EconomicEventWhereUniqueInput!) {
196
- EconomicEvent(where: $where) {
196
+ economicEvents(where: $where) {
197
197
  id
198
198
  title
199
199
  description
@@ -1424,7 +1424,7 @@ exports.EnvironmentVariable = {
1424
1424
  var _a, _b;
1425
1425
  const GET_ONE_ENVIRONMENTVARIABLE = (0, client_1.gql) `
1426
1426
  query getOneEnvironmentVariable($where: EnvironmentVariableWhereUniqueInput!) {
1427
- EnvironmentVariable(where: $where) {
1427
+ environmentVariables(where: $where) {
1428
1428
  id
1429
1429
  key
1430
1430
  value
package/Holding.js CHANGED
@@ -2489,7 +2489,7 @@ exports.Holding = {
2489
2489
  var _a, _b;
2490
2490
  const GET_ONE_HOLDING = (0, client_1.gql) `
2491
2491
  query getOneHolding($where: HoldingWhereUniqueInput!) {
2492
- Holding(where: $where) {
2492
+ holdings(where: $where) {
2493
2493
  id
2494
2494
  userId
2495
2495
  portfolioId
package/News.js CHANGED
@@ -1141,7 +1141,7 @@ exports.News = {
1141
1141
  var _a, _b;
1142
1142
  const GET_ONE_NEWS = (0, client_1.gql) `
1143
1143
  query getOneNews($where: NewsWhereUniqueInput!) {
1144
- News(where: $where) {
1144
+ news(where: $where) {
1145
1145
  id
1146
1146
  assetId
1147
1147
  title
package/Order.js CHANGED
@@ -2450,7 +2450,7 @@ exports.Order = {
2450
2450
  var _a, _b;
2451
2451
  const GET_ONE_ORDER = (0, client_1.gql) `
2452
2452
  query getOneOrder($where: OrderWhereUniqueInput!) {
2453
- Order(where: $where) {
2453
+ orders(where: $where) {
2454
2454
  id
2455
2455
  userId
2456
2456
  portfolioId
@@ -2166,7 +2166,7 @@ exports.PerformanceMetric = {
2166
2166
  var _a, _b;
2167
2167
  const GET_ONE_PERFORMANCEMETRIC = (0, client_1.gql) `
2168
2168
  query getOnePerformanceMetric($where: PerformanceMetricWhereUniqueInput!) {
2169
- PerformanceMetric(where: $where) {
2169
+ performanceMetrics(where: $where) {
2170
2170
  id
2171
2171
  userId
2172
2172
  portfolioId
package/Portfolio.js CHANGED
@@ -2655,7 +2655,7 @@ exports.Portfolio = {
2655
2655
  var _a, _b;
2656
2656
  const GET_ONE_PORTFOLIO = (0, client_1.gql) `
2657
2657
  query getOnePortfolio($where: PortfolioWhereUniqueInput!) {
2658
- Portfolio(where: $where) {
2658
+ portfolios(where: $where) {
2659
2659
  id
2660
2660
  name
2661
2661
  slug
@@ -1758,7 +1758,7 @@ exports.PortfolioAllocation = {
1758
1758
  var _a, _b;
1759
1759
  const GET_ONE_PORTFOLIOALLOCATION = (0, client_1.gql) `
1760
1760
  query getOnePortfolioAllocation($where: PortfolioAllocationWhereUniqueInput!) {
1761
- PortfolioAllocation(where: $where) {
1761
+ portfolioAllocations(where: $where) {
1762
1762
  id
1763
1763
  portfolioId
1764
1764
  assetId
package/PortfolioUser.js CHANGED
@@ -2179,7 +2179,7 @@ exports.PortfolioUser = {
2179
2179
  var _a, _b;
2180
2180
  const GET_ONE_PORTFOLIOUSER = (0, client_1.gql) `
2181
2181
  query getOnePortfolioUser($where: PortfolioUserWhereUniqueInput!) {
2182
- PortfolioUser(where: $where) {
2182
+ portfolioUsers(where: $where) {
2183
2183
  id
2184
2184
  userId
2185
2185
  portfolioId
package/RiskAllocation.js CHANGED
@@ -2169,7 +2169,7 @@ exports.RiskAllocation = {
2169
2169
  var _a, _b;
2170
2170
  const GET_ONE_RISKALLOCATION = (0, client_1.gql) `
2171
2171
  query getOneRiskAllocation($where: RiskAllocationWhereUniqueInput!) {
2172
- RiskAllocation(where: $where) {
2172
+ riskAllocations(where: $where) {
2173
2173
  id
2174
2174
  userId
2175
2175
  portfolioId
package/Session.js CHANGED
@@ -1707,7 +1707,7 @@ exports.Session = {
1707
1707
  var _a, _b;
1708
1708
  const GET_ONE_SESSION = (0, client_1.gql) `
1709
1709
  query getOneSession($where: SessionWhereUniqueInput!) {
1710
- Session(where: $where) {
1710
+ sessions(where: $where) {
1711
1711
  id
1712
1712
  sessionToken
1713
1713
  userId
package/Trade.js CHANGED
@@ -2526,7 +2526,7 @@ exports.Trade = {
2526
2526
  var _a, _b;
2527
2527
  const GET_ONE_TRADE = (0, client_1.gql) `
2528
2528
  query getOneTrade($where: TradeWhereUniqueInput!) {
2529
- Trade(where: $where) {
2529
+ trades(where: $where) {
2530
2530
  id
2531
2531
  userId
2532
2532
  portfolioId
package/TradeStep.js CHANGED
@@ -1457,7 +1457,7 @@ exports.TradeStep = {
1457
1457
  var _a, _b;
1458
1458
  const GET_ONE_TRADESTEP = (0, client_1.gql) `
1459
1459
  query getOneTradeStep($where: TradeStepWhereUniqueInput!) {
1460
- TradeStep(where: $where) {
1460
+ tradeSteps(where: $where) {
1461
1461
  id
1462
1462
  tradeId
1463
1463
  sequence
package/User.js CHANGED
@@ -2472,7 +2472,7 @@ exports.User = {
2472
2472
  var _a, _b;
2473
2473
  const GET_ONE_USER = (0, client_1.gql) `
2474
2474
  query getOneUser($where: UserWhereUniqueInput!) {
2475
- User(where: $where) {
2475
+ users(where: $where) {
2476
2476
  id
2477
2477
  name
2478
2478
  email
@@ -172,7 +172,7 @@ exports.VerificationToken = {
172
172
  var _a, _b;
173
173
  const GET_ONE_VERIFICATIONTOKEN = (0, client_1.gql) `
174
174
  query getOneVerificationToken($where: VerificationTokenWhereUniqueInput!) {
175
- VerificationToken(where: $where) {
175
+ verificationTokens(where: $where) {
176
176
  id
177
177
  identifier
178
178
  token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adaptic-backend",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -2489,7 +2489,7 @@ export const AIRecommendation = {
2489
2489
  async get(props, client) {
2490
2490
  const GET_ONE_AIRECOMMENDATION = gql `
2491
2491
  query getOneAIRecommendation($where: AIRecommendationWhereUniqueInput!) {
2492
- AIRecommendation(where: $where) {
2492
+ aIRecommendations(where: $where) {
2493
2493
  id
2494
2494
  userId
2495
2495
  portfolioId
@@ -1690,7 +1690,7 @@ export const Account = {
1690
1690
  async get(props, client) {
1691
1691
  const GET_ONE_ACCOUNT = gql `
1692
1692
  query getOneAccount($where: AccountWhereUniqueInput!) {
1693
- Account(where: $where) {
1693
+ accounts(where: $where) {
1694
1694
  id
1695
1695
  userId
1696
1696
  type
package/server/Alert.mjs CHANGED
@@ -2156,7 +2156,7 @@ export const Alert = {
2156
2156
  async get(props, client) {
2157
2157
  const GET_ONE_ALERT = gql `
2158
2158
  query getOneAlert($where: AlertWhereUniqueInput!) {
2159
- Alert(where: $where) {
2159
+ alerts(where: $where) {
2160
2160
  id
2161
2161
  userId
2162
2162
  portfolioId
package/server/Asset.mjs CHANGED
@@ -2156,7 +2156,7 @@ export const Asset = {
2156
2156
  async get(props, client) {
2157
2157
  const GET_ONE_ASSET = gql `
2158
2158
  query getOneAsset($where: AssetWhereUniqueInput!) {
2159
- Asset(where: $where) {
2159
+ assets(where: $where) {
2160
2160
  id
2161
2161
  symbol
2162
2162
  name
@@ -1700,7 +1700,7 @@ export const Authenticator = {
1700
1700
  async get(props, client) {
1701
1701
  const GET_ONE_AUTHENTICATOR = gql `
1702
1702
  query getOneAuthenticator($where: AuthenticatorWhereUniqueInput!) {
1703
- Authenticator(where: $where) {
1703
+ authenticators(where: $where) {
1704
1704
  id
1705
1705
  userId
1706
1706
  credentialID
@@ -1683,7 +1683,7 @@ export const Customer = {
1683
1683
  async get(props, client) {
1684
1684
  const GET_ONE_CUSTOMER = gql `
1685
1685
  query getOneCustomer($where: CustomerWhereUniqueInput!) {
1686
- Customer(where: $where) {
1686
+ customers(where: $where) {
1687
1687
  id
1688
1688
  authUserId
1689
1689
  name
@@ -190,7 +190,7 @@ export const EconomicEvent = {
190
190
  async get(props, client) {
191
191
  const GET_ONE_ECONOMICEVENT = gql `
192
192
  query getOneEconomicEvent($where: EconomicEventWhereUniqueInput!) {
193
- EconomicEvent(where: $where) {
193
+ economicEvents(where: $where) {
194
194
  id
195
195
  title
196
196
  description
@@ -1421,7 +1421,7 @@ export const EnvironmentVariable = {
1421
1421
  async get(props, client) {
1422
1422
  const GET_ONE_ENVIRONMENTVARIABLE = gql `
1423
1423
  query getOneEnvironmentVariable($where: EnvironmentVariableWhereUniqueInput!) {
1424
- EnvironmentVariable(where: $where) {
1424
+ environmentVariables(where: $where) {
1425
1425
  id
1426
1426
  key
1427
1427
  value
@@ -2486,7 +2486,7 @@ export const Holding = {
2486
2486
  async get(props, client) {
2487
2487
  const GET_ONE_HOLDING = gql `
2488
2488
  query getOneHolding($where: HoldingWhereUniqueInput!) {
2489
- Holding(where: $where) {
2489
+ holdings(where: $where) {
2490
2490
  id
2491
2491
  userId
2492
2492
  portfolioId
package/server/News.mjs CHANGED
@@ -1138,7 +1138,7 @@ export const News = {
1138
1138
  async get(props, client) {
1139
1139
  const GET_ONE_NEWS = gql `
1140
1140
  query getOneNews($where: NewsWhereUniqueInput!) {
1141
- News(where: $where) {
1141
+ news(where: $where) {
1142
1142
  id
1143
1143
  assetId
1144
1144
  title
package/server/Order.mjs CHANGED
@@ -2447,7 +2447,7 @@ export const Order = {
2447
2447
  async get(props, client) {
2448
2448
  const GET_ONE_ORDER = gql `
2449
2449
  query getOneOrder($where: OrderWhereUniqueInput!) {
2450
- Order(where: $where) {
2450
+ orders(where: $where) {
2451
2451
  id
2452
2452
  userId
2453
2453
  portfolioId
@@ -2163,7 +2163,7 @@ export const PerformanceMetric = {
2163
2163
  async get(props, client) {
2164
2164
  const GET_ONE_PERFORMANCEMETRIC = gql `
2165
2165
  query getOnePerformanceMetric($where: PerformanceMetricWhereUniqueInput!) {
2166
- PerformanceMetric(where: $where) {
2166
+ performanceMetrics(where: $where) {
2167
2167
  id
2168
2168
  userId
2169
2169
  portfolioId
@@ -2652,7 +2652,7 @@ export const Portfolio = {
2652
2652
  async get(props, client) {
2653
2653
  const GET_ONE_PORTFOLIO = gql `
2654
2654
  query getOnePortfolio($where: PortfolioWhereUniqueInput!) {
2655
- Portfolio(where: $where) {
2655
+ portfolios(where: $where) {
2656
2656
  id
2657
2657
  name
2658
2658
  slug
@@ -1755,7 +1755,7 @@ export const PortfolioAllocation = {
1755
1755
  async get(props, client) {
1756
1756
  const GET_ONE_PORTFOLIOALLOCATION = gql `
1757
1757
  query getOnePortfolioAllocation($where: PortfolioAllocationWhereUniqueInput!) {
1758
- PortfolioAllocation(where: $where) {
1758
+ portfolioAllocations(where: $where) {
1759
1759
  id
1760
1760
  portfolioId
1761
1761
  assetId
@@ -2176,7 +2176,7 @@ export const PortfolioUser = {
2176
2176
  async get(props, client) {
2177
2177
  const GET_ONE_PORTFOLIOUSER = gql `
2178
2178
  query getOnePortfolioUser($where: PortfolioUserWhereUniqueInput!) {
2179
- PortfolioUser(where: $where) {
2179
+ portfolioUsers(where: $where) {
2180
2180
  id
2181
2181
  userId
2182
2182
  portfolioId
@@ -2166,7 +2166,7 @@ export const RiskAllocation = {
2166
2166
  async get(props, client) {
2167
2167
  const GET_ONE_RISKALLOCATION = gql `
2168
2168
  query getOneRiskAllocation($where: RiskAllocationWhereUniqueInput!) {
2169
- RiskAllocation(where: $where) {
2169
+ riskAllocations(where: $where) {
2170
2170
  id
2171
2171
  userId
2172
2172
  portfolioId
@@ -1704,7 +1704,7 @@ export const Session = {
1704
1704
  async get(props, client) {
1705
1705
  const GET_ONE_SESSION = gql `
1706
1706
  query getOneSession($where: SessionWhereUniqueInput!) {
1707
- Session(where: $where) {
1707
+ sessions(where: $where) {
1708
1708
  id
1709
1709
  sessionToken
1710
1710
  userId
package/server/Trade.mjs CHANGED
@@ -2523,7 +2523,7 @@ export const Trade = {
2523
2523
  async get(props, client) {
2524
2524
  const GET_ONE_TRADE = gql `
2525
2525
  query getOneTrade($where: TradeWhereUniqueInput!) {
2526
- Trade(where: $where) {
2526
+ trades(where: $where) {
2527
2527
  id
2528
2528
  userId
2529
2529
  portfolioId
@@ -1454,7 +1454,7 @@ export const TradeStep = {
1454
1454
  async get(props, client) {
1455
1455
  const GET_ONE_TRADESTEP = gql `
1456
1456
  query getOneTradeStep($where: TradeStepWhereUniqueInput!) {
1457
- TradeStep(where: $where) {
1457
+ tradeSteps(where: $where) {
1458
1458
  id
1459
1459
  tradeId
1460
1460
  sequence
package/server/User.mjs CHANGED
@@ -2469,7 +2469,7 @@ export const User = {
2469
2469
  async get(props, client) {
2470
2470
  const GET_ONE_USER = gql `
2471
2471
  query getOneUser($where: UserWhereUniqueInput!) {
2472
- User(where: $where) {
2472
+ users(where: $where) {
2473
2473
  id
2474
2474
  name
2475
2475
  email
@@ -169,7 +169,7 @@ export const VerificationToken = {
169
169
  async get(props, client) {
170
170
  const GET_ONE_VERIFICATIONTOKEN = gql `
171
171
  query getOneVerificationToken($where: VerificationTokenWhereUniqueInput!) {
172
- VerificationToken(where: $where) {
172
+ verificationTokens(where: $where) {
173
173
  id
174
174
  identifier
175
175
  token