@daocloud-proto/ghippo 0.8.11 → 0.8.12
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 +1 -1
- package/v1alpha1/audit.pb.ts +12 -0
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
|
@@ -68,6 +68,15 @@ export type CreateAuditRequest = {
|
|
|
68
68
|
export type CreateAuditResponse = {
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
export type ExportAuditUrlRequest = {
|
|
72
|
+
start?: string
|
|
73
|
+
end?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ExportAuditUrlResponse = {
|
|
77
|
+
url?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
71
80
|
export class Audit {
|
|
72
81
|
static ListAudit(req: ListAuditRequest, initReq?: fm.InitReq): Promise<ListAuditResponse> {
|
|
73
82
|
return fm.fetchReq<ListAuditRequest, ListAuditResponse>(`/apis/ghippo.io/v1alpha1/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -78,4 +87,7 @@ export class Audit {
|
|
|
78
87
|
static ClearAudit(req: ClearAuditRequest, initReq?: fm.InitReq): Promise<ClearAuditResponse> {
|
|
79
88
|
return fm.fetchReq<ClearAuditRequest, ClearAuditResponse>(`/apis/ghippo.io/v1alpha1/audits`, {...initReq, method: "DELETE"})
|
|
80
89
|
}
|
|
90
|
+
static ExportAuditUrl(req: ExportAuditUrlRequest, initReq?: fm.InitReq): Promise<ExportAuditUrlResponse> {
|
|
91
|
+
return fm.fetchReq<ExportAuditUrlRequest, ExportAuditUrlResponse>(`/apis/ghippo.io/v1alpha1/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
92
|
+
}
|
|
81
93
|
}
|