@autifyhq/autify-sdk 0.20.0 → 0.22.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 { AccessPoint, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, ProjectInfo, Scenario, TestPlanResult, TestPlanVariable, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
2
+ import { AccessPoint, BrowserTypeEnum, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, DeviceTypeEnum, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, OsTypeEnum, ProjectInfo, Scenario, TestPlanResult, TestPlanVariable, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
3
3
  export { BASE_PATH as WEB_BASE_PATH } from "./openapi/base";
4
4
  type Options = Readonly<{
5
5
  basePath?: string;
@@ -40,14 +40,16 @@ export declare class WebClient {
40
40
  /**
41
41
  * List available Capabilities.
42
42
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
43
- * @param {string} [os] os name to filter
44
- * @param {string} [browser] browser name to filter
45
- * @param {string} [deviceType] device_type name to filter
43
+ * @param {string} [os] os name to filter (deprecated)
44
+ * @param {OsTypeEnum} [osType] Type of the os to filter
45
+ * @param {string} [browser] browser name to filter (deprecated)
46
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
47
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
46
48
  * @param {*} [options] Override http request option.
47
49
  * @throws {RequiredError}
48
50
  * @memberof CapabilityApi
49
51
  */
50
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
52
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
51
53
  private readonly creditApi;
52
54
  /**
53
55
  * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
@@ -165,7 +167,7 @@ export declare class WebClient {
165
167
  * Update a url replacement for the test plan
166
168
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
167
169
  * @param {number} testPlanVariableId test_plan_variable id
168
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
170
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
169
171
  * @param {*} [options] Override http request option.
170
172
  * @throws {RequiredError}
171
173
  * @memberof TestPlanVariableApi
@@ -82,15 +82,17 @@ class WebClient {
82
82
  /**
83
83
  * List available Capabilities.
84
84
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
85
- * @param {string} [os] os name to filter
86
- * @param {string} [browser] browser name to filter
87
- * @param {string} [deviceType] device_type name to filter
85
+ * @param {string} [os] os name to filter (deprecated)
86
+ * @param {OsTypeEnum} [osType] Type of the os to filter
87
+ * @param {string} [browser] browser name to filter (deprecated)
88
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
89
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
88
90
  * @param {*} [options] Override http request option.
89
91
  * @throws {RequiredError}
90
92
  * @memberof CapabilityApi
91
93
  */
92
- listCapabilities(projectId, os, browser, deviceType, options) {
93
- return this.capabilityApi.listCapabilities(projectId, os, browser, deviceType, options);
94
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
95
+ return this.capabilityApi.listCapabilities(projectId, os, osType, browser, browserType, deviceType, options);
94
96
  }
95
97
  /**
96
98
  * Get the number of credits used in the project\\ \\ Notes:\\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
@@ -225,7 +227,7 @@ class WebClient {
225
227
  * Update a url replacement for the test plan
226
228
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
227
229
  * @param {number} testPlanVariableId test_plan_variable id
228
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
230
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
229
231
  * @param {*} [options] Override http request option.
230
232
  * @throws {RequiredError}
231
233
  * @memberof TestPlanVariableApi
@@ -49,6 +49,20 @@ export interface AccessPoint {
49
49
  */
50
50
  updated_at: string;
51
51
  }
52
+ /**
53
+ *
54
+ * @export
55
+ * @enum {string}
56
+ */
57
+ export declare const BrowserTypeEnum: {
58
+ readonly Chrome: "chrome";
59
+ readonly Firefox: "firefox";
60
+ readonly Safari: "safari";
61
+ readonly Edge: "edge";
62
+ readonly EdgeLegacy: "edge_legacy";
63
+ readonly Ie: "ie";
64
+ };
65
+ export type BrowserTypeEnum = (typeof BrowserTypeEnum)[keyof typeof BrowserTypeEnum];
52
66
  /**
53
67
  *
54
68
  * @export
@@ -122,6 +136,12 @@ export interface CapabilityOption {
122
136
  * @memberof CapabilityOption
123
137
  */
124
138
  os?: string;
139
+ /**
140
+ *
141
+ * @type {OsTypeEnum}
142
+ * @memberof CapabilityOption
143
+ */
144
+ os_type?: OsTypeEnum;
125
145
  /**
126
146
  *
127
147
  * @type {string}
@@ -136,34 +156,35 @@ export interface CapabilityOption {
136
156
  browser?: string;
137
157
  /**
138
158
  *
139
- * @type {string}
159
+ * @type {BrowserTypeEnum}
140
160
  * @memberof CapabilityOption
141
161
  */
142
- browser_version?: string;
162
+ browser_type?: BrowserTypeEnum;
143
163
  /**
144
164
  *
145
165
  * @type {string}
146
166
  * @memberof CapabilityOption
147
167
  */
148
- device?: string;
168
+ browser_version?: string;
149
169
  /**
150
170
  *
151
171
  * @type {string}
152
172
  * @memberof CapabilityOption
153
173
  */
154
- device_type?: string;
174
+ device?: string;
155
175
  /**
156
176
  *
157
- * @type {boolean}
177
+ * @type {DeviceTypeEnum}
158
178
  * @memberof CapabilityOption
159
179
  */
160
- unsupported?: boolean;
180
+ device_type?: DeviceTypeEnum;
161
181
  /**
162
- *
182
+ * (deprecated)
163
183
  * @type {boolean}
164
184
  * @memberof CapabilityOption
185
+ * @deprecated
165
186
  */
166
- no_new_registration?: boolean;
187
+ unsupported?: boolean;
167
188
  }
168
189
  /**
169
190
  *
@@ -429,6 +450,19 @@ export interface DescribeResult200Response {
429
450
  */
430
451
  test_plan?: TestPlan | null;
431
452
  }
453
+ /**
454
+ * mobile is deprecated and will be replaced by smartphone
455
+ * @export
456
+ * @enum {string}
457
+ */
458
+ export declare const DeviceTypeEnum: {
459
+ readonly Desktop: "desktop";
460
+ readonly Mobile: "mobile";
461
+ readonly Smartphone: "smartphone";
462
+ readonly Tablet: "tablet";
463
+ readonly Emulator: "emulator";
464
+ };
465
+ export type DeviceTypeEnum = (typeof DeviceTypeEnum)[keyof typeof DeviceTypeEnum];
432
466
  /**
433
467
  *
434
468
  * @export
@@ -564,8 +598,15 @@ export interface ExecuteScenariosRequestCapabilitiesInner {
564
598
  *
565
599
  * @type {string}
566
600
  * @memberof ExecuteScenariosRequestCapabilitiesInner
601
+ * @deprecated
567
602
  */
568
603
  os?: string;
604
+ /**
605
+ *
606
+ * @type {OsTypeEnum}
607
+ * @memberof ExecuteScenariosRequestCapabilitiesInner
608
+ */
609
+ os_type?: OsTypeEnum;
569
610
  /**
570
611
  *
571
612
  * @type {string}
@@ -582,14 +623,15 @@ export interface ExecuteScenariosRequestCapabilitiesInner {
582
623
  *
583
624
  * @type {string}
584
625
  * @memberof ExecuteScenariosRequestCapabilitiesInner
626
+ * @deprecated
585
627
  */
586
- device_type?: string;
628
+ browser?: string;
587
629
  /**
588
630
  *
589
- * @type {string}
631
+ * @type {BrowserTypeEnum}
590
632
  * @memberof ExecuteScenariosRequestCapabilitiesInner
591
633
  */
592
- browser?: string;
634
+ browser_type?: BrowserTypeEnum;
593
635
  /**
594
636
  *
595
637
  * @type {string}
@@ -789,6 +831,20 @@ export interface Label {
789
831
  */
790
832
  updated_at?: string;
791
833
  }
834
+ /**
835
+ *
836
+ * @export
837
+ * @enum {string}
838
+ */
839
+ export declare const OsTypeEnum: {
840
+ readonly Macos: "macos";
841
+ readonly Linux: "linux";
842
+ readonly Windows: "windows";
843
+ readonly WindowsServer: "windows_server";
844
+ readonly Ios: "ios";
845
+ readonly Android: "android";
846
+ };
847
+ export type OsTypeEnum = (typeof OsTypeEnum)[keyof typeof OsTypeEnum];
792
848
  /**
793
849
  *
794
850
  * @export
@@ -1441,13 +1497,15 @@ export declare const CapabilityApiAxiosParamCreator: (configuration?: Configurat
1441
1497
  /**
1442
1498
  * List available Capabilities.
1443
1499
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1444
- * @param {string} [os] os name to filter
1445
- * @param {string} [browser] browser name to filter
1446
- * @param {string} [deviceType] device_type name to filter
1500
+ * @param {string} [os] os name to filter (deprecated)
1501
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1502
+ * @param {string} [browser] browser name to filter (deprecated)
1503
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1504
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1447
1505
  * @param {*} [options] Override http request option.
1448
1506
  * @throws {RequiredError}
1449
1507
  */
1450
- listCapabilities: (projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1508
+ listCapabilities: (projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1451
1509
  };
1452
1510
  /**
1453
1511
  * CapabilityApi - functional programming interface
@@ -1457,13 +1515,15 @@ export declare const CapabilityApiFp: (configuration?: Configuration) => {
1457
1515
  /**
1458
1516
  * List available Capabilities.
1459
1517
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1460
- * @param {string} [os] os name to filter
1461
- * @param {string} [browser] browser name to filter
1462
- * @param {string} [deviceType] device_type name to filter
1518
+ * @param {string} [os] os name to filter (deprecated)
1519
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1520
+ * @param {string} [browser] browser name to filter (deprecated)
1521
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1522
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1463
1523
  * @param {*} [options] Override http request option.
1464
1524
  * @throws {RequiredError}
1465
1525
  */
1466
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CapabilityOption>>>;
1526
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CapabilityOption>>>;
1467
1527
  };
1468
1528
  /**
1469
1529
  * CapabilityApi - factory interface
@@ -1473,13 +1533,15 @@ export declare const CapabilityApiFactory: (configuration?: Configuration, baseP
1473
1533
  /**
1474
1534
  * List available Capabilities.
1475
1535
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1476
- * @param {string} [os] os name to filter
1477
- * @param {string} [browser] browser name to filter
1478
- * @param {string} [deviceType] device_type name to filter
1536
+ * @param {string} [os] os name to filter (deprecated)
1537
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1538
+ * @param {string} [browser] browser name to filter (deprecated)
1539
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1540
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1479
1541
  * @param {*} [options] Override http request option.
1480
1542
  * @throws {RequiredError}
1481
1543
  */
1482
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: any): AxiosPromise<Array<CapabilityOption>>;
1544
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: any): AxiosPromise<Array<CapabilityOption>>;
1483
1545
  };
1484
1546
  /**
1485
1547
  * CapabilityApi - object-oriented interface
@@ -1491,14 +1553,16 @@ export declare class CapabilityApi extends BaseAPI {
1491
1553
  /**
1492
1554
  * List available Capabilities.
1493
1555
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
1494
- * @param {string} [os] os name to filter
1495
- * @param {string} [browser] browser name to filter
1496
- * @param {string} [deviceType] device_type name to filter
1556
+ * @param {string} [os] os name to filter (deprecated)
1557
+ * @param {OsTypeEnum} [osType] Type of the os to filter
1558
+ * @param {string} [browser] browser name to filter (deprecated)
1559
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
1560
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
1497
1561
  * @param {*} [options] Override http request option.
1498
1562
  * @throws {RequiredError}
1499
1563
  * @memberof CapabilityApi
1500
1564
  */
1501
- listCapabilities(projectId: number, os?: string, browser?: string, deviceType?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
1565
+ listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any>>;
1502
1566
  }
1503
1567
  /**
1504
1568
  * CreditApi - axios parameter creator
@@ -1962,7 +2026,7 @@ export declare const TestPlanVariableApiAxiosParamCreator: (configuration?: Conf
1962
2026
  * Update a url replacement for the test plan
1963
2027
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1964
2028
  * @param {number} testPlanVariableId test_plan_variable id
1965
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2029
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1966
2030
  * @param {*} [options] Override http request option.
1967
2031
  * @throws {RequiredError}
1968
2032
  */
@@ -2000,7 +2064,7 @@ export declare const TestPlanVariableApiFp: (configuration?: Configuration) => {
2000
2064
  * Update a url replacement for the test plan
2001
2065
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2002
2066
  * @param {number} testPlanVariableId test_plan_variable id
2003
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2067
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2004
2068
  * @param {*} [options] Override http request option.
2005
2069
  * @throws {RequiredError}
2006
2070
  */
@@ -2038,7 +2102,7 @@ export declare const TestPlanVariableApiFactory: (configuration?: Configuration,
2038
2102
  * Update a url replacement for the test plan
2039
2103
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2040
2104
  * @param {number} testPlanVariableId test_plan_variable id
2041
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2105
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2042
2106
  * @param {*} [options] Override http request option.
2043
2107
  * @throws {RequiredError}
2044
2108
  */
@@ -2081,7 +2145,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
2081
2145
  * Update a url replacement for the test plan
2082
2146
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
2083
2147
  * @param {number} testPlanVariableId test_plan_variable id
2084
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
2148
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
2085
2149
  * @param {*} [options] Override http request option.
2086
2150
  * @throws {RequiredError}
2087
2151
  * @memberof TestPlanVariableApi
@@ -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.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = 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.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.ExecuteScenariosRequestExecutionTypeEnum = void 0;
16
+ exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = exports.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = 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.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TestPlanResultStatus = exports.TestCaseResultStatus = exports.OsTypeEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DeviceTypeEnum = exports.BrowserTypeEnum = 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
@@ -24,10 +24,48 @@ const url_1 = require("url");
24
24
  const common_1 = require("./common");
25
25
  // @ts-ignore
26
26
  const base_1 = require("./base");
27
+ /**
28
+ *
29
+ * @export
30
+ * @enum {string}
31
+ */
32
+ exports.BrowserTypeEnum = {
33
+ Chrome: "chrome",
34
+ Firefox: "firefox",
35
+ Safari: "safari",
36
+ Edge: "edge",
37
+ EdgeLegacy: "edge_legacy",
38
+ Ie: "ie",
39
+ };
40
+ /**
41
+ * mobile is deprecated and will be replaced by smartphone
42
+ * @export
43
+ * @enum {string}
44
+ */
45
+ exports.DeviceTypeEnum = {
46
+ Desktop: "desktop",
47
+ Mobile: "mobile",
48
+ Smartphone: "smartphone",
49
+ Tablet: "tablet",
50
+ Emulator: "emulator",
51
+ };
27
52
  exports.ExecuteScenariosRequestExecutionTypeEnum = {
28
53
  Parallel: "parallel",
29
54
  Sequential: "sequential",
30
55
  };
56
+ /**
57
+ *
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ exports.OsTypeEnum = {
62
+ Macos: "macos",
63
+ Linux: "linux",
64
+ Windows: "windows",
65
+ WindowsServer: "windows_server",
66
+ Ios: "ios",
67
+ Android: "android",
68
+ };
31
69
  /**
32
70
  *
33
71
  * @export
@@ -340,13 +378,15 @@ const CapabilityApiAxiosParamCreator = function (configuration) {
340
378
  /**
341
379
  * List available Capabilities.
342
380
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
343
- * @param {string} [os] os name to filter
344
- * @param {string} [browser] browser name to filter
345
- * @param {string} [deviceType] device_type name to filter
381
+ * @param {string} [os] os name to filter (deprecated)
382
+ * @param {OsTypeEnum} [osType] Type of the os to filter
383
+ * @param {string} [browser] browser name to filter (deprecated)
384
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
385
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
346
386
  * @param {*} [options] Override http request option.
347
387
  * @throws {RequiredError}
348
388
  */
349
- listCapabilities: async (projectId, os, browser, deviceType, options = {}) => {
389
+ listCapabilities: async (projectId, os, osType, browser, browserType, deviceType, options = {}) => {
350
390
  // verify required parameter 'projectId' is not null or undefined
351
391
  (0, common_1.assertParamExists)("listCapabilities", "projectId", projectId);
352
392
  const localVarPath = `/projects/{project_id}/capabilities`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
@@ -369,9 +409,15 @@ const CapabilityApiAxiosParamCreator = function (configuration) {
369
409
  if (os !== undefined) {
370
410
  localVarQueryParameter["os"] = os;
371
411
  }
412
+ if (osType !== undefined) {
413
+ localVarQueryParameter["os_type"] = osType;
414
+ }
372
415
  if (browser !== undefined) {
373
416
  localVarQueryParameter["browser"] = browser;
374
417
  }
418
+ if (browserType !== undefined) {
419
+ localVarQueryParameter["browser_type"] = browserType;
420
+ }
375
421
  if (deviceType !== undefined) {
376
422
  localVarQueryParameter["device_type"] = deviceType;
377
423
  }
@@ -400,14 +446,16 @@ const CapabilityApiFp = function (configuration) {
400
446
  /**
401
447
  * List available Capabilities.
402
448
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
403
- * @param {string} [os] os name to filter
404
- * @param {string} [browser] browser name to filter
405
- * @param {string} [deviceType] device_type name to filter
449
+ * @param {string} [os] os name to filter (deprecated)
450
+ * @param {OsTypeEnum} [osType] Type of the os to filter
451
+ * @param {string} [browser] browser name to filter (deprecated)
452
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
453
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
406
454
  * @param {*} [options] Override http request option.
407
455
  * @throws {RequiredError}
408
456
  */
409
- async listCapabilities(projectId, os, browser, deviceType, options) {
410
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCapabilities(projectId, os, browser, deviceType, options);
457
+ async listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCapabilities(projectId, os, osType, browser, browserType, deviceType, options);
411
459
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
412
460
  },
413
461
  };
@@ -423,15 +471,17 @@ const CapabilityApiFactory = function (configuration, basePath, axios) {
423
471
  /**
424
472
  * List available Capabilities.
425
473
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
426
- * @param {string} [os] os name to filter
427
- * @param {string} [browser] browser name to filter
428
- * @param {string} [deviceType] device_type name to filter
474
+ * @param {string} [os] os name to filter (deprecated)
475
+ * @param {OsTypeEnum} [osType] Type of the os to filter
476
+ * @param {string} [browser] browser name to filter (deprecated)
477
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
478
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
429
479
  * @param {*} [options] Override http request option.
430
480
  * @throws {RequiredError}
431
481
  */
432
- listCapabilities(projectId, os, browser, deviceType, options) {
482
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
433
483
  return localVarFp
434
- .listCapabilities(projectId, os, browser, deviceType, options)
484
+ .listCapabilities(projectId, os, osType, browser, browserType, deviceType, options)
435
485
  .then((request) => request(axios, basePath));
436
486
  },
437
487
  };
@@ -447,16 +497,18 @@ class CapabilityApi extends base_1.BaseAPI {
447
497
  /**
448
498
  * List available Capabilities.
449
499
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
450
- * @param {string} [os] os name to filter
451
- * @param {string} [browser] browser name to filter
452
- * @param {string} [deviceType] device_type name to filter
500
+ * @param {string} [os] os name to filter (deprecated)
501
+ * @param {OsTypeEnum} [osType] Type of the os to filter
502
+ * @param {string} [browser] browser name to filter (deprecated)
503
+ * @param {BrowserTypeEnum} [browserType] Type of the browser to filter
504
+ * @param {DeviceTypeEnum} [deviceType] device_type name to filter (mobile is deprecated)
453
505
  * @param {*} [options] Override http request option.
454
506
  * @throws {RequiredError}
455
507
  * @memberof CapabilityApi
456
508
  */
457
- listCapabilities(projectId, os, browser, deviceType, options) {
509
+ listCapabilities(projectId, os, osType, browser, browserType, deviceType, options) {
458
510
  return (0, exports.CapabilityApiFp)(this.configuration)
459
- .listCapabilities(projectId, os, browser, deviceType, options)
511
+ .listCapabilities(projectId, os, osType, browser, browserType, deviceType, options)
460
512
  .then((request) => request(this.axios, this.basePath));
461
513
  }
462
514
  }
@@ -1471,7 +1523,7 @@ const TestPlanVariableApiAxiosParamCreator = function (configuration) {
1471
1523
  * Update a url replacement for the test plan
1472
1524
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1473
1525
  * @param {number} testPlanVariableId test_plan_variable id
1474
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1526
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1475
1527
  * @param {*} [options] Override http request option.
1476
1528
  * @throws {RequiredError}
1477
1529
  */
@@ -1561,7 +1613,7 @@ const TestPlanVariableApiFp = function (configuration) {
1561
1613
  * Update a url replacement for the test plan
1562
1614
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1563
1615
  * @param {number} testPlanVariableId test_plan_variable id
1564
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1616
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1565
1617
  * @param {*} [options] Override http request option.
1566
1618
  * @throws {RequiredError}
1567
1619
  */
@@ -1618,7 +1670,7 @@ const TestPlanVariableApiFactory = function (configuration, basePath, axios) {
1618
1670
  * Update a url replacement for the test plan
1619
1671
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1620
1672
  * @param {number} testPlanVariableId test_plan_variable id
1621
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1673
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1622
1674
  * @param {*} [options] Override http request option.
1623
1675
  * @throws {RequiredError}
1624
1676
  */
@@ -1679,7 +1731,7 @@ class TestPlanVariableApi extends base_1.BaseAPI {
1679
1731
  * Update a url replacement for the test plan
1680
1732
  * @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
1681
1733
  * @param {number} testPlanVariableId test_plan_variable id
1682
- * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable\&#39;s new key and/or default_value\&#39;s value to register
1734
+ * @param {UpdateTestPlanVariableRequest} updateTestPlanVariableRequest The variable's new key and/or default_value's value to register
1683
1735
  * @param {*} [options] Override http request option.
1684
1736
  * @throws {RequiredError}
1685
1737
  * @memberof TestPlanVariableApi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -13,35 +13,35 @@
13
13
  "/dist"
14
14
  ],
15
15
  "engines": {
16
- "node": ">=18.18.2"
16
+ "node": ">=20.16.0"
17
17
  },
18
18
  "dependencies": {
19
- "axios": "^1.2.2",
20
- "axios-logger": "^2.7.0",
21
- "debug": "^4.3.4",
19
+ "axios": "^1.7.2",
20
+ "axios-logger": "^2.8.1",
21
+ "debug": "^4.3.6",
22
22
  "form-data": "^4.0.0",
23
- "tslib": "^2.6.2"
23
+ "tslib": "^2.6.3"
24
24
  },
25
25
  "devDependencies": {
26
- "@openapitools/openapi-generator-cli": "^2.7.0",
27
- "@types/debug": "^4.1.11",
28
- "@types/jest": "^29.5.7",
29
- "@types/node": "^20.8.10",
30
- "@typescript-eslint/eslint-plugin": "^6.10.0",
31
- "@typescript-eslint/parser": "^6.10.0",
26
+ "@openapitools/openapi-generator-cli": "^2.13.4",
27
+ "@types/debug": "^4.1.12",
28
+ "@types/jest": "^29.5.12",
29
+ "@types/node": "^20.14.13",
30
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
31
+ "@typescript-eslint/parser": "^7.18.0",
32
32
  "axios-mock-adapter": "^1.22.0",
33
- "eslint": "^8.53.0",
34
- "eslint-config-prettier": "^9.0.0",
35
- "eslint-plugin-unused-imports": "^3.0.0",
36
- "husky": "^8.0.3",
33
+ "eslint": "^8.57.0",
34
+ "eslint-config-prettier": "^9.1.0",
35
+ "eslint-plugin-unused-imports": "^3.2.0",
36
+ "husky": "^9.1.4",
37
37
  "jest": "^29.7.0",
38
- "lint-staged": "^15.0.2",
39
- "prettier": "^3.0.3",
38
+ "lint-staged": "^15.2.7",
39
+ "prettier": "^3.3.3",
40
40
  "shx": "^0.3.4",
41
- "ts-jest": "^29.1.1",
42
- "ts-morph": "^20.0.0",
43
- "ts-node": "^10.9.1",
44
- "typescript": "^5.2.2"
41
+ "ts-jest": "^29.2.3",
42
+ "ts-morph": "^23.0.0",
43
+ "ts-node": "^10.9.2",
44
+ "typescript": "^5.5.4"
45
45
  },
46
46
  "scripts": {
47
47
  "update-swagger-web": "curl -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
@@ -50,10 +50,11 @@
50
50
  "generate:sdk-client": "ts-node scripts/generate.ts",
51
51
  "generate:client:web": "npm run update-swagger-web && npm run generate:openapi-client:web && npm run generate:sdk-client web",
52
52
  "generate:client:mobile": "npm run generate:openapi-client:mobile && npm run generate:sdk-client mobile",
53
- "generate": "npm run generate:client:web && npm run generate:client:mobile && npm run lint && npm run format",
53
+ "generate": "npm run generate:client:web && npm run generate:client:mobile && npm run fix-html-escape && npm run lint && npm run format",
54
54
  "build": "shx rm -rf dist && tsc -b",
55
55
  "prepack": "npm run build",
56
56
  "lint": "eslint . --ext .ts",
57
+ "fix-html-escape": "bash scripts/fixHtmlEscape.sh",
57
58
  "format": "prettier --write '**/*.{md,json,yml,js,cjs,ts}'",
58
59
  "prepare": "husky install",
59
60
  "test": "jest test"