mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
8 changed files with 58 additions and 10 deletions
@ -0,0 +1,6 @@ |
|||||
|
import { IsString } from 'class-validator'; |
||||
|
|
||||
|
export class AccessTokenLoginDto { |
||||
|
@IsString() |
||||
|
accessToken: string; |
||||
|
} |
||||
@ -0,0 +1,12 @@ |
|||||
|
import type { AttestationCredentialJSON } from '@ghostfolio/common/interfaces'; |
||||
|
|
||||
|
import { IsObject, IsOptional, IsString } from 'class-validator'; |
||||
|
|
||||
|
export class VerifyAttestationDto { |
||||
|
@IsObject() |
||||
|
credential: AttestationCredentialJSON; |
||||
|
|
||||
|
@IsOptional() |
||||
|
@IsString() |
||||
|
deviceName?: string; |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
import type { AssertionCredentialJSON } from '@ghostfolio/common/interfaces'; |
||||
|
|
||||
|
import { IsObject, IsString } from 'class-validator'; |
||||
|
|
||||
|
export class VerifyAuthenticationDto { |
||||
|
@IsObject() |
||||
|
credential: AssertionCredentialJSON; |
||||
|
|
||||
|
@IsString() |
||||
|
deviceId: string; |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
import { IsOptional, IsString } from 'class-validator'; |
||||
|
|
||||
|
export class CreateStripeCheckoutSessionDto { |
||||
|
@IsOptional() |
||||
|
@IsString() |
||||
|
couponId?: string; |
||||
|
|
||||
|
@IsString() |
||||
|
priceId: string; |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
import { IsString } from 'class-validator'; |
||||
|
|
||||
|
export class RedeemCouponDto { |
||||
|
@IsString() |
||||
|
couponCode: string; |
||||
|
} |
||||
Loading…
Reference in new issue