@grafana/openapi-to-k6 0.3.1 → 0.3.2

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.
Files changed (51) hide show
  1. package/examples/basic_schema/single/simpleAPI.ts +1 -1
  2. package/examples/basic_schema/split/simpleAPI.schemas.ts +1 -1
  3. package/examples/basic_schema/split/simpleAPI.ts +1 -1
  4. package/examples/basic_schema/tags/default.ts +1 -1
  5. package/examples/basic_schema/tags/simpleAPI.schemas.ts +1 -1
  6. package/examples/form_data_schema/single/formDataAPI.ts +11 -11
  7. package/examples/form_data_schema/split/formDataAPI.schemas.ts +11 -11
  8. package/examples/form_data_schema/split/formDataAPI.ts +1 -1
  9. package/examples/form_data_schema/tags/default.ts +1 -1
  10. package/examples/form_data_schema/tags/formDataAPI.schemas.ts +11 -11
  11. package/examples/form_url_encoded_data_schema/single/formURLEncodedAPI.ts +11 -11
  12. package/examples/form_url_encoded_data_schema/split/formURLEncodedAPI.schemas.ts +11 -11
  13. package/examples/form_url_encoded_data_schema/split/formURLEncodedAPI.ts +1 -1
  14. package/examples/form_url_encoded_data_schema/tags/default.ts +1 -1
  15. package/examples/form_url_encoded_data_schema/tags/formURLEncodedAPI.schemas.ts +11 -11
  16. package/examples/form_url_encoded_data_with_query_params_schema/single/formURLEncodedAPIWithQueryParameters.ts +18 -18
  17. package/examples/form_url_encoded_data_with_query_params_schema/split/formURLEncodedAPIWithQueryParameters.schemas.ts +18 -18
  18. package/examples/form_url_encoded_data_with_query_params_schema/split/formURLEncodedAPIWithQueryParameters.ts +1 -1
  19. package/examples/form_url_encoded_data_with_query_params_schema/tags/default.ts +1 -1
  20. package/examples/form_url_encoded_data_with_query_params_schema/tags/formURLEncodedAPIWithQueryParameters.schemas.ts +18 -18
  21. package/examples/get_request_with_path_parameters_schema/single/simpleAPI.ts +1 -1
  22. package/examples/get_request_with_path_parameters_schema/split/simpleAPI.schemas.ts +1 -1
  23. package/examples/get_request_with_path_parameters_schema/split/simpleAPI.ts +1 -1
  24. package/examples/get_request_with_path_parameters_schema/tags/default.ts +1 -1
  25. package/examples/get_request_with_path_parameters_schema/tags/simpleAPI.schemas.ts +1 -1
  26. package/examples/headers_schema/single/headerDemoAPI.ts +12 -12
  27. package/examples/headers_schema/split/headerDemoAPI.schemas.ts +12 -12
  28. package/examples/headers_schema/split/headerDemoAPI.ts +1 -1
  29. package/examples/headers_schema/tags/default.ts +1 -1
  30. package/examples/headers_schema/tags/headerDemoAPI.schemas.ts +12 -12
  31. package/examples/no_title_schema/single/k6Client.ts +1 -1
  32. package/examples/no_title_schema/split/k6Client.schemas.ts +1 -1
  33. package/examples/no_title_schema/split/k6Client.ts +1 -1
  34. package/examples/no_title_schema/tags/default.ts +1 -1
  35. package/examples/no_title_schema/tags/k6Client.schemas.ts +1 -1
  36. package/examples/post_request_with_query_params/single/exampleAPI.ts +17 -17
  37. package/examples/post_request_with_query_params/split/exampleAPI.schemas.ts +17 -17
  38. package/examples/post_request_with_query_params/split/exampleAPI.ts +1 -1
  39. package/examples/post_request_with_query_params/tags/default.ts +1 -1
  40. package/examples/post_request_with_query_params/tags/exampleAPI.schemas.ts +17 -17
  41. package/examples/query_params_schema/single/exampleAPI.ts +9 -9
  42. package/examples/query_params_schema/split/exampleAPI.schemas.ts +9 -9
  43. package/examples/query_params_schema/split/exampleAPI.ts +1 -1
  44. package/examples/query_params_schema/tags/default.ts +1 -1
  45. package/examples/query_params_schema/tags/exampleAPI.schemas.ts +9 -9
  46. package/examples/simple_post_request_schema/single/exampleAPI.ts +17 -17
  47. package/examples/simple_post_request_schema/split/exampleAPI.schemas.ts +17 -17
  48. package/examples/simple_post_request_schema/split/exampleAPI.ts +1 -1
  49. package/examples/simple_post_request_schema/tags/default.ts +1 -1
  50. package/examples/simple_post_request_schema/tags/exampleAPI.schemas.ts +17 -17
  51. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form Data API
5
5
  * Service version: 1.0.0
@@ -8,16 +8,6 @@ import { FormData } from 'https://jslib.k6.io/formdata/0.0.2/index.js'
8
8
  import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
9
9
  import http from 'k6/http'
10
10
  import type { Params, Response } from 'k6/http'
11
- export type PostUpload400 = {
12
- success?: boolean
13
- error?: string
14
- }
15
-
16
- export type PostUpload200 = {
17
- success?: boolean
18
- message?: string
19
- }
20
-
21
11
  export type PostUploadBody = {
22
12
  /** File to upload */
23
13
  file: Blob
@@ -27,6 +17,16 @@ export type PostUploadBody = {
27
17
  userId: string
28
18
  }
29
19
 
20
+ export type PostUpload200 = {
21
+ success?: boolean
22
+ message?: string
23
+ }
24
+
25
+ export type PostUpload400 = {
26
+ success?: boolean
27
+ error?: string
28
+ }
29
+
30
30
  /**
31
31
  * This is the base client to use for interacting with the API.
32
32
  */
@@ -1,19 +1,9 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form Data API
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostUpload400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostUpload200 = {
13
- success?: boolean
14
- message?: string
15
- }
16
-
17
7
  export type PostUploadBody = {
18
8
  /** File to upload */
19
9
  file: Blob
@@ -22,3 +12,13 @@ export type PostUploadBody = {
22
12
  /** User ID associated with the upload */
23
13
  userId: string
24
14
  }
15
+
16
+ export type PostUpload200 = {
17
+ success?: boolean
18
+ message?: string
19
+ }
20
+
21
+ export type PostUpload400 = {
22
+ success?: boolean
23
+ error?: string
24
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form Data API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form Data API
5
5
  * Service version: 1.0.0
@@ -1,19 +1,9 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form Data API
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostUpload400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostUpload200 = {
13
- success?: boolean
14
- message?: string
15
- }
16
-
17
7
  export type PostUploadBody = {
18
8
  /** File to upload */
19
9
  file: Blob
@@ -22,3 +12,13 @@ export type PostUploadBody = {
22
12
  /** User ID associated with the upload */
23
13
  userId: string
24
14
  }
15
+
16
+ export type PostUpload200 = {
17
+ success?: boolean
18
+ message?: string
19
+ }
20
+
21
+ export type PostUpload400 = {
22
+ success?: boolean
23
+ error?: string
24
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API
5
5
  * Service version: 1.0.0
@@ -7,16 +7,6 @@
7
7
  import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
8
8
  import http from 'k6/http'
9
9
  import type { Params, Response } from 'k6/http'
10
- export type PostSubmitForm400 = {
11
- success?: boolean
12
- error?: string
13
- }
14
-
15
- export type PostSubmitForm200 = {
16
- success?: boolean
17
- message?: string
18
- }
19
-
20
10
  export type PostSubmitFormBody = {
21
11
  /** Name of the user */
22
12
  name: string
@@ -26,6 +16,16 @@ export type PostSubmitFormBody = {
26
16
  email: string
27
17
  }
28
18
 
19
+ export type PostSubmitForm200 = {
20
+ success?: boolean
21
+ message?: string
22
+ }
23
+
24
+ export type PostSubmitForm400 = {
25
+ success?: boolean
26
+ error?: string
27
+ }
28
+
29
29
  /**
30
30
  * This is the base client to use for interacting with the API.
31
31
  */
@@ -1,19 +1,9 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostSubmitForm400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostSubmitForm200 = {
13
- success?: boolean
14
- message?: string
15
- }
16
-
17
7
  export type PostSubmitFormBody = {
18
8
  /** Name of the user */
19
9
  name: string
@@ -22,3 +12,13 @@ export type PostSubmitFormBody = {
22
12
  /** Email address of the user */
23
13
  email: string
24
14
  }
15
+
16
+ export type PostSubmitForm200 = {
17
+ success?: boolean
18
+ message?: string
19
+ }
20
+
21
+ export type PostSubmitForm400 = {
22
+ success?: boolean
23
+ error?: string
24
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API
5
5
  * Service version: 1.0.0
@@ -1,19 +1,9 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostSubmitForm400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostSubmitForm200 = {
13
- success?: boolean
14
- message?: string
15
- }
16
-
17
7
  export type PostSubmitFormBody = {
18
8
  /** Name of the user */
19
9
  name: string
@@ -22,3 +12,13 @@ export type PostSubmitFormBody = {
22
12
  /** Email address of the user */
23
13
  email: string
24
14
  }
15
+
16
+ export type PostSubmitForm200 = {
17
+ success?: boolean
18
+ message?: string
19
+ }
20
+
21
+ export type PostSubmitForm400 = {
22
+ success?: boolean
23
+ error?: string
24
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API with Query Parameters
5
5
  * Service version: 1.0.0
@@ -7,14 +7,15 @@
7
7
  import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
8
8
  import http from 'k6/http'
9
9
  import type { Params, Response } from 'k6/http'
10
- export type PostSubmitForm400 = {
11
- success?: boolean
12
- error?: string
13
- }
14
-
15
- export type PostSubmitForm200 = {
16
- success?: boolean
17
- message?: string
10
+ export type PostSubmitFormParams = {
11
+ /**
12
+ * Authentication token
13
+ */
14
+ token: string
15
+ /**
16
+ * Locale of the user
17
+ */
18
+ locale?: string
18
19
  }
19
20
 
20
21
  export type PostSubmitFormBody = {
@@ -26,15 +27,14 @@ export type PostSubmitFormBody = {
26
27
  email: string
27
28
  }
28
29
 
29
- export type PostSubmitFormParams = {
30
- /**
31
- * Authentication token
32
- */
33
- token: string
34
- /**
35
- * Locale of the user
36
- */
37
- locale?: string
30
+ export type PostSubmitForm200 = {
31
+ success?: boolean
32
+ message?: string
33
+ }
34
+
35
+ export type PostSubmitForm400 = {
36
+ success?: boolean
37
+ error?: string
38
38
  }
39
39
 
40
40
  /**
@@ -1,17 +1,18 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API with Query Parameters
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostSubmitForm400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostSubmitForm200 = {
13
- success?: boolean
14
- message?: string
7
+ export type PostSubmitFormParams = {
8
+ /**
9
+ * Authentication token
10
+ */
11
+ token: string
12
+ /**
13
+ * Locale of the user
14
+ */
15
+ locale?: string
15
16
  }
16
17
 
17
18
  export type PostSubmitFormBody = {
@@ -23,13 +24,12 @@ export type PostSubmitFormBody = {
23
24
  email: string
24
25
  }
25
26
 
26
- export type PostSubmitFormParams = {
27
- /**
28
- * Authentication token
29
- */
30
- token: string
31
- /**
32
- * Locale of the user
33
- */
34
- locale?: string
27
+ export type PostSubmitForm200 = {
28
+ success?: boolean
29
+ message?: string
30
+ }
31
+
32
+ export type PostSubmitForm400 = {
33
+ success?: boolean
34
+ error?: string
35
35
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API with Query Parameters
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API with Query Parameters
5
5
  * Service version: 1.0.0
@@ -1,17 +1,18 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Form URL Encoded API with Query Parameters
5
5
  * Service version: 1.0.0
6
6
  */
7
- export type PostSubmitForm400 = {
8
- success?: boolean
9
- error?: string
10
- }
11
-
12
- export type PostSubmitForm200 = {
13
- success?: boolean
14
- message?: string
7
+ export type PostSubmitFormParams = {
8
+ /**
9
+ * Authentication token
10
+ */
11
+ token: string
12
+ /**
13
+ * Locale of the user
14
+ */
15
+ locale?: string
15
16
  }
16
17
 
17
18
  export type PostSubmitFormBody = {
@@ -23,13 +24,12 @@ export type PostSubmitFormBody = {
23
24
  email: string
24
25
  }
25
26
 
26
- export type PostSubmitFormParams = {
27
- /**
28
- * Authentication token
29
- */
30
- token: string
31
- /**
32
- * Locale of the user
33
- */
34
- locale?: string
27
+ export type PostSubmitForm200 = {
28
+ success?: boolean
29
+ message?: string
30
+ }
31
+
32
+ export type PostSubmitForm400 = {
33
+ success?: boolean
34
+ error?: string
35
35
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * An API with a single GET request that takes a path parameter
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * An API with a single GET request that takes a path parameter
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * An API with a single GET request that takes a path parameter
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * An API with a single GET request that takes a path parameter
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Simple API
5
5
  * An API with a single GET request that takes a path parameter
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Header Demo API
5
5
  * An API demonstrating the use of headers in different ways
@@ -8,12 +8,15 @@
8
8
  import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
9
9
  import http from 'k6/http'
10
10
  import type { Params, Response } from 'k6/http'
11
- export type GetExampleResponseHeaders200 = {
12
- status?: string
11
+ export type GetExampleGetHeaders = {
12
+ /**
13
+ * A custom header for this request
14
+ */
15
+ 'X-Custom-Header'?: string
13
16
  }
14
17
 
15
- export type PostExamplePostBody = {
16
- data?: string
18
+ export type GetExampleGet200 = {
19
+ message?: string
17
20
  }
18
21
 
19
22
  export type PostExamplePostHeaders = {
@@ -23,15 +26,12 @@ export type PostExamplePostHeaders = {
23
26
  Authorization: string
24
27
  }
25
28
 
26
- export type GetExampleGet200 = {
27
- message?: string
29
+ export type PostExamplePostBody = {
30
+ data?: string
28
31
  }
29
32
 
30
- export type GetExampleGetHeaders = {
31
- /**
32
- * A custom header for this request
33
- */
34
- 'X-Custom-Header'?: string
33
+ export type GetExampleResponseHeaders200 = {
34
+ status?: string
35
35
  }
36
36
 
37
37
  /**
@@ -1,16 +1,19 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Header Demo API
5
5
  * An API demonstrating the use of headers in different ways
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type GetExampleResponseHeaders200 = {
9
- status?: string
8
+ export type GetExampleGetHeaders = {
9
+ /**
10
+ * A custom header for this request
11
+ */
12
+ 'X-Custom-Header'?: string
10
13
  }
11
14
 
12
- export type PostExamplePostBody = {
13
- data?: string
15
+ export type GetExampleGet200 = {
16
+ message?: string
14
17
  }
15
18
 
16
19
  export type PostExamplePostHeaders = {
@@ -20,13 +23,10 @@ export type PostExamplePostHeaders = {
20
23
  Authorization: string
21
24
  }
22
25
 
23
- export type GetExampleGet200 = {
24
- message?: string
26
+ export type PostExamplePostBody = {
27
+ data?: string
25
28
  }
26
29
 
27
- export type GetExampleGetHeaders = {
28
- /**
29
- * A custom header for this request
30
- */
31
- 'X-Custom-Header'?: string
30
+ export type GetExampleResponseHeaders200 = {
31
+ status?: string
32
32
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Header Demo API
5
5
  * An API demonstrating the use of headers in different ways
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Header Demo API
5
5
  * An API demonstrating the use of headers in different ways
@@ -1,16 +1,19 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Header Demo API
5
5
  * An API demonstrating the use of headers in different ways
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type GetExampleResponseHeaders200 = {
9
- status?: string
8
+ export type GetExampleGetHeaders = {
9
+ /**
10
+ * A custom header for this request
11
+ */
12
+ 'X-Custom-Header'?: string
10
13
  }
11
14
 
12
- export type PostExamplePostBody = {
13
- data?: string
15
+ export type GetExampleGet200 = {
16
+ message?: string
14
17
  }
15
18
 
16
19
  export type PostExamplePostHeaders = {
@@ -20,13 +23,10 @@ export type PostExamplePostHeaders = {
20
23
  Authorization: string
21
24
  }
22
25
 
23
- export type GetExampleGet200 = {
24
- message?: string
26
+ export type PostExamplePostBody = {
27
+ data?: string
25
28
  }
26
29
 
27
- export type GetExampleGetHeaders = {
28
- /**
29
- * A custom header for this request
30
- */
31
- 'X-Custom-Header'?: string
30
+ export type GetExampleResponseHeaders200 = {
31
+ status?: string
32
32
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * K6Client
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * K6Client
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * K6Client
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * K6Client
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * K6Client
5
5
  * Service version: 1.0.0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with a POST request having an object as the body and query parameters
@@ -8,22 +8,6 @@
8
8
  import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
9
9
  import http from 'k6/http'
10
10
  import type { Params, Response } from 'k6/http'
11
- export type CreateExampleData201 = {
12
- /** The user ID from the query parameter */
13
- userId?: string
14
- /** The active status from the query parameter */
15
- isActive?: boolean
16
- /** The data from the body */
17
- data?: string
18
- /** Response status */
19
- status?: string
20
- }
21
-
22
- export type CreateExampleDataBody = {
23
- /** A string field representing data */
24
- data: string
25
- }
26
-
27
11
  export type CreateExampleDataParams = {
28
12
  /**
29
13
  * A string query parameter for user ID
@@ -35,6 +19,22 @@ export type CreateExampleDataParams = {
35
19
  isActive?: boolean
36
20
  }
37
21
 
22
+ export type CreateExampleDataBody = {
23
+ /** A string field representing data */
24
+ data: string
25
+ }
26
+
27
+ export type CreateExampleData201 = {
28
+ /** The user ID from the query parameter */
29
+ userId?: string
30
+ /** The active status from the query parameter */
31
+ isActive?: boolean
32
+ /** The data from the body */
33
+ data?: string
34
+ /** Response status */
35
+ status?: string
36
+ }
37
+
38
38
  /**
39
39
  * This is the base client to use for interacting with the API.
40
40
  */
@@ -1,26 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with a POST request having an object as the body and query parameters
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type CreateExampleData201 = {
9
- /** The user ID from the query parameter */
10
- userId?: string
11
- /** The active status from the query parameter */
12
- isActive?: boolean
13
- /** The data from the body */
14
- data?: string
15
- /** Response status */
16
- status?: string
17
- }
18
-
19
- export type CreateExampleDataBody = {
20
- /** A string field representing data */
21
- data: string
22
- }
23
-
24
8
  export type CreateExampleDataParams = {
25
9
  /**
26
10
  * A string query parameter for user ID
@@ -31,3 +15,19 @@ export type CreateExampleDataParams = {
31
15
  */
32
16
  isActive?: boolean
33
17
  }
18
+
19
+ export type CreateExampleDataBody = {
20
+ /** A string field representing data */
21
+ data: string
22
+ }
23
+
24
+ export type CreateExampleData201 = {
25
+ /** The user ID from the query parameter */
26
+ userId?: string
27
+ /** The active status from the query parameter */
28
+ isActive?: boolean
29
+ /** The data from the body */
30
+ data?: string
31
+ /** Response status */
32
+ status?: string
33
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with a POST request having an object as the body and query parameters
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with a POST request having an object as the body and query parameters
@@ -1,26 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with a POST request having an object as the body and query parameters
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type CreateExampleData201 = {
9
- /** The user ID from the query parameter */
10
- userId?: string
11
- /** The active status from the query parameter */
12
- isActive?: boolean
13
- /** The data from the body */
14
- data?: string
15
- /** Response status */
16
- status?: string
17
- }
18
-
19
- export type CreateExampleDataBody = {
20
- /** A string field representing data */
21
- data: string
22
- }
23
-
24
8
  export type CreateExampleDataParams = {
25
9
  /**
26
10
  * A string query parameter for user ID
@@ -31,3 +15,19 @@ export type CreateExampleDataParams = {
31
15
  */
32
16
  isActive?: boolean
33
17
  }
18
+
19
+ export type CreateExampleDataBody = {
20
+ /** A string field representing data */
21
+ data: string
22
+ }
23
+
24
+ export type CreateExampleData201 = {
25
+ /** The user ID from the query parameter */
26
+ userId?: string
27
+ /** The active status from the query parameter */
28
+ isActive?: boolean
29
+ /** The data from the body */
30
+ data?: string
31
+ /** Response status */
32
+ status?: string
33
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of query parameters
@@ -8,14 +8,6 @@
8
8
  import { URL, URLSearchParams } from 'https://jslib.k6.io/url/1.0.0/index.js'
9
9
  import http from 'k6/http'
10
10
  import type { Params, Response } from 'k6/http'
11
- export type GetExampleData200 = {
12
- name?: string
13
- age?: number
14
- isActive?: boolean
15
- tags?: string[]
16
- date?: string
17
- }
18
-
19
11
  export type GetExampleDataParams = {
20
12
  /**
21
13
  * A string parameter
@@ -39,6 +31,14 @@ export type GetExampleDataParams = {
39
31
  date?: string
40
32
  }
41
33
 
34
+ export type GetExampleData200 = {
35
+ name?: string
36
+ age?: number
37
+ isActive?: boolean
38
+ tags?: string[]
39
+ date?: string
40
+ }
41
+
42
42
  /**
43
43
  * This is the base client to use for interacting with the API.
44
44
  */
@@ -1,18 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of query parameters
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type GetExampleData200 = {
9
- name?: string
10
- age?: number
11
- isActive?: boolean
12
- tags?: string[]
13
- date?: string
14
- }
15
-
16
8
  export type GetExampleDataParams = {
17
9
  /**
18
10
  * A string parameter
@@ -35,3 +27,11 @@ export type GetExampleDataParams = {
35
27
  */
36
28
  date?: string
37
29
  }
30
+
31
+ export type GetExampleData200 = {
32
+ name?: string
33
+ age?: number
34
+ isActive?: boolean
35
+ tags?: string[]
36
+ date?: string
37
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of query parameters
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of query parameters
@@ -1,18 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of query parameters
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type GetExampleData200 = {
9
- name?: string
10
- age?: number
11
- isActive?: boolean
12
- tags?: string[]
13
- date?: string
14
- }
15
-
16
8
  export type GetExampleDataParams = {
17
9
  /**
18
10
  * A string parameter
@@ -35,3 +27,11 @@ export type GetExampleDataParams = {
35
27
  */
36
28
  date?: string
37
29
  }
30
+
31
+ export type GetExampleData200 = {
32
+ name?: string
33
+ age?: number
34
+ isActive?: boolean
35
+ tags?: string[]
36
+ date?: string
37
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of data in the POST request body
@@ -8,22 +8,6 @@
8
8
  import { URL } from 'https://jslib.k6.io/url/1.0.0/index.js'
9
9
  import http from 'k6/http'
10
10
  import type { Params, Response } from 'k6/http'
11
- export type CreateExampleData201Meta = {
12
- createdBy?: string
13
- updatedBy?: string
14
- }
15
-
16
- export type CreateExampleData201 = {
17
- /** The unique ID of the created resource */
18
- id?: string
19
- name?: string
20
- age?: number
21
- isActive?: boolean
22
- tags?: string[]
23
- date?: string
24
- meta?: CreateExampleData201Meta
25
- }
26
-
27
11
  /**
28
12
  * An object parameter containing metadata
29
13
  */
@@ -49,6 +33,22 @@ export type CreateExampleDataBody = {
49
33
  meta?: CreateExampleDataBodyMeta
50
34
  }
51
35
 
36
+ export type CreateExampleData201Meta = {
37
+ createdBy?: string
38
+ updatedBy?: string
39
+ }
40
+
41
+ export type CreateExampleData201 = {
42
+ /** The unique ID of the created resource */
43
+ id?: string
44
+ name?: string
45
+ age?: number
46
+ isActive?: boolean
47
+ tags?: string[]
48
+ date?: string
49
+ meta?: CreateExampleData201Meta
50
+ }
51
+
52
52
  /**
53
53
  * This is the base client to use for interacting with the API.
54
54
  */
@@ -1,26 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of data in the POST request body
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type CreateExampleData201Meta = {
9
- createdBy?: string
10
- updatedBy?: string
11
- }
12
-
13
- export type CreateExampleData201 = {
14
- /** The unique ID of the created resource */
15
- id?: string
16
- name?: string
17
- age?: number
18
- isActive?: boolean
19
- tags?: string[]
20
- date?: string
21
- meta?: CreateExampleData201Meta
22
- }
23
-
24
8
  /**
25
9
  * An object parameter containing metadata
26
10
  */
@@ -45,3 +29,19 @@ export type CreateExampleDataBody = {
45
29
  /** An object parameter containing metadata */
46
30
  meta?: CreateExampleDataBodyMeta
47
31
  }
32
+
33
+ export type CreateExampleData201Meta = {
34
+ createdBy?: string
35
+ updatedBy?: string
36
+ }
37
+
38
+ export type CreateExampleData201 = {
39
+ /** The unique ID of the created resource */
40
+ id?: string
41
+ name?: string
42
+ age?: number
43
+ isActive?: boolean
44
+ tags?: string[]
45
+ date?: string
46
+ meta?: CreateExampleData201Meta
47
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of data in the POST request body
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of data in the POST request body
@@ -1,26 +1,10 @@
1
1
  /**
2
- * Automatically generated by @grafana/openapi-to-k6: 0.3.1
2
+ * Automatically generated by @grafana/openapi-to-k6: 0.3.2
3
3
  * Do not edit manually.
4
4
  * Example API
5
5
  * API with all formats of data in the POST request body
6
6
  * Service version: 1.0.0
7
7
  */
8
- export type CreateExampleData201Meta = {
9
- createdBy?: string
10
- updatedBy?: string
11
- }
12
-
13
- export type CreateExampleData201 = {
14
- /** The unique ID of the created resource */
15
- id?: string
16
- name?: string
17
- age?: number
18
- isActive?: boolean
19
- tags?: string[]
20
- date?: string
21
- meta?: CreateExampleData201Meta
22
- }
23
-
24
8
  /**
25
9
  * An object parameter containing metadata
26
10
  */
@@ -45,3 +29,19 @@ export type CreateExampleDataBody = {
45
29
  /** An object parameter containing metadata */
46
30
  meta?: CreateExampleDataBodyMeta
47
31
  }
32
+
33
+ export type CreateExampleData201Meta = {
34
+ createdBy?: string
35
+ updatedBy?: string
36
+ }
37
+
38
+ export type CreateExampleData201 = {
39
+ /** The unique ID of the created resource */
40
+ id?: string
41
+ name?: string
42
+ age?: number
43
+ isActive?: boolean
44
+ tags?: string[]
45
+ date?: string
46
+ meta?: CreateExampleData201Meta
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/openapi-to-k6",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "A CLI tool to generate helper modules for K6 from OpenAPI schema",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "commander": "^12.1.0",
29
29
  "handlebars": "^4.7.8",
30
30
  "openapi-typescript": "^7.4.1",
31
- "orval": "^7.4.1",
31
+ "orval": "^7.5.0",
32
32
  "prettier": "^3.3.3",
33
33
  "uuid": "^10.0.0"
34
34
  },