universo-platform-3d

Форк
0
76 строк · 1.3 Кб
1
import { ApiProperty } from '@nestjs/swagger'
2
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator'
3

4
export class CreateUserGroupDto {
5
  /**
6
   * Required properties
7
   */
8
  @IsNotEmpty()
9
  @IsString()
10
  @ApiProperty()
11
  name: string
12

13
  @IsNotEmpty()
14
  @IsBoolean()
15
  @ApiProperty()
16
  public: boolean
17

18
  /**
19
   * Optional properties
20
   */
21

22
  @IsOptional()
23
  @IsString()
24
  @ApiProperty()
25
  publicDescription: string
26

27
  @IsOptional()
28
  @IsString()
29
  @ApiProperty()
30
  primaryContact: string // TODO is this a userId?
31

32
  @IsOptional()
33
  @IsString({ each: true })
34
  @ApiProperty()
35
  moderators: string[]
36

37
  @IsOptional()
38
  @IsString({ each: true })
39
  @ApiProperty()
40
  owners: string[]
41

42
  @IsOptional()
43
  @IsString()
44
  @ApiProperty()
45
  image: string // url. TODO make this more clear
46

47
  @IsOptional()
48
  @IsString()
49
  @ApiProperty()
50
  discordUrl: string
51

52
  @IsOptional()
53
  @IsString()
54
  @ApiProperty()
55
  polygonDaoContractPublicKey: string
56

57
  @IsOptional()
58
  @IsString()
59
  @ApiProperty()
60
  ethereumDaoContractPublicKey: string
61

62
  @IsOptional()
63
  @IsString()
64
  @ApiProperty()
65
  twitterUrl: string
66

67
  @IsOptional()
68
  @IsString()
69
  @ApiProperty()
70
  websiteUrl: string
71

72
  @IsOptional()
73
  @IsString()
74
  @ApiProperty()
75
  creator: string // Temporarily add as optional until better handle by create request
76
}
77

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.