@daocloud-proto/ghippo 0.15.0-dev-16 → 0.15.0-dev-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.15.0-dev-16",
3
+ "version":"0.15.0-dev-17",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -72,15 +72,6 @@ export type GetAuditResponse = {
72
72
  audit?: string
73
73
  }
74
74
 
75
- export type ClearAuditRequest = {
76
- isKube?: boolean
77
- isAuto?: boolean
78
- days?: number
79
- }
80
-
81
- export type ClearAuditResponse = {
82
- }
83
-
84
75
  export type CreateAuditRequest = {
85
76
  audit?: AuditInfo
86
77
  }
@@ -88,16 +79,6 @@ export type CreateAuditRequest = {
88
79
  export type CreateAuditResponse = {
89
80
  }
90
81
 
91
- export type ExportAuditUrlRequest = {
92
- start?: string
93
- end?: string
94
- sort?: string
95
- }
96
-
97
- export type ExportAuditUrlResponse = {
98
- url?: string
99
- }
100
-
101
82
  export type GetAutoClearAuditTimeRequest = {
102
83
  }
103
84
 
@@ -160,12 +141,6 @@ export class Audit {
160
141
  static GetAudit(req: GetAuditRequest, initReq?: fm.InitReq): Promise<GetAuditResponse> {
161
142
  return fm.fetchReq<GetAuditRequest, GetAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
162
143
  }
163
- static ClearAudit(req: ClearAuditRequest, initReq?: fm.InitReq): Promise<ClearAuditResponse> {
164
- return fm.fetchReq<ClearAuditRequest, ClearAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
165
- }
166
- static ExportAuditUrl(req: ExportAuditUrlRequest, initReq?: fm.InitReq): Promise<ExportAuditUrlResponse> {
167
- return fm.fetchReq<ExportAuditUrlRequest, ExportAuditUrlResponse>(`/apis/ghippo.io/v1alpha1/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
168
- }
169
144
  static GetAutoClearAuditTime(req: GetAutoClearAuditTimeRequest, initReq?: fm.InitReq): Promise<GetAutoClearAuditTimeResponse> {
170
145
  return fm.fetchReq<GetAutoClearAuditTimeRequest, GetAutoClearAuditTimeResponse>(`/apis/ghippo.io/v1alpha1/audits/clear?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
171
146
  }
@@ -6,9 +6,27 @@
6
6
 
7
7
  import * as fm from "../fetch.pb"
8
8
  import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
9
+
10
+ export enum StatusType {
11
+ all = "all",
12
+ succeeded = "succeeded",
13
+ failed = "failed",
14
+ }
15
+
16
+ export enum SearchType {
17
+ fuzzy = "fuzzy",
18
+ exact = "exact",
19
+ }
20
+
9
21
  export type ExportAuditRequest = {
10
22
  start?: string
11
23
  end?: string
24
+ sourceType?: string
25
+ sourceName?: string
26
+ clusterName?: string
27
+ status?: StatusType
28
+ searchType?: SearchType
29
+ searchUser?: string
12
30
  }
13
31
 
14
32
  export type ClearAuditsRequest = {