Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/2039/add-tools-id
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmace committed Jun 27, 2024
2 parents 59fedce + 5137bea commit 4340593
Show file tree
Hide file tree
Showing 252 changed files with 6,538 additions and 1,184 deletions.
18 changes: 18 additions & 0 deletions examples/odata-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @sap-ux/odata-cli

## 0.13.1

### Patch Changes

- Updated dependencies [844e79c4]
- @sap-ux/axios-extension@1.14.1

## 0.13.0

### Minor Changes

- 31cc53f8: Use new api endpoint for ui service generator

### Patch Changes

- Updated dependencies [31cc53f8]
- @sap-ux/axios-extension@1.14.0

## 0.12.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/odata-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sap-ux/odata-cli",
"version": "0.12.30",
"version": "0.13.1",
"description": "Simple example CLI uing the @sap-ux/axios-extension module to fetch metadata and annotations from an SAP system.",
"license": "Apache-2.0",
"private": true,
Expand Down
42 changes: 9 additions & 33 deletions examples/odata-cli/src/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
TransportRequestService,
ListPackageService,
FileStoreService,
BusinessObjectsService,
PublishService
BusinessObjectsService
} from '@sap-ux/axios-extension';
import { logger } from './types';

Expand Down Expand Up @@ -208,45 +207,22 @@ export async function testUiServiceGenerator(
const bo = bos.find((bo) => bo.name === env.TEST_BO_NAME);
logger.debug(bos.map((bo) => bo.name));

// Generator service
// Get generator service
const generator = await provider.getUiServiceGenerator(bo);
const content = await generator.getContent(env.TEST_PACKAGE);
logger.debug('content: ' + content);
let generatedRefs;

// Validate package and content
logger.info('validate package: ' + JSON.stringify(await generator.validatePackage(env.TEST_PACKAGE)));
logger.info('validate content: ' + JSON.stringify(await generator.validateContent(content)));

// Generate (including publish)
try {
logger.info('Start generation of service');
generatedRefs = await generator.generate(content, env.TEST_TRANSPORT);
logger.debug('generatedRefs: ' + JSON.stringify(generatedRefs));
await generator.generate(content, env.TEST_TRANSPORT);
logger.info('Generation of service completed');
} catch (error) {
logger.error(`${error.code}: ${error.message}`);
logger.debug(error);
return;
}

// Publish (including lock service binding)
if (generatedRefs) {
const serviceLockGen = await provider.createLockServiceBindingGenerator(generatedRefs.objectReference.uri);
try {
await serviceLockGen.lockServiceBinding();
} catch (error) {
if (error.response && error.response.status === 403) {
logger.warn(`${error.code} ${error.response.status} ${error.response.data}`);
} else {
logger.warn(error);
return;
}
}
}
const publishService = await provider.getAdtService<PublishService>(PublishService);
try {
logger.info('Start publish');
const publishResult = await publishService.publish(
generatedRefs.objectReference.type,
generatedRefs.objectReference.name
);
logger.info(`Publish result: ${publishResult.SEVERITY} ${publishResult.LONG_TEXT || publishResult.SHORT_TEXT}`);
} catch (error) {
logger.error(error);
}
}
58 changes: 58 additions & 0 deletions examples/simple-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# @sap-ux/generator-simple-fe

## 0.3.82

### Patch Changes

- Updated dependencies [1a1baeb0]
- @sap-ux/fiori-elements-writer@0.21.4
- @sap-ux/fiori-freestyle-writer@0.22.15
- @sap-ux/axios-extension@1.14.1
- @sap-ux/system-access@0.4.4

## 0.3.81

### Patch Changes

- Updated dependencies [844e79c4]
- @sap-ux/axios-extension@1.14.1
- @sap-ux/system-access@0.4.4

## 0.3.80

### Patch Changes

- Updated dependencies [31cc53f8]
- @sap-ux/axios-extension@1.14.0
- @sap-ux/system-access@0.4.3

## 0.3.79

### Patch Changes

- @sap-ux/axios-extension@1.13.1
- @sap-ux/system-access@0.4.2
- @sap-ux/fiori-elements-writer@0.21.3
- @sap-ux/fiori-freestyle-writer@0.22.14

## 0.3.78

### Patch Changes

- @sap-ux/system-access@0.4.2

## 0.3.77

### Patch Changes

- Updated dependencies [dfeb3a6b]
- @sap-ux/fiori-freestyle-writer@0.22.13
- @sap-ux/fiori-elements-writer@0.21.2

## 0.3.76

### Patch Changes

- @sap-ux/fiori-elements-writer@0.21.1
- @sap-ux/fiori-freestyle-writer@0.22.12
- @sap-ux/axios-extension@1.13.1
- @sap-ux/system-access@0.4.1

## 0.3.75

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sap-ux/generator-simple-fe",
"version": "0.3.75",
"version": "0.3.82",
"description": "Simple example of a yeoman generator for Fiori elements.",
"license": "Apache-2.0",
"private": true,
Expand Down
3 changes: 3 additions & 0 deletions packages/abap-deploy-config-writer/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test/test-output
test/sample
dist
7 changes: 7 additions & 0 deletions packages/abap-deploy-config-writer/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ['../../.eslintrc'],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname
}
};
1 change: 1 addition & 0 deletions packages/abap-deploy-config-writer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./test/test-output
32 changes: 32 additions & 0 deletions packages/abap-deploy-config-writer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# @sap-ux/abap-deploy-config-writer

## 0.0.4

### Patch Changes

- Updated dependencies [1a1baeb0]
- @sap-ux/ui5-config@0.22.10
- @sap-ux/project-access@1.22.3
- @sap-ux/system-access@0.4.4

## 0.0.3

### Patch Changes

- @sap-ux/system-access@0.4.4

## 0.0.2

### Patch Changes

- @sap-ux/system-access@0.4.3

## 0.0.1

### Patch Changes

- 399d2ad8: adds new abap deploy config writer
- Updated dependencies [399d2ad8]
- @sap-ux/project-access@1.22.2
- @sap-ux/ui5-config@0.22.9
- @sap-ux/system-access@0.4.2
Loading

0 comments on commit 4340593

Please sign in to comment.