@sap-ux/deploy-tooling 0.3.4 → 0.4.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/README.md CHANGED
@@ -57,6 +57,7 @@ Options:
57
57
  --verbose verbose log output (default: false)
58
58
  --destination <destination> Destination in SAP BTP pointing to an ABAP system
59
59
  --url <target-url> URL of target ABAP system
60
+ --service (Optional) Alias for the target SAPUI5 Respository OData Service
60
61
  --client <sap-client> Client number of target ABAP system
61
62
  --cloud target is an ABAP Cloud system
62
63
  --cloud-service-key <file-location> JSON file location with the ABAP cloud service key.
@@ -89,6 +90,7 @@ Options:
89
90
  --verbose verbose log output (default: false)
90
91
  --destination <destination> Destination in SAP BTP pointing to an ABAP system
91
92
  --url <target-url> URL of target ABAP system
93
+ --service (Optional) Alias for the target SAPUI5 Respository OData Service
92
94
  --client <sap-client> Client number of target ABAP system
93
95
  --cloud target is an ABAP Cloud system
94
96
  --cloud-service-key <file-location> JSON file location with the ABAP cloud service key.
@@ -104,7 +104,7 @@ function createAbapServiceProvider(options, target) {
104
104
  * @returns service instance
105
105
  */
106
106
  function createDeployService(config, logger) {
107
- var _a, _b, _c;
107
+ var _a, _b, _c, _d;
108
108
  return __awaiter(this, void 0, void 0, function* () {
109
109
  let provider;
110
110
  const options = {};
@@ -139,7 +139,7 @@ function createDeployService(config, logger) {
139
139
  else {
140
140
  throw new Error('Unable to handle the configuration in the current environment.');
141
141
  }
142
- return provider.getUi5AbapRepository();
142
+ return provider.getUi5AbapRepository((_d = config.target) === null || _d === void 0 ? void 0 : _d.service);
143
143
  });
144
144
  }
145
145
  /**
@@ -133,7 +133,7 @@ function getServiceKey(options, targetUrl) {
133
133
  * @returns merged target object
134
134
  */
135
135
  function mergeTarget(baseTarget, options) {
136
- var _a, _b, _c;
136
+ var _a, _b, _c, _d;
137
137
  const targetUrl = (_a = options.url) !== null && _a !== void 0 ? _a : baseTarget === null || baseTarget === void 0 ? void 0 : baseTarget.url;
138
138
  return {
139
139
  url: targetUrl,
@@ -141,7 +141,8 @@ function mergeTarget(baseTarget, options) {
141
141
  cloud: options.cloud !== undefined ? options.cloud : baseTarget === null || baseTarget === void 0 ? void 0 : baseTarget.cloud,
142
142
  destination: (_c = options.destination) !== null && _c !== void 0 ? _c : baseTarget === null || baseTarget === void 0 ? void 0 : baseTarget.destination,
143
143
  serviceKey: getServiceKey(options, targetUrl),
144
- params: options.queryParams ? parseQueryParams(options.queryParams) : undefined
144
+ params: options.queryParams ? parseQueryParams(options.queryParams) : undefined,
145
+ service: (_d = options.service) !== null && _d !== void 0 ? _d : baseTarget === null || baseTarget === void 0 ? void 0 : baseTarget.service
145
146
  };
146
147
  }
147
148
  /**
package/dist/cli/index.js CHANGED
@@ -34,7 +34,8 @@ function createCommand(name) {
34
34
  .addOption(new commander_1.Option('--destination <destination>', 'Destination in SAP BTP pointing to an ABAP system').conflicts('url'))
35
35
  .addOption(new commander_1.Option('--url <target-url>', 'URL of target ABAP system').conflicts('destination'))
36
36
  .addOption(new commander_1.Option('--client <sap-client>', 'Client number of target ABAP system').conflicts('destination'))
37
- .addOption(new commander_1.Option('--cloud', 'target is an ABAP Cloud system').conflicts('destination'))
37
+ .addOption(new commander_1.Option('--cloud', 'Target is an ABAP Cloud system').conflicts('destination'))
38
+ .addOption(new commander_1.Option('--service <service-path>', 'Target SAPUI5 Repository OData Service'))
38
39
  .addOption(new commander_1.Option('--cloud-service-key <file-location>', 'JSON file location with the ABAP cloud service key.').conflicts('destination'))
39
40
  .addOption(new commander_1.Option('--cloud-service-env', 'Read ABAP cloud service properties from environment variables or .env file').conflicts(['cloudServiceKey', 'destination']))
40
41
  .option('--transport <transport-request>', 'Transport number to record the change in the ABAP system')
@@ -4,6 +4,7 @@ export declare const NAME = "abap-deploy-task";
4
4
  export interface UrlAbapTarget {
5
5
  url: string;
6
6
  client?: string;
7
+ service?: string;
7
8
  cloud?: boolean;
8
9
  serviceKey?: ServiceInfo;
9
10
  params?: AxiosRequestConfig['params'];
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
11
11
  },
12
- "version": "0.3.4",
12
+ "version": "0.4.0",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -34,8 +34,8 @@
34
34
  "@sap-ux/axios-extension": "1.3.3",
35
35
  "@sap-ux/btp-utils": "0.11.7",
36
36
  "@sap-ux/logger": "0.3.7",
37
- "@sap-ux/store": "0.3.12",
38
- "@sap-ux/ui5-config": "0.18.2"
37
+ "@sap-ux/ui5-config": "0.18.2",
38
+ "@sap-ux/store": "0.3.12"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/prompts": "2.0.14",