@devkong/cli 0.0.1 → 0.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devkong/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "commonjs",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -1,3 +1,5 @@
1
1
  export declare class GenerateCommand {
2
+ private verbose;
3
+ constructor(verbose?: boolean);
2
4
  execute(extensionName: string, sdk: "kotlin" | "python", presetVersion: string): Promise<void>;
3
5
  }
@@ -1,4 +1,6 @@
1
1
  export declare class InstallCommand {
2
+ private verbose;
3
+ constructor(verbose: boolean);
2
4
  execute(extensionName?: string): Promise<void>;
3
5
  private scriptPath;
4
6
  }
@@ -1,6 +1,7 @@
1
1
  import { Profile } from "../common/profile";
2
2
  export declare class ListExtensionSnapshotCommand {
3
+ private verbose;
3
4
  private readonly managementClient;
4
- constructor(profile: Profile);
5
+ constructor(profile: Profile, verbose: boolean);
5
6
  execute(): Promise<void>;
6
7
  }
@@ -1,10 +1,11 @@
1
1
  import { Profile } from "../common/profile";
2
2
  export declare class PublishCommand {
3
+ private verbose;
3
4
  private readonly isWin;
4
5
  private registryClient;
5
6
  private managementClient;
6
7
  private get wslPrefix();
7
- constructor(profile: Profile);
8
+ constructor(profile: Profile, verbose?: boolean);
8
9
  execute(repoName: string): Promise<void>;
9
10
  private resolveRegistryUrl;
10
11
  private dockerBuildCmdText;
@@ -1,7 +1 @@
1
1
  export declare function getPresetVersion(): string;
2
- export declare function withSpinner<T>(options: {
3
- action: () => Promise<T>;
4
- startMessage?: string;
5
- errorMessage?: string;
6
- onSucceeded?: (result: T) => string;
7
- }): Promise<T>;
@@ -0,0 +1,20 @@
1
+ import { ILogger } from "./utils";
2
+ interface ITaskWithOutput {
3
+ set output(output: string | never[]);
4
+ }
5
+ export declare enum LogLevel {
6
+ INFO = 0,
7
+ WARN = 1,
8
+ ERROR = 2,
9
+ DEBUG = 3
10
+ }
11
+ export declare class ListrTaskLogger implements ILogger {
12
+ private task;
13
+ private logLevel;
14
+ constructor(task: ITaskWithOutput, logLevel?: LogLevel);
15
+ info(message: string): void;
16
+ debug(message: string): void;
17
+ error(message: string): void;
18
+ warn(message: string): void;
19
+ }
20
+ export {};
@@ -1,6 +1,12 @@
1
+ export interface ILogger {
2
+ info(message: string): any;
3
+ debug(message: string): any;
4
+ error(message: string): any;
5
+ warn(message: string): any;
6
+ }
1
7
  export declare function env(key: string): string;
2
8
  export declare function optionalEnv(key: string): string;
3
9
  export declare function resolveProjectPath(fileName: string): string;
4
10
  export declare function generateShortId(): string;
5
- export declare function spawnCommand(name: string, commandText: string, inheritStdout?: boolean): Promise<string>;
11
+ export declare function spawnCommand(commandText: string, logger?: ILogger): Promise<string>;
6
12
  export declare function printError(message: string, error: unknown): void;
@@ -11,4 +11,16 @@ export declare class KongSpecDoc {
11
11
  static aboutResilience: string;
12
12
  static aboutLimits: string;
13
13
  static aboutIdentify: string;
14
+ static aboutCallFunction: string;
15
+ static aboutCallProcess: string;
16
+ static aboutCompensate: string;
17
+ static aboutFail: string;
18
+ static aboutForeach: string;
19
+ static aboutInject: string;
20
+ static aboutParallel: string;
21
+ static aboutSendEvent: string;
22
+ static aboutStart: string;
23
+ static aboutSucceed: string;
24
+ static aboutSwitch: string;
25
+ static aboutWaitEvent: string;
14
26
  }
@@ -1,4 +1,5 @@
1
1
  export type { AppCheckpoint } from "./lib/appCheckpoint";
2
+ export type { AppDevRequest } from "./lib/appDevRequest";
2
3
  export type { AppDocument } from "./lib/appDocument";
3
4
  export type { AppDocumentBuild } from "./lib/appDocumentBuild";
4
5
  export type { AppDocumentSnapshot } from "./lib/appDocumentSnapshot";
@@ -13,7 +14,6 @@ export type { AppPresignedUrl } from "./lib/appPresignedUrl";
13
14
  export type { AppProcessAlias } from "./lib/appProcessAlias";
14
15
  export type { AppProcessAliasUse } from "./lib/appProcessAliasUse";
15
16
  export type { AppProcessInstanceId } from "./lib/appProcessInstanceId";
16
- export type { AppProcessTest } from "./lib/appProcessTest";
17
17
  export type { AppProject } from "./lib/appProject";
18
18
  export type { AppTestCase } from "./lib/appTestCase";
19
19
  export type { AppTestCaseDetails } from "./lib/appTestCaseDetails";
@@ -0,0 +1,8 @@
1
+ import { BusinessKey, JsonObject, UrlText, UtcDateTime } from "@kong/ts";
2
+ export interface AppDevRequest {
3
+ url: UrlText;
4
+ businessKey: BusinessKey;
5
+ headers: Record<string, string>;
6
+ body: JsonObject;
7
+ deadline: UtcDateTime;
8
+ }
@@ -1,6 +0,0 @@
1
- import { JsonObject, UrlText, UtcDateTime } from "@kong/ts";
2
- export interface AppProcessTest {
3
- url: UrlText;
4
- payload: JsonObject;
5
- deadline: UtcDateTime;
6
- }