@daocloud-proto/kangaroo 0.2.2-20 → 0.2.2-26

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.
@@ -6,6 +6,12 @@
6
6
 
7
7
  import * as KangarooIoApiTypesPage from "../../types/page.pb"
8
8
 
9
+ export enum ListRepositoriesRequestSortBy {
10
+ unspecified = "unspecified",
11
+ pull_count = "pull_count",
12
+ update_time = "update_time",
13
+ }
14
+
9
15
  export enum ListArtifactsRequestSortBy {
10
16
  SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
11
17
  }
@@ -54,6 +60,8 @@ export type ListRepositoriesRequest = {
54
60
  page?: number
55
61
  pageSize?: number
56
62
  fuzzyName?: string
63
+ sortBy?: ListRepositoriesRequestSortBy
64
+ sortDir?: KangarooIoApiTypesPage.OrderBy
57
65
  }
58
66
 
59
67
  export type ListRepositoriesResponse = {
@@ -109,4 +109,25 @@ export type ListWorkspaceRegistryRequest = {
109
109
  export type ListWorkspaceRegistryResponse = {
110
110
  items?: Registry[]
111
111
  pagination?: KangarooIoApiTypesPage.Page
112
+ }
113
+
114
+ export type GetRegistryDetailRequest = {
115
+ registry?: string
116
+ }
117
+
118
+ export type RegistryDetail = {
119
+ registryName?: string
120
+ host?: string
121
+ deployCluster?: string
122
+ deployNamespace?: string
123
+ copies?: string
124
+ description?: string
125
+ createAt?: string
126
+ author?: string
127
+ integratedType?: IntegratedType
128
+ projectNum?: number
129
+ repositoryNum?: number
130
+ chartNum?: number
131
+ usageStorage?: string
132
+ type?: RegistryType
112
133
  }
@@ -38,4 +38,7 @@ export class Registries {
38
38
  static ListWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryResponse> {
39
39
  return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
40
40
  }
41
+ static GetRegistryDetail(req: KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryDetail> {
42
+ return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryDetail>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/detail?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
43
+ }
41
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.2.2-20",
3
+ "version":"0.2.2-26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {