screenshotone-api-sdk
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -210,3 +210,24 @@ /** | ||
timeout(timeout: number): TakeOptions; | ||
/** | ||
* Default value is false. Use store=true to trigger upload of the taken screenshot, | ||
* rendered HTML or PDF to the configured S3 bucket. | ||
* Make sure you configured access to S3. | ||
*/ | ||
store(store: boolean): TakeOptions; | ||
/** | ||
* The parameter is required if you set store=true. | ||
* You must specify the key for the file, but don’t specify an extension, | ||
* it will be added automatically based on the format you specified. | ||
* You can also specify “subdirectories” in the path part. | ||
*/ | ||
storagePath(path: string): TakeOptions; | ||
/** | ||
* You can override the default bucket you configured with storage_bucket=<bucket name>. | ||
*/ | ||
storageBucket(bucket: string): TakeOptions; | ||
/** | ||
* Storage class allows you to specify the object storage class. | ||
*/ | ||
storageClass(storageClass: string): TakeOptions; | ||
toQuery(): URLSearchParams; | ||
} |
@@ -399,2 +399,35 @@ "use strict"; | ||
} | ||
/** | ||
* Default value is false. Use store=true to trigger upload of the taken screenshot, | ||
* rendered HTML or PDF to the configured S3 bucket. | ||
* Make sure you configured access to S3. | ||
*/ | ||
store(store) { | ||
this.put("store", store ? "true" : "false"); | ||
return this; | ||
} | ||
/** | ||
* The parameter is required if you set store=true. | ||
* You must specify the key for the file, but don’t specify an extension, | ||
* it will be added automatically based on the format you specified. | ||
* You can also specify “subdirectories” in the path part. | ||
*/ | ||
storagePath(path) { | ||
this.put("storage_path", path); | ||
return this; | ||
} | ||
/** | ||
* You can override the default bucket you configured with storage_bucket=<bucket name>. | ||
*/ | ||
storageBucket(bucket) { | ||
this.put("storage_bucket", bucket); | ||
return this; | ||
} | ||
/** | ||
* Storage class allows you to specify the object storage class. | ||
*/ | ||
storageClass(storageClass) { | ||
this.put("storage_class", storageClass); | ||
return this; | ||
} | ||
toQuery() { | ||
@@ -401,0 +434,0 @@ return new URLSearchParams(this.query.toString()); |
{ | ||
"name": "screenshotone-api-sdk", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "Use ScreenshotOne.com API to generate screenshots of any website.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -470,2 +470,43 @@ import * as crypto from 'crypto'; | ||
/** | ||
* Default value is false. Use store=true to trigger upload of the taken screenshot, | ||
* rendered HTML or PDF to the configured S3 bucket. | ||
* Make sure you configured access to S3. | ||
*/ | ||
store(store: boolean): TakeOptions { | ||
this.put("store", store ? "true" : "false"); | ||
return this; | ||
} | ||
/** | ||
* The parameter is required if you set store=true. | ||
* You must specify the key for the file, but don’t specify an extension, | ||
* it will be added automatically based on the format you specified. | ||
* You can also specify “subdirectories” in the path part. | ||
*/ | ||
storagePath(path: string): TakeOptions { | ||
this.put("storage_path", path); | ||
return this; | ||
} | ||
/** | ||
* You can override the default bucket you configured with storage_bucket=<bucket name>. | ||
*/ | ||
storageBucket(bucket: string): TakeOptions { | ||
this.put("storage_bucket", bucket); | ||
return this; | ||
} | ||
/** | ||
* Storage class allows you to specify the object storage class. | ||
*/ | ||
storageClass(storageClass: string): TakeOptions { | ||
this.put("storage_class", storageClass); | ||
return this; | ||
} | ||
toQuery(): URLSearchParams { | ||
@@ -472,0 +513,0 @@ return new URLSearchParams(this.query.toString()); |
43149
1117