@celonis/content-cli 0.8.2 → 0.8.3

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.
@@ -42,16 +42,14 @@ export interface PackageKeyAndVersionPair {
42
42
  export interface NodeExportTransport {
43
43
  key: string;
44
44
  parentNodeKey: string;
45
- packageNodeKey: string;
46
45
  name: string;
47
46
  type: string;
48
47
  exportSerializationType: string;
49
- serializedContent: string;
48
+ configuration: string;
50
49
  schemaVersion: number;
51
- unversionedMetadata: any;
52
- versionedMetdata: object;
50
+ spaceId: string;
53
51
  invalidContent?: boolean;
54
- serializedDocument: Buffer;
52
+ serializedDocument?: Buffer;
55
53
  }
56
54
  export interface NodeSerializedContent {
57
55
  variables: VariableDefinition[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celonis/content-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "CLI Tool to help manage content in Celonis EMS",
5
5
  "main": "content-cli.js",
6
6
  "bin": {
@@ -129,10 +129,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
129
129
  }
130
130
  const packageEntry = packageZip.getEntry("package.yml");
131
131
  const exportedNode = (0, yaml_1.parse)(packageEntry.getData().toString());
132
- const nodeContent = (0, yaml_1.parse)(exportedNode.serializedContent);
132
+ const nodeContent = (0, yaml_1.parse)(exportedNode.configuration);
133
133
  nodeContent.variables = nodeContent.variables.map(variable => (Object.assign(Object.assign({}, variable), { metadata: variable.type === package_manager_interfaces_1.PackageManagerVariableType.CONNECTION ?
134
134
  connectionVariablesByKey.get(variable.key).metadata : variable.metadata })));
135
- exportedNode.serializedContent = (0, yaml_1.stringify)(nodeContent);
135
+ exportedNode.configuration = (0, yaml_1.stringify)(nodeContent);
136
136
  packageZip.updateFile(packageEntry, Buffer.from((0, yaml_1.stringify)(exportedNode)));
137
137
  }
138
138
  getPackageKeyAndVersion(zipName) {
@@ -211,7 +211,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
211
211
  }
212
212
  updateSpaceIdForNode(nodeContent, spaceId) {
213
213
  const exportedNode = (0, yaml_1.parse)(nodeContent);
214
- const oldSpaceId = exportedNode.unversionedMetadata.spaceId;
214
+ const oldSpaceId = exportedNode.spaceId;
215
215
  nodeContent = nodeContent.replace(new RegExp(oldSpaceId, "g"), spaceId);
216
216
  return nodeContent;
217
217
  }