@autifyhq/autify-sdk 0.5.0 → 0.7.0-axios-v1.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 { CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, Scenario, TestPlanResult, UpdateUrlReplacementRequest, UrlReplacement } from "./openapi";
|
|
2
|
+
import { AccessPoint, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, Scenario, TestPlanResult, UpdateUrlReplacementRequest, UrlReplacement } from "./openapi";
|
|
3
3
|
export { BASE_PATH as WEB_BASE_PATH } from "./openapi/base";
|
|
4
4
|
declare type Options = Readonly<{
|
|
5
5
|
basePath?: string;
|
|
@@ -27,6 +27,15 @@ export declare class WebClient {
|
|
|
27
27
|
* @memberof AutifyConnectApi
|
|
28
28
|
*/
|
|
29
29
|
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
30
|
+
/**
|
|
31
|
+
* List access points for the project.
|
|
32
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
33
|
+
* @param {number} [page] The number of page returns.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof AutifyConnectApi
|
|
37
|
+
*/
|
|
38
|
+
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any>>;
|
|
30
39
|
private readonly capabilityApi;
|
|
31
40
|
/**
|
|
32
41
|
* List available Capabilities.
|
|
@@ -92,11 +101,12 @@ export declare class WebClient {
|
|
|
92
101
|
/**
|
|
93
102
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
94
103
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
104
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
95
105
|
* @param {*} [options] Override http request option.
|
|
96
106
|
* @throws {RequiredError}
|
|
97
107
|
* @memberof ScheduleApi
|
|
98
108
|
*/
|
|
99
|
-
executeSchedule(scheduleId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
|
|
109
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
|
|
100
110
|
private readonly urlReplacementApi;
|
|
101
111
|
/**
|
|
102
112
|
* Create a new url replacement for the test plan
|
|
@@ -64,6 +64,17 @@ class WebClient {
|
|
|
64
64
|
deleteAccessPoint(projectId, deleteAccessPointRequest, options) {
|
|
65
65
|
return this.autifyConnectApi.deleteAccessPoint(projectId, deleteAccessPointRequest, options);
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* List access points for the project.
|
|
69
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
70
|
+
* @param {number} [page] The number of page returns.
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @memberof AutifyConnectApi
|
|
74
|
+
*/
|
|
75
|
+
listAccessPoints(projectId, page, options) {
|
|
76
|
+
return this.autifyConnectApi.listAccessPoints(projectId, page, options);
|
|
77
|
+
}
|
|
67
78
|
/**
|
|
68
79
|
* List available Capabilities.
|
|
69
80
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
|
|
@@ -137,12 +148,13 @@ class WebClient {
|
|
|
137
148
|
/**
|
|
138
149
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
139
150
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
151
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
140
152
|
* @param {*} [options] Override http request option.
|
|
141
153
|
* @throws {RequiredError}
|
|
142
154
|
* @memberof ScheduleApi
|
|
143
155
|
*/
|
|
144
|
-
executeSchedule(scheduleId, options) {
|
|
145
|
-
return this.scheduleApi.executeSchedule(scheduleId, options);
|
|
156
|
+
executeSchedule(scheduleId, executeScheduleRequest, options) {
|
|
157
|
+
return this.scheduleApi.executeSchedule(scheduleId, executeScheduleRequest, options);
|
|
146
158
|
}
|
|
147
159
|
/**
|
|
148
160
|
* Create a new url replacement for the test plan
|
|
@@ -12,6 +12,43 @@
|
|
|
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 AccessPoint
|
|
19
|
+
*/
|
|
20
|
+
export interface AccessPoint {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof AccessPoint
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof AccessPoint
|
|
31
|
+
*/
|
|
32
|
+
last_use?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof AccessPoint
|
|
37
|
+
*/
|
|
38
|
+
creator: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof AccessPoint
|
|
43
|
+
*/
|
|
44
|
+
created_at: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AccessPoint
|
|
49
|
+
*/
|
|
50
|
+
updated_at: string;
|
|
51
|
+
}
|
|
15
52
|
/**
|
|
16
53
|
*
|
|
17
54
|
* @export
|
|
@@ -698,6 +735,32 @@ export interface ExecuteSchedule404ResponseErrorsInner {
|
|
|
698
735
|
*/
|
|
699
736
|
message?: string;
|
|
700
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @export
|
|
741
|
+
* @interface ExecuteScheduleRequest
|
|
742
|
+
*/
|
|
743
|
+
export interface ExecuteScheduleRequest {
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @type {ExecuteScheduleRequestAutifyConnect}
|
|
747
|
+
* @memberof ExecuteScheduleRequest
|
|
748
|
+
*/
|
|
749
|
+
autify_connect?: ExecuteScheduleRequestAutifyConnect;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @export
|
|
754
|
+
* @interface ExecuteScheduleRequestAutifyConnect
|
|
755
|
+
*/
|
|
756
|
+
export interface ExecuteScheduleRequestAutifyConnect {
|
|
757
|
+
/**
|
|
758
|
+
* The name of access point to override the original settings. When null is given, the test_plan will run without Autify Connect.
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof ExecuteScheduleRequestAutifyConnect
|
|
761
|
+
*/
|
|
762
|
+
name: string | null;
|
|
763
|
+
}
|
|
701
764
|
/**
|
|
702
765
|
*
|
|
703
766
|
* @export
|
|
@@ -1072,6 +1135,14 @@ export declare const AutifyConnectApiAxiosParamCreator: (configuration?: Configu
|
|
|
1072
1135
|
* @throws {RequiredError}
|
|
1073
1136
|
*/
|
|
1074
1137
|
deleteAccessPoint: (projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1138
|
+
/**
|
|
1139
|
+
* List access points for the project.
|
|
1140
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1141
|
+
* @param {number} [page] The number of page returns.
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
*/
|
|
1145
|
+
listAccessPoints: (projectId: number, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1075
1146
|
};
|
|
1076
1147
|
/**
|
|
1077
1148
|
* AutifyConnectApi - functional programming interface
|
|
@@ -1094,6 +1165,14 @@ export declare const AutifyConnectApiFp: (configuration?: Configuration) => {
|
|
|
1094
1165
|
* @throws {RequiredError}
|
|
1095
1166
|
*/
|
|
1096
1167
|
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
1168
|
+
/**
|
|
1169
|
+
* List access points for the project.
|
|
1170
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1171
|
+
* @param {number} [page] The number of page returns.
|
|
1172
|
+
* @param {*} [options] Override http request option.
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
*/
|
|
1175
|
+
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccessPoint>>>;
|
|
1097
1176
|
};
|
|
1098
1177
|
/**
|
|
1099
1178
|
* AutifyConnectApi - factory interface
|
|
@@ -1116,6 +1195,14 @@ export declare const AutifyConnectApiFactory: (configuration?: Configuration, ba
|
|
|
1116
1195
|
* @throws {RequiredError}
|
|
1117
1196
|
*/
|
|
1118
1197
|
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: any): AxiosPromise<object>;
|
|
1198
|
+
/**
|
|
1199
|
+
* List access points for the project.
|
|
1200
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1201
|
+
* @param {number} [page] The number of page returns.
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
listAccessPoints(projectId: number, page?: number, options?: any): AxiosPromise<Array<AccessPoint>>;
|
|
1119
1206
|
};
|
|
1120
1207
|
/**
|
|
1121
1208
|
* AutifyConnectApi - object-oriented interface
|
|
@@ -1142,6 +1229,15 @@ export declare class AutifyConnectApi extends BaseAPI {
|
|
|
1142
1229
|
* @memberof AutifyConnectApi
|
|
1143
1230
|
*/
|
|
1144
1231
|
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
1232
|
+
/**
|
|
1233
|
+
* List access points for the project.
|
|
1234
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1235
|
+
* @param {number} [page] The number of page returns.
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
* @memberof AutifyConnectApi
|
|
1239
|
+
*/
|
|
1240
|
+
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any>>;
|
|
1145
1241
|
}
|
|
1146
1242
|
/**
|
|
1147
1243
|
* CapabilityApi - axios parameter creator
|
|
@@ -1443,10 +1539,11 @@ export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1443
1539
|
/**
|
|
1444
1540
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
1445
1541
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1542
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
1446
1543
|
* @param {*} [options] Override http request option.
|
|
1447
1544
|
* @throws {RequiredError}
|
|
1448
1545
|
*/
|
|
1449
|
-
executeSchedule: (scheduleId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1546
|
+
executeSchedule: (scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1450
1547
|
};
|
|
1451
1548
|
/**
|
|
1452
1549
|
* ScheduleApi - functional programming interface
|
|
@@ -1456,10 +1553,11 @@ export declare const ScheduleApiFp: (configuration?: Configuration) => {
|
|
|
1456
1553
|
/**
|
|
1457
1554
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
1458
1555
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1556
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
1459
1557
|
* @param {*} [options] Override http request option.
|
|
1460
1558
|
* @throws {RequiredError}
|
|
1461
1559
|
*/
|
|
1462
|
-
executeSchedule(scheduleId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteSchedule200Response>>;
|
|
1560
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteSchedule200Response>>;
|
|
1463
1561
|
};
|
|
1464
1562
|
/**
|
|
1465
1563
|
* ScheduleApi - factory interface
|
|
@@ -1469,10 +1567,11 @@ export declare const ScheduleApiFactory: (configuration?: Configuration, basePat
|
|
|
1469
1567
|
/**
|
|
1470
1568
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
1471
1569
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1570
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
1472
1571
|
* @param {*} [options] Override http request option.
|
|
1473
1572
|
* @throws {RequiredError}
|
|
1474
1573
|
*/
|
|
1475
|
-
executeSchedule(scheduleId: number, options?: any): AxiosPromise<ExecuteSchedule200Response>;
|
|
1574
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: any): AxiosPromise<ExecuteSchedule200Response>;
|
|
1476
1575
|
};
|
|
1477
1576
|
/**
|
|
1478
1577
|
* ScheduleApi - object-oriented interface
|
|
@@ -1484,11 +1583,12 @@ export declare class ScheduleApi extends BaseAPI {
|
|
|
1484
1583
|
/**
|
|
1485
1584
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
1486
1585
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1586
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
1487
1587
|
* @param {*} [options] Override http request option.
|
|
1488
1588
|
* @throws {RequiredError}
|
|
1489
1589
|
* @memberof ScheduleApi
|
|
1490
1590
|
*/
|
|
1491
|
-
executeSchedule(scheduleId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
|
|
1591
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any>>;
|
|
1492
1592
|
}
|
|
1493
1593
|
/**
|
|
1494
1594
|
* UrlReplacementApi - axios parameter creator
|
|
@@ -153,6 +153,48 @@ const AutifyConnectApiAxiosParamCreator = function (configuration) {
|
|
|
153
153
|
options: localVarRequestOptions,
|
|
154
154
|
};
|
|
155
155
|
},
|
|
156
|
+
/**
|
|
157
|
+
* List access points for the project.
|
|
158
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
159
|
+
* @param {number} [page] The number of page returns.
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
listAccessPoints: async (projectId, page, options = {}) => {
|
|
164
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)("listAccessPoints", "projectId", projectId);
|
|
166
|
+
const localVarPath = `/projects/{project_id}/autify_connect/access_points`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = {
|
|
174
|
+
method: "GET",
|
|
175
|
+
...baseOptions,
|
|
176
|
+
...options,
|
|
177
|
+
};
|
|
178
|
+
const localVarHeaderParameter = {};
|
|
179
|
+
const localVarQueryParameter = {};
|
|
180
|
+
// authentication bearerAuth required
|
|
181
|
+
// http bearer authentication required
|
|
182
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
183
|
+
if (page !== undefined) {
|
|
184
|
+
localVarQueryParameter["page"] = page;
|
|
185
|
+
}
|
|
186
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = {
|
|
189
|
+
...localVarHeaderParameter,
|
|
190
|
+
...headersFromBaseOptions,
|
|
191
|
+
...options.headers,
|
|
192
|
+
};
|
|
193
|
+
return {
|
|
194
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
};
|
|
197
|
+
},
|
|
156
198
|
};
|
|
157
199
|
};
|
|
158
200
|
exports.AutifyConnectApiAxiosParamCreator = AutifyConnectApiAxiosParamCreator;
|
|
@@ -185,6 +227,17 @@ const AutifyConnectApiFp = function (configuration) {
|
|
|
185
227
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccessPoint(projectId, deleteAccessPointRequest, options);
|
|
186
228
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
187
229
|
},
|
|
230
|
+
/**
|
|
231
|
+
* List access points for the project.
|
|
232
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
233
|
+
* @param {number} [page] The number of page returns.
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
async listAccessPoints(projectId, page, options) {
|
|
238
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccessPoints(projectId, page, options);
|
|
239
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
240
|
+
},
|
|
188
241
|
};
|
|
189
242
|
};
|
|
190
243
|
exports.AutifyConnectApiFp = AutifyConnectApiFp;
|
|
@@ -219,6 +272,18 @@ const AutifyConnectApiFactory = function (configuration, basePath, axios) {
|
|
|
219
272
|
.deleteAccessPoint(projectId, deleteAccessPointRequest, options)
|
|
220
273
|
.then((request) => request(axios, basePath));
|
|
221
274
|
},
|
|
275
|
+
/**
|
|
276
|
+
* List access points for the project.
|
|
277
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
278
|
+
* @param {number} [page] The number of page returns.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
listAccessPoints(projectId, page, options) {
|
|
283
|
+
return localVarFp
|
|
284
|
+
.listAccessPoints(projectId, page, options)
|
|
285
|
+
.then((request) => request(axios, basePath));
|
|
286
|
+
},
|
|
222
287
|
};
|
|
223
288
|
};
|
|
224
289
|
exports.AutifyConnectApiFactory = AutifyConnectApiFactory;
|
|
@@ -255,6 +320,19 @@ class AutifyConnectApi extends base_1.BaseAPI {
|
|
|
255
320
|
.deleteAccessPoint(projectId, deleteAccessPointRequest, options)
|
|
256
321
|
.then((request) => request(this.axios, this.basePath));
|
|
257
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* List access points for the project.
|
|
325
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
326
|
+
* @param {number} [page] The number of page returns.
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
* @memberof AutifyConnectApi
|
|
330
|
+
*/
|
|
331
|
+
listAccessPoints(projectId, page, options) {
|
|
332
|
+
return (0, exports.AutifyConnectApiFp)(this.configuration)
|
|
333
|
+
.listAccessPoints(projectId, page, options)
|
|
334
|
+
.then((request) => request(this.axios, this.basePath));
|
|
335
|
+
}
|
|
258
336
|
}
|
|
259
337
|
exports.AutifyConnectApi = AutifyConnectApi;
|
|
260
338
|
/**
|
|
@@ -879,10 +957,11 @@ const ScheduleApiAxiosParamCreator = function (configuration) {
|
|
|
879
957
|
/**
|
|
880
958
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
881
959
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
960
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
882
961
|
* @param {*} [options] Override http request option.
|
|
883
962
|
* @throws {RequiredError}
|
|
884
963
|
*/
|
|
885
|
-
executeSchedule: async (scheduleId, options = {}) => {
|
|
964
|
+
executeSchedule: async (scheduleId, executeScheduleRequest, options = {}) => {
|
|
886
965
|
// verify required parameter 'scheduleId' is not null or undefined
|
|
887
966
|
(0, common_1.assertParamExists)("executeSchedule", "scheduleId", scheduleId);
|
|
888
967
|
const localVarPath = `/schedules/{schedule_id}`.replace(`{${"schedule_id"}}`, encodeURIComponent(String(scheduleId)));
|
|
@@ -902,6 +981,7 @@ const ScheduleApiAxiosParamCreator = function (configuration) {
|
|
|
902
981
|
// authentication bearerAuth required
|
|
903
982
|
// http bearer authentication required
|
|
904
983
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
984
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
905
985
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
906
986
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
907
987
|
localVarRequestOptions.headers = {
|
|
@@ -909,6 +989,7 @@ const ScheduleApiAxiosParamCreator = function (configuration) {
|
|
|
909
989
|
...headersFromBaseOptions,
|
|
910
990
|
...options.headers,
|
|
911
991
|
};
|
|
992
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeScheduleRequest, localVarRequestOptions, configuration);
|
|
912
993
|
return {
|
|
913
994
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
914
995
|
options: localVarRequestOptions,
|
|
@@ -927,11 +1008,12 @@ const ScheduleApiFp = function (configuration) {
|
|
|
927
1008
|
/**
|
|
928
1009
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
929
1010
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1011
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
930
1012
|
* @param {*} [options] Override http request option.
|
|
931
1013
|
* @throws {RequiredError}
|
|
932
1014
|
*/
|
|
933
|
-
async executeSchedule(scheduleId, options) {
|
|
934
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.executeSchedule(scheduleId, options);
|
|
1015
|
+
async executeSchedule(scheduleId, executeScheduleRequest, options) {
|
|
1016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeSchedule(scheduleId, executeScheduleRequest, options);
|
|
935
1017
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
936
1018
|
},
|
|
937
1019
|
};
|
|
@@ -947,12 +1029,13 @@ const ScheduleApiFactory = function (configuration, basePath, axios) {
|
|
|
947
1029
|
/**
|
|
948
1030
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
949
1031
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1032
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
950
1033
|
* @param {*} [options] Override http request option.
|
|
951
1034
|
* @throws {RequiredError}
|
|
952
1035
|
*/
|
|
953
|
-
executeSchedule(scheduleId, options) {
|
|
1036
|
+
executeSchedule(scheduleId, executeScheduleRequest, options) {
|
|
954
1037
|
return localVarFp
|
|
955
|
-
.executeSchedule(scheduleId, options)
|
|
1038
|
+
.executeSchedule(scheduleId, executeScheduleRequest, options)
|
|
956
1039
|
.then((request) => request(axios, basePath));
|
|
957
1040
|
},
|
|
958
1041
|
};
|
|
@@ -968,13 +1051,14 @@ class ScheduleApi extends base_1.BaseAPI {
|
|
|
968
1051
|
/**
|
|
969
1052
|
* Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)
|
|
970
1053
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1054
|
+
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
971
1055
|
* @param {*} [options] Override http request option.
|
|
972
1056
|
* @throws {RequiredError}
|
|
973
1057
|
* @memberof ScheduleApi
|
|
974
1058
|
*/
|
|
975
|
-
executeSchedule(scheduleId, options) {
|
|
1059
|
+
executeSchedule(scheduleId, executeScheduleRequest, options) {
|
|
976
1060
|
return (0, exports.ScheduleApiFp)(this.configuration)
|
|
977
|
-
.executeSchedule(scheduleId, options)
|
|
1061
|
+
.executeSchedule(scheduleId, executeScheduleRequest, options)
|
|
978
1062
|
.then((request) => request(this.axios, this.basePath));
|
|
979
1063
|
}
|
|
980
1064
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/autify-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-axios-v1.0",
|
|
4
4
|
"description": "Autify SDK for JavaScript",
|
|
5
5
|
"author": "Autify",
|
|
6
6
|
"homepage": "https://github.com/autifyhq/autify-sdk-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">=12.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"axios": "^
|
|
19
|
+
"axios": "^1.1.2",
|
|
20
20
|
"axios-logger": "^2.6.1",
|
|
21
21
|
"debug": "^4.3.4",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
@@ -44,10 +44,11 @@
|
|
|
44
44
|
"typescript": "^4.7.3"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
+
"update-swagger-web": "curl -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
|
|
47
48
|
"generate:openapi-client:web": "openapi-generator-cli generate -i ./swagger-web.yml -g typescript-axios -o src/generated/web/openapi --additional-properties withNodeImports=true,multipartFormData=true",
|
|
48
49
|
"generate:openapi-client:mobile": "openapi-generator-cli generate -i ./swagger-mobile.yml -g typescript-axios -o src/generated/mobile/openapi --additional-properties withNodeImports=true,multipartFormData=true",
|
|
49
50
|
"generate:sdk-client": "ts-node scripts/generate.ts",
|
|
50
|
-
"generate:client:web": "npm run generate:openapi-client:web && npm run generate:sdk-client web",
|
|
51
|
+
"generate:client:web": "npm run update-swagger-web && npm run generate:openapi-client:web && npm run generate:sdk-client web",
|
|
51
52
|
"generate:client:mobile": "npm run generate:openapi-client:mobile && npm run generate:sdk-client mobile",
|
|
52
53
|
"generate": "npm run generate:client:web && npm run generate:client:mobile && npm run lint && npm run format",
|
|
53
54
|
"build": "shx rm -rf dist && tsc -b",
|