@daocloud-proto/kangaroo 0.5.0-293 → 0.5.0-295

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.
@@ -288,24 +288,14 @@ export type CheckDependServiceRequest = {
288
288
  storage?: OCIStorageSpec
289
289
  }
290
290
 
291
- export type DatabaseCheckResponse = {
292
- status?: string
293
- message?: string
294
- }
295
-
296
- export type CacheCheckResponse = {
297
- status?: string
298
- message?: string
299
- }
300
-
301
- export type StorageCheckResponse = {
302
- status?: string
291
+ export type CheckResponse = {
292
+ completed?: boolean
293
+ isPass?: boolean
303
294
  message?: string
304
295
  }
305
296
 
306
297
  export type CheckDependServiceResponse = {
307
- completed?: boolean
308
- db?: DatabaseCheckResponse
309
- cache?: CacheCheckResponse
310
- storage?: StorageCheckResponse
298
+ db?: CheckResponse
299
+ cache?: CheckResponse
300
+ storage?: CheckResponse
311
301
  }
@@ -7,7 +7,7 @@
7
7
  import * as fm from "../../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
9
9
  import * as KangarooIoApiUploadV1alpha1Upload from "./upload.pb"
10
- export class Image {
10
+ export class Uploader {
11
11
  static UploadOCI(req: KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
12
12
  return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/upload`, {...initReq, method: "POST", body: JSON.stringify(req)})
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.5.0-293",
3
+ "version":"0.5.0-295",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {