Browse Source
			
			
			Release/1.131.1 (#804)
			
				* Add API version
* Update changelog
			
			
				pull/805/head
			
			
				1.131.1
			
		 
		
			
				
					
						
						Thomas Kaul
					
					4 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 10 changed files with 
16 additions and 
10 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/app/auth/auth.controller.ts
				
 
			
				- 
					
					
					 
					apps/api/src/app/subscription/subscription.service.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/account-cluster-risk/initial-investment.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/account-cluster-risk/single-account.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/currency-cluster-risk/base-currency-initial-investment.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/currency-cluster-risk/current-investment.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/currency-cluster-risk/initial-investment.ts
				
 
			
				- 
					
					
					 
					apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts
				
 
			
				- 
					
					
					 
					package.json
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
					 | 
					 | 
					The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
					 | 
					 | 
					and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					## 1.131.1 - 04.04.2022 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					### Fixed | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Fixed the missing API version in the _Stripe_ success callback url | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 1.131.0 - 02.04.2022 | 
					 | 
					 | 
					## 1.131.0 - 02.04.2022 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Added | 
					 | 
					 | 
					### Added | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -10,8 +10,8 @@ import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  Req, | 
					 | 
					 | 
					  Req, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  Res, | 
					 | 
					 | 
					  Res, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  UseGuards, | 
					 | 
					 | 
					  UseGuards, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  Version, | 
					 | 
					 | 
					  VERSION_NEUTRAL, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  VERSION_NEUTRAL | 
					 | 
					 | 
					  Version | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					} from '@nestjs/common'; | 
					 | 
					 | 
					} from '@nestjs/common'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { AuthGuard } from '@nestjs/passport'; | 
					 | 
					 | 
					import { AuthGuard } from '@nestjs/passport'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { StatusCodes, getReasonPhrase } from 'http-status-codes'; | 
					 | 
					 | 
					import { StatusCodes, getReasonPhrase } from 'http-status-codes'; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -45,7 +45,7 @@ export class SubscriptionService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      payment_method_types: ['card'], | 
					 | 
					 | 
					      payment_method_types: ['card'], | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      success_url: `${this.configurationService.get( | 
					 | 
					 | 
					      success_url: `${this.configurationService.get( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        'ROOT_URL' | 
					 | 
					 | 
					        'ROOT_URL' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      )}/api/subscription/stripe/callback?checkoutSessionId={CHECKOUT_SESSION_ID}` | 
					 | 
					 | 
					      )}/api/v1/subscription/stripe/callback?checkoutSessionId={CHECKOUT_SESSION_ID}` | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    }; | 
					 | 
					 | 
					    }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (couponId) { | 
					 | 
					 | 
					    if (couponId) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,10 +1,10 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { | 
					 | 
					 | 
					import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  PortfolioDetails, | 
					 | 
					 | 
					  PortfolioDetails, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  PortfolioPosition | 
					 | 
					 | 
					  PortfolioPosition | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} from '@ghostfolio/common/interfaces'; | 
					 | 
					 | 
					} from '@ghostfolio/common/interfaces'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,7 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { PortfolioDetails } from '@ghostfolio/common/interfaces'; | 
					 | 
					 | 
					import { PortfolioDetails } from '@ghostfolio/common/interfaces'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,7 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,7 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,7 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
					 | 
					 | 
					import { CurrentPositions } from '@ghostfolio/api/app/portfolio/interfaces/current-positions.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,6 +1,6 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
					 | 
					 | 
					import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
					 | 
					 | 
					import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; | 
					 | 
					 | 
					import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { Rule } from '../../rule'; | 
					 | 
					 | 
					import { Rule } from '../../rule'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
						
					 | 
					@ -1,6 +1,6 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "name": "ghostfolio", | 
					 | 
					 | 
					  "name": "ghostfolio", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  "version": "1.131.0", | 
					 | 
					 | 
					  "version": "1.131.1", | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					  "homepage": "https://ghostfol.io", | 
					 | 
					 | 
					  "homepage": "https://ghostfol.io", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "license": "AGPL-3.0", | 
					 | 
					 | 
					  "license": "AGPL-3.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  "scripts": { | 
					 | 
					 | 
					  "scripts": { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |