@types/google-cloud__storage
Advanced tools
Comparing version 1.1.8 to 1.7.0
@@ -1,7 +0,9 @@ | ||
// Type definitions for @google-cloud/storage 1.1 | ||
// Project: https://github.com/GoogleCloudPlatform/google-cloud-node/tree/master/packages/storage | ||
// Type definitions for @google-cloud/storage 1.7 | ||
// Project: https://github.com/googleapis/nodejs-storage | ||
// Definitions by: Brian Love <https://github.com/blove> | ||
// Nathan Brooker Perry <https://github.com/nbperry> | ||
// Matt Welke <https://github.com/welkie> | ||
// Futa Ogawa <https://github.com/ogawa0071> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
@@ -11,2 +13,3 @@ /// <reference types="node" /> | ||
import { ReadStream, WriteStream } from "fs"; | ||
import { CoreOptions } from "request"; | ||
@@ -134,3 +137,3 @@ type PromiseLibrary<T> = () => PromiseLike<T>; | ||
getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]>; | ||
getSignedUrl(config?: SignedUrlConfig): Promise<[string]>; | ||
getSignedUrl(config: SignedUrlConfig): Promise<[string]>; | ||
makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]>; | ||
@@ -147,15 +150,83 @@ makePublic(): Promise<[ApiResponse]>; | ||
/** | ||
* Access controls on the object, containing one or more objectAccessControls Resources. | ||
*/ | ||
interface AclFileMetadata { | ||
bucket?: string; | ||
domain?: string; | ||
email?: string; | ||
entity?: string; | ||
entityId?: string; | ||
etag?: string; | ||
generation?: number; | ||
id?: string; | ||
kind?: string; | ||
object?: string; | ||
projectTeam?: ProjectTeam; | ||
role?: string; | ||
selfLink?: string; | ||
} | ||
/** | ||
* The project team associated with the entity, if any. | ||
*/ | ||
interface ProjectTeam { | ||
projectNumber?: string; | ||
team?: string; | ||
} | ||
/** | ||
* Metadata of customer-supplied encryption key, if the object is encrypted by such a key. | ||
*/ | ||
interface CustomerEncryption { | ||
encryptionAlgorithm?: string; | ||
keySha256?: string; | ||
} | ||
/** | ||
* User-defined metadata. | ||
*/ | ||
interface CustomFileMetadata { | ||
[key: string]: boolean | number | string | null; | ||
[key: string]: string; | ||
} | ||
/** | ||
* The owner of the object. This will always be the uploader of the object. | ||
*/ | ||
interface Owner { | ||
entity?: string; | ||
entityId?: string; | ||
} | ||
/** | ||
* File metadata. | ||
*/ | ||
interface FileMetadata { | ||
acl?: AclFileMetadata[]; | ||
bucket?: string; | ||
cacheControl?: string; | ||
componentCount?: number; | ||
contentDisposition?: string; | ||
contentEncoding?: string; | ||
contentLanguage?: string; | ||
contentType?: string; | ||
crc32c?: string; | ||
customerEncryption?: CustomerEncryption; | ||
etag?: string; | ||
generation?: number; | ||
id?: string; | ||
kind?: string; | ||
kmsKeyName?: string; | ||
md5Hash?: string; | ||
mediaLink?: string; | ||
metadata?: CustomFileMetadata; | ||
cacheControl?: string; | ||
metageneration?: number; | ||
name?: string; | ||
owner?: Owner; | ||
selfLink?: string; | ||
size?: null | number; | ||
storageClass?: string; | ||
timeCreated?: string; | ||
timeDeleted?: string; | ||
timeStorageClassUpdated?: string; | ||
updated?: string; | ||
} | ||
@@ -202,3 +273,3 @@ | ||
contentType?: string; | ||
expires?: number | string; | ||
expires: any; | ||
extensionHeaders?: { [key: string]: string }; | ||
@@ -320,3 +391,6 @@ promptSaveAs?: string; | ||
interface UploadOptions extends WriteStreamOptions { | ||
destination?: string; | ||
destination?: string | File; | ||
encryptionKey?: string; | ||
kmsKeyName?: string; | ||
requestOptions?: CoreOptions; | ||
} | ||
@@ -328,5 +402,6 @@ | ||
interface WriteStreamOptions { | ||
gzip?: boolean; | ||
contentType?: string; | ||
gzip?: string | boolean; | ||
metadata?: FileMetadata; | ||
offset?: number; | ||
offset?: string; | ||
predefinedAcl?: string; | ||
@@ -337,2 +412,3 @@ private?: boolean; | ||
uri?: string; | ||
userProject?: string; | ||
validation?: string | boolean; | ||
@@ -339,0 +415,0 @@ } |
{ | ||
"name": "@types/google-cloud__storage", | ||
"version": "1.1.8", | ||
"version": "1.7.0", | ||
"description": "TypeScript definitions for @google-cloud/storage", | ||
@@ -21,2 +21,7 @@ "license": "MIT", | ||
"githubUsername": "welkie" | ||
}, | ||
{ | ||
"name": "Futa Ogawa", | ||
"url": "https://github.com/ogawa0071", | ||
"githubUsername": "ogawa0071" | ||
} | ||
@@ -31,6 +36,7 @@ ], | ||
"dependencies": { | ||
"@types/request": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "5db771b5deb5db382de35b791100a163360e9dbc5fe7c5c9487e2e041cdda5fa", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "40c65cea57ceebf357148bbe221dcbbe6a7fb66a7426848de46102da95f41162", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for @google-cloud/storage (https://github.com/GoogleCloudPlatform/google-cloud-node/tree/master/packages/storage). | ||
This package contains type definitions for @google-cloud/storage (https://github.com/googleapis/nodejs-storage). | ||
@@ -12,7 +12,7 @@ # Details | ||
Additional Details | ||
* Last updated: Fri, 06 Jul 2018 21:56:16 GMT | ||
* Dependencies: fs, node | ||
* Last updated: Sat, 21 Jul 2018 02:05:50 GMT | ||
* Dependencies: fs, request, node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Brian Love <https://github.com/blove>, Nathan Brooker Perry <https://github.com/nbperry>, Matt Welke <https://github.com/welkie>. | ||
These definitions were written by Brian Love <https://github.com/blove>, Nathan Brooker Perry <https://github.com/nbperry>, Matt Welke <https://github.com/welkie>, Futa Ogawa <https://github.com/ogawa0071>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16368
423
2
+ Added@types/request@*
+ Added@types/caseless@0.12.5(transitive)
+ Added@types/request@2.48.12(transitive)
+ Added@types/tough-cookie@4.0.5(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@2.5.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)