@rivascva/dt-idl 1.1.133 → 1.1.135

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/dist/index.d.ts CHANGED
@@ -1858,6 +1858,7 @@ type Order = TradeServiceSchemas['Order'];
1858
1858
  type OrderType = TradeServiceSchemas['OrderType'];
1859
1859
  type Holding = TradeServiceSchemas['Holding'];
1860
1860
  type TradeServiceError = TradeServiceSchemas['Error'];
1861
+ type GetOrdersByPortfolioParams = operations$2['getOrdersByPortfolio']['parameters']['query'];
1861
1862
  type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];
1862
1863
  type SignupWithFirebasePayload = UserServiceSchemas['SignupWithFirebasePayload'];
1863
1864
  type RefreshAccessTokenPayload = UserServiceSchemas['RefreshAccessTokenPayload'];
@@ -1872,4 +1873,4 @@ type UploadImageResponse = AssetServiceSchemas['UploadImageResponse'];
1872
1873
  type DeleteImagePayload = AssetServiceSchemas['DeleteImagePayload'];
1873
1874
  type AssetServiceError = AssetServiceSchemas['Error'];
1874
1875
 
1875
- export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type RefreshAccessTokenPayload, type SignupWithFirebasePayload, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdatePortfolioPayload, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
1876
+ export { type AddOrderPayload, type AddUserPayload, type AssetServiceError, type DeleteImagePayload, type FullQuote, type GetIndexesQueryParams, type GetOrdersByPortfolioParams, type GetSearchStocksQueryParams, type GetStockHistoryQueryParams, type GetStocksByExchangeQueryParams, type GetStocksBySymbolsQueryParams, type Holding, type ImageType, type Index, type LoginWithFirebasePayload, type LogoutPayload, type MarketServiceError, type NewsArticle, type Order, type OrderType, type Portfolio, type PortfolioType, type RefreshAccessTokenPayload, type SignupWithFirebasePayload, type SimpleQuote, type SortField, type SortOrder, type StockHistoryEntry, type StockHistoryTimeframe, type StockNewsArticle, type TradeServiceError, type UpdatePortfolioPayload, type UpdateUserPayload, type UploadImagePayload, type UploadImageResponse, type User, type UserServiceError, createAssetServiceClient, createMarketServiceClient, createTradeServiceClient, createUserServiceClient, isAssetServiceError, isMarketServiceError, isTradeServiceError, isUserServiceError };
package/go/auth/utils.go CHANGED
@@ -24,6 +24,8 @@ func CanActorAccessResourcesForUser(ctx context.Context, userId string) (bool, e
24
24
 
25
25
  // check if the actor is allowed to access the user id
26
26
  switch tokenType {
27
+ case "access:admin":
28
+ return true, nil
27
29
  case "access:user":
28
30
  return actorId == userId, nil
29
31
  case "access:service":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.133",
3
+ "version": "1.1.135",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/ts/types/types.ts CHANGED
@@ -2,7 +2,10 @@ import {
2
2
  components as MarketServiceComponents,
3
3
  operations as MarketServiceOperations,
4
4
  } from '@ts/services/dt-market-service';
5
- import { components as TradeServiceComponents } from '@ts/services/dt-trade-service';
5
+ import {
6
+ components as TradeServiceComponents,
7
+ operations as TradeServiceOperations,
8
+ } from '@ts/services/dt-trade-service';
6
9
  import { components as UserServiceComponents } from '@ts/services/dt-user-service';
7
10
  import { components as AssetServiceComponents } from '@ts/services/dt-asset-service';
8
11
 
@@ -37,6 +40,7 @@ export type Order = TradeServiceSchemas['Order'];
37
40
  export type OrderType = TradeServiceSchemas['OrderType'];
38
41
  export type Holding = TradeServiceSchemas['Holding'];
39
42
  export type TradeServiceError = TradeServiceSchemas['Error'];
43
+ export type GetOrdersByPortfolioParams = TradeServiceOperations['getOrdersByPortfolio']['parameters']['query'];
40
44
 
41
45
  // User Service Types
42
46
  export type LoginWithFirebasePayload = UserServiceSchemas['LoginWithFirebasePayload'];