@types/ali-oss 6.16.6 → 6.16.8

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.
Files changed (3) hide show
  1. ali-oss/README.md +1 -1
  2. ali-oss/index.d.ts +12 -3
  3. ali-oss/package.json +3 -3
ali-oss/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for ali-oss (https://github.com/aliyun/os
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ali-oss.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 19 Oct 2022 01:02:56 GMT
11
+ * Last updated: Sat, 13 May 2023 02:02:51 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
ali-oss/index.d.ts CHANGED
@@ -420,6 +420,10 @@ declare namespace OSS {
420
420
  res: NormalSuccessResponse;
421
421
  }
422
422
 
423
+ interface DeleteResult {
424
+ res: NormalSuccessResponse;
425
+ }
426
+
423
427
  interface DeleteMultiOptions {
424
428
  /** quite mode or verbose mode, default is false */
425
429
  quiet?: boolean | undefined;
@@ -671,7 +675,7 @@ declare namespace OSS {
671
675
  /**
672
676
  * @since 6.12.0
673
677
  */
674
- listV2(query: ListV2ObjectsQuery | null, options: RequestOptions): Promise<ListObjectResult>;
678
+ listV2(query: ListV2ObjectsQuery | null, options?: RequestOptions): Promise<ListObjectResult>;
675
679
 
676
680
  put(name: string, file: any, options?: PutObjectOptions): Promise<PutObjectResult>;
677
681
 
@@ -687,7 +691,7 @@ declare namespace OSS {
687
691
 
688
692
  getStream(name?: string, options?: GetStreamOptions): Promise<GetStreamResult>;
689
693
 
690
- delete(name: string, options?: RequestOptions): Promise<NormalSuccessResponse>;
694
+ delete(name: string, options?: RequestOptions): Promise<DeleteResult>;
691
695
 
692
696
  copy(name: string, sourceName: string, options?: CopyObjectOptions): Promise<CopyAndPutMetaResult>;
693
697
 
@@ -990,6 +994,11 @@ declare class OSS {
990
994
  */
991
995
  list(query: OSS.ListObjectsQuery | null, options: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
992
996
 
997
+ /**
998
+ * List Objects in the bucket.(V2)
999
+ */
1000
+ listV2(query: OSS.ListV2ObjectsQuery | null, options: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
1001
+
993
1002
  /**
994
1003
  * Add an object to the bucket.
995
1004
  */
@@ -1037,7 +1046,7 @@ declare class OSS {
1037
1046
  /**
1038
1047
  * Delete an object from the bucket.
1039
1048
  */
1040
- delete(name: string, options?: OSS.RequestOptions): Promise<OSS.NormalSuccessResponse>;
1049
+ delete(name: string, options?: OSS.RequestOptions): Promise<OSS.DeleteResult>;
1041
1050
 
1042
1051
  /**
1043
1052
  * Copy an object from sourceName to name.
ali-oss/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/ali-oss",
3
- "version": "6.16.6",
3
+ "version": "6.16.8",
4
4
  "description": "TypeScript definitions for ali-oss",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ali-oss",
6
6
  "license": "MIT",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "scripts": {},
22
22
  "dependencies": {},
23
- "typesPublisherContentHash": "35b69f2a9a18d514c5a34b690011aa7be171cad5d2b29909b233e8f61f3e6a0c",
24
- "typeScriptVersion": "4.1"
23
+ "typesPublisherContentHash": "3096883ec2323f93aea0e7b9f9d74e5ca35577cf1af69a19acf8b92bcf4f695e",
24
+ "typeScriptVersion": "4.3"
25
25
  }