@celonis/content-cli 1.11.0 → 1.12.0

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.
Files changed (52) hide show
  1. package/commands/configuration-management/api/metadata-api.js +38 -0
  2. package/commands/configuration-management/api/{diff-api.js → single-package-import-api.js} +5 -10
  3. package/commands/configuration-management/api/staging-package-api.js +39 -0
  4. package/commands/configuration-management/api/variable-api.js +36 -0
  5. package/commands/configuration-management/config-command.service.js +1 -63
  6. package/commands/configuration-management/connection-variable.helper.js +30 -0
  7. package/commands/configuration-management/interfaces/single-package-import.interfaces.js +12 -0
  8. package/commands/configuration-management/metadata.service.js +50 -0
  9. package/commands/configuration-management/module.js +58 -15
  10. package/commands/configuration-management/single-package-import.service.js +111 -0
  11. package/commands/configuration-management/staging-package.service.js +50 -0
  12. package/commands/configuration-management/variable.service.js +6 -7
  13. package/commands/t2tc/api/diff-api.js +40 -0
  14. package/commands/{configuration-management/api/batch-import-export-api.js → t2tc/api/t2tc-package-api.js} +3 -29
  15. package/commands/{configuration-management → t2tc}/diff.service.js +7 -7
  16. package/commands/t2tc/module.js +105 -0
  17. package/commands/{configuration-management → t2tc}/studio.service.js +2 -17
  18. package/commands/t2tc/t2tc-command.service.js +88 -0
  19. package/commands/{configuration-management/batch-import-export.service.js → t2tc/t2tc-package.service.js} +22 -50
  20. package/commands/view/module.js +54 -0
  21. package/commands/view/view-bookmarks-command.service.js +45 -0
  22. package/commands/view/view-bookmarks.manager-factory.js +39 -0
  23. package/commands/view/view-bookmarks.manager.js +60 -0
  24. package/core/utils/file-service.js +12 -0
  25. package/lib/commands/configuration-management/api/metadata-api.d.ts +7 -0
  26. package/lib/commands/configuration-management/api/single-package-import-api.d.ts +8 -0
  27. package/lib/commands/configuration-management/api/staging-package-api.d.ts +7 -0
  28. package/lib/commands/configuration-management/api/variable-api.d.ts +7 -0
  29. package/lib/commands/configuration-management/config-command.service.d.ts +0 -8
  30. package/lib/commands/configuration-management/connection-variable.helper.d.ts +2 -0
  31. package/lib/commands/configuration-management/interfaces/single-package-import.interfaces.d.ts +19 -0
  32. package/lib/commands/configuration-management/metadata.service.d.ts +7 -0
  33. package/lib/commands/configuration-management/module.d.ts +3 -1
  34. package/lib/commands/configuration-management/single-package-import.service.d.ts +12 -0
  35. package/lib/commands/configuration-management/staging-package.service.d.ts +7 -0
  36. package/lib/commands/configuration-management/variable.service.d.ts +1 -2
  37. package/lib/commands/t2tc/api/diff-api.d.ts +9 -0
  38. package/lib/commands/{configuration-management/api/batch-import-export-api.d.ts → t2tc/api/t2tc-package-api.d.ts} +3 -6
  39. package/lib/commands/{configuration-management → t2tc}/diff.service.d.ts +1 -1
  40. package/lib/commands/t2tc/module.d.ts +10 -0
  41. package/lib/commands/{configuration-management → t2tc}/studio.service.d.ts +1 -3
  42. package/lib/commands/t2tc/t2tc-command.service.d.ts +12 -0
  43. package/lib/commands/{configuration-management/batch-import-export.service.d.ts → t2tc/t2tc-package.service.d.ts} +3 -5
  44. package/lib/commands/view/module.d.ts +11 -0
  45. package/lib/commands/view/view-bookmarks-command.service.d.ts +7 -0
  46. package/lib/commands/view/view-bookmarks.manager-factory.d.ts +8 -0
  47. package/lib/commands/view/view-bookmarks.manager.d.ts +20 -0
  48. package/lib/core/utils/file-service.d.ts +1 -0
  49. package/package.json +1 -1
  50. package/lib/commands/configuration-management/api/diff-api.d.ts +0 -9
  51. /package/commands/{configuration-management/interfaces → t2tc}/batch-export-import.constants.js +0 -0
  52. /package/lib/commands/{configuration-management/interfaces → t2tc}/batch-export-import.constants.d.ts +0 -0
@@ -1,23 +1,21 @@
1
1
  import { Context } from "../../core/command/cli-context";
2
- export declare class BatchImportExportService {
3
- private batchImportExportApi;
2
+ export declare class T2tcPackageService {
3
+ private t2tcPackageApi;
4
+ private variableApi;
4
5
  private studioPackageApi;
5
6
  private studioService;
6
7
  private gitService;
7
8
  constructor(context: Context);
8
9
  listActivePackages(flavors: string[], includeBranches: boolean): Promise<void>;
9
- listStagingPackages(flavors: string[], includeBranches: boolean, jsonResponse: boolean): Promise<void>;
10
10
  findAndExportListOfPackages(flavors: string[], packageKeys: string[], keysByVersion: string[], withDependencies: boolean, includeBranches: boolean): Promise<void>;
11
11
  listPackagesByKeysWithVersion(keysByVersion: string[], withDependencies: boolean): Promise<void>;
12
12
  batchExportPackages(packageKeys: string[], packageKeysByVersion: string[], withDependencies: boolean, gitBranch: string, unzip: boolean): Promise<void>;
13
- batchExportPackagesMetadata(packageKeys: string[], jsonResponse: boolean): Promise<void>;
14
13
  batchImportPackages(sourcePath: string, overwrite: boolean, gitBranch: string, performValidation?: boolean): Promise<void>;
15
14
  findAndExportListOfActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string, includeBranches: boolean): Promise<void>;
16
15
  listActivePackagesByVariableValue(flavors: string[], variableValue: string, variableType: string, includeBranches: boolean): Promise<void>;
17
16
  private exportListOfPackages;
18
17
  private getVersionsByPackageKey;
19
18
  private getVersionedVariablesForPackagesWithKeys;
20
- private exportListOfPackagesMetadata;
21
19
  private buildBodyForImport;
22
20
  private assertUncompressedSizeWithinLimit;
23
21
  private getReadableStream;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Commands related to the View feature.
3
+ */
4
+ import { Configurator, IModule } from "../../core/command/module-handler";
5
+ import { Context } from "../../core/command/cli-context";
6
+ declare class Module extends IModule {
7
+ register(context: Context, configurator: Configurator): void;
8
+ private pullViewBookmarks;
9
+ private pushViewBookmarks;
10
+ }
11
+ export = Module;
@@ -0,0 +1,7 @@
1
+ import { Context } from "../../core/command/cli-context";
2
+ export declare class ViewBookmarksCommandService {
3
+ private readonly viewBookmarksManagerFactory;
4
+ constructor(context: Context);
5
+ pullViewBookmarks(boardId: string, type?: string): Promise<void>;
6
+ pushViewBookmarks(boardId: string, filename: string): Promise<void>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewBookmarksManager } from "./view-bookmarks.manager";
2
+ import { Context } from "../../core/command/cli-context";
3
+ export declare class ViewBookmarksManagerFactory {
4
+ private readonly context;
5
+ constructor(context: Context);
6
+ createViewBookmarksManager(filename: string, boardId: string, type?: string): ViewBookmarksManager;
7
+ private resolveFilePath;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { Context } from "../../core/command/cli-context";
2
+ import { BaseManager } from "../../core/http/http-shared/base.manager";
3
+ import { ManagerConfig } from "../../core/http/http-shared/manager-config.interface";
4
+ export declare class ViewBookmarksManager extends BaseManager {
5
+ private static readonly BASE_URL;
6
+ private static readonly VIEW_BOOKMARKS_FILE_PREFIX;
7
+ private _boardId;
8
+ private _filePath;
9
+ private _type;
10
+ constructor(context: Context);
11
+ get filePath(): string;
12
+ set filePath(value: string);
13
+ get boardId(): string;
14
+ set boardId(value: string);
15
+ get type(): string;
16
+ set type(value: string);
17
+ getConfig(): ManagerConfig;
18
+ getBody(): any;
19
+ protected getSerializedFileContent(data: any): string;
20
+ }
@@ -8,6 +8,7 @@ export declare class FileService {
8
8
  extractExportedZipWithNestedZipsToDir(zipFile: AdmZip, targetDir: string): string;
9
9
  isDirectory(sourcePath: string): boolean;
10
10
  zipDirectoryInBatchExportFormat(sourceDir: string): string;
11
+ zipDirectoryAsSinglePackage(sourceDir: string): string;
11
12
  private getSerializedFileContent;
12
13
  private restrictFilePermissions;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celonis/content-cli",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "CLI Tool to help manage content in Celonis Platform",
5
5
  "main": "content-cli.js",
6
6
  "bin": {
@@ -1,9 +0,0 @@
1
- import * as FormData from "form-data";
2
- import { Context } from "../../../core/command/cli-context";
3
- import { PackageDiffMetadata, PackageDiffTransport } from "../interfaces/diff-package.interfaces";
4
- export declare class DiffApi {
5
- private httpClient;
6
- constructor(context: Context);
7
- diffPackages(data: FormData): Promise<PackageDiffTransport[]>;
8
- hasChanges(data: FormData): Promise<PackageDiffMetadata[]>;
9
- }