screenshotone-api-sdk 1.0.36 → 1.0.38
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/.vscode/settings.json +3 -0
- package/dist/@types/main.d.ts +5 -0
- package/dist/main.js +11 -0
- package/package.json +1 -1
- package/src/main.ts +14 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -148,6 +148,10 @@ export declare class TakeOptions {
|
|
|
148
148
|
* Sets response format, one of: "png", "jpeg", "webp" or "jpg".
|
|
149
149
|
*/
|
|
150
150
|
format(format: string): TakeOptions;
|
|
151
|
+
/**
|
|
152
|
+
* Sets IP country code.
|
|
153
|
+
*/
|
|
154
|
+
ipCountryCode(format: string): TakeOptions;
|
|
151
155
|
/**
|
|
152
156
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
153
157
|
*/
|
|
@@ -551,5 +555,6 @@ export declare class AnimateOptions {
|
|
|
551
555
|
scrollDelay(delay: number): AnimateOptions;
|
|
552
556
|
scrollDuration(duration: number): AnimateOptions;
|
|
553
557
|
scrollStartImmediately(startImmediately: boolean): AnimateOptions;
|
|
558
|
+
scrollBack(scrollBack: boolean): AnimateOptions;
|
|
554
559
|
toQuery(): URLSearchParams;
|
|
555
560
|
}
|
package/dist/main.js
CHANGED
|
@@ -327,6 +327,13 @@ class TakeOptions {
|
|
|
327
327
|
this.put("format", format);
|
|
328
328
|
return this;
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Sets IP country code.
|
|
332
|
+
*/
|
|
333
|
+
ipCountryCode(format) {
|
|
334
|
+
this.put("ip_country_code", format);
|
|
335
|
+
return this;
|
|
336
|
+
}
|
|
330
337
|
/**
|
|
331
338
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
332
339
|
*/
|
|
@@ -1015,6 +1022,10 @@ class AnimateOptions {
|
|
|
1015
1022
|
this.put("scroll_start_immediately", startImmediately ? "true" : "false");
|
|
1016
1023
|
return this;
|
|
1017
1024
|
}
|
|
1025
|
+
scrollBack(scrollBack) {
|
|
1026
|
+
this.put("scroll_back", scrollBack ? "true" : "false");
|
|
1027
|
+
return this;
|
|
1028
|
+
}
|
|
1018
1029
|
toQuery() {
|
|
1019
1030
|
return new URLSearchParams(this.query.toString());
|
|
1020
1031
|
}
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -368,6 +368,15 @@ export class TakeOptions {
|
|
|
368
368
|
return this;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Sets IP country code.
|
|
373
|
+
*/
|
|
374
|
+
ipCountryCode(format: string): TakeOptions {
|
|
375
|
+
this.put("ip_country_code", format);
|
|
376
|
+
|
|
377
|
+
return this;
|
|
378
|
+
}
|
|
379
|
+
|
|
371
380
|
/**
|
|
372
381
|
* Renders image with the specified quality. Available for the next formats: "jpeg" ("jpg"), "webp".
|
|
373
382
|
*/
|
|
@@ -1237,6 +1246,11 @@ export class AnimateOptions {
|
|
|
1237
1246
|
return this;
|
|
1238
1247
|
}
|
|
1239
1248
|
|
|
1249
|
+
scrollBack(scrollBack: boolean): AnimateOptions {
|
|
1250
|
+
this.put("scroll_back", scrollBack ? "true" : "false");
|
|
1251
|
+
return this;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1240
1254
|
toQuery(): URLSearchParams {
|
|
1241
1255
|
return new URLSearchParams(this.query.toString());
|
|
1242
1256
|
}
|