@sap-ux/axios-extension 1.4.8 → 1.5.1
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.
|
@@ -14,6 +14,7 @@ export declare class TransportChecksService extends AdtService {
|
|
|
14
14
|
* @returns AdtCategory
|
|
15
15
|
*/
|
|
16
16
|
static getAdtCatagory(): AdtCategory;
|
|
17
|
+
static LocalPackageError: string;
|
|
17
18
|
/**
|
|
18
19
|
* TransportChecksService API function to fetch a list of available transport requests.
|
|
19
20
|
*
|
|
@@ -35,9 +36,11 @@ export declare class TransportChecksService extends AdtService {
|
|
|
35
36
|
* in a ADT CTS request.
|
|
36
37
|
*
|
|
37
38
|
* @param doc document
|
|
38
|
-
* @returns
|
|
39
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* @returns A list of transport requests
|
|
40
|
+
* @throws For errors or other unkonwn reasons no transport number found, an error is thrown.
|
|
41
|
+
* If error message equals TransportChecksService.LocalPackageError, it indicates the input
|
|
42
|
+
* package is a local package and no transport request is required.
|
|
43
|
+
* @see TransportChecksService.LocalPackageError
|
|
41
44
|
*/
|
|
42
45
|
private getTransportList;
|
|
43
46
|
/**
|
|
@@ -114,9 +114,11 @@ class TransportChecksService extends adt_service_1.AdtService {
|
|
|
114
114
|
* in a ADT CTS request.
|
|
115
115
|
*
|
|
116
116
|
* @param doc document
|
|
117
|
-
* @returns
|
|
118
|
-
*
|
|
119
|
-
*
|
|
117
|
+
* @returns A list of transport requests
|
|
118
|
+
* @throws For errors or other unkonwn reasons no transport number found, an error is thrown.
|
|
119
|
+
* If error message equals TransportChecksService.LocalPackageError, it indicates the input
|
|
120
|
+
* package is a local package and no transport request is required.
|
|
121
|
+
* @see TransportChecksService.LocalPackageError
|
|
120
122
|
*/
|
|
121
123
|
getTransportList(doc) {
|
|
122
124
|
var _a, _b, _c;
|
|
@@ -130,7 +132,7 @@ class TransportChecksService extends adt_service_1.AdtService {
|
|
|
130
132
|
return this.getLockedTransport(doc);
|
|
131
133
|
}
|
|
132
134
|
else if (types_1.LocalPackageText.includes(localPackage)) {
|
|
133
|
-
|
|
135
|
+
throw new Error(TransportChecksService.LocalPackageError);
|
|
134
136
|
}
|
|
135
137
|
else {
|
|
136
138
|
throw new Error('Unable to parse ADT response');
|
|
@@ -205,4 +207,5 @@ TransportChecksService.adtCategory = {
|
|
|
205
207
|
scheme: 'http://www.sap.com/adt/categories/cts',
|
|
206
208
|
term: 'transportchecks'
|
|
207
209
|
};
|
|
210
|
+
TransportChecksService.LocalPackageError = 'LocalPackageError';
|
|
208
211
|
//# sourceMappingURL=transportcheck-service.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/axios-extension",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"xpath": "0.0.33",
|
|
24
24
|
"@xmldom/xmldom": "0.8.10",
|
|
25
25
|
"@sap-ux/btp-utils": "0.11.9",
|
|
26
|
-
"@sap-ux/logger": "0.3.
|
|
26
|
+
"@sap-ux/logger": "0.3.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash": "4.14.198",
|
|
30
30
|
"nock": "13.2.1",
|
|
31
31
|
"supertest": "6.3.3",
|
|
32
|
-
"@sap-ux/project-access": "1.13.
|
|
32
|
+
"@sap-ux/project-access": "1.13.8"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|