@extrahorizon/exh-cli 1.7.0-dev-58-d05e09f → 1.7.0-dev-60-04313c2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Extra Horizon CLI changelog
|
|
2
2
|
|
|
3
|
+
### Unreleased
|
|
4
|
+
* `exh data schemas sync` now also strips the description fields for conditions and actions in the creation transition
|
|
5
|
+
|
|
3
6
|
### v1.7.0
|
|
4
7
|
* `exh data schemas sync` now allows your schema `.json` files to contain a `$schema` property
|
|
5
8
|
* This allows you to specify a json-schema for the schema files themselves, providing hints and validation in your editor
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Schema,
|
|
1
|
+
import { CreationTransition, Schema, TypeConfiguration } from '@extrahorizon/javascript-sdk';
|
|
2
2
|
export declare function stripUnsupportedDescriptionFields(schema: Schema): {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
|
-
properties: Record<string,
|
|
6
|
+
properties: Record<string, TypeConfiguration>;
|
|
7
7
|
indexes: import("@extrahorizon/javascript-sdk").Index[];
|
|
8
8
|
statuses: Record<string, Record<string, string>>;
|
|
9
|
-
creationTransition:
|
|
10
|
-
transitions: Transition[];
|
|
9
|
+
creationTransition: CreationTransition;
|
|
10
|
+
transitions: import("@extrahorizon/javascript-sdk").Transition[];
|
|
11
11
|
createMode: import("@extrahorizon/javascript-sdk").CreateMode;
|
|
12
12
|
readMode: import("@extrahorizon/javascript-sdk").ReadMode;
|
|
13
13
|
updateMode: import("@extrahorizon/javascript-sdk").UpdateMode;
|
|
@@ -18,5 +18,5 @@ export declare function stripUnsupportedDescriptionFields(schema: Schema): {
|
|
|
18
18
|
updateTimestamp: Date;
|
|
19
19
|
creationTimestamp: Date;
|
|
20
20
|
findTransitionIdByName?: (name: string) => string;
|
|
21
|
-
transitionsByName?: Record<string, Transition>;
|
|
21
|
+
transitionsByName?: Record<string, import("@extrahorizon/javascript-sdk").Transition>;
|
|
22
22
|
};
|
|
@@ -5,7 +5,7 @@ const _ = require("lodash");
|
|
|
5
5
|
function stripUnsupportedDescriptionFields(schema) {
|
|
6
6
|
const newSchema = { ...schema };
|
|
7
7
|
if (schema.creationTransition) {
|
|
8
|
-
newSchema.creationTransition =
|
|
8
|
+
newSchema.creationTransition = stripDescriptionsFromTransition(schema.creationTransition);
|
|
9
9
|
}
|
|
10
10
|
if (schema.transitions) {
|
|
11
11
|
newSchema.transitions = schema.transitions.map(stripDescriptionsFromTransition);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/exh-cli",
|
|
3
|
-
"version": "1.7.0-dev-
|
|
3
|
+
"version": "1.7.0-dev-60-04313c2",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"exports": "./build/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"typescript": "4.5.5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@extrahorizon/javascript-sdk": "^8.4.
|
|
43
|
+
"@extrahorizon/javascript-sdk": "^8.4.1",
|
|
44
44
|
"ajv": "^8.11.0",
|
|
45
45
|
"archiver": "^5.3.1",
|
|
46
46
|
"chalk": "^4.0.0",
|