-
Notifications
You must be signed in to change notification settings - Fork 230
/
Copy pathAccountsInterfaces.ts
188 lines (177 loc) · 3.95 KB
/
AccountsInterfaces.ts
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ---------------------------------------------------------
*/
"use strict";
export interface Account {
/**
* Identifier for an Account
*/
accountId?: string;
/**
* Name for an account
*/
accountName?: string;
/**
* Owner of account
*/
accountOwner?: string;
/**
* Current account status
*/
accountStatus?: AccountStatus;
/**
* Type of account: Personal, Organization
*/
accountType?: AccountType;
/**
* Uri for an account
*/
accountUri?: string;
/**
* Who created the account
*/
createdBy?: string;
/**
* Date account was created
*/
createdDate?: Date;
hasMoved?: boolean;
/**
* Identity of last person to update the account
*/
lastUpdatedBy?: string;
/**
* Date account was last updated
*/
lastUpdatedDate?: Date;
/**
* Namespace for an account
*/
namespaceId?: string;
newCollectionId?: string;
/**
* Organization that created the account
*/
organizationName?: string;
/**
* Extended properties
*/
properties?: any;
/**
* Reason for current status
*/
statusReason?: string;
}
export interface AccountCreateInfoInternal {
accountName?: string;
creator?: string;
organization?: string;
preferences?: AccountPreferencesInternal;
properties?: any;
serviceDefinitions?: { key: string; value: string }[];
}
export interface AccountPreferencesInternal {
culture?: any;
language?: any;
timeZone?: any;
}
export enum AccountStatus {
None = 0,
/**
* This hosting account is active and assigned to a customer.
*/
Enabled = 1,
/**
* This hosting account is disabled.
*/
Disabled = 2,
/**
* This account is part of deletion batch and scheduled for deletion.
*/
Deleted = 3,
/**
* This account is not mastered locally and has physically moved.
*/
Moved = 4,
}
export enum AccountType {
Personal = 0,
Organization = 1,
}
export enum AccountUserStatus {
None = 0,
/**
* User has signed in at least once to the VSTS account
*/
Active = 1,
/**
* User cannot sign in; primarily used by admin to temporarily remove a user due to absence or license reallocation
*/
Disabled = 2,
/**
* User is removed from the VSTS account by the VSTS account admin
*/
Deleted = 3,
/**
* User is invited to join the VSTS account by the VSTS account admin, but has not signed up/signed in yet
*/
Pending = 4,
/**
* User can sign in; primarily used when license is in expired state and we give a grace period
*/
Expired = 5,
/**
* User is disabled; if reenabled, they will still be in the Pending state
*/
PendingDisabled = 6,
}
export var TypeInfo = {
Account: <any>{
},
AccountStatus: {
enumValues: {
"none": 0,
"enabled": 1,
"disabled": 2,
"deleted": 3,
"moved": 4
}
},
AccountType: {
enumValues: {
"personal": 0,
"organization": 1
}
},
AccountUserStatus: {
enumValues: {
"none": 0,
"active": 1,
"disabled": 2,
"deleted": 3,
"pending": 4,
"expired": 5,
"pendingDisabled": 6
}
},
};
TypeInfo.Account.fields = {
accountStatus: {
enumType: TypeInfo.AccountStatus
},
accountType: {
enumType: TypeInfo.AccountType
},
createdDate: {
isDate: true,
},
lastUpdatedDate: {
isDate: true,
}
};