Skip to content

Commit

Permalink
Merge branch 'main' into fix/2020/i18n_validation_fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilko01 committed Jul 3, 2024
2 parents bd89b20 + 32d7b6e commit f50a378
Show file tree
Hide file tree
Showing 370 changed files with 15,920 additions and 2,716 deletions.
39 changes: 39 additions & 0 deletions examples/odata-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @sap-ux/odata-cli

## 0.13.4

### Patch Changes

- Updated dependencies [4492fe10]
- @sap-ux/axios-extension@1.14.4

## 0.13.3

### Patch Changes

- Updated dependencies [d5d3626c]
- @sap-ux/axios-extension@1.14.3

## 0.13.2

### Patch Changes

- Updated dependencies [65bfb244]
- @sap-ux/axios-extension@1.14.2

## 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.4",
"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);
}
}
103 changes: 103 additions & 0 deletions examples/simple-generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,108 @@
# @sap-ux/generator-simple-fe

## 0.3.86

### Patch Changes

- Updated dependencies [cfe6da80]
- @sap-ux/fiori-elements-writer@0.22.0

## 0.3.85

### Patch Changes

- Updated dependencies [4492fe10]
- @sap-ux/axios-extension@1.14.4
- @sap-ux/system-access@0.4.7

## 0.3.84

### Patch Changes

- Updated dependencies [d5d3626c]
- @sap-ux/axios-extension@1.14.3
- @sap-ux/system-access@0.4.6

## 0.3.83

### Patch Changes

- Updated dependencies [65bfb244]
- @sap-ux/axios-extension@1.14.2
- @sap-ux/system-access@0.4.5

## 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

- Updated dependencies [7f8bc980]
- @sap-ux/system-access@0.4.1

## 0.3.74

### Patch Changes

- Updated dependencies [a48a8c0b]
- @sap-ux/system-access@0.4.0

## 0.3.73

### 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.73",
"version": "0.3.86",
"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
58 changes: 58 additions & 0 deletions packages/abap-deploy-config-writer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# @sap-ux/abap-deploy-config-writer

## 0.0.8

### Patch Changes

- Updated dependencies [9ea58ad4]
- @sap-ux/project-access@1.22.4
- @sap-ux/system-access@0.4.7

## 0.0.7

### Patch Changes

- @sap-ux/system-access@0.4.7

## 0.0.6

### Patch Changes

- @sap-ux/system-access@0.4.6

## 0.0.5

### Patch Changes

- @sap-ux/system-access@0.4.5

## 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 f50a378

Please sign in to comment.