screenshotone-api-sdk 1.1.19 → 1.1.21

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.
@@ -156,6 +156,10 @@ export declare class TakeOptions {
156
156
  * Set `true` to scroll the page to the bottom.
157
157
  */
158
158
  fullPageScroll(scroll: boolean): TakeOptions;
159
+ /**
160
+ * Sets the delay between scroll steps.
161
+ */
162
+ fullPageScrollDelay(delay: number): TakeOptions;
159
163
  /**
160
164
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
161
165
  */
@@ -374,6 +378,11 @@ export declare class TakeOptions {
374
378
  * Secret access key. It overrides the one specified in the dashboard configuration.
375
379
  */
376
380
  storageSecretAccessKey(secretAccessKey: string): TakeOptions;
381
+ /**
382
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
383
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
384
+ */
385
+ storageEndpoint(endpoint: string): TakeOptions;
377
386
  /**
378
387
  * Storage class allows you to specify the object storage class.
379
388
  */
package/dist/main.js CHANGED
@@ -318,6 +318,13 @@ class TakeOptions {
318
318
  this.put("full_page_scroll", scroll ? "true" : "false");
319
319
  return this;
320
320
  }
321
+ /**
322
+ * Sets the delay between scroll steps.
323
+ */
324
+ fullPageScrollDelay(delay) {
325
+ this.put("full_page_scroll_delay", delay.toString());
326
+ return this;
327
+ }
321
328
  /**
322
329
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
323
330
  */
@@ -677,6 +684,14 @@ class TakeOptions {
677
684
  this.put("storage_secret_access_key", secretAccessKey);
678
685
  return this;
679
686
  }
687
+ /**
688
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
689
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
690
+ */
691
+ storageEndpoint(endpoint) {
692
+ this.put("storage_endpoint", endpoint);
693
+ return this;
694
+ }
680
695
  /**
681
696
  * Storage class allows you to specify the object storage class.
682
697
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "screenshotone-api-sdk",
3
3
  "homepage": "https://screenshotone.com",
4
- "version": "1.1.19",
4
+ "version": "1.1.21",
5
5
  "description": "Use ScreenshotOne.com API to generate screenshots of any website.",
6
6
  "repository": {
7
7
  "type": "git",
package/src/main.ts CHANGED
@@ -413,6 +413,15 @@ export class TakeOptions {
413
413
  return this;
414
414
  }
415
415
 
416
+ /**
417
+ * Sets the delay between scroll steps.
418
+ */
419
+ fullPageScrollDelay(delay: number): TakeOptions {
420
+ this.put("full_page_scroll_delay", delay.toString());
421
+
422
+ return this;
423
+ }
424
+
416
425
  /**
417
426
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
418
427
  */
@@ -872,6 +881,16 @@ export class TakeOptions {
872
881
  return this;
873
882
  }
874
883
 
884
+ /**
885
+ * Leave empty for Amazon S3, specify only when needed. Any S3-compatible storage is supported,
886
+ * e.g. "https://<accountId>.r2.cloudflarestorage.com" for Cloudlfare R2 storage.
887
+ */
888
+ storageEndpoint(endpoint: string): TakeOptions {
889
+ this.put("storage_endpoint", endpoint);
890
+
891
+ return this;
892
+ }
893
+
875
894
  /**
876
895
  * Storage class allows you to specify the object storage class.
877
896
  */