-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
105 lines (89 loc) · 2.9 KB
/
types.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package main
type InputCredencialsFileDTO struct {
Users []UsersSctruct `json:"users"`
ServerAddress SourceAddressDTO `json:"source"`
SmarterMailConfig SmarterMailConfigDTO `json:"smartermail"`
}
type SmarterMailConfigDTO struct {
Host string `json:"host"`
Username string `json:"username"`
Password string `json:"password"`
Domain string `json:"domain"`
IsPasswordExpired bool `json:"passwordExpired"`
}
type SourceAddressDTO struct {
Address string `json:"address"`
Domain string `json:"domain"`
TLS bool `json:"tls/ssl"`
}
type UsersSctruct struct {
Username string `json:"email"`
TargetAccount string `json:"targetAccount"`
FullName string `json:"fullName"`
JobTitle string `json:"jobTitle"`
Password string `json:"password"`
}
type EmailAuthResult struct {
Email string
AuthError error
}
type EmailCreateResult struct {
Email string
CreateError error
}
type EmailMigrateResult struct {
Email string
Error error
}
type InMailAccount struct {
Email string
TargetAccount string
FullName string
JobTitle string
Password string
Domain string
}
type CreateUserInputDTO struct {
UserData `json:"userData"`
UserMailSettings `json:"userMailSettings"`
}
type UserData struct {
UserName string `json:"username"`
FullName string `json:"fullName"`
Password string `json:"password"`
IsPasswordExpired bool `json:"isPasswordExpired"`
SecurityFlags `json:"securityFlags"`
}
type SecurityFlags struct {
AuthType int `json:"authType"`
AuthenticatingWindowsDomain any `json:"authenticatingWindowsDomain"`
IsDomainAdmin bool `json:"isDomainAdmin"`
}
type UserMailSettings struct {
UserContactInfo `json:"userContactInfo"`
}
type UserContactInfo struct {
JobTitle string `json:"jobTitle"`
}
type MigrateMailboxStruct struct {
ImapAccount `json:"imapAccount"`
}
type ImapAccount struct {
ServerAddress string `json:"serverAddress"`
Username string `json:"username"`
Password string `json:"password"`
ServerPort int `json:"serverPort"`
UseSsl bool `json:"useSsl"`
EnableSpamFilter bool `json:"enableSpamFilter"`
IsManualRetrieval bool `json:"isManualRetrieval"`
AccountType string `json:"accountType"`
UseOnlyOnce bool `json:"useOnlyOnce"`
UserDisplayed bool `json:"userDisplayed"`
AccountTypeDescription string `json:"accountTypeDescription"`
ItemsToImport int `json:"itemsToImport"`
IsMailboxMigration bool `json:"isMailboxMigration"`
DeleteEverythingBeforeImport bool `json:"deleteEverythingBeforeImport"`
}
type ExpireUsersPasswordDTO struct {
EmailAddresses []string `json:"input"`
}