@devkong/cli 0.0.16 → 0.0.17
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/assets/python-install.bat +1 -2
- package/index.js +7102 -553
- package/package.json +1 -1
- package/packages/kong-cli/src/commands/listAliasesCommand.d.ts +8 -0
- package/packages/kong-cli/src/commands/{listExtensionSnapshotCommand.d.ts → listVersionsCommand.d.ts} +1 -1
- package/packages/kong-cli/src/commands/publishVersionCommand.d.ts +3 -1
- package/packages/kong-cli/src/commands/{setExtensionAliasCommand.d.ts → setAliasCommand.d.ts} +1 -1
- package/packages/kong-cli/src/common/profile.d.ts +1 -0
- package/packages/kong-cli/src/services/managementClient.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongServerless.d.ts +2 -2
- package/packages/kong-spec/src/lib/kongSession.d.ts +1 -1
- package/packages/kong-spec/src/lib/kongSpec.d.ts +1 -0
- package/packages/kong-spec/src/lib/kongSpecToServerless.d.ts +1 -1
- package/packages/kong-ts-contract/src/index.d.ts +1 -0
- package/packages/kong-ts-contract/src/lib/appDocumentBuild.d.ts +2 -0
- package/packages/kong-ts-contract/src/lib/appTestCase.d.ts +3 -1
- package/packages/kong-ts-contract/src/lib/appTestResult.d.ts +12 -0
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export declare class PublishVersionCommand {
|
|
|
4
4
|
private readonly isWin;
|
|
5
5
|
private registryClient;
|
|
6
6
|
private managementClient;
|
|
7
|
+
private defaultRendererOptions;
|
|
7
8
|
private get wslPrefix();
|
|
8
9
|
constructor(profile: Profile, verbose?: boolean);
|
|
9
10
|
execute(repoName: string, notes: string): Promise<void>;
|
|
@@ -11,5 +12,6 @@ export declare class PublishVersionCommand {
|
|
|
11
12
|
private dockerBuildCmdText;
|
|
12
13
|
private dockerPushCmdText;
|
|
13
14
|
private dockerLoginCmdText;
|
|
14
|
-
private
|
|
15
|
+
private getPythonSchemaCmdText;
|
|
16
|
+
private getKotlinSchemaCmdTask;
|
|
15
17
|
}
|
|
@@ -7,3 +7,4 @@ export type ConfigProfiles = Record<ProfileName, Profile>;
|
|
|
7
7
|
export declare function loadProfiles(): ConfigProfiles;
|
|
8
8
|
export declare function saveProfiles(profiles: ConfigProfiles): void;
|
|
9
9
|
export declare function getProfile(profileName?: string): Profile;
|
|
10
|
+
export declare function printProfile(profile: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppExtension, AppExtensionSnapshot, AppExtensionSnapshotDetails } from "@kong/contract";
|
|
1
|
+
import { AppExtension, AppExtensionAlias, AppExtensionSnapshot, AppExtensionSnapshotDetails } from "@kong/contract";
|
|
2
2
|
import { Optional, UrlText } from "@kong/ts";
|
|
3
3
|
export declare class ManagementClient {
|
|
4
4
|
private readonly baseUrl;
|
|
@@ -6,4 +6,5 @@ export declare class ManagementClient {
|
|
|
6
6
|
createExtensionSnapshot(extensionId: AppExtension["id"], extensionName: AppExtension["name"], snapshot: Omit<AppExtensionSnapshotDetails, "id">): Promise<void>;
|
|
7
7
|
getExtensionSnapshot(extensionName: AppExtension["name"], extensionSnapshotVersion: AppExtensionSnapshot["version"]): Promise<Optional<AppExtensionSnapshotDetails>>;
|
|
8
8
|
getExtensionSnapshotVersions(extensionId: AppExtension["id"]): Promise<AppExtensionSnapshot[]>;
|
|
9
|
+
getExtensionSnapshotAliases(extensionId: AppExtension["id"]): Promise<AppExtensionAlias[]>;
|
|
9
10
|
}
|
|
@@ -4,8 +4,8 @@ export declare function serverlessFlowBuilder(): FloweyServerlessBuilder;
|
|
|
4
4
|
export declare const copyServerlessFlow: (workflow: Specification.Workflow) => Specification.Workflow;
|
|
5
5
|
export declare function stringifyServerlessFlow(workflow: Specification.Workflow): string;
|
|
6
6
|
interface ServerlessJavaAppPropsGenerator {
|
|
7
|
-
|
|
7
|
+
processName: string;
|
|
8
8
|
events: Specification.Eventdef[];
|
|
9
9
|
}
|
|
10
|
-
export declare function makeServerlessJavaAppProps({
|
|
10
|
+
export declare function makeServerlessJavaAppProps({ processName, events, }: ServerlessJavaAppPropsGenerator): string;
|
|
11
11
|
export {};
|
|
@@ -111,6 +111,7 @@ export interface KongSpecStateCompensate extends KongSpecStateBase, KongSpecSupp
|
|
|
111
111
|
}
|
|
112
112
|
export interface KongSpecCondition extends KongSpecSupportsTransition, KongSpecSupportsTransition {
|
|
113
113
|
id: Distinct<string, "KongSpecConditionId">;
|
|
114
|
+
description: string;
|
|
114
115
|
match: JqFilter;
|
|
115
116
|
}
|
|
116
117
|
export interface KongSpecStateSwitch extends KongSpecStateBase, KongSpecCanBeUsedForCompensation, KongSpecSupportsTransition {
|
|
@@ -6,5 +6,5 @@ interface ConvertSpecToServerlessResult {
|
|
|
6
6
|
workflow: Specification.Workflow;
|
|
7
7
|
inputSchema: JSONSchema7;
|
|
8
8
|
}
|
|
9
|
-
export declare function convertSpecToServerless(type: "main", specFlow: KongSpecFlow, env: KongSpecEnv): ConvertSpecToServerlessResult;
|
|
9
|
+
export declare function convertSpecToServerless(type: "main", processName: string, specFlow: KongSpecFlow, env: KongSpecEnv): ConvertSpecToServerlessResult;
|
|
10
10
|
export {};
|
|
@@ -18,5 +18,6 @@ export type { AppProject } from "./lib/appProject";
|
|
|
18
18
|
export type { AppTestCase } from "./lib/appTestCase";
|
|
19
19
|
export type { AppTestCaseDetails } from "./lib/appTestCaseDetails";
|
|
20
20
|
export type { AppTestCaseMatchFeature } from "./lib/appTestCaseMatchFeature";
|
|
21
|
+
export type { AppTestResult } from "./lib/appTestResult";
|
|
21
22
|
export type { AppWorkspace } from "./lib/appWorkspace";
|
|
22
23
|
export type { SdkExtensionAlias } from "./lib/sdkExtensionAlias";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Entity, User, UtcDateTime } from "@kong/ts";
|
|
1
|
+
import { Entity, JsonObject, User, UtcDateTime } from "@kong/ts";
|
|
2
2
|
export interface AppTestCase extends Entity {
|
|
3
3
|
id: number;
|
|
4
4
|
title: string;
|
|
5
5
|
tags: string[];
|
|
6
|
+
inputPayload: JsonObject;
|
|
7
|
+
expectedResult: JsonObject;
|
|
6
8
|
created: UtcDateTime;
|
|
7
9
|
updated: UtcDateTime;
|
|
8
10
|
createdBy: User["name"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonObject, User, UtcDateTime } from "@kong/ts";
|
|
2
|
+
import { AppTestCase } from "./appTestCase";
|
|
3
|
+
export interface AppTestResult {
|
|
4
|
+
id?: number;
|
|
5
|
+
testCaseId: AppTestCase["id"];
|
|
6
|
+
testRunId: number;
|
|
7
|
+
actualResult: JsonObject;
|
|
8
|
+
created: UtcDateTime;
|
|
9
|
+
updated: UtcDateTime;
|
|
10
|
+
createdBy: User["name"];
|
|
11
|
+
updatedBy: User["name"];
|
|
12
|
+
}
|