@autifyhq/autify-sdk 0.29.1 → 0.30.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.
@@ -25,7 +25,7 @@ export interface DescribeTestResult200Response {
25
25
  */
26
26
  id?: string;
27
27
  /**
28
- *
28
+ * Possible values: waiting running passed failed queuing canceled internal_error
29
29
  * @type {string}
30
30
  * @memberof DescribeTestResult200Response
31
31
  */
@@ -60,6 +60,12 @@ export interface DescribeTestResult200Response {
60
60
  * @memberof DescribeTestResult200Response
61
61
  */
62
62
  updated_at?: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof DescribeTestResult200Response
67
+ */
68
+ url?: string;
63
69
  /**
64
70
  *
65
71
  * @type {ListTestResults200ResponseDataInnerTestPlan}
@@ -86,7 +92,7 @@ export interface DescribeTestResult200ResponseTestCaseResultsInner {
86
92
  */
87
93
  id?: string;
88
94
  /**
89
- *
95
+ * Possible values: waiting running passed failed canceled internal_error
90
96
  * @type {string}
91
97
  * @memberof DescribeTestResult200ResponseTestCaseResultsInner
92
98
  */
@@ -97,6 +103,12 @@ export interface DescribeTestResult200ResponseTestCaseResultsInner {
97
103
  * @memberof DescribeTestResult200ResponseTestCaseResultsInner
98
104
  */
99
105
  duration?: number | null;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInner
110
+ */
111
+ url?: string;
100
112
  /**
101
113
  *
102
114
  * @type {DescribeTestResult200ResponseTestCaseResultsInnerTestCase}
@@ -110,6 +122,12 @@ export interface DescribeTestResult200ResponseTestCaseResultsInner {
110
122
  * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCase
111
123
  */
112
124
  export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCase {
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCase
129
+ */
130
+ name?: string;
113
131
  /**
114
132
  *
115
133
  * @type {Array<DescribeTestResult200ResponseTestCaseResultsInnerTestCaseEnvironmentVariablesInner>}
@@ -148,6 +166,12 @@ export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseBuild
148
166
  * @interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
149
167
  */
150
168
  export interface DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability {
169
+ /**
170
+ *
171
+ * @type {string}
172
+ * @memberof DescribeTestResult200ResponseTestCaseResultsInnerTestCaseCapability
173
+ */
174
+ id?: string;
151
175
  /**
152
176
  *
153
177
  * @type {string}
@@ -224,7 +248,7 @@ export interface ListTestResults200ResponseDataInner {
224
248
  */
225
249
  id?: string;
226
250
  /**
227
- *
251
+ * Possible values: waiting running passed failed queuing canceled internal_error
228
252
  * @type {string}
229
253
  * @memberof ListTestResults200ResponseDataInner
230
254
  */
@@ -432,7 +456,7 @@ export interface RunTestPlanRequest {
432
456
  * @type {string}
433
457
  * @memberof RunTestPlanRequest
434
458
  */
435
- build_id?: string;
459
+ build_id: string;
436
460
  /**
437
461
  *
438
462
  * @type {Array<string>}
@@ -59,8 +59,7 @@ const BuildsApiAxiosParamCreator = function (configuration) {
59
59
  };
60
60
  const localVarHeaderParameter = {};
61
61
  const localVarQueryParameter = {};
62
- const localVarFormParams = new ((configuration &&
63
- configuration.formDataCtor) ||
62
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) ||
64
63
  form_data_1.default)();
65
64
  // authentication bearerAuth required
66
65
  // http bearer authentication required
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
+ /* eslint-disable */
3
4
  /**
4
5
  * Autify for Mobile API
5
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from "axios";
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";
2
+ import { AccessPoint, BrowserTypeEnum, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, DeviceTypeEnum, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, OsTypeEnum, ProjectInfo, Scenario, ScenarioDetail, TestPlanResult, TestPlanVariable, UpdateScenarioRequest, 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;
@@ -106,7 +106,16 @@ export declare class WebClient {
106
106
  * @throws {RequiredError}
107
107
  * @memberof ScenarioApi
108
108
  */
109
- describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario, any, {}>>;
109
+ describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
110
+ /**
111
+ * Duplicate a scenario.
112
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
113
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ * @memberof ScenarioApi
117
+ */
118
+ duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
110
119
  /**
111
120
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
112
121
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -125,6 +134,16 @@ export declare class WebClient {
125
134
  * @memberof ScenarioApi
126
135
  */
127
136
  listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}>>;
137
+ /**
138
+ * Update a scenario.
139
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
140
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
141
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ * @memberof ScenarioApi
145
+ */
146
+ updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
128
147
  private readonly scheduleApi;
129
148
  /**
130
149
  * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
@@ -19,7 +19,7 @@ class WebClient {
19
19
  if (!accessToken) {
20
20
  throw new Error("accessToken is required.");
21
21
  }
22
- // eslint-disable-next-line @typescript-eslint/no-var-requires
22
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
23
23
  this.version = require("../../../package.json").version;
24
24
  const baseOptions = {
25
25
  ...(userAgent && {
@@ -157,6 +157,17 @@ class WebClient {
157
157
  describeScenario(projectId, scenarioId, options) {
158
158
  return this.scenarioApi.describeScenario(projectId, scenarioId, options);
159
159
  }
160
+ /**
161
+ * Duplicate a scenario.
162
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
163
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ * @memberof ScenarioApi
167
+ */
168
+ duplicateScenario(projectId, scenarioId, options) {
169
+ return this.scenarioApi.duplicateScenario(projectId, scenarioId, options);
170
+ }
160
171
  /**
161
172
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
162
173
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -179,6 +190,18 @@ class WebClient {
179
190
  listScenarios(projectId, page, options) {
180
191
  return this.scenarioApi.listScenarios(projectId, page, options);
181
192
  }
193
+ /**
194
+ * Update a scenario.
195
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
196
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
197
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ * @memberof ScenarioApi
201
+ */
202
+ updateScenario(projectId, scenarioId, updateScenarioRequest, options) {
203
+ return this.scenarioApi.updateScenario(projectId, scenarioId, updateScenarioRequest, options);
204
+ }
182
205
  /**
183
206
  * "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
184
207
  * @summary Run a test plan.
@@ -105,6 +105,12 @@ export interface Capability {
105
105
  * @memberof Capability
106
106
  */
107
107
  device?: string;
108
+ /**
109
+ *
110
+ * @type {TimezoneEnum}
111
+ * @memberof Capability
112
+ */
113
+ timezone?: TimezoneEnum;
108
114
  /**
109
115
  *
110
116
  * @type {string}
@@ -534,7 +540,7 @@ export interface ExecuteScenarios404ResponseErrorsInner {
534
540
  */
535
541
  export interface ExecuteScenariosRequest {
536
542
  /**
537
- * Defaults to "API execution {{time_at(Time.now, organization.timezone)}}"
543
+ * Defaults to "API execution "
538
544
  * @type {string}
539
545
  * @memberof ExecuteScenariosRequest
540
546
  */
@@ -638,6 +644,12 @@ export interface ExecuteScenariosRequestCapabilitiesInner {
638
644
  * @memberof ExecuteScenariosRequestCapabilitiesInner
639
645
  */
640
646
  browser_version?: string;
647
+ /**
648
+ *
649
+ * @type {TimezoneEnum}
650
+ * @memberof ExecuteScenariosRequestCapabilitiesInner
651
+ */
652
+ timezone?: TimezoneEnum;
641
653
  }
642
654
  /**
643
655
  *
@@ -906,6 +918,18 @@ export interface Scenario {
906
918
  * @memberof Scenario
907
919
  */
908
920
  updated_at?: string;
921
+ /**
922
+ *
923
+ * @type {User}
924
+ * @memberof Scenario
925
+ */
926
+ author?: User;
927
+ /**
928
+ *
929
+ * @type {User}
930
+ * @memberof Scenario
931
+ */
932
+ updater?: User;
909
933
  /**
910
934
  *
911
935
  * @type {Array<Label>}
@@ -913,6 +937,166 @@ export interface Scenario {
913
937
  */
914
938
  labels?: Array<Label>;
915
939
  }
940
+ /**
941
+ *
942
+ * @export
943
+ * @interface ScenarioDetail
944
+ */
945
+ export interface ScenarioDetail {
946
+ /**
947
+ *
948
+ * @type {number}
949
+ * @memberof ScenarioDetail
950
+ */
951
+ id?: number;
952
+ /**
953
+ *
954
+ * @type {string}
955
+ * @memberof ScenarioDetail
956
+ */
957
+ name?: string;
958
+ /**
959
+ *
960
+ * @type {string}
961
+ * @memberof ScenarioDetail
962
+ */
963
+ created_at?: string;
964
+ /**
965
+ *
966
+ * @type {string}
967
+ * @memberof ScenarioDetail
968
+ */
969
+ updated_at?: string;
970
+ /**
971
+ *
972
+ * @type {User}
973
+ * @memberof ScenarioDetail
974
+ */
975
+ author?: User;
976
+ /**
977
+ *
978
+ * @type {User}
979
+ * @memberof ScenarioDetail
980
+ */
981
+ updater?: User;
982
+ /**
983
+ *
984
+ * @type {Array<ScenarioDetailStepsInner>}
985
+ * @memberof ScenarioDetail
986
+ */
987
+ steps?: Array<ScenarioDetailStepsInner>;
988
+ /**
989
+ *
990
+ * @type {Array<Label>}
991
+ * @memberof ScenarioDetail
992
+ */
993
+ labels?: Array<Label>;
994
+ }
995
+ /**
996
+ *
997
+ * @export
998
+ * @interface ScenarioDetailStepsInner
999
+ */
1000
+ export interface ScenarioDetailStepsInner {
1001
+ /**
1002
+ *
1003
+ * @type {number}
1004
+ * @memberof ScenarioDetailStepsInner
1005
+ */
1006
+ id?: number;
1007
+ /**
1008
+ *
1009
+ * @type {number}
1010
+ * @memberof ScenarioDetailStepsInner
1011
+ */
1012
+ row_order?: number;
1013
+ /**
1014
+ *
1015
+ * @type {ScenarioDetailStepsInnerStepKeyword}
1016
+ * @memberof ScenarioDetailStepsInner
1017
+ */
1018
+ step_keyword?: ScenarioDetailStepsInnerStepKeyword;
1019
+ }
1020
+ /**
1021
+ *
1022
+ * @export
1023
+ * @interface ScenarioDetailStepsInnerStepKeyword
1024
+ */
1025
+ export interface ScenarioDetailStepsInnerStepKeyword {
1026
+ /**
1027
+ *
1028
+ * @type {number}
1029
+ * @memberof ScenarioDetailStepsInnerStepKeyword
1030
+ */
1031
+ id?: number;
1032
+ /**
1033
+ *
1034
+ * @type {ScenarioDetailStepsInnerStepKeywordStepArguments}
1035
+ * @memberof ScenarioDetailStepsInnerStepKeyword
1036
+ */
1037
+ step_arguments?: ScenarioDetailStepsInnerStepKeywordStepArguments;
1038
+ /**
1039
+ *
1040
+ * @type {ScenarioDetailStepsInnerStepKeywordTranslatedKeyword}
1041
+ * @memberof ScenarioDetailStepsInnerStepKeyword
1042
+ */
1043
+ translated_keyword?: ScenarioDetailStepsInnerStepKeywordTranslatedKeyword;
1044
+ }
1045
+ /**
1046
+ *
1047
+ * @export
1048
+ * @interface ScenarioDetailStepsInnerStepKeywordStepArguments
1049
+ */
1050
+ export interface ScenarioDetailStepsInnerStepKeywordStepArguments {
1051
+ /**
1052
+ *
1053
+ * @type {number}
1054
+ * @memberof ScenarioDetailStepsInnerStepKeywordStepArguments
1055
+ */
1056
+ id?: number;
1057
+ /**
1058
+ *
1059
+ * @type {ScenarioDetailStepsInnerStepKeywordStepArgumentsValue}
1060
+ * @memberof ScenarioDetailStepsInnerStepKeywordStepArguments
1061
+ */
1062
+ value?: ScenarioDetailStepsInnerStepKeywordStepArgumentsValue;
1063
+ }
1064
+ /**
1065
+ * @type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue
1066
+ * @export
1067
+ */
1068
+ export type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue = boolean | string;
1069
+ /**
1070
+ *
1071
+ * @export
1072
+ * @interface ScenarioDetailStepsInnerStepKeywordTranslatedKeyword
1073
+ */
1074
+ export interface ScenarioDetailStepsInnerStepKeywordTranslatedKeyword {
1075
+ /**
1076
+ *
1077
+ * @type {number}
1078
+ * @memberof ScenarioDetailStepsInnerStepKeywordTranslatedKeyword
1079
+ */
1080
+ id?: number;
1081
+ /**
1082
+ *
1083
+ * @type {string}
1084
+ * @memberof ScenarioDetailStepsInnerStepKeywordTranslatedKeyword
1085
+ */
1086
+ name?: string;
1087
+ /**
1088
+ *
1089
+ * @type {string}
1090
+ * @memberof ScenarioDetailStepsInnerStepKeywordTranslatedKeyword
1091
+ */
1092
+ created_at?: string;
1093
+ /**
1094
+ *
1095
+ * @type {string}
1096
+ * @memberof ScenarioDetailStepsInnerStepKeywordTranslatedKeyword
1097
+ */
1098
+ updated_at?: string;
1099
+ }
916
1100
  /**
917
1101
  *
918
1102
  * @export
@@ -1252,6 +1436,43 @@ export interface TestPlanVariable {
1252
1436
  */
1253
1437
  updated_at: string;
1254
1438
  }
1439
+ /**
1440
+ *
1441
+ * @export
1442
+ * @enum {string}
1443
+ */
1444
+ export declare const TimezoneEnum: {
1445
+ readonly Jst: "JST";
1446
+ readonly Utc: "UTC";
1447
+ readonly AsiaTokyo: "Asia/Tokyo";
1448
+ readonly EtcUtc: "Etc/UTC";
1449
+ };
1450
+ export type TimezoneEnum = (typeof TimezoneEnum)[keyof typeof TimezoneEnum];
1451
+ /**
1452
+ *
1453
+ * @export
1454
+ * @interface UpdateScenarioRequest
1455
+ */
1456
+ export interface UpdateScenarioRequest {
1457
+ /**
1458
+ *
1459
+ * @type {string}
1460
+ * @memberof UpdateScenarioRequest
1461
+ */
1462
+ name?: string;
1463
+ /**
1464
+ *
1465
+ * @type {string}
1466
+ * @memberof UpdateScenarioRequest
1467
+ */
1468
+ description?: string;
1469
+ /**
1470
+ *
1471
+ * @type {Array<string>}
1472
+ * @memberof UpdateScenarioRequest
1473
+ */
1474
+ labels?: Array<string>;
1475
+ }
1255
1476
  /**
1256
1477
  *
1257
1478
  * @export
@@ -1364,6 +1585,25 @@ export interface UsedCredits {
1364
1585
  */
1365
1586
  credit_consumption_event_count?: number;
1366
1587
  }
1588
+ /**
1589
+ *
1590
+ * @export
1591
+ * @interface User
1592
+ */
1593
+ export interface User {
1594
+ /**
1595
+ *
1596
+ * @type {number}
1597
+ * @memberof User
1598
+ */
1599
+ id?: number;
1600
+ /**
1601
+ *
1602
+ * @type {string}
1603
+ * @memberof User
1604
+ */
1605
+ username?: string;
1606
+ }
1367
1607
  /**
1368
1608
  * AutifyConnectApi - axios parameter creator
1369
1609
  * @export
@@ -1819,6 +2059,14 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
1819
2059
  * @throws {RequiredError}
1820
2060
  */
1821
2061
  describeScenario: (projectId: number, scenarioId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2062
+ /**
2063
+ * Duplicate a scenario.
2064
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2065
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ */
2069
+ duplicateScenario: (projectId: number, scenarioId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1822
2070
  /**
1823
2071
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1824
2072
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1835,6 +2083,15 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
1835
2083
  * @throws {RequiredError}
1836
2084
  */
1837
2085
  listScenarios: (projectId: number, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2086
+ /**
2087
+ * Update a scenario.
2088
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2089
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2090
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ updateScenario: (projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1838
2095
  };
1839
2096
  /**
1840
2097
  * ScenarioApi - functional programming interface
@@ -1848,7 +2105,15 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
1848
2105
  * @param {*} [options] Override http request option.
1849
2106
  * @throws {RequiredError}
1850
2107
  */
1851
- describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scenario>>;
2108
+ describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
2109
+ /**
2110
+ * Duplicate a scenario.
2111
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2112
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2113
+ * @param {*} [options] Override http request option.
2114
+ * @throws {RequiredError}
2115
+ */
2116
+ duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
1852
2117
  /**
1853
2118
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1854
2119
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1865,6 +2130,15 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
1865
2130
  * @throws {RequiredError}
1866
2131
  */
1867
2132
  listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>>;
2133
+ /**
2134
+ * Update a scenario.
2135
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2136
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2137
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
2138
+ * @param {*} [options] Override http request option.
2139
+ * @throws {RequiredError}
2140
+ */
2141
+ updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
1868
2142
  };
1869
2143
  /**
1870
2144
  * ScenarioApi - factory interface
@@ -1878,7 +2152,15 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
1878
2152
  * @param {*} [options] Override http request option.
1879
2153
  * @throws {RequiredError}
1880
2154
  */
1881
- describeScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<Scenario>;
2155
+ describeScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<ScenarioDetail>;
2156
+ /**
2157
+ * Duplicate a scenario.
2158
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2159
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2160
+ * @param {*} [options] Override http request option.
2161
+ * @throws {RequiredError}
2162
+ */
2163
+ duplicateScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<ScenarioDetail>;
1882
2164
  /**
1883
2165
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1884
2166
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1895,6 +2177,15 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
1895
2177
  * @throws {RequiredError}
1896
2178
  */
1897
2179
  listScenarios(projectId: number, page?: number, options?: any): AxiosPromise<Array<Scenario>>;
2180
+ /**
2181
+ * Update a scenario.
2182
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2183
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2184
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: any): AxiosPromise<ScenarioDetail>;
1898
2189
  };
1899
2190
  /**
1900
2191
  * ScenarioApi - object-oriented interface
@@ -1911,7 +2202,16 @@ export declare class ScenarioApi extends BaseAPI {
1911
2202
  * @throws {RequiredError}
1912
2203
  * @memberof ScenarioApi
1913
2204
  */
1914
- describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario, any, {}>>;
2205
+ describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
2206
+ /**
2207
+ * Duplicate a scenario.
2208
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2209
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2210
+ * @param {*} [options] Override http request option.
2211
+ * @throws {RequiredError}
2212
+ * @memberof ScenarioApi
2213
+ */
2214
+ duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
1915
2215
  /**
1916
2216
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1917
2217
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1930,6 +2230,16 @@ export declare class ScenarioApi extends BaseAPI {
1930
2230
  * @memberof ScenarioApi
1931
2231
  */
1932
2232
  listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}>>;
2233
+ /**
2234
+ * Update a scenario.
2235
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
2236
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
2237
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
2238
+ * @param {*} [options] Override http request option.
2239
+ * @throws {RequiredError}
2240
+ * @memberof ScenarioApi
2241
+ */
2242
+ updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
1933
2243
  }
1934
2244
  /**
1935
2245
  * ScheduleApi - axios parameter creator
@@ -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.OsTypeEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DeviceTypeEnum = exports.BrowserTypeEnum = 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.TimezoneEnum = 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
@@ -95,6 +95,17 @@ exports.TestPlanResultStatus = {
95
95
  InternalError: "internal_error",
96
96
  Canceled: "canceled",
97
97
  };
98
+ /**
99
+ *
100
+ * @export
101
+ * @enum {string}
102
+ */
103
+ exports.TimezoneEnum = {
104
+ Jst: "JST",
105
+ Utc: "UTC",
106
+ AsiaTokyo: "Asia/Tokyo",
107
+ EtcUtc: "Etc/UTC",
108
+ };
98
109
  /**
99
110
  * AutifyConnectApi - axios parameter creator
100
111
  * @export
@@ -1045,6 +1056,49 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
1045
1056
  options: localVarRequestOptions,
1046
1057
  };
1047
1058
  },
1059
+ /**
1060
+ * Duplicate a scenario.
1061
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1062
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ duplicateScenario: async (projectId, scenarioId, options = {}) => {
1067
+ // verify required parameter 'projectId' is not null or undefined
1068
+ (0, common_1.assertParamExists)("duplicateScenario", "projectId", projectId);
1069
+ // verify required parameter 'scenarioId' is not null or undefined
1070
+ (0, common_1.assertParamExists)("duplicateScenario", "scenarioId", scenarioId);
1071
+ const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/duplications`
1072
+ .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
1073
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
1074
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1075
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1076
+ let baseOptions;
1077
+ if (configuration) {
1078
+ baseOptions = configuration.baseOptions;
1079
+ }
1080
+ const localVarRequestOptions = {
1081
+ method: "POST",
1082
+ ...baseOptions,
1083
+ ...options,
1084
+ };
1085
+ const localVarHeaderParameter = {};
1086
+ const localVarQueryParameter = {};
1087
+ // authentication bearerAuth required
1088
+ // http bearer authentication required
1089
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1090
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1092
+ localVarRequestOptions.headers = {
1093
+ ...localVarHeaderParameter,
1094
+ ...headersFromBaseOptions,
1095
+ ...options.headers,
1096
+ };
1097
+ return {
1098
+ url: (0, common_1.toPathString)(localVarUrlObj),
1099
+ options: localVarRequestOptions,
1100
+ };
1101
+ },
1048
1102
  /**
1049
1103
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1050
1104
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1130,6 +1184,54 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
1130
1184
  options: localVarRequestOptions,
1131
1185
  };
1132
1186
  },
1187
+ /**
1188
+ * Update a scenario.
1189
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1190
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1191
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
1192
+ * @param {*} [options] Override http request option.
1193
+ * @throws {RequiredError}
1194
+ */
1195
+ updateScenario: async (projectId, scenarioId, updateScenarioRequest, options = {}) => {
1196
+ // verify required parameter 'projectId' is not null or undefined
1197
+ (0, common_1.assertParamExists)("updateScenario", "projectId", projectId);
1198
+ // verify required parameter 'scenarioId' is not null or undefined
1199
+ (0, common_1.assertParamExists)("updateScenario", "scenarioId", scenarioId);
1200
+ // verify required parameter 'updateScenarioRequest' is not null or undefined
1201
+ (0, common_1.assertParamExists)("updateScenario", "updateScenarioRequest", updateScenarioRequest);
1202
+ const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}`
1203
+ .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
1204
+ .replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
1205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1206
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1207
+ let baseOptions;
1208
+ if (configuration) {
1209
+ baseOptions = configuration.baseOptions;
1210
+ }
1211
+ const localVarRequestOptions = {
1212
+ method: "PUT",
1213
+ ...baseOptions,
1214
+ ...options,
1215
+ };
1216
+ const localVarHeaderParameter = {};
1217
+ const localVarQueryParameter = {};
1218
+ // authentication bearerAuth required
1219
+ // http bearer authentication required
1220
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1221
+ localVarHeaderParameter["Content-Type"] = "application/json";
1222
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1224
+ localVarRequestOptions.headers = {
1225
+ ...localVarHeaderParameter,
1226
+ ...headersFromBaseOptions,
1227
+ ...options.headers,
1228
+ };
1229
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateScenarioRequest, localVarRequestOptions, configuration);
1230
+ return {
1231
+ url: (0, common_1.toPathString)(localVarUrlObj),
1232
+ options: localVarRequestOptions,
1233
+ };
1234
+ },
1133
1235
  };
1134
1236
  };
1135
1237
  exports.ScenarioApiAxiosParamCreator = ScenarioApiAxiosParamCreator;
@@ -1151,6 +1253,17 @@ const ScenarioApiFp = function (configuration) {
1151
1253
  const localVarAxiosArgs = await localVarAxiosParamCreator.describeScenario(projectId, scenarioId, options);
1152
1254
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1153
1255
  },
1256
+ /**
1257
+ * Duplicate a scenario.
1258
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1259
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1260
+ * @param {*} [options] Override http request option.
1261
+ * @throws {RequiredError}
1262
+ */
1263
+ async duplicateScenario(projectId, scenarioId, options) {
1264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateScenario(projectId, scenarioId, options);
1265
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1266
+ },
1154
1267
  /**
1155
1268
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1156
1269
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1173,6 +1286,18 @@ const ScenarioApiFp = function (configuration) {
1173
1286
  const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarios(projectId, page, options);
1174
1287
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1175
1288
  },
1289
+ /**
1290
+ * Update a scenario.
1291
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1292
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1293
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
1294
+ * @param {*} [options] Override http request option.
1295
+ * @throws {RequiredError}
1296
+ */
1297
+ async updateScenario(projectId, scenarioId, updateScenarioRequest, options) {
1298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateScenario(projectId, scenarioId, updateScenarioRequest, options);
1299
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1300
+ },
1176
1301
  };
1177
1302
  };
1178
1303
  exports.ScenarioApiFp = ScenarioApiFp;
@@ -1195,6 +1320,18 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
1195
1320
  .describeScenario(projectId, scenarioId, options)
1196
1321
  .then((request) => request(axios, basePath));
1197
1322
  },
1323
+ /**
1324
+ * Duplicate a scenario.
1325
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1326
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ duplicateScenario(projectId, scenarioId, options) {
1331
+ return localVarFp
1332
+ .duplicateScenario(projectId, scenarioId, options)
1333
+ .then((request) => request(axios, basePath));
1334
+ },
1198
1335
  /**
1199
1336
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1200
1337
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1219,6 +1356,19 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
1219
1356
  .listScenarios(projectId, page, options)
1220
1357
  .then((request) => request(axios, basePath));
1221
1358
  },
1359
+ /**
1360
+ * Update a scenario.
1361
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1362
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1363
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
1364
+ * @param {*} [options] Override http request option.
1365
+ * @throws {RequiredError}
1366
+ */
1367
+ updateScenario(projectId, scenarioId, updateScenarioRequest, options) {
1368
+ return localVarFp
1369
+ .updateScenario(projectId, scenarioId, updateScenarioRequest, options)
1370
+ .then((request) => request(axios, basePath));
1371
+ },
1222
1372
  };
1223
1373
  };
1224
1374
  exports.ScenarioApiFactory = ScenarioApiFactory;
@@ -1242,6 +1392,19 @@ class ScenarioApi extends base_1.BaseAPI {
1242
1392
  .describeScenario(projectId, scenarioId, options)
1243
1393
  .then((request) => request(this.axios, this.basePath));
1244
1394
  }
1395
+ /**
1396
+ * Duplicate a scenario.
1397
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1398
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1399
+ * @param {*} [options] Override http request option.
1400
+ * @throws {RequiredError}
1401
+ * @memberof ScenarioApi
1402
+ */
1403
+ duplicateScenario(projectId, scenarioId, options) {
1404
+ return (0, exports.ScenarioApiFp)(this.configuration)
1405
+ .duplicateScenario(projectId, scenarioId, options)
1406
+ .then((request) => request(this.axios, this.basePath));
1407
+ }
1245
1408
  /**
1246
1409
  * You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
1247
1410
  * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
@@ -1268,6 +1431,20 @@ class ScenarioApi extends base_1.BaseAPI {
1268
1431
  .listScenarios(projectId, page, options)
1269
1432
  .then((request) => request(this.axios, this.basePath));
1270
1433
  }
1434
+ /**
1435
+ * Update a scenario.
1436
+ * @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
1437
+ * @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
1438
+ * @param {UpdateScenarioRequest} updateScenarioRequest The scenario to update
1439
+ * @param {*} [options] Override http request option.
1440
+ * @throws {RequiredError}
1441
+ * @memberof ScenarioApi
1442
+ */
1443
+ updateScenario(projectId, scenarioId, updateScenarioRequest, options) {
1444
+ return (0, exports.ScenarioApiFp)(this.configuration)
1445
+ .updateScenario(projectId, scenarioId, updateScenarioRequest, options)
1446
+ .then((request) => request(this.axios, this.basePath));
1447
+ }
1271
1448
  }
1272
1449
  exports.ScenarioApi = ScenarioApi;
1273
1450
  /**
@@ -35,7 +35,7 @@ class Configuration {
35
35
  * @return True if the given MIME is JSON, false otherwise.
36
36
  */
37
37
  isJsonMime(mime) {
38
- const jsonMime = new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
38
+ const jsonMime = new RegExp("^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
39
39
  return (mime !== null &&
40
40
  (jsonMime.test(mime) ||
41
41
  mime.toLowerCase() === "application/json-patch+json"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-sdk",
3
- "version": "0.29.1",
3
+ "version": "0.30.0",
4
4
  "description": "Autify SDK for JavaScript",
5
5
  "author": "Autify",
6
6
  "homepage": "https://github.com/autifyhq/autify-sdk-js",
@@ -40,18 +40,21 @@
40
40
  "lint-staged": "^16.4.0",
41
41
  "prettier": "^3.8.3",
42
42
  "shx": "^0.4.0",
43
+ "swagger2openapi": "^7.0.8",
43
44
  "ts-jest": "^29.4.11",
44
45
  "ts-morph": "^26.0.0",
45
46
  "ts-node": "^10.9.2",
46
- "typescript": "^5.9.3"
47
+ "typescript": "^5.9.3",
48
+ "yaml": "^2.9.0"
47
49
  },
48
50
  "scripts": {
49
- "update-swagger-web": "curl -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
51
+ "update-swagger-web": "curl -fsSL -o swagger-web.yml https://autifyhq.github.io/autify-api/swagger.yml",
52
+ "update-swagger-mobile": "ts-node scripts/buildMobileSpec.ts",
50
53
  "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",
51
54
  "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",
52
55
  "generate:sdk-client": "ts-node scripts/generate.ts",
53
56
  "generate:client:web": "npm run update-swagger-web && npm run generate:openapi-client:web && npm run generate:sdk-client web",
54
- "generate:client:mobile": "npm run generate:openapi-client:mobile && npm run generate:sdk-client mobile",
57
+ "generate:client:mobile": "npm run update-swagger-mobile && npm run generate:openapi-client:mobile && npm run generate:sdk-client mobile",
55
58
  "generate": "npm run generate:client:web && npm run generate:client:mobile && npm run fix-html-escape && npm run lint && npm run format",
56
59
  "build": "shx rm -rf dist && tsc -b",
57
60
  "prepack": "npm run build",