@sap-ux/axios-extension 1.10.1 → 1.11.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.
@@ -31,6 +31,12 @@ export declare class TransportChecksService extends AdtService {
31
31
  * @returns a list of valid transport requests can be used for deploy config
32
32
  */
33
33
  private getTransportRequestList;
34
+ /**
35
+ * Parses the document to find and log the <CTS_MESSAGE> with severity 'E' in <MESSAGES>.
36
+ *
37
+ * @param doc document
38
+ */
39
+ private logErrorMsgs;
34
40
  /**
35
41
  * Provide a list of transport requests available for the input package name and project name
36
42
  * in a ADT CTS request.
@@ -104,11 +104,28 @@ class TransportChecksService extends adt_service_1.AdtService {
104
104
  case 'S':
105
105
  return this.getTransportList(doc);
106
106
  case 'E':
107
+ this.logErrorMsgs(doc);
108
+ return [];
107
109
  default:
108
- this.log.warn(`Error or unkown response content: ${xml}`);
110
+ this.log.warn(`Unknown response content: ${xml}`);
109
111
  return [];
110
112
  }
111
113
  }
114
+ /**
115
+ * Parses the document to find and log the <CTS_MESSAGE> with severity 'E' in <MESSAGES>.
116
+ *
117
+ * @param doc document
118
+ */
119
+ logErrorMsgs(doc) {
120
+ var _a, _b;
121
+ const messages = doc.getElementsByTagName('CTS_MESSAGE');
122
+ for (const msg of Array.from(messages)) {
123
+ if (((_a = msg.getElementsByTagName('SEVERITY')[0]) === null || _a === void 0 ? void 0 : _a.textContent) === 'E') {
124
+ const text = (_b = msg.getElementsByTagName('TEXT')[0]) === null || _b === void 0 ? void 0 : _b.textContent;
125
+ this.log.error(text);
126
+ }
127
+ }
128
+ }
112
129
  /**
113
130
  * Provide a list of transport requests available for the input package name and project name
114
131
  * in a ADT CTS request.
@@ -5,5 +5,5 @@ export { AppIndex, AppIndexService } from './app-index-service';
5
5
  export * from './message';
6
6
  export * from './catalog';
7
7
  export * from './adt-catalog';
8
- export { TenantType, ArchiveFileNode } from './types';
8
+ export { TenantType, ArchiveFileNode, AtoSettings } from './types';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -65,10 +65,19 @@ export declare enum TenantType {
65
65
  SAP = "SAP",
66
66
  Customer = "CUSTOMER"
67
67
  }
68
+ export type OperationsType = 'C' | 'P';
68
69
  /**
69
- * Possible values for operations type property: (C)loud and on-(P)remise.
70
+ * ATO Settings properties
71
+ *
72
+ * @typedef AtoSettings
73
+ * @property {string} developmentPackage Local package name i.e YY1_TEST_PACKAGE
74
+ * @property {string} developmentPrefix Describes a custom prefix that is used for your packages and transports i.e.YY1_ | ZZ1_
75
+ * @property {OperationsType} operationsType Hosting type i.e. Cloud | onPremise
76
+ * @property {boolean} isExtensibilityDevelopmentSystem Whether target system is a extensible development tenant, true | false
77
+ * @property {TenantType} tenantType Type of tenant exposed i.e. SAP | CUSTOMER
78
+ * @property {boolean} isTransportRequestRequired Whether Transport Request (TR) is required during deployment, true | false
79
+ * @property {boolean} isConfigured Whether ATO is enabled on target system, true | false
70
80
  */
71
- export type OperationsType = 'C' | 'P';
72
81
  export interface AtoSettings {
73
82
  developmentPackage?: string;
74
83
  developmentPrefix?: string;
@@ -76,6 +85,7 @@ export interface AtoSettings {
76
85
  isExtensibilityDevelopmentSystem?: boolean;
77
86
  tenantType?: TenantType;
78
87
  isTransportRequestRequired?: boolean;
88
+ isConfigured?: boolean;
79
89
  }
80
90
  export type AdtTransportStatus = 'S' | 'E';
81
91
  export declare const LocalPackageText: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/axios-extension",
3
- "version": "1.10.1",
3
+ "version": "1.11.0",
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",
@@ -22,14 +22,14 @@
22
22
  "qs": "6.7.3",
23
23
  "xpath": "0.0.33",
24
24
  "@xmldom/xmldom": "0.8.10",
25
- "@sap-ux/btp-utils": "0.13.0",
25
+ "@sap-ux/btp-utils": "0.14.0",
26
26
  "@sap-ux/logger": "0.5.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/lodash": "4.14.198",
29
+ "@types/lodash": "4.14.202",
30
30
  "nock": "13.4.0",
31
31
  "supertest": "6.3.3",
32
- "@sap-ux/project-access": "1.17.0"
32
+ "@sap-ux/project-access": "1.17.2"
33
33
  },
34
34
  "files": [
35
35
  "dist",