@devkong/cli 0.0.67-alpha.0 → 0.0.67-alpha.2
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.67-alpha.
|
|
3
|
+
"version": "0.0.67-alpha.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"kong": "./index.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@napi-rs/keyring": "1.1.6"
|
|
11
|
+
"@napi-rs/keyring": "1.1.6",
|
|
12
|
+
"create-nx-workspace": "23.0.1"
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { AppAuditLog
|
|
1
|
+
import { AppAuditLog } from "@kong/contract";
|
|
2
2
|
import { Loading } from "@kong/ts";
|
|
3
3
|
import { ManagementClient } from "../services/managementClient";
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Audit object types that carry a deployment trail. These are the management
|
|
6
|
+
* `AuditObjectType` JVM enum *constant names* (not the `extension_alias` JSON
|
|
7
|
+
* wire value): the `/v1/audit` `objectType` query param is resolved server-side
|
|
8
|
+
* via `Enum.valueOf`, which matches the constant name.
|
|
9
|
+
*/
|
|
10
|
+
export type DeployObjectType = "EXTENSION_ALIAS" | "PROCESS_ALIAS";
|
|
6
11
|
export interface DeploymentQuery {
|
|
7
12
|
objectType: DeployObjectType;
|
|
8
13
|
basedOnId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AppAuditLog, AppExtension, AppExtensionAlias, AppSnapshot, AppSnapshotDetails
|
|
1
|
+
import { AppAuditLog, AppExtension, AppExtensionAlias, AppSnapshot, AppSnapshotDetails } from "@kong/contract";
|
|
2
2
|
import { Optional, UrlText } from "@kong/ts";
|
|
3
|
+
import { DeployObjectType } from "../common/deployment";
|
|
3
4
|
import { RequestConfigProvider } from "./api";
|
|
4
5
|
export declare class ManagementClient {
|
|
5
6
|
private requestConfigProvider;
|
|
@@ -10,5 +11,5 @@ export declare class ManagementClient {
|
|
|
10
11
|
getExtensionSnapshot(extensionId: AppExtension["id"], extensionSnapshotVersion: AppSnapshot["version"]): Promise<Optional<AppSnapshotDetails>>;
|
|
11
12
|
getExtensionSnapshotVersions(extensionId: AppExtension["id"]): Promise<AppSnapshot[]>;
|
|
12
13
|
getExtensionSnapshotAliases(extensionId: AppExtension["id"]): Promise<AppExtensionAlias[]>;
|
|
13
|
-
getAuditLog(objectType:
|
|
14
|
+
getAuditLog(objectType: DeployObjectType, objectId: string): Promise<AppAuditLog[]>;
|
|
14
15
|
}
|