File size: 787 Bytes
4327358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { ApiHideProperty, ApiProperty } from '@nestjs/swagger';

export enum QRCodeFormat {
  IMAGE = 'image',
  RAW = 'raw',
}

export class QRCodeQuery {
  format: QRCodeFormat = QRCodeFormat.IMAGE;
}

export class QRCodeValue {
  value: string;
}

export class RequestCodeRequest {
  @ApiProperty({
    description: 'Mobile phone number in international format',
    example: '12132132130',
  })
  phoneNumber: string;

  @ApiProperty({
    description:
      'How would you like to receive the one time code for registration? |sms|voice. Leave empty for Web pairing.',
    example: null,
    required: false,
  })
  method: string;

  @ApiHideProperty()
  localeLanguage: string;

  @ApiHideProperty()
  localeCountry: string;
}

export class PairingCodeResponse {
  code: string;
}