@vention/vention-cli 0.36.5 → 0.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/vention-cli",
3
- "version": "0.36.5",
3
+ "version": "0.37.0",
4
4
  "description": "CLI tool for Vention applications",
5
5
  "type": "module",
6
6
  "engines": {
@@ -0,0 +1,5 @@
1
+ import { SessionData } from "../config";
2
+ import type { DigitalTwinApiOrigins, DigitalTwinConnection, Design } from "./types";
3
+ export declare const getOrigin: (environment: SessionData["environment"]) => string | undefined;
4
+ export declare const listDesigns: (session: SessionData, origins: DigitalTwinApiOrigins) => Promise<Design[]>;
5
+ export declare const resolveConnection: (session: SessionData, origins: DigitalTwinApiOrigins, designId: number) => Promise<DigitalTwinConnection | undefined>;
@@ -1,2 +1,2 @@
1
- export { listDesigns, resolveConnection as resolveDigitalTwinConnection } from "./rails-api";
1
+ export { listDesigns, resolveDigitalTwinConnection } from "./resolve-connection";
2
2
  export type { DigitalTwinConnection, Design } from "./types";
@@ -0,0 +1,4 @@
1
+ import { SessionData } from "../config";
2
+ import type { DigitalTwinConnection, Design } from "./types";
3
+ export declare const resolveDigitalTwinConnection: (session: SessionData, designId: number) => Promise<DigitalTwinConnection | undefined>;
4
+ export declare const listDesigns: (session: SessionData) => Promise<Design[]>;
@@ -8,3 +8,7 @@ export interface Design {
8
8
  name: string;
9
9
  connection: DigitalTwinConnection;
10
10
  }
11
+ export interface DigitalTwinApiOrigins {
12
+ auth: string;
13
+ api: string;
14
+ }