@daocloud-proto/ghippo 0.8.29 → 0.8.30

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.8.29",
3
+ "version":"0.8.30",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -85,7 +85,7 @@ export class Audit {
85
85
  return fm.fetchReq<GetAuditRequest, GetAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
86
86
  }
87
87
  static ClearAudit(req: ClearAuditRequest, initReq?: fm.InitReq): Promise<ClearAuditResponse> {
88
- return fm.fetchReq<ClearAuditRequest, ClearAuditResponse>(`/apis/ghippo.io/v1alpha1/audits`, {...initReq, method: "DELETE"})
88
+ return fm.fetchReq<ClearAuditRequest, ClearAuditResponse>(`/apis/ghippo.io/v1alpha1/audits/${req["days"]}`, {...initReq, method: "DELETE"})
89
89
  }
90
90
  static ExportAuditUrl(req: ExportAuditUrlRequest, initReq?: fm.InitReq): Promise<ExportAuditUrlResponse> {
91
91
  return fm.fetchReq<ExportAuditUrlRequest, ExportAuditUrlResponse>(`/apis/ghippo.io/v1alpha1/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -50,6 +50,8 @@ export type ListExclusiveResourcesByWorkspaceRequest = {
50
50
  page?: number
51
51
  pageSize?: number
52
52
  workspaceId?: number
53
+ resourceName?: string
54
+ resourceType?: string
53
55
  }
54
56
 
55
57
  export type ListExclusiveResourcesByWorkspaceResponse = {
@@ -61,6 +63,7 @@ export type ListSharedResourcesByWorkspaceRequest = {
61
63
  page?: number
62
64
  pageSize?: number
63
65
  workspaceId?: number
66
+ resourceName?: string
64
67
  }
65
68
 
66
69
  export type ListSharedResourcesByWorkspaceResponse = {