-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathtypes.ts
More file actions
154 lines (129 loc) · 3.23 KB
/
types.ts
File metadata and controls
154 lines (129 loc) · 3.23 KB
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
/**
* Helper interface for an app that is provisioned with App Distribution
*/
export interface AabInfo {
name: string;
integrationState: IntegrationState;
testCertificate: TestCertificate | null;
}
export interface TestCertificate {
hashSha1: string;
hashSha256: string;
hashMd5: string;
}
/** Enum representing the App Bundles state for the App */
export enum IntegrationState {
AAB_INTEGRATION_STATE_UNSPECIFIED = "AAB_INTEGRATION_STATE_UNSPECIFIED",
INTEGRATED = "INTEGRATED",
PLAY_ACCOUNT_NOT_LINKED = "PLAY_ACCOUNT_NOT_LINKED",
NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT = "NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT",
APP_NOT_PUBLISHED = "APP_NOT_PUBLISHED",
AAB_STATE_UNAVAILABLE = "AAB_STATE_UNAVAILABLE",
PLAY_IAS_TERMS_NOT_ACCEPTED = "PLAY_IAS_TERMS_NOT_ACCEPTED",
}
export enum UploadReleaseResult {
UPLOAD_RELEASE_RESULT_UNSPECIFIED = "UPLOAD_RELEASE_RESULT_UNSPECIFIED",
RELEASE_CREATED = "RELEASE_CREATED",
RELEASE_UPDATED = "RELEASE_UPDATED",
RELEASE_UNMODIFIED = "RELEASE_UNMODIFIED",
}
export interface Release {
name: string;
releaseNotes: ReleaseNotes;
displayVersion: string;
buildVersion: string;
createTime: Date;
firebaseConsoleUri: string;
testingUri: string;
binaryDownloadUri: string;
}
export interface ReleaseNotes {
text: string;
}
export interface UploadReleaseResponse {
result: UploadReleaseResult;
release: Release;
}
export interface BatchRemoveTestersResponse {
emails: string[];
}
export interface ListGroupsResponse {
groups: Group[];
nextPageToken?: string;
}
export interface Group {
name: string;
displayName: string;
testerCount?: number;
releaseCount?: number;
inviteLinkCount?: number;
}
export interface ListTestersResponse {
testers: Tester[];
nextPageToken?: string;
}
export interface Tester {
name: string;
displayName?: string;
groups?: string[];
lastActivityTime: Date;
}
export interface CreateReleaseTestRequest {
releaseTest: ReleaseTest;
}
export interface TestDevice {
model: string;
version: string;
locale: string;
orientation: string;
}
export type TestState = "IN_PROGRESS" | "PASSED" | "FAILED" | "INCONCLUSIVE";
export interface DeviceExecution {
device: TestDevice;
state?: TestState;
failedReason?: string;
inconclusiveReason?: string;
}
export interface FieldHints {
usernameResourceName?: string;
passwordResourceName?: string;
}
export interface LoginCredential {
username?: string;
password?: string;
fieldHints?: FieldHints;
}
export interface ReleaseTest {
name?: string;
deviceExecutions: DeviceExecution[];
loginCredential?: LoginCredential;
testCase?: string;
}
export interface AiStep {
goal: string;
hint?: string;
successCriteria?: string;
}
export interface AiInstructions {
steps: AiStep[];
}
export interface TestCase {
name?: string;
displayName: string;
prerequisiteTestCase?: string;
aiInstructions: AiInstructions;
}
export interface ListTestCasesResponse {
testCases: TestCase[];
nextPageToken?: string;
}
export interface UpdateTestCaseRequest {
testCase: TestCase;
allowMissing?: boolean;
}
export interface BatchUpdateTestCasesRequest {
requests: UpdateTestCaseRequest[];
}
export interface BatchUpdateTestCasesResponse {
testCases: TestCase[];
}