screenshotone-api-sdk 1.0.21 → 1.0.23
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.
- package/README.md +2 -1
- package/dist/@types/main.d.ts +21 -0
- package/dist/main.js +33 -0
- package/package.json +1 -1
- package/src/main.ts +41 -0
package/README.md
CHANGED
package/dist/@types/main.d.ts
CHANGED
|
@@ -207,5 +207,26 @@ export declare class TakeOptions {
|
|
|
207
207
|
* Sets timeout.
|
|
208
208
|
*/
|
|
209
209
|
timeout(timeout: number): TakeOptions;
|
|
210
|
+
/**
|
|
211
|
+
* Default value is false. Use store=true to trigger upload of the taken screenshot,
|
|
212
|
+
* rendered HTML or PDF to the configured S3 bucket.
|
|
213
|
+
* Make sure you configured access to S3.
|
|
214
|
+
*/
|
|
215
|
+
store(store: boolean): TakeOptions;
|
|
216
|
+
/**
|
|
217
|
+
* The parameter is required if you set store=true.
|
|
218
|
+
* You must specify the key for the file, but don’t specify an extension,
|
|
219
|
+
* it will be added automatically based on the format you specified.
|
|
220
|
+
* You can also specify “subdirectories” in the path part.
|
|
221
|
+
*/
|
|
222
|
+
storagePath(path: string): TakeOptions;
|
|
223
|
+
/**
|
|
224
|
+
* You can override the default bucket you configured with storage_bucket=<bucket name>.
|
|
225
|
+
*/
|
|
226
|
+
storageBucket(bucket: string): TakeOptions;
|
|
227
|
+
/**
|
|
228
|
+
* Storage class allows you to specify the object storage class.
|
|
229
|
+
*/
|
|
230
|
+
storageClass(storageClass: string): TakeOptions;
|
|
210
231
|
toQuery(): URLSearchParams;
|
|
211
232
|
}
|
package/dist/main.js
CHANGED
|
@@ -396,6 +396,39 @@ class TakeOptions {
|
|
|
396
396
|
this.put("timeout", timeout.toString());
|
|
397
397
|
return this;
|
|
398
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* Default value is false. Use store=true to trigger upload of the taken screenshot,
|
|
401
|
+
* rendered HTML or PDF to the configured S3 bucket.
|
|
402
|
+
* Make sure you configured access to S3.
|
|
403
|
+
*/
|
|
404
|
+
store(store) {
|
|
405
|
+
this.put("store", store ? "true" : "false");
|
|
406
|
+
return this;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* The parameter is required if you set store=true.
|
|
410
|
+
* You must specify the key for the file, but don’t specify an extension,
|
|
411
|
+
* it will be added automatically based on the format you specified.
|
|
412
|
+
* You can also specify “subdirectories” in the path part.
|
|
413
|
+
*/
|
|
414
|
+
storagePath(path) {
|
|
415
|
+
this.put("storage_path", path);
|
|
416
|
+
return this;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* You can override the default bucket you configured with storage_bucket=<bucket name>.
|
|
420
|
+
*/
|
|
421
|
+
storageBucket(bucket) {
|
|
422
|
+
this.put("storage_bucket", bucket);
|
|
423
|
+
return this;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Storage class allows you to specify the object storage class.
|
|
427
|
+
*/
|
|
428
|
+
storageClass(storageClass) {
|
|
429
|
+
this.put("storage_class", storageClass);
|
|
430
|
+
return this;
|
|
431
|
+
}
|
|
399
432
|
toQuery() {
|
|
400
433
|
return new URLSearchParams(this.query.toString());
|
|
401
434
|
}
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -467,6 +467,47 @@ export class TakeOptions {
|
|
|
467
467
|
return this;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
/**
|
|
471
|
+
* Default value is false. Use store=true to trigger upload of the taken screenshot,
|
|
472
|
+
* rendered HTML or PDF to the configured S3 bucket.
|
|
473
|
+
* Make sure you configured access to S3.
|
|
474
|
+
*/
|
|
475
|
+
store(store: boolean): TakeOptions {
|
|
476
|
+
this.put("store", store ? "true" : "false");
|
|
477
|
+
|
|
478
|
+
return this;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* The parameter is required if you set store=true.
|
|
483
|
+
* You must specify the key for the file, but don’t specify an extension,
|
|
484
|
+
* it will be added automatically based on the format you specified.
|
|
485
|
+
* You can also specify “subdirectories” in the path part.
|
|
486
|
+
*/
|
|
487
|
+
storagePath(path: string): TakeOptions {
|
|
488
|
+
this.put("storage_path", path);
|
|
489
|
+
|
|
490
|
+
return this;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* You can override the default bucket you configured with storage_bucket=<bucket name>.
|
|
495
|
+
*/
|
|
496
|
+
storageBucket(bucket: string): TakeOptions {
|
|
497
|
+
this.put("storage_bucket", bucket);
|
|
498
|
+
|
|
499
|
+
return this;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Storage class allows you to specify the object storage class.
|
|
504
|
+
*/
|
|
505
|
+
storageClass(storageClass: string): TakeOptions {
|
|
506
|
+
this.put("storage_class", storageClass);
|
|
507
|
+
|
|
508
|
+
return this;
|
|
509
|
+
}
|
|
510
|
+
|
|
470
511
|
toQuery(): URLSearchParams {
|
|
471
512
|
return new URLSearchParams(this.query.toString());
|
|
472
513
|
}
|