@autifyhq/autify-sdk 0.1.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from "axios";
2
- import { RunTestPlan201Response, RunTestPlanRequest, UploadBuild201Response } from "./openapi";
2
+ import { DescribeTestResult200Response, ListTestResults200Response, RunTestPlan201Response, RunTestPlanRequest, UploadBuild201Response } from "./openapi";
3
3
  export { BASE_PATH as MOBILE_BASE_PATH } from "./openapi/base";
4
4
  declare type Options = Readonly<{
5
5
  basePath?: string;
@@ -30,4 +30,27 @@ export declare class MobileClient {
30
30
  * @memberof TestPlansApi
31
31
  */
32
32
  runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any>>;
33
+ private readonly testResultsApi;
34
+ /**
35
+ * Get a test result.
36
+ * @summary Get a test result
37
+ * @param {string} projectId ID of the project from which the test results will be obtained.
38
+ * @param {string} id Test Result ID.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ * @memberof TestResultsApi
42
+ */
43
+ describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any>>;
44
+ /**
45
+ * List test results.
46
+ * @summary List test results
47
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
48
+ * @param {number} [page] Page number to be retrieved.
49
+ * @param {number} [perPage] Number of test results per page.
50
+ * @param {string} [testPlanId] ID of the test plan.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ * @memberof TestResultsApi
54
+ */
55
+ listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any>>;
33
56
  }
@@ -35,6 +35,7 @@ class MobileClient {
35
35
  });
36
36
  this.buildsApi = new openapi_1.BuildsApi(configuration);
37
37
  this.testPlansApi = new openapi_1.TestPlansApi(configuration);
38
+ this.testResultsApi = new openapi_1.TestResultsApi(configuration);
38
39
  }
39
40
  /**
40
41
  * Upload the build file.
@@ -60,5 +61,31 @@ class MobileClient {
60
61
  runTestPlan(testPlanId, runTestPlanRequest, options) {
61
62
  return this.testPlansApi.runTestPlan(testPlanId, runTestPlanRequest, options);
62
63
  }
64
+ /**
65
+ * Get a test result.
66
+ * @summary Get a test result
67
+ * @param {string} projectId ID of the project from which the test results will be obtained.
68
+ * @param {string} id Test Result ID.
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ * @memberof TestResultsApi
72
+ */
73
+ describeTestResult(projectId, id, options) {
74
+ return this.testResultsApi.describeTestResult(projectId, id, options);
75
+ }
76
+ /**
77
+ * List test results.
78
+ * @summary List test results
79
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
80
+ * @param {number} [page] Page number to be retrieved.
81
+ * @param {number} [perPage] Number of test results per page.
82
+ * @param {string} [testPlanId] ID of the test plan.
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ * @memberof TestResultsApi
86
+ */
87
+ listTestResults(projectId, page, perPage, testPlanId, options) {
88
+ return this.testResultsApi.listTestResults(projectId, page, perPage, testPlanId, options);
89
+ }
63
90
  }
64
91
  exports.MobileClient = MobileClient;
@@ -12,6 +12,291 @@
12
12
  import { Configuration } from "./configuration";
13
13
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
14
14
  import { RequestArgs, BaseAPI } from "./base";
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface DescribeTestResult200Response
19
+ */
20
+ export interface DescribeTestResult200Response {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof DescribeTestResult200Response
25
+ */
26
+ id?: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof DescribeTestResult200Response
31
+ */
32
+ status?: string;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof DescribeTestResult200Response
37
+ */
38
+ duration?: number | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof DescribeTestResult200Response
43
+ */
44
+ started_at?: string | null;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof DescribeTestResult200Response
49
+ */
50
+ finished_at?: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof DescribeTestResult200Response
55
+ */
56
+ created_at?: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof DescribeTestResult200Response
61
+ */
62
+ updated_at?: string;
63
+ /**
64
+ *
65
+ * @type {ListTestResults200ResponseDataInnerTestPlan}
66
+ * @memberof DescribeTestResult200Response
67
+ */
68
+ test_plan?: ListTestResults200ResponseDataInnerTestPlan;
69
+ /**
70
+ *
71
+ * @type {Array<DescribeTestResult200ResponseTestCaseResultsInner>}
72
+ * @memberof DescribeTestResult200Response
73
+ */
74
+ test_case_results?: Array<DescribeTestResult200ResponseTestCaseResultsInner>;
75
+ }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface DescribeTestResult200ResponseTestCaseResultsInner
80
+ */
81
+ export interface DescribeTestResult200ResponseTestCaseResultsInner {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInner
86
+ */
87
+ id?: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInner
92
+ */
93
+ status?: string;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInner
98
+ */
99
+ duration?: number | null;
100
+ /**
101
+ *
102
+ * @type {DescribeTestResult200ResponseTestCaseResultsInnerTestCase}
103
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInner
104
+ */
105
+ test_case?: DescribeTestResult200ResponseTestCaseResultsInnerTestCase;
106
+ }
107
+ /**
108
+ *
109
+ * @export
110
+ * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCase
111
+ */
112
+ export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCase {
113
+ /**
114
+ *
115
+ * @type {Array<DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner>}
116
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCase
117
+ */
118
+ environment_variables?: Array<DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner>;
119
+ /**
120
+ *
121
+ * @type {DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild}
122
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCase
123
+ */
124
+ build?: DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild;
125
+ /**
126
+ *
127
+ * @type {DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability}
128
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCase
129
+ */
130
+ capability?: DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability;
131
+ }
132
+ /**
133
+ *
134
+ * @export
135
+ * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild
136
+ */
137
+ export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild {
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild
142
+ */
143
+ id?: string;
144
+ }
145
+ /**
146
+ *
147
+ * @export
148
+ * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
149
+ */
150
+ export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability {
151
+ /**
152
+ *
153
+ * @type {string}
154
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
155
+ */
156
+ os?: string;
157
+ /**
158
+ *
159
+ * @type {string}
160
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
161
+ */
162
+ os_version?: string;
163
+ /**
164
+ *
165
+ * @type {string}
166
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
167
+ */
168
+ device?: string;
169
+ }
170
+ /**
171
+ *
172
+ * @export
173
+ * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner
174
+ */
175
+ export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner {
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner
180
+ */
181
+ key?: string;
182
+ /**
183
+ *
184
+ * @type {string}
185
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner
186
+ */
187
+ name?: string;
188
+ /**
189
+ *
190
+ * @type {string}
191
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner
192
+ */
193
+ value?: string;
194
+ }
195
+ /**
196
+ *
197
+ * @export
198
+ * @interface ListTestResults200Response
199
+ */
200
+ export interface ListTestResults200Response {
201
+ /**
202
+ *
203
+ * @type {number}
204
+ * @memberof ListTestResults200Response
205
+ */
206
+ total?: number;
207
+ /**
208
+ *
209
+ * @type {Array<ListTestResults200ResponseDataInner>}
210
+ * @memberof ListTestResults200Response
211
+ */
212
+ data?: Array<ListTestResults200ResponseDataInner>;
213
+ }
214
+ /**
215
+ *
216
+ * @export
217
+ * @interface ListTestResults200ResponseDataInner
218
+ */
219
+ export interface ListTestResults200ResponseDataInner {
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof ListTestResults200ResponseDataInner
224
+ */
225
+ id?: string;
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof ListTestResults200ResponseDataInner
230
+ */
231
+ status?: string;
232
+ /**
233
+ *
234
+ * @type {number}
235
+ * @memberof ListTestResults200ResponseDataInner
236
+ */
237
+ duration?: number | null;
238
+ /**
239
+ *
240
+ * @type {string}
241
+ * @memberof ListTestResults200ResponseDataInner
242
+ */
243
+ started_at?: string | null;
244
+ /**
245
+ *
246
+ * @type {string}
247
+ * @memberof ListTestResults200ResponseDataInner
248
+ */
249
+ finished_at?: string | null;
250
+ /**
251
+ *
252
+ * @type {string}
253
+ * @memberof ListTestResults200ResponseDataInner
254
+ */
255
+ created_at?: string;
256
+ /**
257
+ *
258
+ * @type {string}
259
+ * @memberof ListTestResults200ResponseDataInner
260
+ */
261
+ updated_at?: string;
262
+ /**
263
+ *
264
+ * @type {ListTestResults200ResponseDataInnerTestPlan}
265
+ * @memberof ListTestResults200ResponseDataInner
266
+ */
267
+ test_plan?: ListTestResults200ResponseDataInnerTestPlan;
268
+ }
269
+ /**
270
+ *
271
+ * @export
272
+ * @interface ListTestResults200ResponseDataInnerTestPlan
273
+ */
274
+ export interface ListTestResults200ResponseDataInnerTestPlan {
275
+ /**
276
+ *
277
+ * @type {string}
278
+ * @memberof ListTestResults200ResponseDataInnerTestPlan
279
+ */
280
+ id?: string;
281
+ /**
282
+ *
283
+ * @type {string}
284
+ * @memberof ListTestResults200ResponseDataInnerTestPlan
285
+ */
286
+ name?: string;
287
+ /**
288
+ *
289
+ * @type {string}
290
+ * @memberof ListTestResults200ResponseDataInnerTestPlan
291
+ */
292
+ created_at?: string;
293
+ /**
294
+ *
295
+ * @type {string}
296
+ * @memberof ListTestResults200ResponseDataInnerTestPlan
297
+ */
298
+ updated_at?: string;
299
+ }
15
300
  /**
16
301
  *
17
302
  * @export
@@ -314,3 +599,111 @@ export declare class TestPlansApi extends BaseAPI {
314
599
  */
315
600
  runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any>>;
316
601
  }
602
+ /**
603
+ * TestResultsApi - axios parameter creator
604
+ * @export
605
+ */
606
+ export declare const TestResultsApiAxiosParamCreator: (configuration?: Configuration) => {
607
+ /**
608
+ * Get a test result.
609
+ * @summary Get a test result
610
+ * @param {string} projectId ID of the project from which the test results will be obtained.
611
+ * @param {string} id Test Result ID.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ describeTestResult: (projectId: string, id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
616
+ /**
617
+ * List test results.
618
+ * @summary List test results
619
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
620
+ * @param {number} [page] Page number to be retrieved.
621
+ * @param {number} [perPage] Number of test results per page.
622
+ * @param {string} [testPlanId] ID of the test plan.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ listTestResults: (projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
627
+ };
628
+ /**
629
+ * TestResultsApi - functional programming interface
630
+ * @export
631
+ */
632
+ export declare const TestResultsApiFp: (configuration?: Configuration) => {
633
+ /**
634
+ * Get a test result.
635
+ * @summary Get a test result
636
+ * @param {string} projectId ID of the project from which the test results will be obtained.
637
+ * @param {string} id Test Result ID.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DescribeTestResult200Response>>;
642
+ /**
643
+ * List test results.
644
+ * @summary List test results
645
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
646
+ * @param {number} [page] Page number to be retrieved.
647
+ * @param {number} [perPage] Number of test results per page.
648
+ * @param {string} [testPlanId] ID of the test plan.
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTestResults200Response>>;
653
+ };
654
+ /**
655
+ * TestResultsApi - factory interface
656
+ * @export
657
+ */
658
+ export declare const TestResultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
659
+ /**
660
+ * Get a test result.
661
+ * @summary Get a test result
662
+ * @param {string} projectId ID of the project from which the test results will be obtained.
663
+ * @param {string} id Test Result ID.
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ describeTestResult(projectId: string, id: string, options?: any): AxiosPromise<DescribeTestResult200Response>;
668
+ /**
669
+ * List test results.
670
+ * @summary List test results
671
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
672
+ * @param {number} [page] Page number to be retrieved.
673
+ * @param {number} [perPage] Number of test results per page.
674
+ * @param {string} [testPlanId] ID of the test plan.
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: any): AxiosPromise<ListTestResults200Response>;
679
+ };
680
+ /**
681
+ * TestResultsApi - object-oriented interface
682
+ * @export
683
+ * @class TestResultsApi
684
+ * @extends {BaseAPI}
685
+ */
686
+ export declare class TestResultsApi extends BaseAPI {
687
+ /**
688
+ * Get a test result.
689
+ * @summary Get a test result
690
+ * @param {string} projectId ID of the project from which the test results will be obtained.
691
+ * @param {string} id Test Result ID.
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ * @memberof TestResultsApi
695
+ */
696
+ describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any>>;
697
+ /**
698
+ * List test results.
699
+ * @summary List test results
700
+ * @param {string} projectId ID of the project from which the list of test results will be retrieved.
701
+ * @param {number} [page] Page number to be retrieved.
702
+ * @param {number} [perPage] Number of test results per page.
703
+ * @param {string} [testPlanId] ID of the test plan.
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ * @memberof TestResultsApi
707
+ */
708
+ listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any>>;
709
+ }