@contrail/cli 3.5.5-alpha.68765d7 → 3.5.5-alpha.a4b6430

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.5.5-alpha.68765d7 linux-x64 node-v24.21.0
20
+ @contrail/cli/3.5.5-alpha.a4b6430 linux-x64 node-v24.21.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
package/dist/api/apps.js CHANGED
@@ -26,6 +26,8 @@ async function upgradeAppVersion(appOrg, appVersionId) {
26
26
  id: appOrg.id,
27
27
  object: {
28
28
  appVersionId: appVersionId,
29
+ // The API then updates installed workflows to the new version's configuration, keeping any value the org changed.
30
+ syncEventWorkflowTemplates: true,
29
31
  },
30
32
  });
31
33
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const update = jest.fn();
4
+ jest.mock('@contrail/sdk', () => ({
5
+ Auth: jest.fn(),
6
+ Entities: jest.fn(() => ({
7
+ update: (...args) => update(...args),
8
+ })),
9
+ }));
10
+ const apps_1 = require("./apps");
11
+ describe('upgradeAppVersion', () => {
12
+ it('should ask the API to apply the new version workflow configuration along with the version change', async () => {
13
+ update.mockResolvedValue({ id: 'app-org-1' });
14
+ await (0, apps_1.upgradeAppVersion)({ id: 'app-org-1' }, 'version-2');
15
+ expect(update).toHaveBeenCalledWith({
16
+ entityName: 'app-org',
17
+ id: 'app-org-1',
18
+ object: { appVersionId: 'version-2', syncEventWorkflowTemplates: true },
19
+ });
20
+ });
21
+ });
@@ -168,6 +168,7 @@ export interface AppOrg {
168
168
  appVersion?: AppVersion;
169
169
  apiKey?: AppApiKey;
170
170
  appConfig?: any;
171
+ syncEventWorkflowTemplates?: boolean;
171
172
  }
172
173
  export interface Webhook {
173
174
  id?: string;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.5-alpha.68765d7",
2
+ "version": "3.5.5-alpha.a4b6430",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.5.5-alpha.68765d7",
3
+ "version": "3.5.5-alpha.a4b6430",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",