@autifyhq/autify-sdk 0.3.0 → 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 { CapabilityOption, CreateUrlReplacementRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, Scenario, TestPlanResult, UpdateUrlReplacementRequest, UrlReplacement } from "./openapi";
2
+ import { CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, 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;
@@ -8,6 +8,25 @@ declare type Options = Readonly<{
8
8
  export declare class WebClient {
9
9
  readonly version: string;
10
10
  constructor(accessToken: string, { basePath, userAgent }?: Options);
11
+ private readonly autifyConnectApi;
12
+ /**
13
+ * You can generate a new access point by passing in its name.
14
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
15
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
16
+ * @param {*} [options] Override http request option.
17
+ * @throws {RequiredError}
18
+ * @memberof AutifyConnectApi
19
+ */
20
+ createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any>>;
21
+ /**
22
+ * You can delete an access point by passing in its name.
23
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
24
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ * @memberof AutifyConnectApi
28
+ */
29
+ deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
11
30
  private readonly capabilityApi;
12
31
  /**
13
32
  * List available Capabilities.
@@ -33,12 +33,35 @@ class WebClient {
33
33
  formDataCtor: CustomFormData,
34
34
  baseOptions,
35
35
  });
36
+ this.autifyConnectApi = new openapi_1.AutifyConnectApi(configuration);
36
37
  this.capabilityApi = new openapi_1.CapabilityApi(configuration);
37
38
  this.resultApi = new openapi_1.ResultApi(configuration);
38
39
  this.scenarioApi = new openapi_1.ScenarioApi(configuration);
39
40
  this.scheduleApi = new openapi_1.ScheduleApi(configuration);
40
41
  this.urlReplacementApi = new openapi_1.UrlReplacementApi(configuration);
41
42
  }
43
+ /**
44
+ * You can generate a new access point by passing in its name.
45
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
46
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ * @memberof AutifyConnectApi
50
+ */
51
+ createAccessPoint(projectId, createAccessPointRequest, options) {
52
+ return this.autifyConnectApi.createAccessPoint(projectId, createAccessPointRequest, options);
53
+ }
54
+ /**
55
+ * You can delete an access point by passing in its name.
56
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
57
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ * @memberof AutifyConnectApi
61
+ */
62
+ deleteAccessPoint(projectId, deleteAccessPointRequest, options) {
63
+ return this.autifyConnectApi.deleteAccessPoint(projectId, deleteAccessPointRequest, options);
64
+ }
42
65
  /**
43
66
  * List available Capabilities.
44
67
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
@@ -122,6 +122,94 @@ export interface CapabilityOption {
122
122
  */
123
123
  unsupported?: boolean;
124
124
  }
125
+ /**
126
+ *
127
+ * @export
128
+ * @interface CreateAccessPoint400Response
129
+ */
130
+ export interface CreateAccessPoint400Response {
131
+ /**
132
+ *
133
+ * @type {Array<CreateAccessPoint400ResponseErrorsInner>}
134
+ * @memberof CreateAccessPoint400Response
135
+ */
136
+ errors?: Array<CreateAccessPoint400ResponseErrorsInner>;
137
+ }
138
+ /**
139
+ *
140
+ * @export
141
+ * @interface CreateAccessPoint400ResponseErrorsInner
142
+ */
143
+ export interface CreateAccessPoint400ResponseErrorsInner {
144
+ /**
145
+ *
146
+ * @type {number}
147
+ * @memberof CreateAccessPoint400ResponseErrorsInner
148
+ */
149
+ code?: number;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof CreateAccessPoint400ResponseErrorsInner
154
+ */
155
+ message?: string;
156
+ }
157
+ /**
158
+ *
159
+ * @export
160
+ * @interface CreateAccessPointRequest
161
+ */
162
+ export interface CreateAccessPointRequest {
163
+ /**
164
+ * Name of the access point to be created
165
+ * @type {string}
166
+ * @memberof CreateAccessPointRequest
167
+ */
168
+ name: string;
169
+ }
170
+ /**
171
+ *
172
+ * @export
173
+ * @interface CreateAccessPointResult
174
+ */
175
+ export interface CreateAccessPointResult {
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof CreateAccessPointResult
180
+ */
181
+ name: string;
182
+ /**
183
+ *
184
+ * @type {string}
185
+ * @memberof CreateAccessPointResult
186
+ */
187
+ key: string;
188
+ /**
189
+ *
190
+ * @type {string}
191
+ * @memberof CreateAccessPointResult
192
+ */
193
+ creator: string;
194
+ /**
195
+ *
196
+ * @type {string}
197
+ * @memberof CreateAccessPointResult
198
+ */
199
+ last_use?: string;
200
+ /**
201
+ *
202
+ * @type {string}
203
+ * @memberof CreateAccessPointResult
204
+ */
205
+ created_at?: string;
206
+ /**
207
+ *
208
+ * @type {string}
209
+ * @memberof CreateAccessPointResult
210
+ */
211
+ updated_at?: string;
212
+ }
125
213
  /**
126
214
  *
127
215
  * @export
@@ -141,6 +229,51 @@ export interface CreateUrlReplacementRequest {
141
229
  */
142
230
  replacement_url: string;
143
231
  }
232
+ /**
233
+ *
234
+ * @export
235
+ * @interface DeleteAccessPoint404Response
236
+ */
237
+ export interface DeleteAccessPoint404Response {
238
+ /**
239
+ *
240
+ * @type {Array<DeleteAccessPoint404ResponseErrorsInner>}
241
+ * @memberof DeleteAccessPoint404Response
242
+ */
243
+ errors?: Array<DeleteAccessPoint404ResponseErrorsInner>;
244
+ }
245
+ /**
246
+ *
247
+ * @export
248
+ * @interface DeleteAccessPoint404ResponseErrorsInner
249
+ */
250
+ export interface DeleteAccessPoint404ResponseErrorsInner {
251
+ /**
252
+ *
253
+ * @type {number}
254
+ * @memberof DeleteAccessPoint404ResponseErrorsInner
255
+ */
256
+ code?: number;
257
+ /**
258
+ *
259
+ * @type {string}
260
+ * @memberof DeleteAccessPoint404ResponseErrorsInner
261
+ */
262
+ message?: string;
263
+ }
264
+ /**
265
+ *
266
+ * @export
267
+ * @interface DeleteAccessPointRequest
268
+ */
269
+ export interface DeleteAccessPointRequest {
270
+ /**
271
+ * Name of the access point to be deleted
272
+ * @type {string}
273
+ * @memberof DeleteAccessPointRequest
274
+ */
275
+ name: string;
276
+ }
144
277
  /**
145
278
  *
146
279
  * @export
@@ -918,6 +1051,98 @@ export interface UrlReplacement {
918
1051
  */
919
1052
  updated_at: string;
920
1053
  }
1054
+ /**
1055
+ * AutifyConnectApi - axios parameter creator
1056
+ * @export
1057
+ */
1058
+ export declare const AutifyConnectApiAxiosParamCreator: (configuration?: Configuration) => {
1059
+ /**
1060
+ * You can generate a new access point by passing in its name.
1061
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1062
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ createAccessPoint: (projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1067
+ /**
1068
+ * You can delete an access point by passing in its name.
1069
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1070
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
1071
+ * @param {*} [options] Override http request option.
1072
+ * @throws {RequiredError}
1073
+ */
1074
+ deleteAccessPoint: (projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1075
+ };
1076
+ /**
1077
+ * AutifyConnectApi - functional programming interface
1078
+ * @export
1079
+ */
1080
+ export declare const AutifyConnectApiFp: (configuration?: Configuration) => {
1081
+ /**
1082
+ * You can generate a new access point by passing in its name.
1083
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1084
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccessPointResult>>;
1089
+ /**
1090
+ * You can delete an access point by passing in its name.
1091
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1092
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
1097
+ };
1098
+ /**
1099
+ * AutifyConnectApi - factory interface
1100
+ * @export
1101
+ */
1102
+ export declare const AutifyConnectApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1103
+ /**
1104
+ * You can generate a new access point by passing in its name.
1105
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1106
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: any): AxiosPromise<CreateAccessPointResult>;
1111
+ /**
1112
+ * You can delete an access point by passing in its name.
1113
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1114
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ */
1118
+ deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: any): AxiosPromise<object>;
1119
+ };
1120
+ /**
1121
+ * AutifyConnectApi - object-oriented interface
1122
+ * @export
1123
+ * @class AutifyConnectApi
1124
+ * @extends {BaseAPI}
1125
+ */
1126
+ export declare class AutifyConnectApi extends BaseAPI {
1127
+ /**
1128
+ * You can generate a new access point by passing in its name.
1129
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1130
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ * @memberof AutifyConnectApi
1134
+ */
1135
+ createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any>>;
1136
+ /**
1137
+ * You can delete an access point by passing in its name.
1138
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
1139
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ * @memberof AutifyConnectApi
1143
+ */
1144
+ deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
1145
+ }
921
1146
  /**
922
1147
  * CapabilityApi - axios parameter creator
923
1148
  * @export
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.TestPlanResultStatusEnum = exports.TestPlanCapabilityResultStatusEnum = exports.TestCaseResultStatusEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DescribeResult200ResponseStatusEnum = void 0;
16
+ exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatusEnum = exports.TestPlanCapabilityResultStatusEnum = exports.TestCaseResultStatusEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DescribeResult200ResponseStatusEnum = void 0;
17
17
  const tslib_1 = require("tslib");
18
18
  const axios_1 = tslib_1.__importDefault(require("axios"));
19
19
  // URLSearchParams not necessarily used
@@ -61,6 +61,202 @@ exports.TestPlanResultStatusEnum = {
61
61
  Skipped: "skipped",
62
62
  InternalError: "internal_error",
63
63
  };
64
+ /**
65
+ * AutifyConnectApi - axios parameter creator
66
+ * @export
67
+ */
68
+ const AutifyConnectApiAxiosParamCreator = function (configuration) {
69
+ return {
70
+ /**
71
+ * You can generate a new access point by passing in its name.
72
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
73
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ createAccessPoint: async (projectId, createAccessPointRequest, options = {}) => {
78
+ // verify required parameter 'projectId' is not null or undefined
79
+ (0, common_1.assertParamExists)("createAccessPoint", "projectId", projectId);
80
+ // verify required parameter 'createAccessPointRequest' is not null or undefined
81
+ (0, common_1.assertParamExists)("createAccessPoint", "createAccessPointRequest", createAccessPointRequest);
82
+ const localVarPath = `/projects/{project_id}/autify_connect/access_points`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = {
90
+ method: "POST",
91
+ ...baseOptions,
92
+ ...options,
93
+ };
94
+ const localVarHeaderParameter = {};
95
+ const localVarQueryParameter = {};
96
+ // authentication bearerAuth required
97
+ // http bearer authentication required
98
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
99
+ localVarHeaderParameter["Content-Type"] = "application/json";
100
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
+ localVarRequestOptions.headers = {
103
+ ...localVarHeaderParameter,
104
+ ...headersFromBaseOptions,
105
+ ...options.headers,
106
+ };
107
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAccessPointRequest, localVarRequestOptions, configuration);
108
+ return {
109
+ url: (0, common_1.toPathString)(localVarUrlObj),
110
+ options: localVarRequestOptions,
111
+ };
112
+ },
113
+ /**
114
+ * You can delete an access point by passing in its name.
115
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
116
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ deleteAccessPoint: async (projectId, deleteAccessPointRequest, options = {}) => {
121
+ // verify required parameter 'projectId' is not null or undefined
122
+ (0, common_1.assertParamExists)("deleteAccessPoint", "projectId", projectId);
123
+ // verify required parameter 'deleteAccessPointRequest' is not null or undefined
124
+ (0, common_1.assertParamExists)("deleteAccessPoint", "deleteAccessPointRequest", deleteAccessPointRequest);
125
+ const localVarPath = `/projects/{project_id}/autify_connect/access_points`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
127
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
128
+ let baseOptions;
129
+ if (configuration) {
130
+ baseOptions = configuration.baseOptions;
131
+ }
132
+ const localVarRequestOptions = {
133
+ method: "DELETE",
134
+ ...baseOptions,
135
+ ...options,
136
+ };
137
+ const localVarHeaderParameter = {};
138
+ const localVarQueryParameter = {};
139
+ // authentication bearerAuth required
140
+ // http bearer authentication required
141
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
142
+ localVarHeaderParameter["Content-Type"] = "application/json";
143
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
+ localVarRequestOptions.headers = {
146
+ ...localVarHeaderParameter,
147
+ ...headersFromBaseOptions,
148
+ ...options.headers,
149
+ };
150
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteAccessPointRequest, localVarRequestOptions, configuration);
151
+ return {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ },
156
+ };
157
+ };
158
+ exports.AutifyConnectApiAxiosParamCreator = AutifyConnectApiAxiosParamCreator;
159
+ /**
160
+ * AutifyConnectApi - functional programming interface
161
+ * @export
162
+ */
163
+ const AutifyConnectApiFp = function (configuration) {
164
+ const localVarAxiosParamCreator = (0, exports.AutifyConnectApiAxiosParamCreator)(configuration);
165
+ return {
166
+ /**
167
+ * You can generate a new access point by passing in its name.
168
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
169
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ async createAccessPoint(projectId, createAccessPointRequest, options) {
174
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccessPoint(projectId, createAccessPointRequest, options);
175
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
176
+ },
177
+ /**
178
+ * You can delete an access point by passing in its name.
179
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
180
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ async deleteAccessPoint(projectId, deleteAccessPointRequest, options) {
185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccessPoint(projectId, deleteAccessPointRequest, options);
186
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
187
+ },
188
+ };
189
+ };
190
+ exports.AutifyConnectApiFp = AutifyConnectApiFp;
191
+ /**
192
+ * AutifyConnectApi - factory interface
193
+ * @export
194
+ */
195
+ const AutifyConnectApiFactory = function (configuration, basePath, axios) {
196
+ const localVarFp = (0, exports.AutifyConnectApiFp)(configuration);
197
+ return {
198
+ /**
199
+ * You can generate a new access point by passing in its name.
200
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
201
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ createAccessPoint(projectId, createAccessPointRequest, options) {
206
+ return localVarFp
207
+ .createAccessPoint(projectId, createAccessPointRequest, options)
208
+ .then((request) => request(axios, basePath));
209
+ },
210
+ /**
211
+ * You can delete an access point by passing in its name.
212
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
213
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ deleteAccessPoint(projectId, deleteAccessPointRequest, options) {
218
+ return localVarFp
219
+ .deleteAccessPoint(projectId, deleteAccessPointRequest, options)
220
+ .then((request) => request(axios, basePath));
221
+ },
222
+ };
223
+ };
224
+ exports.AutifyConnectApiFactory = AutifyConnectApiFactory;
225
+ /**
226
+ * AutifyConnectApi - object-oriented interface
227
+ * @export
228
+ * @class AutifyConnectApi
229
+ * @extends {BaseAPI}
230
+ */
231
+ class AutifyConnectApi extends base_1.BaseAPI {
232
+ /**
233
+ * You can generate a new access point by passing in its name.
234
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
235
+ * @param {CreateAccessPointRequest} createAccessPointRequest The name of the access point to be created
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ * @memberof AutifyConnectApi
239
+ */
240
+ createAccessPoint(projectId, createAccessPointRequest, options) {
241
+ return (0, exports.AutifyConnectApiFp)(this.configuration)
242
+ .createAccessPoint(projectId, createAccessPointRequest, options)
243
+ .then((request) => request(this.axios, this.basePath));
244
+ }
245
+ /**
246
+ * You can delete an access point by passing in its name.
247
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
248
+ * @param {DeleteAccessPointRequest} deleteAccessPointRequest The name of the access point to be deleted
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof AutifyConnectApi
252
+ */
253
+ deleteAccessPoint(projectId, deleteAccessPointRequest, options) {
254
+ return (0, exports.AutifyConnectApiFp)(this.configuration)
255
+ .deleteAccessPoint(projectId, deleteAccessPointRequest, options)
256
+ .then((request) => request(this.axios, this.basePath));
257
+ }
258
+ }
259
+ exports.AutifyConnectApi = AutifyConnectApi;
64
260
  /**
65
261
  * CapabilityApi - axios parameter creator
66
262
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -39,7 +39,7 @@
39
39
  "prettier": "^2.6.2",
40
40
  "shx": "^0.3.4",
41
41
  "ts-jest": "^28.0.5",
42
- "ts-morph": "^15.1.0",
42
+ "ts-morph": "^16.0.0",
43
43
  "ts-node": "^10.8.1",
44
44
  "typescript": "^4.7.3"
45
45
  },