forked from SAP/cloud-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* split http-client * changes * fix test error * add missing dependency * fix dep check * fix import path * revert fix import path * remarks review * lint error * fix * split open api * add missing dep
- Loading branch information
Showing
67 changed files
with
268 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,3 @@ export { | |
uriConverters | ||
} from './odata-v2'; | ||
export * from './odata-v4'; | ||
export * from './openapi'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- sap-cloud-sdk-logo --> | ||
<!-- This block is inserted by scripts/replace-common-readme.ts. Do not adjust it manually. --> | ||
<a href="https://sap.com/s4sdk"><img src="https://help.sap.com/doc/2324e9c3b28748a4ae2ad08166d77675/1.0/en-US/logo-with-js.svg" alt="SAP Cloud SDK for JavaScript Logo" height="122.92" width="226.773"/></a> | ||
<!-- sap-cloud-sdk-logo-stop --> | ||
|
||
# @sap-cloud-sdk/openapi | ||
|
||
This package contains the OpenAPI request builder for different types of HTTP requests. | ||
. | ||
## Installation | ||
|
||
``` | ||
$ npm install @sap-cloud-sdk/openapi | ||
``` | ||
|
||
## Usage | ||
|
||
The openapi package is not intended for direct usage. | ||
|
||
For more detailed overview visit our [Execute OpenAPI request documentation](https://sap.github.io/cloud-sdk/docs/js/features/openapi/execute-openapi-request). | ||
|
||
<!-- sap-cloud-sdk-common-readme --> | ||
<!-- This block is inserted by scripts/replace-common-readme.ts. Do not adjust it manually. --> | ||
## Support | ||
|
||
The recommended way to get in touch with us is to create an issue in our [github repository](https://github.com/SAP/cloud-sdk-js/issues). | ||
Select the issue category `Bug`, `Feature` or `Question` depending on the nature of your request. | ||
We try to provide fixes, features and answers as soon as possible. | ||
|
||
We also monitor questions on [StackOverflow](https://stackoverflow.com/questions/tagged/sap-cloud-sdk?tab=Newest) and [ansers.sap.com](https://answers.sap.com/tags/73555000100800000895) but prefer issues on github. | ||
|
||
## Contribute | ||
|
||
If you would like to contribute to the SAP Cloud SDK, please make yourself familiar with our [contributing guidelines](https://github.com/SAP/cloud-sdk-js/blob/main/CONTRIBUTING.md) and follow the given instructions. | ||
|
||
## Links | ||
|
||
- [Github](https://github.com/SAP/cloud-sdk-js) | ||
- [Github - Releases](https://github.com/SAP/cloud-sdk-js/releases) | ||
|
||
<br> | ||
|
||
- [SAP Cloud SDK Documentation portal](https://sap.github.io/cloud-sdk/) | ||
- [SAP Cloud SDK Documentation portal - Getting started guide](https://sap.github.io/cloud-sdk/docs/js/getting-started) | ||
- [SAP Cloud SDK Documentation portal - API documentation](https://sap.github.io/cloud-sdk/docs/js/api-reference-js-ts) | ||
|
||
<br> | ||
|
||
- [developers.sap.com - Product Overview](https://developers.sap.com/topics/cloud-sdk.html) | ||
- [developers.sap.com - Tutorials](https://developers.sap.com/tutorial-navigator.html?tag=products:technology-platform/sap-cloud-sdk/sap-cloud-sdk&tag=topic:javascript) | ||
|
||
## License | ||
|
||
The SAP Cloud SDK is released under the [Apache License Version 2.0.](http://www.apache.org/licenses/) | ||
<!-- sap-cloud-sdk-common-readme-stop --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line | ||
const commonConfig = require('../../test-resources/jest.common.config'); | ||
module.exports = { | ||
...commonConfig, | ||
displayName: 'openapi' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "@sap-cloud-sdk/openapi", | ||
"version": "1.50.0", | ||
"description": "SAP Cloud SDK for JavaScript openapi", | ||
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript", | ||
"license": "Apache-2.0", | ||
"keywords": [ | ||
"sap-cloud-sdk", | ||
"cloud-sdk", | ||
"sap-cloud-platform", | ||
"open-api" | ||
], | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"dist/**/*.js", | ||
"dist/**/*.js.map", | ||
"dist/**/*.d.ts", | ||
"dist/**/*.d.ts.map", | ||
"usage-analytics.js" | ||
], | ||
"repository": "github:SAP/cloud-sdk-js", | ||
"scripts": { | ||
"compile": "yarn tsc -b", | ||
"prepare": "yarn compile", | ||
"postinstall": "node usage-analytics.js", | ||
"test": "yarn jest", | ||
"coverage": "yarn jest --coverage", | ||
"check:dependencies": "depcheck ." | ||
}, | ||
"dependencies": { | ||
"@sap-cloud-sdk/analytics": "^1.50.0", | ||
"@sap-cloud-sdk/util": "^1.50.0", | ||
"@sap-cloud-sdk/connectivity": "^1.50.0", | ||
"@sap-cloud-sdk/http-client": "^1.50.0", | ||
"axios": "^0.21.1" | ||
}, | ||
"devDependencies": { | ||
"@sap-cloud-sdk/core": "^1.50.0", | ||
"nock": "^13.0.11" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export { OpenApiRequestBuilder } from './openapi-request-builder'; | ||
export { | ||
ParametersType, | ||
FunctionReturnType, | ||
UnwrapAxiosResponse, | ||
UnPromisify, | ||
ConstructorType | ||
} from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"tsBuildInfoFile": "./dist/.tsbuildinfo", | ||
"composite": true | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["dist/**/*", "test/**/*", "**/*.spec.ts", "node_modules/**/*"], | ||
"files": [], | ||
"references": [ | ||
{ "path": "../util" }, | ||
{ "path": "../analytics" }, | ||
{ "path": "../connectivity" }, | ||
{ "path": "../http-client" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", | ||
"extends": ["../../tsdoc.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
try { | ||
// See docs/specs/0005_analytics-lifecycle-trick.md | ||
const analytics = require('@sap-cloud-sdk/analytics'); | ||
const path = require('path'); | ||
|
||
const pathOfPostinstallScript = path.resolve(__dirname); | ||
analytics.performUsageAnalytics(pathOfPostinstallScript, { | ||
event_type: 'npm_install_openapi' | ||
}); | ||
} catch (e) { | ||
console.log('Looks like a local install to me.'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test-packages/test-services/openapi/no-schema-service/default-api.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test-packages/test-services/openapi/no-schema-service/default-api.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
test-packages/test-services/openapi/no-schema-service/default-api.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
test-packages/test-services/openapi/no-schema-service/default-api.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test-packages/test-services/openapi/swagger-yaml-service/default-api.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test-packages/test-services/openapi/swagger-yaml-service/default-api.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.