@daocloud-proto/kangaroo 0.5.0-147 → 0.5.0-151

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.
@@ -83,6 +83,7 @@ export type Repository = {
83
83
  tagCount?: string
84
84
  pullCount?: string
85
85
  updateTime?: string
86
+ description?: string
86
87
  }
87
88
 
88
89
  export type ListRepositoriesRequest = {
@@ -408,4 +409,23 @@ export type GetPushCommandResponse = {
408
409
  cmd?: string
409
410
  expired?: string
410
411
  expiredAt?: string
412
+ }
413
+
414
+ export type UpdateRepositoryDescriptionRequest = {
415
+ workspace?: string
416
+ registry?: string
417
+ project?: string
418
+ repository?: string
419
+ description?: string
420
+ }
421
+
422
+ export type UpdateRepositoryDescriptionResponse = {
423
+ description?: string
424
+ }
425
+
426
+ export type GetRepositoryRequest = {
427
+ workspace?: string
428
+ registry?: string
429
+ project?: string
430
+ repository?: string
411
431
  }
@@ -18,6 +18,12 @@ export class Image {
18
18
  static ListRepositories(req: KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse> {
19
19
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories?${fm.renderURLSearchParams(req, ["workspace", "registry", "project"])}`, {...initReq, method: "GET"})
20
20
  }
21
+ static UpdateRepositoryDescription(req: KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionResponse> {
22
+ return fm.fetchReq<KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionRequest, KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
23
+ }
24
+ static GetRepository(req: KangarooIoApiImageV1alpha1Image.GetRepositoryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.Repository> {
25
+ return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetRepositoryRequest, KangarooIoApiImageV1alpha1Image.Repository>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
26
+ }
21
27
  static ListArtifacts(req: KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListArtifactsResponse> {
22
28
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, KangarooIoApiImageV1alpha1Image.ListArtifactsResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
23
29
  }
@@ -33,6 +33,7 @@ export type Registry = {
33
33
  integratedType?: IntegratedType
34
34
  status?: RegistryStatus
35
35
  createAt?: string
36
+ isExist?: boolean
36
37
  }
37
38
 
38
39
  export type RegistryStatus = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.5.0-147",
3
+ "version":"0.5.0-151",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {