diff --git a/packages/kubekit-client-gen/package.json b/packages/kubekit-client-gen/package.json index 38bb2b8b..efe29b94 100644 --- a/packages/kubekit-client-gen/package.json +++ b/packages/kubekit-client-gen/package.json @@ -1,6 +1,6 @@ { "name": "@kubekit/client-gen", - "version": "0.1.3", + "version": "0.1.4", "main": "lib/index.js", "types": "lib/index.d.ts", "author": "kahirokunn", diff --git a/packages/kubekit-client-gen/src/generate.ts b/packages/kubekit-client-gen/src/generate.ts index 6dbafbf3..8ae728af 100644 --- a/packages/kubekit-client-gen/src/generate.ts +++ b/packages/kubekit-client-gen/src/generate.ts @@ -518,7 +518,7 @@ function getBodyNode(bodies: { [contentType: string]: ts.TypeNode }): ts.TypeNod // ? Omit, "metadata"> & { // metadata: PartialRequired< // RequiredAndDefined["metadata"], -// "name" | "namespace" | "creationTimestamp" | "resourceVersion" +// "name" | "namespace" | "creationTimestamp" | "resourceVersion" | "uid" // >; // } // : T>; @@ -786,7 +786,8 @@ const buildInTypes = [ factory.createLiteralTypeNode(factory.createStringLiteral("name")), factory.createLiteralTypeNode(factory.createStringLiteral("namespace")), factory.createLiteralTypeNode(factory.createStringLiteral("creationTimestamp")), - factory.createLiteralTypeNode(factory.createStringLiteral("resourceVersion")) + factory.createLiteralTypeNode(factory.createStringLiteral("resourceVersion")), + factory.createLiteralTypeNode(factory.createStringLiteral("uid")), ]) ] )