Skip to content

Commit 81304e8

Browse files
Merge branch 'master' into j-halili/EMA-4088_add-action-flows-import-export-analyze-functionality
2 parents 62feaa5 + 23001a2 commit 81304e8

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@celonis/content-cli",
3-
"version": "0.10.1",
3+
"version": "0.11.1",
44
"description": "CLI Tool to help manage content in Celonis EMS",
55
"main": "content-cli.js",
66
"bin": {

src/interfaces/diff-package.transport.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,38 @@ export interface ConfigurationChangeTransport {
88
export interface NodeDiffTransport {
99
nodeKey: string;
1010
changes: ConfigurationChangeTransport[];
11+
baseConfiguration: NodeConfiguration;
12+
}
13+
14+
export interface NodeConfiguration {
15+
[key: string]: any;
1116
}
1217

1318
export interface PackageDiffTransport {
1419
packageKey: string;
20+
basePackageConfiguration: PackageConfiguration;
1521
packageChanges: ConfigurationChangeTransport[];
1622
nodesWithChanges: NodeDiffTransport[];
1723
}
1824

25+
export interface PackageConfiguration {
26+
variables?: VariableDefinition[];
27+
dependencies?: PackageDependency[];
28+
[key: string]: any;
29+
}
30+
31+
export interface PackageDependency {
32+
key: string;
33+
version: string;
34+
[key: string]: any;
35+
}
36+
37+
export interface VariableDefinition {
38+
key: string;
39+
type: string;
40+
[key: string]: any;
41+
}
42+
1943
export interface PackageDiffMetadata {
2044
packageKey: string;
2145
hasChanges: boolean;

tests/config/config-diff.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ describe("Config diff", () => {
5858

5959
const diffResponse: PackageDiffTransport[] = [{
6060
packageKey: "package-key",
61+
basePackageConfiguration: {metadata: {description: "test"}},
6162
packageChanges: [
6263
{
6364
op: "add",
@@ -72,7 +73,8 @@ describe("Config diff", () => {
7273
path: "/test",
7374
from: "bbb",
7475
value: JSON.parse("234")
75-
}]
76+
}],
77+
baseConfiguration: {}
7678
}]
7779
}];
7880

@@ -100,6 +102,7 @@ describe("Config diff", () => {
100102

101103
const diffResponse: PackageDiffTransport[] = [{
102104
packageKey: "package-key",
105+
basePackageConfiguration: {metadata: {description: "test"}},
103106
packageChanges: [
104107
{
105108
op: "add",
@@ -114,7 +117,8 @@ describe("Config diff", () => {
114117
path: "/test",
115118
from: "bbb",
116119
value: JSON.parse("234")
117-
}]
120+
}],
121+
baseConfiguration: {}
118122
}]
119123
}];
120124

0 commit comments

Comments
 (0)