@daocloud-proto/insight 0.10.0 → 0.11.0-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.
@@ -247,6 +247,7 @@ export type ListTemplatesRequest = {
247
247
  page?: number
248
248
  pageSize?: number
249
249
  sorts?: string[]
250
+ exactSearch?: boolean
250
251
  }
251
252
 
252
253
  export type ListTemplatesResponse = {
@@ -175,8 +175,8 @@ export class Metric {
175
175
  }
176
176
  }
177
177
  export class Resource {
178
- static ListClusters(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClustersResponse> {
179
- return fm.fetchReq<empty, InsightIoApiResourceV1alpha1Cluster.ListClustersResponse>(`/apis/insight.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
178
+ static ListClusters(req: InsightIoApiResourceV1alpha1Cluster.ListClusterRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClustersResponse> {
179
+ return fm.fetchReq<InsightIoApiResourceV1alpha1Cluster.ListClusterRequest, InsightIoApiResourceV1alpha1Cluster.ListClustersResponse>(`/apis/insight.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
180
180
  }
181
181
  static ListClusterSummary(req: InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryResponse> {
182
182
  return fm.fetchReq<InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryRequest, InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryResponse>(`/apis/insight.io/v1alpha1/clustersummary?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -52,14 +52,17 @@ export type EmailConfig = {
52
52
  }
53
53
 
54
54
  export type ListReceiversRequest = {
55
+ name?: string
55
56
  type?: ReceiverType
56
57
  page?: number
57
58
  pageSize?: number
58
59
  sorts?: string[]
60
+ exactSearch?: boolean
59
61
  }
60
62
 
61
63
  export type GetReceiversRequest = {
62
64
  name?: string
65
+ type?: ReceiverType
63
66
  }
64
67
 
65
68
  export type DeleteReceiversRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.10.0",
3
+ "version":"0.11.0-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,10 +51,15 @@ export type Cluster = {
51
51
  role?: Role
52
52
  }
53
53
 
54
+ export type ListClusterRequest = {
55
+ showAllCluster?: boolean
56
+ }
57
+
54
58
  export type ListClusterSummaryRequest = {
55
59
  name?: string
56
60
  version?: string
57
61
  phase?: ClusterPhase
62
+ showAllCluster?: boolean
58
63
  page?: number
59
64
  pageSize?: number
60
65
  }
@@ -67,7 +67,6 @@ export type ListContainersRequest = {
67
67
  cluster?: string
68
68
  namespace?: string
69
69
  name?: string
70
- phase?: ContainerPhase
71
70
  page?: number
72
71
  pageSize?: number
73
72
  }