dataforseo-client 1.0.9 → 1.0.10
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/main.d.ts +98 -98
- package/main.js +84 -84
- package/main.js.map +1 -1
- package/main.ts +208 -208
- package/package.json +1 -1
package/main.ts
CHANGED
|
@@ -20660,13 +20660,13 @@ export class BaseOnPageResourceItemInfo implements IBaseOnPageResourceItemInfo {
|
|
|
20660
20660
|
result.init(data);
|
|
20661
20661
|
return result;
|
|
20662
20662
|
}
|
|
20663
|
-
if (data["resource_type"] === "
|
|
20664
|
-
let result = new
|
|
20663
|
+
if (data["resource_type"] === "script") {
|
|
20664
|
+
let result = new ScriptResourceElementItem();
|
|
20665
20665
|
result.init(data);
|
|
20666
20666
|
return result;
|
|
20667
20667
|
}
|
|
20668
|
-
if (data["resource_type"] === "
|
|
20669
|
-
let result = new
|
|
20668
|
+
if (data["resource_type"] === "stylesheet") {
|
|
20669
|
+
let result = new StylesheetResourceElementItem();
|
|
20670
20670
|
result.init(data);
|
|
20671
20671
|
return result;
|
|
20672
20672
|
}
|
|
@@ -32853,6 +32853,8 @@ export class PopularProductsElement implements IPopularProductsElement {
|
|
|
32853
32853
|
title?: string | undefined;
|
|
32854
32854
|
/** description */
|
|
32855
32855
|
description?: string | undefined;
|
|
32856
|
+
/** seller of the product */
|
|
32857
|
+
seller?: string | undefined;
|
|
32856
32858
|
/** price indicated in the element */
|
|
32857
32859
|
price?: PriceInfo | undefined;
|
|
32858
32860
|
/** the item’s rating
|
|
@@ -32879,6 +32881,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32879
32881
|
this.type = _data["type"];
|
|
32880
32882
|
this.title = _data["title"];
|
|
32881
32883
|
this.description = _data["description"];
|
|
32884
|
+
this.seller = _data["seller"];
|
|
32882
32885
|
this.price = _data["price"] ? PriceInfo.fromJS(_data["price"]) : <any>undefined;
|
|
32883
32886
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
32884
32887
|
}
|
|
@@ -32900,6 +32903,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
32900
32903
|
data["type"] = this.type;
|
|
32901
32904
|
data["title"] = this.title;
|
|
32902
32905
|
data["description"] = this.description;
|
|
32906
|
+
data["seller"] = this.seller;
|
|
32903
32907
|
data["price"] = this.price ? this.price.toJSON() : <any>undefined;
|
|
32904
32908
|
data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
|
|
32905
32909
|
return data;
|
|
@@ -32913,6 +32917,8 @@ export interface IPopularProductsElement {
|
|
|
32913
32917
|
title?: string | undefined;
|
|
32914
32918
|
/** description */
|
|
32915
32919
|
description?: string | undefined;
|
|
32920
|
+
/** seller of the product */
|
|
32921
|
+
seller?: string | undefined;
|
|
32916
32922
|
/** price indicated in the element */
|
|
32917
32923
|
price?: PriceInfo | undefined;
|
|
32918
32924
|
/** the item’s rating
|
|
@@ -43874,7 +43880,8 @@ top_stories, news_search */
|
|
|
43874
43880
|
se_results_count?: number | undefined;
|
|
43875
43881
|
/** the number of results returned in the items array */
|
|
43876
43882
|
items_count?: number | undefined;
|
|
43877
|
-
/**
|
|
43883
|
+
/** additional items present in the element
|
|
43884
|
+
if there are none, equals null */
|
|
43878
43885
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
43879
43886
|
|
|
43880
43887
|
[key: string]: any;
|
|
@@ -43986,7 +43993,8 @@ top_stories, news_search */
|
|
|
43986
43993
|
se_results_count?: number | undefined;
|
|
43987
43994
|
/** the number of results returned in the items array */
|
|
43988
43995
|
items_count?: number | undefined;
|
|
43989
|
-
/**
|
|
43996
|
+
/** additional items present in the element
|
|
43997
|
+
if there are none, equals null */
|
|
43990
43998
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
43991
43999
|
|
|
43992
44000
|
[key: string]: any;
|
|
@@ -151501,6 +151509,192 @@ the amount of time a browser needs to complete downloading a resource */
|
|
|
151501
151509
|
[key: string]: any;
|
|
151502
151510
|
}
|
|
151503
151511
|
|
|
151512
|
+
export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
151513
|
+
/** resource properties
|
|
151514
|
+
the value depends on the resource_type
|
|
151515
|
+
note that if you do not indicate a url when setting a task, resource’s meta is returned based on the data from the page where our crawler first saw the resource;
|
|
151516
|
+
to obtain resource’s meta from a particular url, specify that URL when setting a task */
|
|
151517
|
+
meta?: ResourceMetaInfo | undefined;
|
|
151518
|
+
/** status code of the page where a given resource is located */
|
|
151519
|
+
status_code?: number | undefined;
|
|
151520
|
+
/** location header
|
|
151521
|
+
indicates the URL to redirect a page to */
|
|
151522
|
+
location?: string | undefined;
|
|
151523
|
+
/** resource URL */
|
|
151524
|
+
url?: string | undefined;
|
|
151525
|
+
/** resource size
|
|
151526
|
+
indicates the size of a given resource measured in bytes */
|
|
151527
|
+
size?: number | undefined;
|
|
151528
|
+
/** resource size after encoding
|
|
151529
|
+
indicates the size of the encoded resource measured in bytes */
|
|
151530
|
+
encoded_size?: number | undefined;
|
|
151531
|
+
/** compressed resource size
|
|
151532
|
+
indicates the compressed size of a given resource in bytes */
|
|
151533
|
+
total_transfer_size?: number | undefined;
|
|
151534
|
+
/** date and time when a resource was fetched
|
|
151535
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
151536
|
+
example:
|
|
151537
|
+
2021-02-17 13:54:15 +00:00 */
|
|
151538
|
+
fetch_time?: string | undefined;
|
|
151539
|
+
/** resource fething time range */
|
|
151540
|
+
fetch_timing?: FetchTiming | undefined;
|
|
151541
|
+
/** instructions for caching */
|
|
151542
|
+
cache_control?: CacheControl | undefined;
|
|
151543
|
+
/** resource check-ups
|
|
151544
|
+
contents of the array depend on the resource_type */
|
|
151545
|
+
checks?: { [key: string]: boolean; } | undefined;
|
|
151546
|
+
/** resource errors and warnings */
|
|
151547
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
151548
|
+
/** type of encoding */
|
|
151549
|
+
content_encoding?: string | undefined;
|
|
151550
|
+
/** types of media used to display a resource */
|
|
151551
|
+
media_type?: string | undefined;
|
|
151552
|
+
/** indicates the expected type of resource
|
|
151553
|
+
for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
|
|
151554
|
+
possible values:
|
|
151555
|
+
any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
|
|
151556
|
+
accept_type?: string | undefined;
|
|
151557
|
+
/** server version */
|
|
151558
|
+
server?: string | undefined;
|
|
151559
|
+
/** contains data on changes related to the resource
|
|
151560
|
+
if there is no data, the value will be null */
|
|
151561
|
+
last_modified?: LastModified | undefined;
|
|
151562
|
+
|
|
151563
|
+
[key: string]: any;
|
|
151564
|
+
|
|
151565
|
+
constructor(data?: IScriptResourceElementItem) {
|
|
151566
|
+
super(data);
|
|
151567
|
+
this._discriminator = "script";
|
|
151568
|
+
}
|
|
151569
|
+
|
|
151570
|
+
init(_data?: any) {
|
|
151571
|
+
super.init(_data);
|
|
151572
|
+
if (_data) {
|
|
151573
|
+
for (var property in _data) {
|
|
151574
|
+
if (_data.hasOwnProperty(property))
|
|
151575
|
+
this[property] = _data[property];
|
|
151576
|
+
}
|
|
151577
|
+
this.meta = _data["meta"] ? ResourceMetaInfo.fromJS(_data["meta"]) : <any>undefined;
|
|
151578
|
+
this.status_code = _data["status_code"];
|
|
151579
|
+
this.location = _data["location"];
|
|
151580
|
+
this.url = _data["url"];
|
|
151581
|
+
this.size = _data["size"];
|
|
151582
|
+
this.encoded_size = _data["encoded_size"];
|
|
151583
|
+
this.total_transfer_size = _data["total_transfer_size"];
|
|
151584
|
+
this.fetch_time = _data["fetch_time"];
|
|
151585
|
+
this.fetch_timing = _data["fetch_timing"] ? FetchTiming.fromJS(_data["fetch_timing"]) : <any>undefined;
|
|
151586
|
+
this.cache_control = _data["cache_control"] ? CacheControl.fromJS(_data["cache_control"]) : <any>undefined;
|
|
151587
|
+
if (_data["checks"]) {
|
|
151588
|
+
this.checks = {} as any;
|
|
151589
|
+
for (let key in _data["checks"]) {
|
|
151590
|
+
if (_data["checks"].hasOwnProperty(key))
|
|
151591
|
+
(<any>this.checks)![key] = _data["checks"][key];
|
|
151592
|
+
}
|
|
151593
|
+
}
|
|
151594
|
+
this.resource_errors = _data["resource_errors"] ? OnPageResourceIssueInfo.fromJS(_data["resource_errors"]) : <any>undefined;
|
|
151595
|
+
this.content_encoding = _data["content_encoding"];
|
|
151596
|
+
this.media_type = _data["media_type"];
|
|
151597
|
+
this.accept_type = _data["accept_type"];
|
|
151598
|
+
this.server = _data["server"];
|
|
151599
|
+
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
151600
|
+
}
|
|
151601
|
+
}
|
|
151602
|
+
|
|
151603
|
+
static fromJS(data: any): ScriptResourceElementItem {
|
|
151604
|
+
data = typeof data === 'object' ? data : {};
|
|
151605
|
+
let result = new ScriptResourceElementItem();
|
|
151606
|
+
result.init(data);
|
|
151607
|
+
return result;
|
|
151608
|
+
}
|
|
151609
|
+
|
|
151610
|
+
toJSON(data?: any) {
|
|
151611
|
+
data = typeof data === 'object' ? data : {};
|
|
151612
|
+
for (var property in this) {
|
|
151613
|
+
if (this.hasOwnProperty(property))
|
|
151614
|
+
data[property] = this[property];
|
|
151615
|
+
}
|
|
151616
|
+
data["meta"] = this.meta ? this.meta.toJSON() : <any>undefined;
|
|
151617
|
+
data["status_code"] = this.status_code;
|
|
151618
|
+
data["location"] = this.location;
|
|
151619
|
+
data["url"] = this.url;
|
|
151620
|
+
data["size"] = this.size;
|
|
151621
|
+
data["encoded_size"] = this.encoded_size;
|
|
151622
|
+
data["total_transfer_size"] = this.total_transfer_size;
|
|
151623
|
+
data["fetch_time"] = this.fetch_time;
|
|
151624
|
+
data["fetch_timing"] = this.fetch_timing ? this.fetch_timing.toJSON() : <any>undefined;
|
|
151625
|
+
data["cache_control"] = this.cache_control ? this.cache_control.toJSON() : <any>undefined;
|
|
151626
|
+
if (this.checks) {
|
|
151627
|
+
data["checks"] = {};
|
|
151628
|
+
for (let key in this.checks) {
|
|
151629
|
+
if (this.checks.hasOwnProperty(key))
|
|
151630
|
+
(<any>data["checks"])[key] = (<any>this.checks)[key];
|
|
151631
|
+
}
|
|
151632
|
+
}
|
|
151633
|
+
data["resource_errors"] = this.resource_errors ? this.resource_errors.toJSON() : <any>undefined;
|
|
151634
|
+
data["content_encoding"] = this.content_encoding;
|
|
151635
|
+
data["media_type"] = this.media_type;
|
|
151636
|
+
data["accept_type"] = this.accept_type;
|
|
151637
|
+
data["server"] = this.server;
|
|
151638
|
+
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
151639
|
+
super.toJSON(data);
|
|
151640
|
+
return data;
|
|
151641
|
+
}
|
|
151642
|
+
}
|
|
151643
|
+
|
|
151644
|
+
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
151645
|
+
/** resource properties
|
|
151646
|
+
the value depends on the resource_type
|
|
151647
|
+
note that if you do not indicate a url when setting a task, resource’s meta is returned based on the data from the page where our crawler first saw the resource;
|
|
151648
|
+
to obtain resource’s meta from a particular url, specify that URL when setting a task */
|
|
151649
|
+
meta?: ResourceMetaInfo | undefined;
|
|
151650
|
+
/** status code of the page where a given resource is located */
|
|
151651
|
+
status_code?: number | undefined;
|
|
151652
|
+
/** location header
|
|
151653
|
+
indicates the URL to redirect a page to */
|
|
151654
|
+
location?: string | undefined;
|
|
151655
|
+
/** resource URL */
|
|
151656
|
+
url?: string | undefined;
|
|
151657
|
+
/** resource size
|
|
151658
|
+
indicates the size of a given resource measured in bytes */
|
|
151659
|
+
size?: number | undefined;
|
|
151660
|
+
/** resource size after encoding
|
|
151661
|
+
indicates the size of the encoded resource measured in bytes */
|
|
151662
|
+
encoded_size?: number | undefined;
|
|
151663
|
+
/** compressed resource size
|
|
151664
|
+
indicates the compressed size of a given resource in bytes */
|
|
151665
|
+
total_transfer_size?: number | undefined;
|
|
151666
|
+
/** date and time when a resource was fetched
|
|
151667
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
151668
|
+
example:
|
|
151669
|
+
2021-02-17 13:54:15 +00:00 */
|
|
151670
|
+
fetch_time?: string | undefined;
|
|
151671
|
+
/** resource fething time range */
|
|
151672
|
+
fetch_timing?: FetchTiming | undefined;
|
|
151673
|
+
/** instructions for caching */
|
|
151674
|
+
cache_control?: CacheControl | undefined;
|
|
151675
|
+
/** resource check-ups
|
|
151676
|
+
contents of the array depend on the resource_type */
|
|
151677
|
+
checks?: { [key: string]: boolean; } | undefined;
|
|
151678
|
+
/** resource errors and warnings */
|
|
151679
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
151680
|
+
/** type of encoding */
|
|
151681
|
+
content_encoding?: string | undefined;
|
|
151682
|
+
/** types of media used to display a resource */
|
|
151683
|
+
media_type?: string | undefined;
|
|
151684
|
+
/** indicates the expected type of resource
|
|
151685
|
+
for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
|
|
151686
|
+
possible values:
|
|
151687
|
+
any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
|
|
151688
|
+
accept_type?: string | undefined;
|
|
151689
|
+
/** server version */
|
|
151690
|
+
server?: string | undefined;
|
|
151691
|
+
/** contains data on changes related to the resource
|
|
151692
|
+
if there is no data, the value will be null */
|
|
151693
|
+
last_modified?: LastModified | undefined;
|
|
151694
|
+
|
|
151695
|
+
[key: string]: any;
|
|
151696
|
+
}
|
|
151697
|
+
|
|
151504
151698
|
export class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
|
|
151505
151699
|
/** resource properties
|
|
151506
151700
|
the value depends on the resource_type
|
|
@@ -151860,192 +152054,6 @@ export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
|
151860
152054
|
[key: string]: any;
|
|
151861
152055
|
}
|
|
151862
152056
|
|
|
151863
|
-
export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
151864
|
-
/** resource properties
|
|
151865
|
-
the value depends on the resource_type
|
|
151866
|
-
note that if you do not indicate a url when setting a task, resource’s meta is returned based on the data from the page where our crawler first saw the resource;
|
|
151867
|
-
to obtain resource’s meta from a particular url, specify that URL when setting a task */
|
|
151868
|
-
meta?: ResourceMetaInfo | undefined;
|
|
151869
|
-
/** status code of the page where a given resource is located */
|
|
151870
|
-
status_code?: number | undefined;
|
|
151871
|
-
/** location header
|
|
151872
|
-
indicates the URL to redirect a page to */
|
|
151873
|
-
location?: string | undefined;
|
|
151874
|
-
/** resource URL */
|
|
151875
|
-
url?: string | undefined;
|
|
151876
|
-
/** resource size
|
|
151877
|
-
indicates the size of a given resource measured in bytes */
|
|
151878
|
-
size?: number | undefined;
|
|
151879
|
-
/** resource size after encoding
|
|
151880
|
-
indicates the size of the encoded resource measured in bytes */
|
|
151881
|
-
encoded_size?: number | undefined;
|
|
151882
|
-
/** compressed resource size
|
|
151883
|
-
indicates the compressed size of a given resource in bytes */
|
|
151884
|
-
total_transfer_size?: number | undefined;
|
|
151885
|
-
/** date and time when a resource was fetched
|
|
151886
|
-
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
151887
|
-
example:
|
|
151888
|
-
2021-02-17 13:54:15 +00:00 */
|
|
151889
|
-
fetch_time?: string | undefined;
|
|
151890
|
-
/** resource fething time range */
|
|
151891
|
-
fetch_timing?: FetchTiming | undefined;
|
|
151892
|
-
/** instructions for caching */
|
|
151893
|
-
cache_control?: CacheControl | undefined;
|
|
151894
|
-
/** resource check-ups
|
|
151895
|
-
contents of the array depend on the resource_type */
|
|
151896
|
-
checks?: { [key: string]: boolean; } | undefined;
|
|
151897
|
-
/** type of encoding */
|
|
151898
|
-
content_encoding?: string | undefined;
|
|
151899
|
-
/** types of media used to display a resource */
|
|
151900
|
-
media_type?: string | undefined;
|
|
151901
|
-
/** indicates the expected type of resource
|
|
151902
|
-
for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
|
|
151903
|
-
possible values:
|
|
151904
|
-
any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
|
|
151905
|
-
accept_type?: string | undefined;
|
|
151906
|
-
/** server version */
|
|
151907
|
-
server?: string | undefined;
|
|
151908
|
-
/** contains data on changes related to the resource
|
|
151909
|
-
if there is no data, the value will be null */
|
|
151910
|
-
last_modified?: LastModified | undefined;
|
|
151911
|
-
/** resource errors and warnings */
|
|
151912
|
-
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
151913
|
-
|
|
151914
|
-
[key: string]: any;
|
|
151915
|
-
|
|
151916
|
-
constructor(data?: IScriptResourceElementItem) {
|
|
151917
|
-
super(data);
|
|
151918
|
-
this._discriminator = "script";
|
|
151919
|
-
}
|
|
151920
|
-
|
|
151921
|
-
init(_data?: any) {
|
|
151922
|
-
super.init(_data);
|
|
151923
|
-
if (_data) {
|
|
151924
|
-
for (var property in _data) {
|
|
151925
|
-
if (_data.hasOwnProperty(property))
|
|
151926
|
-
this[property] = _data[property];
|
|
151927
|
-
}
|
|
151928
|
-
this.meta = _data["meta"] ? ResourceMetaInfo.fromJS(_data["meta"]) : <any>undefined;
|
|
151929
|
-
this.status_code = _data["status_code"];
|
|
151930
|
-
this.location = _data["location"];
|
|
151931
|
-
this.url = _data["url"];
|
|
151932
|
-
this.size = _data["size"];
|
|
151933
|
-
this.encoded_size = _data["encoded_size"];
|
|
151934
|
-
this.total_transfer_size = _data["total_transfer_size"];
|
|
151935
|
-
this.fetch_time = _data["fetch_time"];
|
|
151936
|
-
this.fetch_timing = _data["fetch_timing"] ? FetchTiming.fromJS(_data["fetch_timing"]) : <any>undefined;
|
|
151937
|
-
this.cache_control = _data["cache_control"] ? CacheControl.fromJS(_data["cache_control"]) : <any>undefined;
|
|
151938
|
-
if (_data["checks"]) {
|
|
151939
|
-
this.checks = {} as any;
|
|
151940
|
-
for (let key in _data["checks"]) {
|
|
151941
|
-
if (_data["checks"].hasOwnProperty(key))
|
|
151942
|
-
(<any>this.checks)![key] = _data["checks"][key];
|
|
151943
|
-
}
|
|
151944
|
-
}
|
|
151945
|
-
this.content_encoding = _data["content_encoding"];
|
|
151946
|
-
this.media_type = _data["media_type"];
|
|
151947
|
-
this.accept_type = _data["accept_type"];
|
|
151948
|
-
this.server = _data["server"];
|
|
151949
|
-
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
151950
|
-
this.resource_errors = _data["resource_errors"] ? OnPageResourceIssueInfo.fromJS(_data["resource_errors"]) : <any>undefined;
|
|
151951
|
-
}
|
|
151952
|
-
}
|
|
151953
|
-
|
|
151954
|
-
static fromJS(data: any): ScriptResourceElementItem {
|
|
151955
|
-
data = typeof data === 'object' ? data : {};
|
|
151956
|
-
let result = new ScriptResourceElementItem();
|
|
151957
|
-
result.init(data);
|
|
151958
|
-
return result;
|
|
151959
|
-
}
|
|
151960
|
-
|
|
151961
|
-
toJSON(data?: any) {
|
|
151962
|
-
data = typeof data === 'object' ? data : {};
|
|
151963
|
-
for (var property in this) {
|
|
151964
|
-
if (this.hasOwnProperty(property))
|
|
151965
|
-
data[property] = this[property];
|
|
151966
|
-
}
|
|
151967
|
-
data["meta"] = this.meta ? this.meta.toJSON() : <any>undefined;
|
|
151968
|
-
data["status_code"] = this.status_code;
|
|
151969
|
-
data["location"] = this.location;
|
|
151970
|
-
data["url"] = this.url;
|
|
151971
|
-
data["size"] = this.size;
|
|
151972
|
-
data["encoded_size"] = this.encoded_size;
|
|
151973
|
-
data["total_transfer_size"] = this.total_transfer_size;
|
|
151974
|
-
data["fetch_time"] = this.fetch_time;
|
|
151975
|
-
data["fetch_timing"] = this.fetch_timing ? this.fetch_timing.toJSON() : <any>undefined;
|
|
151976
|
-
data["cache_control"] = this.cache_control ? this.cache_control.toJSON() : <any>undefined;
|
|
151977
|
-
if (this.checks) {
|
|
151978
|
-
data["checks"] = {};
|
|
151979
|
-
for (let key in this.checks) {
|
|
151980
|
-
if (this.checks.hasOwnProperty(key))
|
|
151981
|
-
(<any>data["checks"])[key] = (<any>this.checks)[key];
|
|
151982
|
-
}
|
|
151983
|
-
}
|
|
151984
|
-
data["content_encoding"] = this.content_encoding;
|
|
151985
|
-
data["media_type"] = this.media_type;
|
|
151986
|
-
data["accept_type"] = this.accept_type;
|
|
151987
|
-
data["server"] = this.server;
|
|
151988
|
-
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
151989
|
-
data["resource_errors"] = this.resource_errors ? this.resource_errors.toJSON() : <any>undefined;
|
|
151990
|
-
super.toJSON(data);
|
|
151991
|
-
return data;
|
|
151992
|
-
}
|
|
151993
|
-
}
|
|
151994
|
-
|
|
151995
|
-
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
151996
|
-
/** resource properties
|
|
151997
|
-
the value depends on the resource_type
|
|
151998
|
-
note that if you do not indicate a url when setting a task, resource’s meta is returned based on the data from the page where our crawler first saw the resource;
|
|
151999
|
-
to obtain resource’s meta from a particular url, specify that URL when setting a task */
|
|
152000
|
-
meta?: ResourceMetaInfo | undefined;
|
|
152001
|
-
/** status code of the page where a given resource is located */
|
|
152002
|
-
status_code?: number | undefined;
|
|
152003
|
-
/** location header
|
|
152004
|
-
indicates the URL to redirect a page to */
|
|
152005
|
-
location?: string | undefined;
|
|
152006
|
-
/** resource URL */
|
|
152007
|
-
url?: string | undefined;
|
|
152008
|
-
/** resource size
|
|
152009
|
-
indicates the size of a given resource measured in bytes */
|
|
152010
|
-
size?: number | undefined;
|
|
152011
|
-
/** resource size after encoding
|
|
152012
|
-
indicates the size of the encoded resource measured in bytes */
|
|
152013
|
-
encoded_size?: number | undefined;
|
|
152014
|
-
/** compressed resource size
|
|
152015
|
-
indicates the compressed size of a given resource in bytes */
|
|
152016
|
-
total_transfer_size?: number | undefined;
|
|
152017
|
-
/** date and time when a resource was fetched
|
|
152018
|
-
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
152019
|
-
example:
|
|
152020
|
-
2021-02-17 13:54:15 +00:00 */
|
|
152021
|
-
fetch_time?: string | undefined;
|
|
152022
|
-
/** resource fething time range */
|
|
152023
|
-
fetch_timing?: FetchTiming | undefined;
|
|
152024
|
-
/** instructions for caching */
|
|
152025
|
-
cache_control?: CacheControl | undefined;
|
|
152026
|
-
/** resource check-ups
|
|
152027
|
-
contents of the array depend on the resource_type */
|
|
152028
|
-
checks?: { [key: string]: boolean; } | undefined;
|
|
152029
|
-
/** type of encoding */
|
|
152030
|
-
content_encoding?: string | undefined;
|
|
152031
|
-
/** types of media used to display a resource */
|
|
152032
|
-
media_type?: string | undefined;
|
|
152033
|
-
/** indicates the expected type of resource
|
|
152034
|
-
for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
|
|
152035
|
-
possible values:
|
|
152036
|
-
any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
|
|
152037
|
-
accept_type?: string | undefined;
|
|
152038
|
-
/** server version */
|
|
152039
|
-
server?: string | undefined;
|
|
152040
|
-
/** contains data on changes related to the resource
|
|
152041
|
-
if there is no data, the value will be null */
|
|
152042
|
-
last_modified?: LastModified | undefined;
|
|
152043
|
-
/** resource errors and warnings */
|
|
152044
|
-
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
152045
|
-
|
|
152046
|
-
[key: string]: any;
|
|
152047
|
-
}
|
|
152048
|
-
|
|
152049
152057
|
export class ImageResourceElementItem extends BaseOnPageResourceItemInfo implements IImageResourceElementItem {
|
|
152050
152058
|
/** resource properties
|
|
152051
152059
|
the value depends on the resource_type
|
|
@@ -171872,8 +171880,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
171872
171880
|
/** absolute rank in SERP
|
|
171873
171881
|
absolute position among all the elements found in Google Shopping SERP */
|
|
171874
171882
|
rank_absolute?: number | undefined;
|
|
171875
|
-
/**
|
|
171876
|
-
|
|
171883
|
+
/** alignment of the element in SERP
|
|
171884
|
+
can take the following values:
|
|
171877
171885
|
left, right */
|
|
171878
171886
|
position?: string | undefined;
|
|
171879
171887
|
/** XPath of the element */
|
|
@@ -171996,8 +172004,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
171996
172004
|
/** absolute rank in SERP
|
|
171997
172005
|
absolute position among all the elements found in Google Shopping SERP */
|
|
171998
172006
|
rank_absolute?: number | undefined;
|
|
171999
|
-
/**
|
|
172000
|
-
|
|
172007
|
+
/** alignment of the element in SERP
|
|
172008
|
+
can take the following values:
|
|
172001
172009
|
left, right */
|
|
172002
172010
|
position?: string | undefined;
|
|
172003
172011
|
/** XPath of the element */
|
|
@@ -172052,8 +172060,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
172052
172060
|
/** absolute rank in SERP
|
|
172053
172061
|
absolute position among all the elements found in Google Shopping SERP */
|
|
172054
172062
|
rank_absolute?: number | undefined;
|
|
172055
|
-
/**
|
|
172056
|
-
|
|
172063
|
+
/** alignment of the element in SERP
|
|
172064
|
+
can take the following values:
|
|
172057
172065
|
left, right */
|
|
172058
172066
|
position?: string | undefined;
|
|
172059
172067
|
/** XPath of the element */
|
|
@@ -172090,9 +172098,6 @@ the shop popularity rate based on product reviews */
|
|
|
172090
172098
|
using this parameter you can get a URL of the advertisement in Google Shopping Sellers Ad URL
|
|
172091
172099
|
in this case, the value equals null */
|
|
172092
172100
|
shop_ad_aclk?: string | undefined;
|
|
172093
|
-
/** indicated condition of the product
|
|
172094
|
-
possible values: Used, Refurbished, New, null */
|
|
172095
|
-
product_condition?: string | undefined;
|
|
172096
172101
|
|
|
172097
172102
|
[key: string]: any;
|
|
172098
172103
|
|
|
@@ -172124,7 +172129,6 @@ possible values: Used, Refurbished, New, null */
|
|
|
172124
172129
|
this.seller_name = _data["seller_name"];
|
|
172125
172130
|
this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
|
|
172126
172131
|
this.shop_ad_aclk = _data["shop_ad_aclk"];
|
|
172127
|
-
this.product_condition = _data["product_condition"];
|
|
172128
172132
|
}
|
|
172129
172133
|
}
|
|
172130
172134
|
|
|
@@ -172157,7 +172161,6 @@ possible values: Used, Refurbished, New, null */
|
|
|
172157
172161
|
data["seller_name"] = this.seller_name;
|
|
172158
172162
|
data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
|
|
172159
172163
|
data["shop_ad_aclk"] = this.shop_ad_aclk;
|
|
172160
|
-
data["product_condition"] = this.product_condition;
|
|
172161
172164
|
super.toJSON(data);
|
|
172162
172165
|
return data;
|
|
172163
172166
|
}
|
|
@@ -172170,8 +172173,8 @@ positions of elements with different type values are omitted from rank_group */
|
|
|
172170
172173
|
/** absolute rank in SERP
|
|
172171
172174
|
absolute position among all the elements found in Google Shopping SERP */
|
|
172172
172175
|
rank_absolute?: number | undefined;
|
|
172173
|
-
/**
|
|
172174
|
-
|
|
172176
|
+
/** alignment of the element in SERP
|
|
172177
|
+
can take the following values:
|
|
172175
172178
|
left, right */
|
|
172176
172179
|
position?: string | undefined;
|
|
172177
172180
|
/** XPath of the element */
|
|
@@ -172208,9 +172211,6 @@ the shop popularity rate based on product reviews */
|
|
|
172208
172211
|
using this parameter you can get a URL of the advertisement in Google Shopping Sellers Ad URL
|
|
172209
172212
|
in this case, the value equals null */
|
|
172210
172213
|
shop_ad_aclk?: string | undefined;
|
|
172211
|
-
/** indicated condition of the product
|
|
172212
|
-
possible values: Used, Refurbished, New, null */
|
|
172213
|
-
product_condition?: string | undefined;
|
|
172214
172214
|
|
|
172215
172215
|
[key: string]: any;
|
|
172216
172216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataforseo-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "API client that provide services of DataForSeo API \n\n For more information about client code generation, please follow to github",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"types": "main.d.ts",
|