@sap-cloud-sdk/openapi 2.6.1-20220727110409.0 → 2.6.1-20220801130357.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.
- package/CHANGELOG.md +4 -4
- package/dist/types.d.ts +6 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @sap-cloud-sdk/openapi
|
|
2
2
|
|
|
3
|
-
## 2.6.1-
|
|
3
|
+
## 2.6.1-20220801130357.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Canary release
|
|
8
8
|
- Updated dependencies
|
|
9
|
-
- @sap-cloud-sdk/connectivity@2.6.1-
|
|
10
|
-
- @sap-cloud-sdk/http-client@2.6.1-
|
|
11
|
-
- @sap-cloud-sdk/util@2.6.1-
|
|
9
|
+
- @sap-cloud-sdk/connectivity@2.6.1-20220801130357.0
|
|
10
|
+
- @sap-cloud-sdk/http-client@2.6.1-20220801130357.0
|
|
11
|
+
- @sap-cloud-sdk/util@2.6.1-20220801130357.0
|
|
12
12
|
|
|
13
13
|
## 2.6.0
|
|
14
14
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
/**
|
|
3
3
|
* Type of the parameters of a given function
|
|
4
|
-
* @
|
|
5
|
-
* @
|
|
4
|
+
* @typeParam ApiT - Interface of the API.
|
|
5
|
+
* @typeParam FnT - Name of the function, that is part of the API.
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export declare type ParametersType<ApiT, FnT extends keyof ApiT> = ApiT[FnT] extends (...args: any) => any ? Parameters<ApiT[FnT]> : never;
|
|
@@ -10,8 +10,8 @@ export declare type ParametersType<ApiT, FnT extends keyof ApiT> = ApiT[FnT] ext
|
|
|
10
10
|
* Unwrap return type of the given function type `ApiT[FnT]`.
|
|
11
11
|
* e.g. for `someFunction() => AxiosResponse<SomeReturnType>` this gives you `SomeReturnType`.
|
|
12
12
|
* It is `never` when the given type is not a function type
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
13
|
+
* @typeParam ApiT - Interface of the API.
|
|
14
|
+
* @typeParam FnT - Name of the function, that is part of the API.
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export declare type FunctionReturnType<ApiT, FnT extends keyof ApiT> = ApiT[FnT] extends (...args: any) => any ? UnPromisify<ReturnType<ApiT[FnT]>> : never;
|
|
@@ -22,13 +22,13 @@ export declare type FunctionReturnType<ApiT, FnT extends keyof ApiT> = ApiT[FnT]
|
|
|
22
22
|
export declare type UnwrapAxiosResponse<T> = T extends AxiosResponse<infer U> ? U : T;
|
|
23
23
|
/**
|
|
24
24
|
* Get the type of the promised response, e.g. for `Promise<SomeType>` this gives you `SomeType`.
|
|
25
|
-
* @
|
|
25
|
+
* @typeParam T - Type of the promised content.
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
export declare type UnPromisify<T> = T extends Promise<infer U> ? U : T;
|
|
29
29
|
/**
|
|
30
30
|
* The type of a constructor.
|
|
31
|
-
* @
|
|
31
|
+
* @typeParam T - Type of an instance created by the constructor.
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
34
|
export declare type ConstructorType<T> = new (...args: any[]) => T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-cloud-sdk/openapi",
|
|
3
|
-
"version": "2.6.1-
|
|
3
|
+
"version": "2.6.1-20220801130357.0",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript openapi",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"readme": "ts-node ../../scripts/replace-common-readme.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@sap-cloud-sdk/connectivity": "^2.6.1-
|
|
41
|
-
"@sap-cloud-sdk/http-client": "^2.6.1-
|
|
42
|
-
"@sap-cloud-sdk/util": "^2.6.1-
|
|
40
|
+
"@sap-cloud-sdk/connectivity": "^2.6.1-20220801130357.0",
|
|
41
|
+
"@sap-cloud-sdk/http-client": "^2.6.1-20220801130357.0",
|
|
42
|
+
"@sap-cloud-sdk/util": "^2.6.1-20220801130357.0",
|
|
43
43
|
"axios": "^0.27.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|