dataforseo-client 1.0.8 → 1.0.9

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.
Files changed (5) hide show
  1. package/main.d.ts +497 -453
  2. package/main.js +405 -375
  3. package/main.js.map +1 -1
  4. package/main.ts +937 -863
  5. 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"] === "script") {
20664
- let result = new ScriptResourceElementItem();
20663
+ if (data["resource_type"] === "stylesheet") {
20664
+ let result = new StylesheetResourceElementItem();
20665
20665
  result.init(data);
20666
20666
  return result;
20667
20667
  }
20668
- if (data["resource_type"] === "stylesheet") {
20669
- let result = new StylesheetResourceElementItem();
20668
+ if (data["resource_type"] === "script") {
20669
+ let result = new ScriptResourceElementItem();
20670
20670
  result.init(data);
20671
20671
  return result;
20672
20672
  }
@@ -67126,7 +67126,8 @@ featured_snippet, images, local_pack, hotels_pack, organic, paid, people_also_as
67126
67126
  se_results_count?: number | undefined;
67127
67127
  /** the number of results returned in the items array */
67128
67128
  items_count?: number | undefined;
67129
- /** items featured in the faq_box */
67129
+ /** additional items present in the element
67130
+ if there are none, equals null */
67130
67131
  items?: (BaseSerpElementItem | undefined)[] | undefined;
67131
67132
 
67132
67133
  [key: string]: any;
@@ -67238,7 +67239,8 @@ featured_snippet, images, local_pack, hotels_pack, organic, paid, people_also_as
67238
67239
  se_results_count?: number | undefined;
67239
67240
  /** the number of results returned in the items array */
67240
67241
  items_count?: number | undefined;
67241
- /** items featured in the faq_box */
67242
+ /** additional items present in the element
67243
+ if there are none, equals null */
67242
67244
  items?: (BaseSerpElementItem | undefined)[] | undefined;
67243
67245
 
67244
67246
  [key: string]: any;
@@ -93607,7 +93609,7 @@ left, right */
93607
93609
  xpath?: string | undefined;
93608
93610
  /** title of the result in SERP */
93609
93611
  title?: string | undefined;
93610
- /** URL link */
93612
+ /** relevant URL of the Ad element in SERP */
93611
93613
  url?: string | undefined;
93612
93614
  /** elements of search results found in SERP */
93613
93615
  items?: (TwitterElement | undefined)[] | undefined;
@@ -93688,7 +93690,7 @@ left, right */
93688
93690
  xpath?: string | undefined;
93689
93691
  /** title of the result in SERP */
93690
93692
  title?: string | undefined;
93691
- /** URL link */
93693
+ /** relevant URL of the Ad element in SERP */
93692
93694
  url?: string | undefined;
93693
93695
  /** elements of search results found in SERP */
93694
93696
  items?: (TwitterElement | undefined)[] | undefined;
@@ -94227,7 +94229,7 @@ left, right */
94227
94229
  description?: string | undefined;
94228
94230
  /** card id */
94229
94231
  card_id?: string | undefined;
94230
- /** URL link */
94232
+ /** relevant URL of the Ad element in SERP */
94231
94233
  url?: string | undefined;
94232
94234
  /** URL of the image from knowledge graph */
94233
94235
  image_url?: string | undefined;
@@ -94332,7 +94334,7 @@ left, right */
94332
94334
  description?: string | undefined;
94333
94335
  /** card id */
94334
94336
  card_id?: string | undefined;
94335
- /** URL link */
94337
+ /** relevant URL of the Ad element in SERP */
94336
94338
  url?: string | undefined;
94337
94339
  /** URL of the image from knowledge graph */
94338
94340
  image_url?: string | undefined;
@@ -95394,7 +95396,7 @@ left, right */
95394
95396
  xpath?: string | undefined;
95395
95397
  /** title of the result in SERP */
95396
95398
  title?: string | undefined;
95397
- /** URL link */
95399
+ /** relevant URL of the Ad element in SERP */
95398
95400
  url?: string | undefined;
95399
95401
 
95400
95402
  [key: string]: any;
@@ -95459,7 +95461,7 @@ left, right */
95459
95461
  xpath?: string | undefined;
95460
95462
  /** title of the result in SERP */
95461
95463
  title?: string | undefined;
95462
- /** URL link */
95464
+ /** relevant URL of the Ad element in SERP */
95463
95465
  url?: string | undefined;
95464
95466
 
95465
95467
  [key: string]: any;
@@ -95510,7 +95512,7 @@ learn more about how the metric is calculated in this help center article */
95510
95512
  contains information about the ranking changes of the SERP element since the previous_updated_time */
95511
95513
  rank_changes?: RankChanges | undefined;
95512
95514
  /** backlinks information for the target website */
95513
- backlinks_info?: AvgBacklinksInfo | undefined;
95515
+ backlinks_info?: BacklinksInfo | undefined;
95514
95516
  /** page and domain rank information */
95515
95517
  rank_info?: RankInfo | undefined;
95516
95518
 
@@ -95544,7 +95546,7 @@ contains information about the ranking changes of the SERP element since the pre
95544
95546
  this.etv = _data["etv"];
95545
95547
  this.estimated_paid_traffic_cost = _data["estimated_paid_traffic_cost"];
95546
95548
  this.rank_changes = _data["rank_changes"] ? RankChanges.fromJS(_data["rank_changes"]) : <any>undefined;
95547
- this.backlinks_info = _data["backlinks_info"] ? AvgBacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
95549
+ this.backlinks_info = _data["backlinks_info"] ? BacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
95548
95550
  this.rank_info = _data["rank_info"] ? RankInfo.fromJS(_data["rank_info"]) : <any>undefined;
95549
95551
  }
95550
95552
  }
@@ -95630,7 +95632,7 @@ learn more about how the metric is calculated in this help center article */
95630
95632
  contains information about the ranking changes of the SERP element since the previous_updated_time */
95631
95633
  rank_changes?: RankChanges | undefined;
95632
95634
  /** backlinks information for the target website */
95633
- backlinks_info?: AvgBacklinksInfo | undefined;
95635
+ backlinks_info?: BacklinksInfo | undefined;
95634
95636
  /** page and domain rank information */
95635
95637
  rank_info?: RankInfo | undefined;
95636
95638
 
@@ -95658,7 +95660,7 @@ left, right */
95658
95660
  domain?: string | undefined;
95659
95661
  /** phone number */
95660
95662
  phone?: string | undefined;
95661
- /** URL link */
95663
+ /** relevant URL of the Ad element in SERP */
95662
95664
  url?: string | undefined;
95663
95665
  /** indicates whether the element is an ad */
95664
95666
  is_paid?: boolean | undefined;
@@ -95691,7 +95693,7 @@ Note: the changes are calculated even if the preceding month is not included in
95691
95693
  /** search engine type */
95692
95694
  se_type?: string | undefined;
95693
95695
  /** backlinks information for the target website */
95694
- backlinks_info?: AvgBacklinksInfo | undefined;
95696
+ backlinks_info?: BacklinksInfo | undefined;
95695
95697
  /** page and domain rank information */
95696
95698
  rank_info?: RankInfo | undefined;
95697
95699
 
@@ -95727,7 +95729,7 @@ Note: the changes are calculated even if the preceding month is not included in
95727
95729
  this.estimated_paid_traffic_cost = _data["estimated_paid_traffic_cost"];
95728
95730
  this.rank_changes = _data["rank_changes"] ? RankChanges.fromJS(_data["rank_changes"]) : <any>undefined;
95729
95731
  this.se_type = _data["se_type"];
95730
- this.backlinks_info = _data["backlinks_info"] ? AvgBacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
95732
+ this.backlinks_info = _data["backlinks_info"] ? BacklinksInfo.fromJS(_data["backlinks_info"]) : <any>undefined;
95731
95733
  this.rank_info = _data["rank_info"] ? RankInfo.fromJS(_data["rank_info"]) : <any>undefined;
95732
95734
  }
95733
95735
  }
@@ -95791,7 +95793,7 @@ left, right */
95791
95793
  domain?: string | undefined;
95792
95794
  /** phone number */
95793
95795
  phone?: string | undefined;
95794
- /** URL link */
95796
+ /** relevant URL of the Ad element in SERP */
95795
95797
  url?: string | undefined;
95796
95798
  /** indicates whether the element is an ad */
95797
95799
  is_paid?: boolean | undefined;
@@ -95824,7 +95826,7 @@ Note: the changes are calculated even if the preceding month is not included in
95824
95826
  /** search engine type */
95825
95827
  se_type?: string | undefined;
95826
95828
  /** backlinks information for the target website */
95827
- backlinks_info?: AvgBacklinksInfo | undefined;
95829
+ backlinks_info?: BacklinksInfo | undefined;
95828
95830
  /** page and domain rank information */
95829
95831
  rank_info?: RankInfo | undefined;
95830
95832
 
@@ -96404,7 +96406,7 @@ left, right */
96404
96406
  description?: string | undefined;
96405
96407
  /** breadcrumb of the Ad element in SERP */
96406
96408
  breadcrumb?: string | undefined;
96407
- /** URL link */
96409
+ /** relevant URL of the Ad element in SERP */
96408
96410
  url?: string | undefined;
96409
96411
  /** words highlighted in bold within the results description */
96410
96412
  highlighted?: (string | undefined)[] | undefined;
@@ -96581,7 +96583,7 @@ left, right */
96581
96583
  description?: string | undefined;
96582
96584
  /** breadcrumb of the Ad element in SERP */
96583
96585
  breadcrumb?: string | undefined;
96584
- /** URL link */
96586
+ /** relevant URL of the Ad element in SERP */
96585
96587
  url?: string | undefined;
96586
96588
  /** words highlighted in bold within the results description */
96587
96589
  highlighted?: (string | undefined)[] | undefined;
@@ -96838,7 +96840,7 @@ left, right */
96838
96840
  xpath?: string | undefined;
96839
96841
  /** title of the result in SERP */
96840
96842
  title?: string | undefined;
96841
- /** URL link */
96843
+ /** relevant URL of the Ad element in SERP */
96842
96844
  url?: string | undefined;
96843
96845
  /** elements of search results found in SERP */
96844
96846
  items?: (GoogleFlightsElement | undefined)[] | undefined;
@@ -96915,7 +96917,7 @@ left, right */
96915
96917
  xpath?: string | undefined;
96916
96918
  /** title of the result in SERP */
96917
96919
  title?: string | undefined;
96918
- /** URL link */
96920
+ /** relevant URL of the Ad element in SERP */
96919
96921
  url?: string | undefined;
96920
96922
  /** elements of search results found in SERP */
96921
96923
  items?: (GoogleFlightsElement | undefined)[] | undefined;
@@ -96938,7 +96940,7 @@ left, right */
96938
96940
  xpath?: string | undefined;
96939
96941
  /** title of the result in SERP */
96940
96942
  title?: string | undefined;
96941
- /** URL link */
96943
+ /** relevant URL of the Ad element in SERP */
96942
96944
  url?: string | undefined;
96943
96945
  /** elements of search results found in SERP */
96944
96946
  items?: (ImagesElement | undefined)[] | undefined;
@@ -97028,7 +97030,7 @@ left, right */
97028
97030
  xpath?: string | undefined;
97029
97031
  /** title of the result in SERP */
97030
97032
  title?: string | undefined;
97031
- /** URL link */
97033
+ /** relevant URL of the Ad element in SERP */
97032
97034
  url?: string | undefined;
97033
97035
  /** elements of search results found in SERP */
97034
97036
  items?: (ImagesElement | undefined)[] | undefined;
@@ -97148,7 +97150,7 @@ left, right */
97148
97150
  xpath?: string | undefined;
97149
97151
  /** title of the result in SERP */
97150
97152
  title?: string | undefined;
97151
- /** URL link */
97153
+ /** relevant URL of the Ad element in SERP */
97152
97154
  url?: string | undefined;
97153
97155
  /** elements of search results found in SERP */
97154
97156
  items?: (JobsElement | undefined)[] | undefined;
@@ -97225,7 +97227,7 @@ left, right */
97225
97227
  xpath?: string | undefined;
97226
97228
  /** title of the result in SERP */
97227
97229
  title?: string | undefined;
97228
- /** URL link */
97230
+ /** relevant URL of the Ad element in SERP */
97229
97231
  url?: string | undefined;
97230
97232
  /** elements of search results found in SERP */
97231
97233
  items?: (JobsElement | undefined)[] | undefined;
@@ -97248,7 +97250,7 @@ left, right */
97248
97250
  xpath?: string | undefined;
97249
97251
  /** title of the result in SERP */
97250
97252
  title?: string | undefined;
97251
- /** URL link */
97253
+ /** relevant URL of the Ad element in SERP */
97252
97254
  url?: string | undefined;
97253
97255
  /** elements of search results found in SERP */
97254
97256
  items?: (EventsElement | undefined)[] | undefined;
@@ -97325,7 +97327,7 @@ left, right */
97325
97327
  xpath?: string | undefined;
97326
97328
  /** title of the result in SERP */
97327
97329
  title?: string | undefined;
97328
- /** URL link */
97330
+ /** relevant URL of the Ad element in SERP */
97329
97331
  url?: string | undefined;
97330
97332
  /** elements of search results found in SERP */
97331
97333
  items?: (EventsElement | undefined)[] | undefined;
@@ -97624,7 +97626,7 @@ left, right */
97624
97626
  xpath?: string | undefined;
97625
97627
  /** title of the result in SERP */
97626
97628
  title?: string | undefined;
97627
- /** URL link */
97629
+ /** relevant URL of the Ad element in SERP */
97628
97630
  url?: string | undefined;
97629
97631
  /** elements of search results found in SERP */
97630
97632
  items?: (ScholarlyArticlesElement | undefined)[] | undefined;
@@ -97701,7 +97703,7 @@ left, right */
97701
97703
  xpath?: string | undefined;
97702
97704
  /** title of the result in SERP */
97703
97705
  title?: string | undefined;
97704
- /** URL link */
97706
+ /** relevant URL of the Ad element in SERP */
97705
97707
  url?: string | undefined;
97706
97708
  /** elements of search results found in SERP */
97707
97709
  items?: (ScholarlyArticlesElement | undefined)[] | undefined;
@@ -98083,7 +98085,7 @@ indicates the source of information included in the shopping_element */
98083
98085
  snippet?: string | undefined;
98084
98086
  /** price of the shopping element */
98085
98087
  price?: PriceInfo | undefined;
98086
- /** URL link */
98088
+ /** relevant URL of the Ad element in SERP */
98087
98089
  url?: string | undefined;
98088
98090
  /** domain where a link points */
98089
98091
  domain?: string | undefined;
@@ -98174,7 +98176,7 @@ indicates the source of information included in the shopping_element */
98174
98176
  snippet?: string | undefined;
98175
98177
  /** price of the shopping element */
98176
98178
  price?: PriceInfo | undefined;
98177
- /** URL link */
98179
+ /** relevant URL of the Ad element in SERP */
98178
98180
  url?: string | undefined;
98179
98181
  /** domain where a link points */
98180
98182
  domain?: string | undefined;
@@ -98384,7 +98386,7 @@ left, right */
98384
98386
  xpath?: string | undefined;
98385
98387
  /** title of the result in SERP */
98386
98388
  title?: string | undefined;
98387
- /** URL link */
98389
+ /** relevant URL of the Ad element in SERP */
98388
98390
  url?: string | undefined;
98389
98391
  /** domain where a link points */
98390
98392
  domain?: string | undefined;
@@ -98465,7 +98467,7 @@ left, right */
98465
98467
  xpath?: string | undefined;
98466
98468
  /** title of the result in SERP */
98467
98469
  title?: string | undefined;
98468
- /** URL link */
98470
+ /** relevant URL of the Ad element in SERP */
98469
98471
  url?: string | undefined;
98470
98472
  /** domain where a link points */
98471
98473
  domain?: string | undefined;
@@ -98492,7 +98494,7 @@ left, right */
98492
98494
  unique hotel identifier assigned by Google;
98493
98495
  example: "CgoIjaeSlI6CnNpVEAE" */
98494
98496
  hotel_identifier?: string | undefined;
98495
- /** URL link */
98497
+ /** relevant URL of the Ad element in SERP */
98496
98498
  url?: string | undefined;
98497
98499
 
98498
98500
  [key: string]: any;
@@ -98559,7 +98561,7 @@ left, right */
98559
98561
  unique hotel identifier assigned by Google;
98560
98562
  example: "CgoIjaeSlI6CnNpVEAE" */
98561
98563
  hotel_identifier?: string | undefined;
98562
- /** URL link */
98564
+ /** relevant URL of the Ad element in SERP */
98563
98565
  url?: string | undefined;
98564
98566
 
98565
98567
  [key: string]: any;
@@ -102584,214 +102586,6 @@ export interface IDataforseoLabsAmazonRankedKeywordsLiveItem {
102584
102586
  [key: string]: any;
102585
102587
  }
102586
102588
 
102587
- export class AmazonAmazonPaidSerpElementItem extends BaseAmazonSerpElementItem implements IAmazonAmazonPaidSerpElementItem {
102588
- /** search engine type */
102589
- se_type?: string | undefined;
102590
- /** position within a group of elements with identical type values
102591
- positions of elements with different type values are omitted from rank_group */
102592
- rank_group?: number | undefined;
102593
- /** absolute rank in Amazon SERP
102594
- absolute position among all the elements in SERP */
102595
- rank_absolute?: number | undefined;
102596
- /** the alignment of the element in Amazon SERP
102597
- can take the following values:
102598
- left, right */
102599
- position?: string | undefined;
102600
- /** the XPath of the element */
102601
- xpath?: string | undefined;
102602
- /** Amazon domain */
102603
- domain?: string | undefined;
102604
- /** product title */
102605
- title?: string | undefined;
102606
- /** URL of the product page */
102607
- url?: string | undefined;
102608
- /** ASIN of the product
102609
- learn more about ASIN in this help center guide */
102610
- asin?: string | undefined;
102611
- /** URL of the product image featured in the results */
102612
- image_url?: string | undefined;
102613
- /** the regular price of a product
102614
- example:
102615
- 49.98 */
102616
- price_from?: number | undefined;
102617
- /** the upper limit of the product price range
102618
- example:
102619
- 384.99 */
102620
- price_to?: number | undefined;
102621
- /** currency in the ISO format
102622
- example:
102623
- USD */
102624
- currency?: string | undefined;
102625
- /** special offer details
102626
- contains special offer details, including coupon and Subscribe & Save discounts */
102627
- special_offers?: (string | undefined)[] | undefined;
102628
- /** “Best Seller” label
102629
- if the value is true, the product is marked with the “Best Seller” label */
102630
- is_best_seller?: boolean | undefined;
102631
- /** “Amazon’s choice” label
102632
- if the value is true, the product is marked with the “Amazon’s choice” label */
102633
- is_amazon_choice?: boolean | undefined;
102634
- /** the item’s rating
102635
- the popularity rate based on reviews and displayed in SERP */
102636
- rating?: RatingInfo | undefined;
102637
- /** delivery information
102638
- delivery information including free and fast delivery date ranges */
102639
- delivery_info?: AmazonDeliveryInfo | undefined;
102640
- /** number of product purchases in the past month */
102641
- bought_past_month?: number | undefined;
102642
- /** unique product identifier on Amazon
102643
- note that there is no full list of possible values as the data_asin is a dynamic value assigned by Amazon
102644
- example:
102645
- B07G82D89J */
102646
- data_asin?: string | undefined;
102647
-
102648
- [key: string]: any;
102649
-
102650
- constructor(data?: IAmazonAmazonPaidSerpElementItem) {
102651
- super(data);
102652
- this._discriminator = "amazon_paid";
102653
- }
102654
-
102655
- init(_data?: any) {
102656
- super.init(_data);
102657
- if (_data) {
102658
- for (var property in _data) {
102659
- if (_data.hasOwnProperty(property))
102660
- this[property] = _data[property];
102661
- }
102662
- this.se_type = _data["se_type"];
102663
- this.rank_group = _data["rank_group"];
102664
- this.rank_absolute = _data["rank_absolute"];
102665
- this.position = _data["position"];
102666
- this.xpath = _data["xpath"];
102667
- this.domain = _data["domain"];
102668
- this.title = _data["title"];
102669
- this.url = _data["url"];
102670
- this.asin = _data["asin"];
102671
- this.image_url = _data["image_url"];
102672
- this.price_from = _data["price_from"];
102673
- this.price_to = _data["price_to"];
102674
- this.currency = _data["currency"];
102675
- if (Array.isArray(_data["special_offers"])) {
102676
- this.special_offers = [] as any;
102677
- for (let item of _data["special_offers"])
102678
- this.special_offers!.push(item);
102679
- }
102680
- this.is_best_seller = _data["is_best_seller"];
102681
- this.is_amazon_choice = _data["is_amazon_choice"];
102682
- this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
102683
- this.delivery_info = _data["delivery_info"] ? AmazonDeliveryInfo.fromJS(_data["delivery_info"]) : <any>undefined;
102684
- this.bought_past_month = _data["bought_past_month"];
102685
- this.data_asin = _data["data_asin"];
102686
- }
102687
- }
102688
-
102689
- static fromJS(data: any): AmazonAmazonPaidSerpElementItem {
102690
- data = typeof data === 'object' ? data : {};
102691
- let result = new AmazonAmazonPaidSerpElementItem();
102692
- result.init(data);
102693
- return result;
102694
- }
102695
-
102696
- toJSON(data?: any) {
102697
- data = typeof data === 'object' ? data : {};
102698
- for (var property in this) {
102699
- if (this.hasOwnProperty(property))
102700
- data[property] = this[property];
102701
- }
102702
- data["se_type"] = this.se_type;
102703
- data["rank_group"] = this.rank_group;
102704
- data["rank_absolute"] = this.rank_absolute;
102705
- data["position"] = this.position;
102706
- data["xpath"] = this.xpath;
102707
- data["domain"] = this.domain;
102708
- data["title"] = this.title;
102709
- data["url"] = this.url;
102710
- data["asin"] = this.asin;
102711
- data["image_url"] = this.image_url;
102712
- data["price_from"] = this.price_from;
102713
- data["price_to"] = this.price_to;
102714
- data["currency"] = this.currency;
102715
- if (Array.isArray(this.special_offers)) {
102716
- data["special_offers"] = [];
102717
- for (let item of this.special_offers)
102718
- data["special_offers"].push(item);
102719
- }
102720
- data["is_best_seller"] = this.is_best_seller;
102721
- data["is_amazon_choice"] = this.is_amazon_choice;
102722
- data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
102723
- data["delivery_info"] = this.delivery_info ? this.delivery_info.toJSON() : <any>undefined;
102724
- data["bought_past_month"] = this.bought_past_month;
102725
- data["data_asin"] = this.data_asin;
102726
- super.toJSON(data);
102727
- return data;
102728
- }
102729
- }
102730
-
102731
- export interface IAmazonAmazonPaidSerpElementItem extends IBaseAmazonSerpElementItem {
102732
- /** search engine type */
102733
- se_type?: string | undefined;
102734
- /** position within a group of elements with identical type values
102735
- positions of elements with different type values are omitted from rank_group */
102736
- rank_group?: number | undefined;
102737
- /** absolute rank in Amazon SERP
102738
- absolute position among all the elements in SERP */
102739
- rank_absolute?: number | undefined;
102740
- /** the alignment of the element in Amazon SERP
102741
- can take the following values:
102742
- left, right */
102743
- position?: string | undefined;
102744
- /** the XPath of the element */
102745
- xpath?: string | undefined;
102746
- /** Amazon domain */
102747
- domain?: string | undefined;
102748
- /** product title */
102749
- title?: string | undefined;
102750
- /** URL of the product page */
102751
- url?: string | undefined;
102752
- /** ASIN of the product
102753
- learn more about ASIN in this help center guide */
102754
- asin?: string | undefined;
102755
- /** URL of the product image featured in the results */
102756
- image_url?: string | undefined;
102757
- /** the regular price of a product
102758
- example:
102759
- 49.98 */
102760
- price_from?: number | undefined;
102761
- /** the upper limit of the product price range
102762
- example:
102763
- 384.99 */
102764
- price_to?: number | undefined;
102765
- /** currency in the ISO format
102766
- example:
102767
- USD */
102768
- currency?: string | undefined;
102769
- /** special offer details
102770
- contains special offer details, including coupon and Subscribe & Save discounts */
102771
- special_offers?: (string | undefined)[] | undefined;
102772
- /** “Best Seller” label
102773
- if the value is true, the product is marked with the “Best Seller” label */
102774
- is_best_seller?: boolean | undefined;
102775
- /** “Amazon’s choice” label
102776
- if the value is true, the product is marked with the “Amazon’s choice” label */
102777
- is_amazon_choice?: boolean | undefined;
102778
- /** the item’s rating
102779
- the popularity rate based on reviews and displayed in SERP */
102780
- rating?: RatingInfo | undefined;
102781
- /** delivery information
102782
- delivery information including free and fast delivery date ranges */
102783
- delivery_info?: AmazonDeliveryInfo | undefined;
102784
- /** number of product purchases in the past month */
102785
- bought_past_month?: number | undefined;
102786
- /** unique product identifier on Amazon
102787
- note that there is no full list of possible values as the data_asin is a dynamic value assigned by Amazon
102788
- example:
102789
- B07G82D89J */
102790
- data_asin?: string | undefined;
102791
-
102792
- [key: string]: any;
102793
- }
102794
-
102795
102589
  export class DataforseoLabsAmazonRankedKeywordsLiveResultInfo implements IDataforseoLabsAmazonRankedKeywordsLiveResultInfo {
102796
102590
  /** search engine type */
102797
102591
  se_type?: string | undefined;
@@ -123159,6 +122953,181 @@ the data included in the google_trends_graph element is based on the keywords li
123159
122953
  [key: string]: any;
123160
122954
  }
123161
122955
 
122956
+ export class KeywordsDataGoogleTrendsExploreTaskGetResultInfo implements IKeywordsDataGoogleTrendsExploreTaskGetResultInfo {
122957
+ /** keywords in a POST array */
122958
+ keywords?: (string | undefined)[] | undefined;
122959
+ /** type of element */
122960
+ type?: string | undefined;
122961
+ /** location code in a POST array
122962
+ if there is no data, then the value is null */
122963
+ location_code?: number | undefined;
122964
+ /** language code in a POST array
122965
+ if there is no data, then the value is null */
122966
+ language_code?: string | undefined;
122967
+ /** direct URL to the Google Trends results
122968
+ you can use it to make sure that we provided accurate results */
122969
+ check_url?: string | undefined;
122970
+ /** date and time when the result was received
122971
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
122972
+ example:
122973
+ 2019-11-15 12:57:46 +00:00 */
122974
+ datetime?: string | undefined;
122975
+ /** the number of results returned in the items array */
122976
+ items_count?: number | undefined;
122977
+ /** items on the Google Trends page */
122978
+ items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
122979
+
122980
+ [key: string]: any;
122981
+
122982
+ constructor(data?: IKeywordsDataGoogleTrendsExploreTaskGetResultInfo) {
122983
+ if (data) {
122984
+ for (var property in data) {
122985
+ if (data.hasOwnProperty(property))
122986
+ (<any>this)[property] = (<any>data)[property];
122987
+ }
122988
+ }
122989
+ }
122990
+
122991
+ init(_data?: any) {
122992
+ if (_data) {
122993
+ for (var property in _data) {
122994
+ if (_data.hasOwnProperty(property))
122995
+ this[property] = _data[property];
122996
+ }
122997
+ if (Array.isArray(_data["keywords"])) {
122998
+ this.keywords = [] as any;
122999
+ for (let item of _data["keywords"])
123000
+ this.keywords!.push(item);
123001
+ }
123002
+ this.type = _data["type"];
123003
+ this.location_code = _data["location_code"];
123004
+ this.language_code = _data["language_code"];
123005
+ this.check_url = _data["check_url"];
123006
+ this.datetime = _data["datetime"];
123007
+ this.items_count = _data["items_count"];
123008
+ if (Array.isArray(_data["items"])) {
123009
+ this.items = [] as any;
123010
+ for (let item of _data["items"])
123011
+ this.items!.push(BaseGoogleTrendsItem.fromJS(item));
123012
+ }
123013
+ }
123014
+ }
123015
+
123016
+ static fromJS(data: any): KeywordsDataGoogleTrendsExploreTaskGetResultInfo {
123017
+ data = typeof data === 'object' ? data : {};
123018
+ let result = new KeywordsDataGoogleTrendsExploreTaskGetResultInfo();
123019
+ result.init(data);
123020
+ return result;
123021
+ }
123022
+
123023
+ toJSON(data?: any) {
123024
+ data = typeof data === 'object' ? data : {};
123025
+ for (var property in this) {
123026
+ if (this.hasOwnProperty(property))
123027
+ data[property] = this[property];
123028
+ }
123029
+ if (Array.isArray(this.keywords)) {
123030
+ data["keywords"] = [];
123031
+ for (let item of this.keywords)
123032
+ data["keywords"].push(item);
123033
+ }
123034
+ data["type"] = this.type;
123035
+ data["location_code"] = this.location_code;
123036
+ data["language_code"] = this.language_code;
123037
+ data["check_url"] = this.check_url;
123038
+ data["datetime"] = this.datetime;
123039
+ data["items_count"] = this.items_count;
123040
+ if (Array.isArray(this.items)) {
123041
+ data["items"] = [];
123042
+ for (let item of this.items)
123043
+ data["items"].push(item.toJSON());
123044
+ }
123045
+ return data;
123046
+ }
123047
+ }
123048
+
123049
+ export interface IKeywordsDataGoogleTrendsExploreTaskGetResultInfo {
123050
+ /** keywords in a POST array */
123051
+ keywords?: (string | undefined)[] | undefined;
123052
+ /** type of element */
123053
+ type?: string | undefined;
123054
+ /** location code in a POST array
123055
+ if there is no data, then the value is null */
123056
+ location_code?: number | undefined;
123057
+ /** language code in a POST array
123058
+ if there is no data, then the value is null */
123059
+ language_code?: string | undefined;
123060
+ /** direct URL to the Google Trends results
123061
+ you can use it to make sure that we provided accurate results */
123062
+ check_url?: string | undefined;
123063
+ /** date and time when the result was received
123064
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
123065
+ example:
123066
+ 2019-11-15 12:57:46 +00:00 */
123067
+ datetime?: string | undefined;
123068
+ /** the number of results returned in the items array */
123069
+ items_count?: number | undefined;
123070
+ /** items on the Google Trends page */
123071
+ items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
123072
+
123073
+ [key: string]: any;
123074
+ }
123075
+
123076
+ export class KeywordsDataGoogleTrendsExploreTaskGetTaskInfo extends BaseResponseTaskInfo implements IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo {
123077
+ /** array of results */
123078
+ result?: (KeywordsDataGoogleTrendsExploreTaskGetResultInfo | undefined)[] | undefined;
123079
+
123080
+ [key: string]: any;
123081
+
123082
+ constructor(data?: IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo) {
123083
+ super(data);
123084
+ }
123085
+
123086
+ init(_data?: any) {
123087
+ super.init(_data);
123088
+ if (_data) {
123089
+ for (var property in _data) {
123090
+ if (_data.hasOwnProperty(property))
123091
+ this[property] = _data[property];
123092
+ }
123093
+ if (Array.isArray(_data["result"])) {
123094
+ this.result = [] as any;
123095
+ for (let item of _data["result"])
123096
+ this.result!.push(KeywordsDataGoogleTrendsExploreTaskGetResultInfo.fromJS(item));
123097
+ }
123098
+ }
123099
+ }
123100
+
123101
+ static fromJS(data: any): KeywordsDataGoogleTrendsExploreTaskGetTaskInfo {
123102
+ data = typeof data === 'object' ? data : {};
123103
+ let result = new KeywordsDataGoogleTrendsExploreTaskGetTaskInfo();
123104
+ result.init(data);
123105
+ return result;
123106
+ }
123107
+
123108
+ toJSON(data?: any) {
123109
+ data = typeof data === 'object' ? data : {};
123110
+ for (var property in this) {
123111
+ if (this.hasOwnProperty(property))
123112
+ data[property] = this[property];
123113
+ }
123114
+ if (Array.isArray(this.result)) {
123115
+ data["result"] = [];
123116
+ for (let item of this.result)
123117
+ data["result"].push(item.toJSON());
123118
+ }
123119
+ super.toJSON(data);
123120
+ return data;
123121
+ }
123122
+ }
123123
+
123124
+ export interface IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo extends IBaseResponseTaskInfo {
123125
+ /** array of results */
123126
+ result?: (KeywordsDataGoogleTrendsExploreTaskGetResultInfo | undefined)[] | undefined;
123127
+
123128
+ [key: string]: any;
123129
+ }
123130
+
123162
123131
  export class TrendsMapDataInfo implements ITrendsMapDataInfo {
123163
123132
  /** Google Trends location identifier
123164
123133
  you can use this field for matching obtained results with location parameters specified in the request
@@ -123174,7 +123143,7 @@ if you specify more than one keyword, the values will be averaged to the highest
123174
123143
  a value of 100 is the peak popularity for the term
123175
123144
  a value of 50 means that the term is half as popular
123176
123145
  a value of 0 means there was not enough data for this term */
123177
- values?: (number | undefined)[] | undefined;
123146
+ values?: (any | undefined)[] | undefined;
123178
123147
  /** max value among comparable terms
123179
123148
  represents the maximum value if you specified more than two keywords in a POST array
123180
123149
  if you specified only one keyword, the value will be null */
@@ -123248,7 +123217,7 @@ if you specify more than one keyword, the values will be averaged to the highest
123248
123217
  a value of 100 is the peak popularity for the term
123249
123218
  a value of 50 means that the term is half as popular
123250
123219
  a value of 0 means there was not enough data for this term */
123251
- values?: (number | undefined)[] | undefined;
123220
+ values?: (any | undefined)[] | undefined;
123252
123221
  /** max value among comparable terms
123253
123222
  represents the maximum value if you specified more than two keywords in a POST array
123254
123223
  if you specified only one keyword, the value will be null */
@@ -123343,181 +123312,6 @@ the data included in the google_trends_map element is based on the keywords list
123343
123312
  [key: string]: any;
123344
123313
  }
123345
123314
 
123346
- export class KeywordsDataGoogleTrendsExploreTaskGetResultInfo implements IKeywordsDataGoogleTrendsExploreTaskGetResultInfo {
123347
- /** keywords in a POST array */
123348
- keywords?: (string | undefined)[] | undefined;
123349
- /** type of element */
123350
- type?: string | undefined;
123351
- /** location code in a POST array
123352
- if there is no data, then the value is null */
123353
- location_code?: number | undefined;
123354
- /** language code in a POST array
123355
- if there is no data, then the value is null */
123356
- language_code?: string | undefined;
123357
- /** direct URL to the Google Trends results
123358
- you can use it to make sure that we provided accurate results */
123359
- check_url?: string | undefined;
123360
- /** date and time when the result was received
123361
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
123362
- example:
123363
- 2019-11-15 12:57:46 +00:00 */
123364
- datetime?: string | undefined;
123365
- /** the number of results returned in the items array */
123366
- items_count?: number | undefined;
123367
- /** items on the Google Trends page */
123368
- items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
123369
-
123370
- [key: string]: any;
123371
-
123372
- constructor(data?: IKeywordsDataGoogleTrendsExploreTaskGetResultInfo) {
123373
- if (data) {
123374
- for (var property in data) {
123375
- if (data.hasOwnProperty(property))
123376
- (<any>this)[property] = (<any>data)[property];
123377
- }
123378
- }
123379
- }
123380
-
123381
- init(_data?: any) {
123382
- if (_data) {
123383
- for (var property in _data) {
123384
- if (_data.hasOwnProperty(property))
123385
- this[property] = _data[property];
123386
- }
123387
- if (Array.isArray(_data["keywords"])) {
123388
- this.keywords = [] as any;
123389
- for (let item of _data["keywords"])
123390
- this.keywords!.push(item);
123391
- }
123392
- this.type = _data["type"];
123393
- this.location_code = _data["location_code"];
123394
- this.language_code = _data["language_code"];
123395
- this.check_url = _data["check_url"];
123396
- this.datetime = _data["datetime"];
123397
- this.items_count = _data["items_count"];
123398
- if (Array.isArray(_data["items"])) {
123399
- this.items = [] as any;
123400
- for (let item of _data["items"])
123401
- this.items!.push(BaseGoogleTrendsItem.fromJS(item));
123402
- }
123403
- }
123404
- }
123405
-
123406
- static fromJS(data: any): KeywordsDataGoogleTrendsExploreTaskGetResultInfo {
123407
- data = typeof data === 'object' ? data : {};
123408
- let result = new KeywordsDataGoogleTrendsExploreTaskGetResultInfo();
123409
- result.init(data);
123410
- return result;
123411
- }
123412
-
123413
- toJSON(data?: any) {
123414
- data = typeof data === 'object' ? data : {};
123415
- for (var property in this) {
123416
- if (this.hasOwnProperty(property))
123417
- data[property] = this[property];
123418
- }
123419
- if (Array.isArray(this.keywords)) {
123420
- data["keywords"] = [];
123421
- for (let item of this.keywords)
123422
- data["keywords"].push(item);
123423
- }
123424
- data["type"] = this.type;
123425
- data["location_code"] = this.location_code;
123426
- data["language_code"] = this.language_code;
123427
- data["check_url"] = this.check_url;
123428
- data["datetime"] = this.datetime;
123429
- data["items_count"] = this.items_count;
123430
- if (Array.isArray(this.items)) {
123431
- data["items"] = [];
123432
- for (let item of this.items)
123433
- data["items"].push(item.toJSON());
123434
- }
123435
- return data;
123436
- }
123437
- }
123438
-
123439
- export interface IKeywordsDataGoogleTrendsExploreTaskGetResultInfo {
123440
- /** keywords in a POST array */
123441
- keywords?: (string | undefined)[] | undefined;
123442
- /** type of element */
123443
- type?: string | undefined;
123444
- /** location code in a POST array
123445
- if there is no data, then the value is null */
123446
- location_code?: number | undefined;
123447
- /** language code in a POST array
123448
- if there is no data, then the value is null */
123449
- language_code?: string | undefined;
123450
- /** direct URL to the Google Trends results
123451
- you can use it to make sure that we provided accurate results */
123452
- check_url?: string | undefined;
123453
- /** date and time when the result was received
123454
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
123455
- example:
123456
- 2019-11-15 12:57:46 +00:00 */
123457
- datetime?: string | undefined;
123458
- /** the number of results returned in the items array */
123459
- items_count?: number | undefined;
123460
- /** items on the Google Trends page */
123461
- items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
123462
-
123463
- [key: string]: any;
123464
- }
123465
-
123466
- export class KeywordsDataGoogleTrendsExploreTaskGetTaskInfo extends BaseResponseTaskInfo implements IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo {
123467
- /** array of results */
123468
- result?: (KeywordsDataGoogleTrendsExploreTaskGetResultInfo | undefined)[] | undefined;
123469
-
123470
- [key: string]: any;
123471
-
123472
- constructor(data?: IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo) {
123473
- super(data);
123474
- }
123475
-
123476
- init(_data?: any) {
123477
- super.init(_data);
123478
- if (_data) {
123479
- for (var property in _data) {
123480
- if (_data.hasOwnProperty(property))
123481
- this[property] = _data[property];
123482
- }
123483
- if (Array.isArray(_data["result"])) {
123484
- this.result = [] as any;
123485
- for (let item of _data["result"])
123486
- this.result!.push(KeywordsDataGoogleTrendsExploreTaskGetResultInfo.fromJS(item));
123487
- }
123488
- }
123489
- }
123490
-
123491
- static fromJS(data: any): KeywordsDataGoogleTrendsExploreTaskGetTaskInfo {
123492
- data = typeof data === 'object' ? data : {};
123493
- let result = new KeywordsDataGoogleTrendsExploreTaskGetTaskInfo();
123494
- result.init(data);
123495
- return result;
123496
- }
123497
-
123498
- toJSON(data?: any) {
123499
- data = typeof data === 'object' ? data : {};
123500
- for (var property in this) {
123501
- if (this.hasOwnProperty(property))
123502
- data[property] = this[property];
123503
- }
123504
- if (Array.isArray(this.result)) {
123505
- data["result"] = [];
123506
- for (let item of this.result)
123507
- data["result"].push(item.toJSON());
123508
- }
123509
- super.toJSON(data);
123510
- return data;
123511
- }
123512
- }
123513
-
123514
- export interface IKeywordsDataGoogleTrendsExploreTaskGetTaskInfo extends IBaseResponseTaskInfo {
123515
- /** array of results */
123516
- result?: (KeywordsDataGoogleTrendsExploreTaskGetResultInfo | undefined)[] | undefined;
123517
-
123518
- [key: string]: any;
123519
- }
123520
-
123521
123315
  export class QueriesListDataItemInfo implements IQueriesListDataItemInfo {
123522
123316
  /** related query */
123523
123317
  query?: string | undefined;
@@ -124047,6 +123841,181 @@ you will find the specified tag value in the data object of the response */
124047
123841
  [key: string]: any;
124048
123842
  }
124049
123843
 
123844
+ export class KeywordsDataGoogleTrendsExploreLiveResultInfo implements IKeywordsDataGoogleTrendsExploreLiveResultInfo {
123845
+ /** keywords in a POST array */
123846
+ keywords?: (string | undefined)[] | undefined;
123847
+ /** type of element */
123848
+ type?: string | undefined;
123849
+ /** location code in a POST array
123850
+ if there is no data, then the value is null */
123851
+ location_code?: number | undefined;
123852
+ /** language code in a POST array
123853
+ if there is no data, then the value is null */
123854
+ language_code?: string | undefined;
123855
+ /** direct URL to the Google Trends results
123856
+ you can use it to make sure that we provided accurate results */
123857
+ check_url?: string | undefined;
123858
+ /** date and time when the result was received
123859
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
123860
+ example:
123861
+ 2019-11-15 12:57:46 +00:00 */
123862
+ datetime?: string | undefined;
123863
+ /** the number of results returned in the items array */
123864
+ items_count?: number | undefined;
123865
+ /** items on the Google Trends page */
123866
+ items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
123867
+
123868
+ [key: string]: any;
123869
+
123870
+ constructor(data?: IKeywordsDataGoogleTrendsExploreLiveResultInfo) {
123871
+ if (data) {
123872
+ for (var property in data) {
123873
+ if (data.hasOwnProperty(property))
123874
+ (<any>this)[property] = (<any>data)[property];
123875
+ }
123876
+ }
123877
+ }
123878
+
123879
+ init(_data?: any) {
123880
+ if (_data) {
123881
+ for (var property in _data) {
123882
+ if (_data.hasOwnProperty(property))
123883
+ this[property] = _data[property];
123884
+ }
123885
+ if (Array.isArray(_data["keywords"])) {
123886
+ this.keywords = [] as any;
123887
+ for (let item of _data["keywords"])
123888
+ this.keywords!.push(item);
123889
+ }
123890
+ this.type = _data["type"];
123891
+ this.location_code = _data["location_code"];
123892
+ this.language_code = _data["language_code"];
123893
+ this.check_url = _data["check_url"];
123894
+ this.datetime = _data["datetime"];
123895
+ this.items_count = _data["items_count"];
123896
+ if (Array.isArray(_data["items"])) {
123897
+ this.items = [] as any;
123898
+ for (let item of _data["items"])
123899
+ this.items!.push(BaseGoogleTrendsItem.fromJS(item));
123900
+ }
123901
+ }
123902
+ }
123903
+
123904
+ static fromJS(data: any): KeywordsDataGoogleTrendsExploreLiveResultInfo {
123905
+ data = typeof data === 'object' ? data : {};
123906
+ let result = new KeywordsDataGoogleTrendsExploreLiveResultInfo();
123907
+ result.init(data);
123908
+ return result;
123909
+ }
123910
+
123911
+ toJSON(data?: any) {
123912
+ data = typeof data === 'object' ? data : {};
123913
+ for (var property in this) {
123914
+ if (this.hasOwnProperty(property))
123915
+ data[property] = this[property];
123916
+ }
123917
+ if (Array.isArray(this.keywords)) {
123918
+ data["keywords"] = [];
123919
+ for (let item of this.keywords)
123920
+ data["keywords"].push(item);
123921
+ }
123922
+ data["type"] = this.type;
123923
+ data["location_code"] = this.location_code;
123924
+ data["language_code"] = this.language_code;
123925
+ data["check_url"] = this.check_url;
123926
+ data["datetime"] = this.datetime;
123927
+ data["items_count"] = this.items_count;
123928
+ if (Array.isArray(this.items)) {
123929
+ data["items"] = [];
123930
+ for (let item of this.items)
123931
+ data["items"].push(item.toJSON());
123932
+ }
123933
+ return data;
123934
+ }
123935
+ }
123936
+
123937
+ export interface IKeywordsDataGoogleTrendsExploreLiveResultInfo {
123938
+ /** keywords in a POST array */
123939
+ keywords?: (string | undefined)[] | undefined;
123940
+ /** type of element */
123941
+ type?: string | undefined;
123942
+ /** location code in a POST array
123943
+ if there is no data, then the value is null */
123944
+ location_code?: number | undefined;
123945
+ /** language code in a POST array
123946
+ if there is no data, then the value is null */
123947
+ language_code?: string | undefined;
123948
+ /** direct URL to the Google Trends results
123949
+ you can use it to make sure that we provided accurate results */
123950
+ check_url?: string | undefined;
123951
+ /** date and time when the result was received
123952
+ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
123953
+ example:
123954
+ 2019-11-15 12:57:46 +00:00 */
123955
+ datetime?: string | undefined;
123956
+ /** the number of results returned in the items array */
123957
+ items_count?: number | undefined;
123958
+ /** items on the Google Trends page */
123959
+ items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
123960
+
123961
+ [key: string]: any;
123962
+ }
123963
+
123964
+ export class KeywordsDataGoogleTrendsExploreLiveTaskInfo extends BaseResponseTaskInfo implements IKeywordsDataGoogleTrendsExploreLiveTaskInfo {
123965
+ /** array of results */
123966
+ result?: (KeywordsDataGoogleTrendsExploreLiveResultInfo | undefined)[] | undefined;
123967
+
123968
+ [key: string]: any;
123969
+
123970
+ constructor(data?: IKeywordsDataGoogleTrendsExploreLiveTaskInfo) {
123971
+ super(data);
123972
+ }
123973
+
123974
+ init(_data?: any) {
123975
+ super.init(_data);
123976
+ if (_data) {
123977
+ for (var property in _data) {
123978
+ if (_data.hasOwnProperty(property))
123979
+ this[property] = _data[property];
123980
+ }
123981
+ if (Array.isArray(_data["result"])) {
123982
+ this.result = [] as any;
123983
+ for (let item of _data["result"])
123984
+ this.result!.push(KeywordsDataGoogleTrendsExploreLiveResultInfo.fromJS(item));
123985
+ }
123986
+ }
123987
+ }
123988
+
123989
+ static fromJS(data: any): KeywordsDataGoogleTrendsExploreLiveTaskInfo {
123990
+ data = typeof data === 'object' ? data : {};
123991
+ let result = new KeywordsDataGoogleTrendsExploreLiveTaskInfo();
123992
+ result.init(data);
123993
+ return result;
123994
+ }
123995
+
123996
+ toJSON(data?: any) {
123997
+ data = typeof data === 'object' ? data : {};
123998
+ for (var property in this) {
123999
+ if (this.hasOwnProperty(property))
124000
+ data[property] = this[property];
124001
+ }
124002
+ if (Array.isArray(this.result)) {
124003
+ data["result"] = [];
124004
+ for (let item of this.result)
124005
+ data["result"].push(item.toJSON());
124006
+ }
124007
+ super.toJSON(data);
124008
+ return data;
124009
+ }
124010
+ }
124011
+
124012
+ export interface IKeywordsDataGoogleTrendsExploreLiveTaskInfo extends IBaseResponseTaskInfo {
124013
+ /** array of results */
124014
+ result?: (KeywordsDataGoogleTrendsExploreLiveResultInfo | undefined)[] | undefined;
124015
+
124016
+ [key: string]: any;
124017
+ }
124018
+
124050
124019
  export class TopicListDataItemInfo implements ITopicListDataItemInfo {
124051
124020
  /** unique topic identifier in Google Trends */
124052
124021
  topic_id?: string | undefined;
@@ -124273,181 +124242,6 @@ the data included in the google_trends_topics_list element is based on the keywo
124273
124242
  [key: string]: any;
124274
124243
  }
124275
124244
 
124276
- export class KeywordsDataGoogleTrendsExploreLiveResultInfo implements IKeywordsDataGoogleTrendsExploreLiveResultInfo {
124277
- /** keywords in a POST array */
124278
- keywords?: (string | undefined)[] | undefined;
124279
- /** type of element */
124280
- type?: string | undefined;
124281
- /** location code in a POST array
124282
- if there is no data, then the value is null */
124283
- location_code?: number | undefined;
124284
- /** language code in a POST array
124285
- if there is no data, then the value is null */
124286
- language_code?: string | undefined;
124287
- /** direct URL to the Google Trends results
124288
- you can use it to make sure that we provided accurate results */
124289
- check_url?: string | undefined;
124290
- /** date and time when the result was received
124291
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
124292
- example:
124293
- 2019-11-15 12:57:46 +00:00 */
124294
- datetime?: string | undefined;
124295
- /** the number of results returned in the items array */
124296
- items_count?: number | undefined;
124297
- /** items on the Google Trends page */
124298
- items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
124299
-
124300
- [key: string]: any;
124301
-
124302
- constructor(data?: IKeywordsDataGoogleTrendsExploreLiveResultInfo) {
124303
- if (data) {
124304
- for (var property in data) {
124305
- if (data.hasOwnProperty(property))
124306
- (<any>this)[property] = (<any>data)[property];
124307
- }
124308
- }
124309
- }
124310
-
124311
- init(_data?: any) {
124312
- if (_data) {
124313
- for (var property in _data) {
124314
- if (_data.hasOwnProperty(property))
124315
- this[property] = _data[property];
124316
- }
124317
- if (Array.isArray(_data["keywords"])) {
124318
- this.keywords = [] as any;
124319
- for (let item of _data["keywords"])
124320
- this.keywords!.push(item);
124321
- }
124322
- this.type = _data["type"];
124323
- this.location_code = _data["location_code"];
124324
- this.language_code = _data["language_code"];
124325
- this.check_url = _data["check_url"];
124326
- this.datetime = _data["datetime"];
124327
- this.items_count = _data["items_count"];
124328
- if (Array.isArray(_data["items"])) {
124329
- this.items = [] as any;
124330
- for (let item of _data["items"])
124331
- this.items!.push(BaseGoogleTrendsItem.fromJS(item));
124332
- }
124333
- }
124334
- }
124335
-
124336
- static fromJS(data: any): KeywordsDataGoogleTrendsExploreLiveResultInfo {
124337
- data = typeof data === 'object' ? data : {};
124338
- let result = new KeywordsDataGoogleTrendsExploreLiveResultInfo();
124339
- result.init(data);
124340
- return result;
124341
- }
124342
-
124343
- toJSON(data?: any) {
124344
- data = typeof data === 'object' ? data : {};
124345
- for (var property in this) {
124346
- if (this.hasOwnProperty(property))
124347
- data[property] = this[property];
124348
- }
124349
- if (Array.isArray(this.keywords)) {
124350
- data["keywords"] = [];
124351
- for (let item of this.keywords)
124352
- data["keywords"].push(item);
124353
- }
124354
- data["type"] = this.type;
124355
- data["location_code"] = this.location_code;
124356
- data["language_code"] = this.language_code;
124357
- data["check_url"] = this.check_url;
124358
- data["datetime"] = this.datetime;
124359
- data["items_count"] = this.items_count;
124360
- if (Array.isArray(this.items)) {
124361
- data["items"] = [];
124362
- for (let item of this.items)
124363
- data["items"].push(item.toJSON());
124364
- }
124365
- return data;
124366
- }
124367
- }
124368
-
124369
- export interface IKeywordsDataGoogleTrendsExploreLiveResultInfo {
124370
- /** keywords in a POST array */
124371
- keywords?: (string | undefined)[] | undefined;
124372
- /** type of element */
124373
- type?: string | undefined;
124374
- /** location code in a POST array
124375
- if there is no data, then the value is null */
124376
- location_code?: number | undefined;
124377
- /** language code in a POST array
124378
- if there is no data, then the value is null */
124379
- language_code?: string | undefined;
124380
- /** direct URL to the Google Trends results
124381
- you can use it to make sure that we provided accurate results */
124382
- check_url?: string | undefined;
124383
- /** date and time when the result was received
124384
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
124385
- example:
124386
- 2019-11-15 12:57:46 +00:00 */
124387
- datetime?: string | undefined;
124388
- /** the number of results returned in the items array */
124389
- items_count?: number | undefined;
124390
- /** items on the Google Trends page */
124391
- items?: (BaseGoogleTrendsItem | undefined)[] | undefined;
124392
-
124393
- [key: string]: any;
124394
- }
124395
-
124396
- export class KeywordsDataGoogleTrendsExploreLiveTaskInfo extends BaseResponseTaskInfo implements IKeywordsDataGoogleTrendsExploreLiveTaskInfo {
124397
- /** array of results */
124398
- result?: (KeywordsDataGoogleTrendsExploreLiveResultInfo | undefined)[] | undefined;
124399
-
124400
- [key: string]: any;
124401
-
124402
- constructor(data?: IKeywordsDataGoogleTrendsExploreLiveTaskInfo) {
124403
- super(data);
124404
- }
124405
-
124406
- init(_data?: any) {
124407
- super.init(_data);
124408
- if (_data) {
124409
- for (var property in _data) {
124410
- if (_data.hasOwnProperty(property))
124411
- this[property] = _data[property];
124412
- }
124413
- if (Array.isArray(_data["result"])) {
124414
- this.result = [] as any;
124415
- for (let item of _data["result"])
124416
- this.result!.push(KeywordsDataGoogleTrendsExploreLiveResultInfo.fromJS(item));
124417
- }
124418
- }
124419
- }
124420
-
124421
- static fromJS(data: any): KeywordsDataGoogleTrendsExploreLiveTaskInfo {
124422
- data = typeof data === 'object' ? data : {};
124423
- let result = new KeywordsDataGoogleTrendsExploreLiveTaskInfo();
124424
- result.init(data);
124425
- return result;
124426
- }
124427
-
124428
- toJSON(data?: any) {
124429
- data = typeof data === 'object' ? data : {};
124430
- for (var property in this) {
124431
- if (this.hasOwnProperty(property))
124432
- data[property] = this[property];
124433
- }
124434
- if (Array.isArray(this.result)) {
124435
- data["result"] = [];
124436
- for (let item of this.result)
124437
- data["result"].push(item.toJSON());
124438
- }
124439
- super.toJSON(data);
124440
- return data;
124441
- }
124442
- }
124443
-
124444
- export interface IKeywordsDataGoogleTrendsExploreLiveTaskInfo extends IBaseResponseTaskInfo {
124445
- /** array of results */
124446
- result?: (KeywordsDataGoogleTrendsExploreLiveResultInfo | undefined)[] | undefined;
124447
-
124448
- [key: string]: any;
124449
- }
124450
-
124451
124245
  export class KeywordsDataGoogleTrendsExploreLiveResponseInfo extends BaseResponseInfo implements IKeywordsDataGoogleTrendsExploreLiveResponseInfo {
124452
124246
  /** array of tasks */
124453
124247
  tasks?: (KeywordsDataGoogleTrendsExploreLiveTaskInfo | undefined)[] | undefined;
@@ -135116,6 +134910,10 @@ article, section, summary, "" */
135116
134910
  /** ISO country codes of the referring links
135117
134911
  indicates ISO country codes of the domains where the referring links are located and the link count per each country */
135118
134912
  referring_links_countries?: { [key: string]: number; } | undefined;
134913
+ /** number of referring pages pointing at least one nofollow link to the target */
134914
+ referring_pages_nofollow?: number | undefined;
134915
+ /** number of nofollow backlinks pointing to the target */
134916
+ backlinks_nofollow?: number | undefined;
135119
134917
 
135120
134918
  [key: string]: any;
135121
134919
 
@@ -135195,6 +134993,8 @@ indicates ISO country codes of the domains where the referring links are located
135195
134993
  (<any>this.referring_links_countries)![key] = _data["referring_links_countries"][key];
135196
134994
  }
135197
134995
  }
134996
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
134997
+ this.backlinks_nofollow = _data["backlinks_nofollow"];
135198
134998
  }
135199
134999
  }
135200
135000
 
@@ -135272,6 +135072,8 @@ indicates ISO country codes of the domains where the referring links are located
135272
135072
  (<any>data["referring_links_countries"])[key] = (<any>this.referring_links_countries)[key];
135273
135073
  }
135274
135074
  }
135075
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
135076
+ data["backlinks_nofollow"] = this.backlinks_nofollow;
135275
135077
  return data;
135276
135078
  }
135277
135079
  }
@@ -135359,6 +135161,10 @@ article, section, summary, "" */
135359
135161
  /** ISO country codes of the referring links
135360
135162
  indicates ISO country codes of the domains where the referring links are located and the link count per each country */
135361
135163
  referring_links_countries?: { [key: string]: number; } | undefined;
135164
+ /** number of referring pages pointing at least one nofollow link to the target */
135165
+ referring_pages_nofollow?: number | undefined;
135166
+ /** number of nofollow backlinks pointing to the target */
135167
+ backlinks_nofollow?: number | undefined;
135362
135168
 
135363
135169
  [key: string]: any;
135364
135170
  }
@@ -135591,22 +135397,22 @@ learn more about the metric and how it is calculated in this help center article
135591
135397
  /** number of new backlinks for the target
135592
135398
  data is provided based in a comparison with the previous period
135593
135399
  Note: this data is available from May 2021;
135594
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135400
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135595
135401
  new_backlinks?: number | undefined;
135596
135402
  /** number of lost backlinks for the target
135597
135403
  data is provided based in a comparison with the previous period
135598
135404
  Note: this data is available from May 2021;
135599
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135405
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135600
135406
  lost_backlinks?: number | undefined;
135601
135407
  /** number of new referring domains for the target
135602
135408
  data is provided based in a comparison with the previous period
135603
135409
  Note: this data is available from May 2021;
135604
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135410
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135605
135411
  new_referring_domains?: number | undefined;
135606
135412
  /** number of lost referring domains for the target
135607
135413
  data is provided based in a comparison with the previous period
135608
135414
  Note: this data is available from May 2021;
135609
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135415
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135610
135416
  lost_referring_domains?: number | undefined;
135611
135417
  /** number of crawled pages for the target */
135612
135418
  crawled_pages?: number | undefined;
@@ -135640,6 +135446,8 @@ number of IP addresses pointing to this page */
135640
135446
  referring_subnets?: number | undefined;
135641
135447
  /** number of pages pointing to the target */
135642
135448
  referring_pages?: number | undefined;
135449
+ /** number of referring pages pointing at least one nofollow link to the target */
135450
+ referring_pages_nofollow?: number | undefined;
135643
135451
  /** top-level domains of the referring links
135644
135452
  contains top-level domains and referring link count per each */
135645
135453
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -135702,6 +135510,7 @@ indicates ISO country codes of the domains where the referring links are located
135702
135510
  this.referring_ips = _data["referring_ips"];
135703
135511
  this.referring_subnets = _data["referring_subnets"];
135704
135512
  this.referring_pages = _data["referring_pages"];
135513
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
135705
135514
  if (_data["referring_links_tld"]) {
135706
135515
  this.referring_links_tld = {} as any;
135707
135516
  for (let key in _data["referring_links_tld"]) {
@@ -135781,6 +135590,7 @@ indicates ISO country codes of the domains where the referring links are located
135781
135590
  data["referring_ips"] = this.referring_ips;
135782
135591
  data["referring_subnets"] = this.referring_subnets;
135783
135592
  data["referring_pages"] = this.referring_pages;
135593
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
135784
135594
  if (this.referring_links_tld) {
135785
135595
  data["referring_links_tld"] = {};
135786
135596
  for (let key in this.referring_links_tld) {
@@ -135843,22 +135653,22 @@ learn more about the metric and how it is calculated in this help center article
135843
135653
  /** number of new backlinks for the target
135844
135654
  data is provided based in a comparison with the previous period
135845
135655
  Note: this data is available from May 2021;
135846
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135656
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135847
135657
  new_backlinks?: number | undefined;
135848
135658
  /** number of lost backlinks for the target
135849
135659
  data is provided based in a comparison with the previous period
135850
135660
  Note: this data is available from May 2021;
135851
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135661
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135852
135662
  lost_backlinks?: number | undefined;
135853
135663
  /** number of new referring domains for the target
135854
135664
  data is provided based in a comparison with the previous period
135855
135665
  Note: this data is available from May 2021;
135856
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135666
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135857
135667
  new_referring_domains?: number | undefined;
135858
135668
  /** number of lost referring domains for the target
135859
135669
  data is provided based in a comparison with the previous period
135860
135670
  Note: this data is available from May 2021;
135861
- if the date range specified in the POST request preceds May 2021, the field will equal 0 */
135671
+ if the date range specified in the POST request precedes May 2021, the field will equal 0 */
135862
135672
  lost_referring_domains?: number | undefined;
135863
135673
  /** number of crawled pages for the target */
135864
135674
  crawled_pages?: number | undefined;
@@ -135892,6 +135702,8 @@ number of IP addresses pointing to this page */
135892
135702
  referring_subnets?: number | undefined;
135893
135703
  /** number of pages pointing to the target */
135894
135704
  referring_pages?: number | undefined;
135705
+ /** number of referring pages pointing at least one nofollow link to the target */
135706
+ referring_pages_nofollow?: number | undefined;
135895
135707
  /** top-level domains of the referring links
135896
135708
  contains top-level domains and referring link count per each */
135897
135709
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -137551,7 +137363,7 @@ learn more about the metric and how it is calculated in this help center article
137551
137363
  rank?: number | undefined;
137552
137364
  /** indicates the number of backlinks */
137553
137365
  backlinks?: number | undefined;
137554
- /** date and time when our crawler found the backlink for the first time
137366
+ /** date and time when our crawler found the backlink with this anchor for the first time
137555
137367
  in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
137556
137368
  example:
137557
137369
  2019-11-15 12:57:46 +00:00 */
@@ -137586,6 +137398,8 @@ number of IP addresses pointing to this page */
137586
137398
  referring_subnets?: number | undefined;
137587
137399
  /** indicates the number of pages pointing to target with this anchor */
137588
137400
  referring_pages?: number | undefined;
137401
+ /** number of referring pages pointing at least one nofollow link to the target with this anchor */
137402
+ referring_pages_nofollow?: number | undefined;
137589
137403
  /** top-level domains of the referring links
137590
137404
  contains top level domains and referring link count per each */
137591
137405
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -137643,6 +137457,7 @@ indicates ISO country codes of the domains where the referring links are located
137643
137457
  this.referring_ips = _data["referring_ips"];
137644
137458
  this.referring_subnets = _data["referring_subnets"];
137645
137459
  this.referring_pages = _data["referring_pages"];
137460
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
137646
137461
  if (_data["referring_links_tld"]) {
137647
137462
  this.referring_links_tld = {} as any;
137648
137463
  for (let key in _data["referring_links_tld"]) {
@@ -137717,6 +137532,7 @@ indicates ISO country codes of the domains where the referring links are located
137717
137532
  data["referring_ips"] = this.referring_ips;
137718
137533
  data["referring_subnets"] = this.referring_subnets;
137719
137534
  data["referring_pages"] = this.referring_pages;
137535
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
137720
137536
  if (this.referring_links_tld) {
137721
137537
  data["referring_links_tld"] = {};
137722
137538
  for (let key in this.referring_links_tld) {
@@ -137775,7 +137591,7 @@ learn more about the metric and how it is calculated in this help center article
137775
137591
  rank?: number | undefined;
137776
137592
  /** indicates the number of backlinks */
137777
137593
  backlinks?: number | undefined;
137778
- /** date and time when our crawler found the backlink for the first time
137594
+ /** date and time when our crawler found the backlink with this anchor for the first time
137779
137595
  in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
137780
137596
  example:
137781
137597
  2019-11-15 12:57:46 +00:00 */
@@ -137810,6 +137626,8 @@ number of IP addresses pointing to this page */
137810
137626
  referring_subnets?: number | undefined;
137811
137627
  /** indicates the number of pages pointing to target with this anchor */
137812
137628
  referring_pages?: number | undefined;
137629
+ /** number of referring pages pointing at least one nofollow link to the target with this anchor */
137630
+ referring_pages_nofollow?: number | undefined;
137813
137631
  /** top-level domains of the referring links
137814
137632
  contains top level domains and referring link count per each */
137815
137633
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -138564,6 +138382,8 @@ number of IP addresses pointing to this page */
138564
138382
  referring_subnets?: number | undefined;
138565
138383
  /** indicates the number of pages pointing to the target */
138566
138384
  referring_pages?: number | undefined;
138385
+ /** number of referring pages pointing at least one nofollow link to the target */
138386
+ referring_pages_nofollow?: number | undefined;
138567
138387
  /** top-level domains of the referring links
138568
138388
  contains top level domains and referring link count per each */
138569
138389
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -138619,6 +138439,7 @@ indicates ISO country codes of the domains where the referring links are located
138619
138439
  this.referring_ips = _data["referring_ips"];
138620
138440
  this.referring_subnets = _data["referring_subnets"];
138621
138441
  this.referring_pages = _data["referring_pages"];
138442
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
138622
138443
  if (_data["referring_links_tld"]) {
138623
138444
  this.referring_links_tld = {} as any;
138624
138445
  for (let key in _data["referring_links_tld"]) {
@@ -138691,6 +138512,7 @@ indicates ISO country codes of the domains where the referring links are located
138691
138512
  data["referring_ips"] = this.referring_ips;
138692
138513
  data["referring_subnets"] = this.referring_subnets;
138693
138514
  data["referring_pages"] = this.referring_pages;
138515
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
138694
138516
  if (this.referring_links_tld) {
138695
138517
  data["referring_links_tld"] = {};
138696
138518
  for (let key in this.referring_links_tld) {
@@ -138780,6 +138602,8 @@ number of IP addresses pointing to this page */
138780
138602
  referring_subnets?: number | undefined;
138781
138603
  /** indicates the number of pages pointing to the target */
138782
138604
  referring_pages?: number | undefined;
138605
+ /** number of referring pages pointing at least one nofollow link to the target */
138606
+ referring_pages_nofollow?: number | undefined;
138783
138607
  /** top-level domains of the referring links
138784
138608
  contains top level domains and referring link count per each */
138785
138609
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -139531,6 +139355,8 @@ article, section, footer */
139531
139355
  /** ISO country codes of the referring links
139532
139356
  indicates ISO country codes of the domains where the referring links are located and the link count per each country */
139533
139357
  referring_links_countries?: { [key: string]: number; } | undefined;
139358
+ /** number of referring pages pointing at least one nofollow link to the target */
139359
+ referring_pages_nofollow?: number | undefined;
139534
139360
 
139535
139361
  [key: string]: any;
139536
139362
 
@@ -139607,6 +139433,7 @@ indicates ISO country codes of the domains where the referring links are located
139607
139433
  (<any>this.referring_links_countries)![key] = _data["referring_links_countries"][key];
139608
139434
  }
139609
139435
  }
139436
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
139610
139437
  }
139611
139438
  }
139612
139439
 
@@ -139681,6 +139508,7 @@ indicates ISO country codes of the domains where the referring links are located
139681
139508
  (<any>data["referring_links_countries"])[key] = (<any>this.referring_links_countries)[key];
139682
139509
  }
139683
139510
  }
139511
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
139684
139512
  return data;
139685
139513
  }
139686
139514
  }
@@ -139755,6 +139583,8 @@ article, section, footer */
139755
139583
  /** ISO country codes of the referring links
139756
139584
  indicates ISO country codes of the domains where the referring links are located and the link count per each country */
139757
139585
  referring_links_countries?: { [key: string]: number; } | undefined;
139586
+ /** number of referring pages pointing at least one nofollow link to the target */
139587
+ referring_pages_nofollow?: number | undefined;
139758
139588
 
139759
139589
  [key: string]: any;
139760
139590
  }
@@ -140278,6 +140108,8 @@ number of IP addresses pointing to this page */
140278
140108
  referring_subnets?: number | undefined;
140279
140109
  /** indicates the number of pages pointing to the target specified */
140280
140110
  referring_pages?: number | undefined;
140111
+ /** number of referring pages pointing at least one nofollow link to the target */
140112
+ referring_pages_nofollow?: number | undefined;
140281
140113
  /** top-level domains of the referring links
140282
140114
  contains top level domains and referring link count per each */
140283
140115
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -140335,6 +140167,7 @@ indicates ISO country codes of the domains where the referring links are located
140335
140167
  this.referring_ips = _data["referring_ips"];
140336
140168
  this.referring_subnets = _data["referring_subnets"];
140337
140169
  this.referring_pages = _data["referring_pages"];
140170
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
140338
140171
  if (_data["referring_links_tld"]) {
140339
140172
  this.referring_links_tld = {} as any;
140340
140173
  for (let key in _data["referring_links_tld"]) {
@@ -140409,6 +140242,7 @@ indicates ISO country codes of the domains where the referring links are located
140409
140242
  data["referring_ips"] = this.referring_ips;
140410
140243
  data["referring_subnets"] = this.referring_subnets;
140411
140244
  data["referring_pages"] = this.referring_pages;
140245
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
140412
140246
  if (this.referring_links_tld) {
140413
140247
  data["referring_links_tld"] = {};
140414
140248
  for (let key in this.referring_links_tld) {
@@ -140504,6 +140338,8 @@ number of IP addresses pointing to this page */
140504
140338
  referring_subnets?: number | undefined;
140505
140339
  /** indicates the number of pages pointing to the target specified */
140506
140340
  referring_pages?: number | undefined;
140341
+ /** number of referring pages pointing at least one nofollow link to the target */
140342
+ referring_pages_nofollow?: number | undefined;
140507
140343
  /** top-level domains of the referring links
140508
140344
  contains top level domains and referring link count per each */
140509
140345
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -141062,6 +140898,8 @@ number of IP addresses pointing to this page */
141062
140898
  referring_subnets?: number | undefined;
141063
140899
  /** indicates the number of pages pointing to the target specified */
141064
140900
  referring_pages?: number | undefined;
140901
+ /** number of referring pages pointing at least one nofollow link to the target */
140902
+ referring_pages_nofollow?: number | undefined;
141065
140903
  /** top-level domains of the referring links
141066
140904
  contains top level domains and referring link count per each */
141067
140905
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -141118,6 +140956,7 @@ indicates ISO country codes of the domains where the referring links are located
141118
140956
  this.referring_ips = _data["referring_ips"];
141119
140957
  this.referring_subnets = _data["referring_subnets"];
141120
140958
  this.referring_pages = _data["referring_pages"];
140959
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
141121
140960
  if (_data["referring_links_tld"]) {
141122
140961
  this.referring_links_tld = {} as any;
141123
140962
  for (let key in _data["referring_links_tld"]) {
@@ -141191,6 +141030,7 @@ indicates ISO country codes of the domains where the referring links are located
141191
141030
  data["referring_ips"] = this.referring_ips;
141192
141031
  data["referring_subnets"] = this.referring_subnets;
141193
141032
  data["referring_pages"] = this.referring_pages;
141033
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
141194
141034
  if (this.referring_links_tld) {
141195
141035
  data["referring_links_tld"] = {};
141196
141036
  for (let key in this.referring_links_tld) {
@@ -141282,6 +141122,8 @@ number of IP addresses pointing to this page */
141282
141122
  referring_subnets?: number | undefined;
141283
141123
  /** indicates the number of pages pointing to the target specified */
141284
141124
  referring_pages?: number | undefined;
141125
+ /** number of referring pages pointing at least one nofollow link to the target */
141126
+ referring_pages_nofollow?: number | undefined;
141285
141127
  /** top-level domains of the referring links
141286
141128
  contains top level domains and referring link count per each */
141287
141129
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -142342,6 +142184,8 @@ learn more about how the metric is calculated on this help center page */
142342
142184
  referring_subnets?: number | undefined;
142343
142185
  /** indicates the number of pages pointing to the target */
142344
142186
  referring_pages?: number | undefined;
142187
+ /** number of referring pages pointing at least one nofollow link to the target */
142188
+ referring_pages_nofollow?: number | undefined;
142345
142189
  /** top level domains of the referring links
142346
142190
  contains top-level domains and referring link count per each */
142347
142191
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -142397,6 +142241,7 @@ indicates ISO country codes of the domains where the referring links are located
142397
142241
  this.referring_ips = _data["referring_ips"];
142398
142242
  this.referring_subnets = _data["referring_subnets"];
142399
142243
  this.referring_pages = _data["referring_pages"];
142244
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
142400
142245
  if (_data["referring_links_tld"]) {
142401
142246
  this.referring_links_tld = {} as any;
142402
142247
  for (let key in _data["referring_links_tld"]) {
@@ -142471,6 +142316,7 @@ indicates ISO country codes of the domains where the referring links are located
142471
142316
  data["referring_ips"] = this.referring_ips;
142472
142317
  data["referring_subnets"] = this.referring_subnets;
142473
142318
  data["referring_pages"] = this.referring_pages;
142319
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
142474
142320
  if (this.referring_links_tld) {
142475
142321
  data["referring_links_tld"] = {};
142476
142322
  for (let key in this.referring_links_tld) {
@@ -142560,6 +142406,8 @@ learn more about how the metric is calculated on this help center page */
142560
142406
  referring_subnets?: number | undefined;
142561
142407
  /** indicates the number of pages pointing to the target */
142562
142408
  referring_pages?: number | undefined;
142409
+ /** number of referring pages pointing at least one nofollow link to the target */
142410
+ referring_pages_nofollow?: number | undefined;
142563
142411
  /** top level domains of the referring links
142564
142412
  contains top-level domains and referring link count per each */
142565
142413
  referring_links_tld?: { [key: string]: number; } | undefined;
@@ -142585,13 +142433,13 @@ indicates ISO country codes of the domains where the referring links are located
142585
142433
  [key: string]: any;
142586
142434
  }
142587
142435
 
142588
- export class Summary implements ISummary {
142436
+ export class IntersectionSummaryInfo implements IIntersectionSummaryInfo {
142589
142437
  /** total number of intersections */
142590
142438
  intersections_count?: number | undefined;
142591
142439
 
142592
142440
  [key: string]: any;
142593
142441
 
142594
- constructor(data?: ISummary) {
142442
+ constructor(data?: IIntersectionSummaryInfo) {
142595
142443
  if (data) {
142596
142444
  for (var property in data) {
142597
142445
  if (data.hasOwnProperty(property))
@@ -142610,9 +142458,9 @@ export class Summary implements ISummary {
142610
142458
  }
142611
142459
  }
142612
142460
 
142613
- static fromJS(data: any): Summary {
142461
+ static fromJS(data: any): IntersectionSummaryInfo {
142614
142462
  data = typeof data === 'object' ? data : {};
142615
- let result = new Summary();
142463
+ let result = new IntersectionSummaryInfo();
142616
142464
  result.init(data);
142617
142465
  return result;
142618
142466
  }
@@ -142628,7 +142476,7 @@ export class Summary implements ISummary {
142628
142476
  }
142629
142477
  }
142630
142478
 
142631
- export interface ISummary {
142479
+ export interface IIntersectionSummaryInfo {
142632
142480
  /** total number of intersections */
142633
142481
  intersections_count?: number | undefined;
142634
142482
 
@@ -142640,7 +142488,7 @@ export class BacklinksDomainIntersectionLiveItem implements IBacklinksDomainInte
142640
142488
  data is provided in separate objects corresponding to domains, subdomains or pages specified in the targets object */
142641
142489
  domain_intersection?: { [key: string]: BacklinksDomainIntersectionInfo; } | undefined;
142642
142490
  /** contains the domain intersections summary */
142643
- summary?: Summary | undefined;
142491
+ summary?: IntersectionSummaryInfo | undefined;
142644
142492
 
142645
142493
  [key: string]: any;
142646
142494
 
@@ -142666,7 +142514,7 @@ data is provided in separate objects corresponding to domains, subdomains or pag
142666
142514
  (<any>this.domain_intersection)![key] = _data["domain_intersection"][key] ? BacklinksDomainIntersectionInfo.fromJS(_data["domain_intersection"][key]) : new BacklinksDomainIntersectionInfo();
142667
142515
  }
142668
142516
  }
142669
- this.summary = _data["summary"] ? Summary.fromJS(_data["summary"]) : <any>undefined;
142517
+ this.summary = _data["summary"] ? IntersectionSummaryInfo.fromJS(_data["summary"]) : <any>undefined;
142670
142518
  }
142671
142519
  }
142672
142520
 
@@ -142700,7 +142548,7 @@ export interface IBacklinksDomainIntersectionLiveItem {
142700
142548
  data is provided in separate objects corresponding to domains, subdomains or pages specified in the targets object */
142701
142549
  domain_intersection?: { [key: string]: BacklinksDomainIntersectionInfo; } | undefined;
142702
142550
  /** contains the domain intersections summary */
142703
- summary?: Summary | undefined;
142551
+ summary?: IntersectionSummaryInfo | undefined;
142704
142552
 
142705
142553
  [key: string]: any;
142706
142554
  }
@@ -143662,7 +143510,7 @@ export class BacklinksPageIntersectionLiveItem implements IBacklinksPageIntersec
143662
143510
  data is provided in separate objects corresponding to pages specified in the targets object */
143663
143511
  page_intersection?: { [key: string]: (BacklinksPageIntersectionInfo | undefined)[]; } | undefined;
143664
143512
  /** contains the page intersections summary */
143665
- summary?: Summary | undefined;
143513
+ summary?: IntersectionSummaryInfo | undefined;
143666
143514
 
143667
143515
  [key: string]: any;
143668
143516
 
@@ -143688,7 +143536,7 @@ data is provided in separate objects corresponding to pages specified in the tar
143688
143536
  (<any>this.page_intersection)![key] = _data["page_intersection"][key] ? _data["page_intersection"][key].map((i: any) => BacklinksPageIntersectionInfo.fromJS(i)) : [];
143689
143537
  }
143690
143538
  }
143691
- this.summary = _data["summary"] ? Summary.fromJS(_data["summary"]) : <any>undefined;
143539
+ this.summary = _data["summary"] ? IntersectionSummaryInfo.fromJS(_data["summary"]) : <any>undefined;
143692
143540
  }
143693
143541
  }
143694
143542
 
@@ -143722,7 +143570,7 @@ export interface IBacklinksPageIntersectionLiveItem {
143722
143570
  data is provided in separate objects corresponding to pages specified in the targets object */
143723
143571
  page_intersection?: { [key: string]: (BacklinksPageIntersectionInfo | undefined)[]; } | undefined;
143724
143572
  /** contains the page intersections summary */
143725
- summary?: Summary | undefined;
143573
+ summary?: IntersectionSummaryInfo | undefined;
143726
143574
 
143727
143575
  [key: string]: any;
143728
143576
  }
@@ -144082,6 +143930,8 @@ learn more about the metric and how it is calculated in this help center article
144082
143930
  backlinks_nofollow?: number | undefined;
144083
143931
  /** number of pages pointing to target for the given date */
144084
143932
  referring_pages?: number | undefined;
143933
+ /** number of referring pages pointing at least one nofollow link to the target for the given date */
143934
+ referring_pages_nofollow?: number | undefined;
144085
143935
  /** number of referring domains for the given date
144086
143936
  referring domains include subdomains that are counted as separate domains for this metric */
144087
143937
  referring_domains?: number | undefined;
@@ -144120,6 +143970,7 @@ number of IP addresses pointing to this page */
144120
143970
  this.backlinks = _data["backlinks"];
144121
143971
  this.backlinks_nofollow = _data["backlinks_nofollow"];
144122
143972
  this.referring_pages = _data["referring_pages"];
143973
+ this.referring_pages_nofollow = _data["referring_pages_nofollow"];
144123
143974
  this.referring_domains = _data["referring_domains"];
144124
143975
  this.referring_domains_nofollow = _data["referring_domains_nofollow"];
144125
143976
  this.referring_main_domains = _data["referring_main_domains"];
@@ -144148,6 +143999,7 @@ number of IP addresses pointing to this page */
144148
143999
  data["backlinks"] = this.backlinks;
144149
144000
  data["backlinks_nofollow"] = this.backlinks_nofollow;
144150
144001
  data["referring_pages"] = this.referring_pages;
144002
+ data["referring_pages_nofollow"] = this.referring_pages_nofollow;
144151
144003
  data["referring_domains"] = this.referring_domains;
144152
144004
  data["referring_domains_nofollow"] = this.referring_domains_nofollow;
144153
144005
  data["referring_main_domains"] = this.referring_main_domains;
@@ -144175,6 +144027,8 @@ learn more about the metric and how it is calculated in this help center article
144175
144027
  backlinks_nofollow?: number | undefined;
144176
144028
  /** number of pages pointing to target for the given date */
144177
144029
  referring_pages?: number | undefined;
144030
+ /** number of referring pages pointing at least one nofollow link to the target for the given date */
144031
+ referring_pages_nofollow?: number | undefined;
144178
144032
  /** number of referring domains for the given date
144179
144033
  referring domains include subdomains that are counted as separate domains for this metric */
144180
144034
  referring_domains?: number | undefined;
@@ -151647,7 +151501,7 @@ the amount of time a browser needs to complete downloading a resource */
151647
151501
  [key: string]: any;
151648
151502
  }
151649
151503
 
151650
- export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
151504
+ export class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
151651
151505
  /** resource properties
151652
151506
  the value depends on the resource_type
151653
151507
  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;
@@ -151697,12 +151551,24 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
151697
151551
  /** contains data on changes related to the resource
151698
151552
  if there is no data, the value will be null */
151699
151553
  last_modified?: LastModified | undefined;
151554
+ /** resource initiator */
151555
+ initiator?: string | undefined;
151556
+ /** total time it takes until a browser receives a complete response from a server (in milliseconds) */
151557
+ duration_time?: number | undefined;
151558
+ /** time to start downloading the resource
151559
+ the amount of time the browser needs to start downloading a resource */
151560
+ fetch_start?: number | undefined;
151561
+ /** time to complete downloading the resource
151562
+ the amount of time the browser needs to complete downloading a resource */
151563
+ fetch_end?: number | undefined;
151564
+ /** indicates whether the resource blocks rendering */
151565
+ is_render_blocking?: boolean | undefined;
151700
151566
 
151701
151567
  [key: string]: any;
151702
151568
 
151703
- constructor(data?: IScriptResourceElementItem) {
151569
+ constructor(data?: IStylesheetResourceElementItem) {
151704
151570
  super(data);
151705
- this._discriminator = "script";
151571
+ this._discriminator = "stylesheet";
151706
151572
  }
151707
151573
 
151708
151574
  init(_data?: any) {
@@ -151735,12 +151601,17 @@ if there is no data, the value will be null */
151735
151601
  this.accept_type = _data["accept_type"];
151736
151602
  this.server = _data["server"];
151737
151603
  this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
151604
+ this.initiator = _data["initiator"];
151605
+ this.duration_time = _data["duration_time"];
151606
+ this.fetch_start = _data["fetch_start"];
151607
+ this.fetch_end = _data["fetch_end"];
151608
+ this.is_render_blocking = _data["is_render_blocking"];
151738
151609
  }
151739
151610
  }
151740
151611
 
151741
- static fromJS(data: any): ScriptResourceElementItem {
151612
+ static fromJS(data: any): StylesheetResourceElementItem {
151742
151613
  data = typeof data === 'object' ? data : {};
151743
- let result = new ScriptResourceElementItem();
151614
+ let result = new StylesheetResourceElementItem();
151744
151615
  result.init(data);
151745
151616
  return result;
151746
151617
  }
@@ -151774,66 +151645,17 @@ if there is no data, the value will be null */
151774
151645
  data["accept_type"] = this.accept_type;
151775
151646
  data["server"] = this.server;
151776
151647
  data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
151648
+ data["initiator"] = this.initiator;
151649
+ data["duration_time"] = this.duration_time;
151650
+ data["fetch_start"] = this.fetch_start;
151651
+ data["fetch_end"] = this.fetch_end;
151652
+ data["is_render_blocking"] = this.is_render_blocking;
151777
151653
  super.toJSON(data);
151778
151654
  return data;
151779
151655
  }
151780
151656
  }
151781
151657
 
151782
- export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
151783
- /** resource properties
151784
- the value depends on the resource_type
151785
- 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;
151786
- to obtain resource’s meta from a particular url, specify that URL when setting a task */
151787
- meta?: ResourceMetaInfo | undefined;
151788
- /** status code of the page where a given resource is located */
151789
- status_code?: number | undefined;
151790
- /** location header
151791
- indicates the URL to redirect a page to */
151792
- location?: string | undefined;
151793
- /** resource URL */
151794
- url?: string | undefined;
151795
- /** resource size
151796
- indicates the size of a given resource measured in bytes */
151797
- size?: number | undefined;
151798
- /** resource size after encoding
151799
- indicates the size of the encoded resource measured in bytes */
151800
- encoded_size?: number | undefined;
151801
- /** compressed resource size
151802
- indicates the compressed size of a given resource in bytes */
151803
- total_transfer_size?: number | undefined;
151804
- /** date and time when a resource was fetched
151805
- in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
151806
- example:
151807
- 2021-02-17 13:54:15 +00:00 */
151808
- fetch_time?: string | undefined;
151809
- /** resource fething time range */
151810
- fetch_timing?: FetchTiming | undefined;
151811
- /** instructions for caching */
151812
- cache_control?: CacheControl | undefined;
151813
- /** resource check-ups
151814
- contents of the array depend on the resource_type */
151815
- checks?: { [key: string]: boolean; } | undefined;
151816
- /** resource errors and warnings */
151817
- resource_errors?: OnPageResourceIssueInfo | undefined;
151818
- /** type of encoding */
151819
- content_encoding?: string | undefined;
151820
- /** types of media used to display a resource */
151821
- media_type?: string | undefined;
151822
- /** indicates the expected type of resource
151823
- for example, if "resource_type": "broken", accept_type will indicate the type of the broken resource
151824
- possible values:
151825
- any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, other, font */
151826
- accept_type?: string | undefined;
151827
- /** server version */
151828
- server?: string | undefined;
151829
- /** contains data on changes related to the resource
151830
- if there is no data, the value will be null */
151831
- last_modified?: LastModified | undefined;
151832
-
151833
- [key: string]: any;
151834
- }
151835
-
151836
- export class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
151658
+ export interface IStylesheetResourceElementItem extends IBaseOnPageResourceItemInfo {
151837
151659
  /** resource properties
151838
151660
  the value depends on the resource_type
151839
151661
  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;
@@ -151897,10 +151719,100 @@ the amount of time the browser needs to complete downloading a resource */
151897
151719
  is_render_blocking?: boolean | undefined;
151898
151720
 
151899
151721
  [key: string]: any;
151722
+ }
151900
151723
 
151901
- constructor(data?: IStylesheetResourceElementItem) {
151724
+ export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
151725
+ /** status of the crawling session
151726
+ possible values: in_progress, finished */
151727
+ crawl_progress?: string | undefined;
151728
+ /** details of the crawling session */
151729
+ crawl_status?: CrawlStatusInfo | undefined;
151730
+ /** total number of relevant items crawled */
151731
+ total_items_count?: number | undefined;
151732
+ /** number of items in the results array */
151733
+ items_count?: number | undefined;
151734
+ /** items array */
151735
+ items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
151736
+
151737
+ [key: string]: any;
151738
+
151739
+ constructor(data?: IOnPageResourcesResultInfo) {
151740
+ if (data) {
151741
+ for (var property in data) {
151742
+ if (data.hasOwnProperty(property))
151743
+ (<any>this)[property] = (<any>data)[property];
151744
+ }
151745
+ }
151746
+ }
151747
+
151748
+ init(_data?: any) {
151749
+ if (_data) {
151750
+ for (var property in _data) {
151751
+ if (_data.hasOwnProperty(property))
151752
+ this[property] = _data[property];
151753
+ }
151754
+ this.crawl_progress = _data["crawl_progress"];
151755
+ this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
151756
+ this.total_items_count = _data["total_items_count"];
151757
+ this.items_count = _data["items_count"];
151758
+ if (Array.isArray(_data["items"])) {
151759
+ this.items = [] as any;
151760
+ for (let item of _data["items"])
151761
+ this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
151762
+ }
151763
+ }
151764
+ }
151765
+
151766
+ static fromJS(data: any): OnPageResourcesResultInfo {
151767
+ data = typeof data === 'object' ? data : {};
151768
+ let result = new OnPageResourcesResultInfo();
151769
+ result.init(data);
151770
+ return result;
151771
+ }
151772
+
151773
+ toJSON(data?: any) {
151774
+ data = typeof data === 'object' ? data : {};
151775
+ for (var property in this) {
151776
+ if (this.hasOwnProperty(property))
151777
+ data[property] = this[property];
151778
+ }
151779
+ data["crawl_progress"] = this.crawl_progress;
151780
+ data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
151781
+ data["total_items_count"] = this.total_items_count;
151782
+ data["items_count"] = this.items_count;
151783
+ if (Array.isArray(this.items)) {
151784
+ data["items"] = [];
151785
+ for (let item of this.items)
151786
+ data["items"].push(item.toJSON());
151787
+ }
151788
+ return data;
151789
+ }
151790
+ }
151791
+
151792
+ export interface IOnPageResourcesResultInfo {
151793
+ /** status of the crawling session
151794
+ possible values: in_progress, finished */
151795
+ crawl_progress?: string | undefined;
151796
+ /** details of the crawling session */
151797
+ crawl_status?: CrawlStatusInfo | undefined;
151798
+ /** total number of relevant items crawled */
151799
+ total_items_count?: number | undefined;
151800
+ /** number of items in the results array */
151801
+ items_count?: number | undefined;
151802
+ /** items array */
151803
+ items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
151804
+
151805
+ [key: string]: any;
151806
+ }
151807
+
151808
+ export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
151809
+ /** array of results */
151810
+ result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
151811
+
151812
+ [key: string]: any;
151813
+
151814
+ constructor(data?: IOnPageResourcesTaskInfo) {
151902
151815
  super(data);
151903
- this._discriminator = "stylesheet";
151904
151816
  }
151905
151817
 
151906
151818
  init(_data?: any) {
@@ -151910,40 +151822,17 @@ the amount of time the browser needs to complete downloading a resource */
151910
151822
  if (_data.hasOwnProperty(property))
151911
151823
  this[property] = _data[property];
151912
151824
  }
151913
- this.meta = _data["meta"] ? ResourceMetaInfo.fromJS(_data["meta"]) : <any>undefined;
151914
- this.status_code = _data["status_code"];
151915
- this.location = _data["location"];
151916
- this.url = _data["url"];
151917
- this.size = _data["size"];
151918
- this.encoded_size = _data["encoded_size"];
151919
- this.total_transfer_size = _data["total_transfer_size"];
151920
- this.fetch_time = _data["fetch_time"];
151921
- this.fetch_timing = _data["fetch_timing"] ? FetchTiming.fromJS(_data["fetch_timing"]) : <any>undefined;
151922
- this.cache_control = _data["cache_control"] ? CacheControl.fromJS(_data["cache_control"]) : <any>undefined;
151923
- if (_data["checks"]) {
151924
- this.checks = {} as any;
151925
- for (let key in _data["checks"]) {
151926
- if (_data["checks"].hasOwnProperty(key))
151927
- (<any>this.checks)![key] = _data["checks"][key];
151928
- }
151825
+ if (Array.isArray(_data["result"])) {
151826
+ this.result = [] as any;
151827
+ for (let item of _data["result"])
151828
+ this.result!.push(OnPageResourcesResultInfo.fromJS(item));
151929
151829
  }
151930
- this.resource_errors = _data["resource_errors"] ? OnPageResourceIssueInfo.fromJS(_data["resource_errors"]) : <any>undefined;
151931
- this.content_encoding = _data["content_encoding"];
151932
- this.media_type = _data["media_type"];
151933
- this.accept_type = _data["accept_type"];
151934
- this.server = _data["server"];
151935
- this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
151936
- this.initiator = _data["initiator"];
151937
- this.duration_time = _data["duration_time"];
151938
- this.fetch_start = _data["fetch_start"];
151939
- this.fetch_end = _data["fetch_end"];
151940
- this.is_render_blocking = _data["is_render_blocking"];
151941
151830
  }
151942
151831
  }
151943
151832
 
151944
- static fromJS(data: any): StylesheetResourceElementItem {
151833
+ static fromJS(data: any): OnPageResourcesTaskInfo {
151945
151834
  data = typeof data === 'object' ? data : {};
151946
- let result = new StylesheetResourceElementItem();
151835
+ let result = new OnPageResourcesTaskInfo();
151947
151836
  result.init(data);
151948
151837
  return result;
151949
151838
  }
@@ -151954,40 +151843,24 @@ the amount of time the browser needs to complete downloading a resource */
151954
151843
  if (this.hasOwnProperty(property))
151955
151844
  data[property] = this[property];
151956
151845
  }
151957
- data["meta"] = this.meta ? this.meta.toJSON() : <any>undefined;
151958
- data["status_code"] = this.status_code;
151959
- data["location"] = this.location;
151960
- data["url"] = this.url;
151961
- data["size"] = this.size;
151962
- data["encoded_size"] = this.encoded_size;
151963
- data["total_transfer_size"] = this.total_transfer_size;
151964
- data["fetch_time"] = this.fetch_time;
151965
- data["fetch_timing"] = this.fetch_timing ? this.fetch_timing.toJSON() : <any>undefined;
151966
- data["cache_control"] = this.cache_control ? this.cache_control.toJSON() : <any>undefined;
151967
- if (this.checks) {
151968
- data["checks"] = {};
151969
- for (let key in this.checks) {
151970
- if (this.checks.hasOwnProperty(key))
151971
- (<any>data["checks"])[key] = (<any>this.checks)[key];
151972
- }
151846
+ if (Array.isArray(this.result)) {
151847
+ data["result"] = [];
151848
+ for (let item of this.result)
151849
+ data["result"].push(item.toJSON());
151973
151850
  }
151974
- data["resource_errors"] = this.resource_errors ? this.resource_errors.toJSON() : <any>undefined;
151975
- data["content_encoding"] = this.content_encoding;
151976
- data["media_type"] = this.media_type;
151977
- data["accept_type"] = this.accept_type;
151978
- data["server"] = this.server;
151979
- data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
151980
- data["initiator"] = this.initiator;
151981
- data["duration_time"] = this.duration_time;
151982
- data["fetch_start"] = this.fetch_start;
151983
- data["fetch_end"] = this.fetch_end;
151984
- data["is_render_blocking"] = this.is_render_blocking;
151985
151851
  super.toJSON(data);
151986
151852
  return data;
151987
151853
  }
151988
151854
  }
151989
151855
 
151990
- export interface IStylesheetResourceElementItem extends IBaseOnPageResourceItemInfo {
151856
+ export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
151857
+ /** array of results */
151858
+ result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
151859
+
151860
+ [key: string]: any;
151861
+ }
151862
+
151863
+ export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
151991
151864
  /** resource properties
151992
151865
  the value depends on the resource_type
151993
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;
@@ -152021,8 +151894,6 @@ example:
152021
151894
  /** resource check-ups
152022
151895
  contents of the array depend on the resource_type */
152023
151896
  checks?: { [key: string]: boolean; } | undefined;
152024
- /** resource errors and warnings */
152025
- resource_errors?: OnPageResourceIssueInfo | undefined;
152026
151897
  /** type of encoding */
152027
151898
  content_encoding?: string | undefined;
152028
151899
  /** types of media used to display a resource */
@@ -152037,114 +151908,14 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
152037
151908
  /** contains data on changes related to the resource
152038
151909
  if there is no data, the value will be null */
152039
151910
  last_modified?: LastModified | undefined;
152040
- /** resource initiator */
152041
- initiator?: string | undefined;
152042
- /** total time it takes until a browser receives a complete response from a server (in milliseconds) */
152043
- duration_time?: number | undefined;
152044
- /** time to start downloading the resource
152045
- the amount of time the browser needs to start downloading a resource */
152046
- fetch_start?: number | undefined;
152047
- /** time to complete downloading the resource
152048
- the amount of time the browser needs to complete downloading a resource */
152049
- fetch_end?: number | undefined;
152050
- /** indicates whether the resource blocks rendering */
152051
- is_render_blocking?: boolean | undefined;
152052
-
152053
- [key: string]: any;
152054
- }
152055
-
152056
- export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
152057
- /** status of the crawling session
152058
- possible values: in_progress, finished */
152059
- crawl_progress?: string | undefined;
152060
- /** details of the crawling session */
152061
- crawl_status?: CrawlStatusInfo | undefined;
152062
- /** total number of relevant items crawled */
152063
- total_items_count?: number | undefined;
152064
- /** number of items in the results array */
152065
- items_count?: number | undefined;
152066
- /** items array */
152067
- items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
152068
-
152069
- [key: string]: any;
152070
-
152071
- constructor(data?: IOnPageResourcesResultInfo) {
152072
- if (data) {
152073
- for (var property in data) {
152074
- if (data.hasOwnProperty(property))
152075
- (<any>this)[property] = (<any>data)[property];
152076
- }
152077
- }
152078
- }
152079
-
152080
- init(_data?: any) {
152081
- if (_data) {
152082
- for (var property in _data) {
152083
- if (_data.hasOwnProperty(property))
152084
- this[property] = _data[property];
152085
- }
152086
- this.crawl_progress = _data["crawl_progress"];
152087
- this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
152088
- this.total_items_count = _data["total_items_count"];
152089
- this.items_count = _data["items_count"];
152090
- if (Array.isArray(_data["items"])) {
152091
- this.items = [] as any;
152092
- for (let item of _data["items"])
152093
- this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
152094
- }
152095
- }
152096
- }
152097
-
152098
- static fromJS(data: any): OnPageResourcesResultInfo {
152099
- data = typeof data === 'object' ? data : {};
152100
- let result = new OnPageResourcesResultInfo();
152101
- result.init(data);
152102
- return result;
152103
- }
152104
-
152105
- toJSON(data?: any) {
152106
- data = typeof data === 'object' ? data : {};
152107
- for (var property in this) {
152108
- if (this.hasOwnProperty(property))
152109
- data[property] = this[property];
152110
- }
152111
- data["crawl_progress"] = this.crawl_progress;
152112
- data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
152113
- data["total_items_count"] = this.total_items_count;
152114
- data["items_count"] = this.items_count;
152115
- if (Array.isArray(this.items)) {
152116
- data["items"] = [];
152117
- for (let item of this.items)
152118
- data["items"].push(item.toJSON());
152119
- }
152120
- return data;
152121
- }
152122
- }
152123
-
152124
- export interface IOnPageResourcesResultInfo {
152125
- /** status of the crawling session
152126
- possible values: in_progress, finished */
152127
- crawl_progress?: string | undefined;
152128
- /** details of the crawling session */
152129
- crawl_status?: CrawlStatusInfo | undefined;
152130
- /** total number of relevant items crawled */
152131
- total_items_count?: number | undefined;
152132
- /** number of items in the results array */
152133
- items_count?: number | undefined;
152134
- /** items array */
152135
- items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
152136
-
152137
- [key: string]: any;
152138
- }
152139
-
152140
- export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
152141
- /** array of results */
152142
- result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
151911
+ /** resource errors and warnings */
151912
+ resource_errors?: OnPageResourceIssueInfo | undefined;
152143
151913
 
152144
151914
  [key: string]: any;
152145
151915
 
152146
- constructor(data?: IOnPageResourcesTaskInfo) {
151916
+ constructor(data?: IScriptResourceElementItem) {
152147
151917
  super(data);
151918
+ this._discriminator = "script";
152148
151919
  }
152149
151920
 
152150
151921
  init(_data?: any) {
@@ -152154,17 +151925,35 @@ export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOn
152154
151925
  if (_data.hasOwnProperty(property))
152155
151926
  this[property] = _data[property];
152156
151927
  }
152157
- if (Array.isArray(_data["result"])) {
152158
- this.result = [] as any;
152159
- for (let item of _data["result"])
152160
- this.result!.push(OnPageResourcesResultInfo.fromJS(item));
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
+ }
152161
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;
152162
151951
  }
152163
151952
  }
152164
151953
 
152165
- static fromJS(data: any): OnPageResourcesTaskInfo {
151954
+ static fromJS(data: any): ScriptResourceElementItem {
152166
151955
  data = typeof data === 'object' ? data : {};
152167
- let result = new OnPageResourcesTaskInfo();
151956
+ let result = new ScriptResourceElementItem();
152168
151957
  result.init(data);
152169
151958
  return result;
152170
151959
  }
@@ -152175,19 +151964,84 @@ export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOn
152175
151964
  if (this.hasOwnProperty(property))
152176
151965
  data[property] = this[property];
152177
151966
  }
152178
- if (Array.isArray(this.result)) {
152179
- data["result"] = [];
152180
- for (let item of this.result)
152181
- data["result"].push(item.toJSON());
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
+ }
152182
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;
152183
151990
  super.toJSON(data);
152184
151991
  return data;
152185
151992
  }
152186
151993
  }
152187
151994
 
152188
- export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
152189
- /** array of results */
152190
- result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
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;
152191
152045
 
152192
152046
  [key: string]: any;
152193
152047
  }
@@ -172381,6 +172235,15 @@ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
172381
172235
  example:
172382
172236
  2019-11-15 12:57:46 +00:00 */
172383
172237
  datetime?: string | undefined;
172238
+ /** title of the product */
172239
+ title?: string | undefined;
172240
+ /** URL to the product page */
172241
+ url?: string | undefined;
172242
+ /** URL to the product image */
172243
+ image_url?: string | undefined;
172244
+ /** product rating
172245
+ the product popularity rate based on product reviews */
172246
+ rating?: RatingElement | undefined;
172384
172247
  /** types of search results found in Google Shopping SERP
172385
172248
  contains types of all search results (items) found in the returned SERP
172386
172249
  possible item types:
@@ -172415,6 +172278,10 @@ shops_list, buy_on_google */
172415
172278
  this.language_code = _data["language_code"];
172416
172279
  this.check_url = _data["check_url"];
172417
172280
  this.datetime = _data["datetime"];
172281
+ this.title = _data["title"];
172282
+ this.url = _data["url"];
172283
+ this.image_url = _data["image_url"];
172284
+ this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
172418
172285
  if (Array.isArray(_data["item_types"])) {
172419
172286
  this.item_types = [] as any;
172420
172287
  for (let item of _data["item_types"])
@@ -172449,6 +172316,10 @@ shops_list, buy_on_google */
172449
172316
  data["language_code"] = this.language_code;
172450
172317
  data["check_url"] = this.check_url;
172451
172318
  data["datetime"] = this.datetime;
172319
+ data["title"] = this.title;
172320
+ data["url"] = this.url;
172321
+ data["image_url"] = this.image_url;
172322
+ data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
172452
172323
  if (Array.isArray(this.item_types)) {
172453
172324
  data["item_types"] = [];
172454
172325
  for (let item of this.item_types)
@@ -172484,6 +172355,15 @@ in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
172484
172355
  example:
172485
172356
  2019-11-15 12:57:46 +00:00 */
172486
172357
  datetime?: string | undefined;
172358
+ /** title of the product */
172359
+ title?: string | undefined;
172360
+ /** URL to the product page */
172361
+ url?: string | undefined;
172362
+ /** URL to the product image */
172363
+ image_url?: string | undefined;
172364
+ /** product rating
172365
+ the product popularity rate based on product reviews */
172366
+ rating?: RatingElement | undefined;
172487
172367
  /** types of search results found in Google Shopping SERP
172488
172368
  contains types of all search results (items) found in the returned SERP
172489
172369
  possible item types:
@@ -176224,6 +176104,188 @@ export interface IMerchantAmazonProductsTasksReadyResponseInfo extends IBaseResp
176224
176104
  [key: string]: any;
176225
176105
  }
176226
176106
 
176107
+ export class AmazonAmazonPaidSerpElementItem extends BaseAmazonSerpElementItem implements IAmazonAmazonPaidSerpElementItem {
176108
+ /** position within a group of elements with identical type values
176109
+ positions of elements with different type values are omitted from rank_group */
176110
+ rank_group?: number | undefined;
176111
+ /** absolute rank in SERP
176112
+ absolute position among all the elements found in Amazon SERP */
176113
+ rank_absolute?: number | undefined;
176114
+ /** the XPath of the element */
176115
+ xpath?: string | undefined;
176116
+ /** Amazon domain */
176117
+ domain?: string | undefined;
176118
+ /** product title */
176119
+ title?: string | undefined;
176120
+ /** the URL of the product page */
176121
+ url?: string | undefined;
176122
+ /** URL of the product image featured in the results */
176123
+ image_url?: string | undefined;
176124
+ /** number of product purchases in the past month */
176125
+ bought_past_month?: number | undefined;
176126
+ /** the regular price of a product
176127
+ example:
176128
+ 49.98 */
176129
+ price_from?: number | undefined;
176130
+ /** the upper limit of the product price range
176131
+ example:
176132
+ 384.99 */
176133
+ price_to?: number | undefined;
176134
+ /** currency in the ISO format
176135
+ example:
176136
+ USD */
176137
+ currency?: string | undefined;
176138
+ /** special offer details
176139
+ contains special offer details, including coupon and Subscribe & Save discounts */
176140
+ special_offers?: (string | undefined)[] | undefined;
176141
+ /** unique product identifier on Amazon
176142
+ note that there is no full list of possible values as the data_asin is a dynamic value assigned by Amazon
176143
+ example:
176144
+ B07G82D89J */
176145
+ data_asin?: string | undefined;
176146
+ /** product rating info */
176147
+ rating?: RatingElement | undefined;
176148
+ /** “Amazon’s choice” label
176149
+ if the value is true, the product is marked with the “Amazon’s choice” label */
176150
+ is_amazon_choice?: boolean | undefined;
176151
+ /** “Best Seller” label
176152
+ if the value is true, the product is marked with the “Best Seller” label */
176153
+ is_best_seller?: boolean | undefined;
176154
+ /** delivery information
176155
+ delivery information including free and fast delivery date ranges */
176156
+ delivery_info?: AmazonDeliveryInfo | undefined;
176157
+
176158
+ [key: string]: any;
176159
+
176160
+ constructor(data?: IAmazonAmazonPaidSerpElementItem) {
176161
+ super(data);
176162
+ this._discriminator = "amazon_paid";
176163
+ }
176164
+
176165
+ init(_data?: any) {
176166
+ super.init(_data);
176167
+ if (_data) {
176168
+ for (var property in _data) {
176169
+ if (_data.hasOwnProperty(property))
176170
+ this[property] = _data[property];
176171
+ }
176172
+ this.rank_group = _data["rank_group"];
176173
+ this.rank_absolute = _data["rank_absolute"];
176174
+ this.xpath = _data["xpath"];
176175
+ this.domain = _data["domain"];
176176
+ this.title = _data["title"];
176177
+ this.url = _data["url"];
176178
+ this.image_url = _data["image_url"];
176179
+ this.bought_past_month = _data["bought_past_month"];
176180
+ this.price_from = _data["price_from"];
176181
+ this.price_to = _data["price_to"];
176182
+ this.currency = _data["currency"];
176183
+ if (Array.isArray(_data["special_offers"])) {
176184
+ this.special_offers = [] as any;
176185
+ for (let item of _data["special_offers"])
176186
+ this.special_offers!.push(item);
176187
+ }
176188
+ this.data_asin = _data["data_asin"];
176189
+ this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
176190
+ this.is_amazon_choice = _data["is_amazon_choice"];
176191
+ this.is_best_seller = _data["is_best_seller"];
176192
+ this.delivery_info = _data["delivery_info"] ? AmazonDeliveryInfo.fromJS(_data["delivery_info"]) : <any>undefined;
176193
+ }
176194
+ }
176195
+
176196
+ static fromJS(data: any): AmazonAmazonPaidSerpElementItem {
176197
+ data = typeof data === 'object' ? data : {};
176198
+ let result = new AmazonAmazonPaidSerpElementItem();
176199
+ result.init(data);
176200
+ return result;
176201
+ }
176202
+
176203
+ toJSON(data?: any) {
176204
+ data = typeof data === 'object' ? data : {};
176205
+ for (var property in this) {
176206
+ if (this.hasOwnProperty(property))
176207
+ data[property] = this[property];
176208
+ }
176209
+ data["rank_group"] = this.rank_group;
176210
+ data["rank_absolute"] = this.rank_absolute;
176211
+ data["xpath"] = this.xpath;
176212
+ data["domain"] = this.domain;
176213
+ data["title"] = this.title;
176214
+ data["url"] = this.url;
176215
+ data["image_url"] = this.image_url;
176216
+ data["bought_past_month"] = this.bought_past_month;
176217
+ data["price_from"] = this.price_from;
176218
+ data["price_to"] = this.price_to;
176219
+ data["currency"] = this.currency;
176220
+ if (Array.isArray(this.special_offers)) {
176221
+ data["special_offers"] = [];
176222
+ for (let item of this.special_offers)
176223
+ data["special_offers"].push(item);
176224
+ }
176225
+ data["data_asin"] = this.data_asin;
176226
+ data["rating"] = this.rating ? this.rating.toJSON() : <any>undefined;
176227
+ data["is_amazon_choice"] = this.is_amazon_choice;
176228
+ data["is_best_seller"] = this.is_best_seller;
176229
+ data["delivery_info"] = this.delivery_info ? this.delivery_info.toJSON() : <any>undefined;
176230
+ super.toJSON(data);
176231
+ return data;
176232
+ }
176233
+ }
176234
+
176235
+ export interface IAmazonAmazonPaidSerpElementItem extends IBaseAmazonSerpElementItem {
176236
+ /** position within a group of elements with identical type values
176237
+ positions of elements with different type values are omitted from rank_group */
176238
+ rank_group?: number | undefined;
176239
+ /** absolute rank in SERP
176240
+ absolute position among all the elements found in Amazon SERP */
176241
+ rank_absolute?: number | undefined;
176242
+ /** the XPath of the element */
176243
+ xpath?: string | undefined;
176244
+ /** Amazon domain */
176245
+ domain?: string | undefined;
176246
+ /** product title */
176247
+ title?: string | undefined;
176248
+ /** the URL of the product page */
176249
+ url?: string | undefined;
176250
+ /** URL of the product image featured in the results */
176251
+ image_url?: string | undefined;
176252
+ /** number of product purchases in the past month */
176253
+ bought_past_month?: number | undefined;
176254
+ /** the regular price of a product
176255
+ example:
176256
+ 49.98 */
176257
+ price_from?: number | undefined;
176258
+ /** the upper limit of the product price range
176259
+ example:
176260
+ 384.99 */
176261
+ price_to?: number | undefined;
176262
+ /** currency in the ISO format
176263
+ example:
176264
+ USD */
176265
+ currency?: string | undefined;
176266
+ /** special offer details
176267
+ contains special offer details, including coupon and Subscribe & Save discounts */
176268
+ special_offers?: (string | undefined)[] | undefined;
176269
+ /** unique product identifier on Amazon
176270
+ note that there is no full list of possible values as the data_asin is a dynamic value assigned by Amazon
176271
+ example:
176272
+ B07G82D89J */
176273
+ data_asin?: string | undefined;
176274
+ /** product rating info */
176275
+ rating?: RatingElement | undefined;
176276
+ /** “Amazon’s choice” label
176277
+ if the value is true, the product is marked with the “Amazon’s choice” label */
176278
+ is_amazon_choice?: boolean | undefined;
176279
+ /** “Best Seller” label
176280
+ if the value is true, the product is marked with the “Best Seller” label */
176281
+ is_best_seller?: boolean | undefined;
176282
+ /** delivery information
176283
+ delivery information including free and fast delivery date ranges */
176284
+ delivery_info?: AmazonDeliveryInfo | undefined;
176285
+
176286
+ [key: string]: any;
176287
+ }
176288
+
176227
176289
  export class AmazonSerpElement implements IAmazonSerpElement {
176228
176290
  /** type of element */
176229
176291
  type?: string | undefined;
@@ -196860,7 +196922,7 @@ information related to busy hours of the business entity */
196860
196922
  popular_times?: PopularTimes | undefined;
196861
196923
  /** available interactions with the business
196862
196924
  list of options to interact with the business directly from search results */
196863
- local_business_links?: BaseLocalBusinessLink | undefined;
196925
+ local_business_links?: (BaseLocalBusinessLink | undefined)[] | undefined;
196864
196926
  /** business establishment is a part of the directory
196865
196927
  indicates whether the business establishment is a part of the directory;
196866
196928
  if true, the item is a part of the larger directory of businesses with the same address (e.g., a mall or a business centre);
@@ -196941,7 +197003,11 @@ includes information about businesses that are located within the target busines
196941
197003
  }
196942
197004
  this.work_time = _data["work_time"] ? WorkInfo.fromJS(_data["work_time"]) : <any>undefined;
196943
197005
  this.popular_times = _data["popular_times"] ? PopularTimes.fromJS(_data["popular_times"]) : <any>undefined;
196944
- this.local_business_links = _data["local_business_links"] ? BaseLocalBusinessLink.fromJS(_data["local_business_links"]) : <any>undefined;
197006
+ if (Array.isArray(_data["local_business_links"])) {
197007
+ this.local_business_links = [] as any;
197008
+ for (let item of _data["local_business_links"])
197009
+ this.local_business_links!.push(BaseLocalBusinessLink.fromJS(item));
197010
+ }
196945
197011
  this.is_directory_item = _data["is_directory_item"];
196946
197012
  this.directory = _data["directory"] ? BusinessDirectoryInfo.fromJS(_data["directory"]) : <any>undefined;
196947
197013
  }
@@ -197017,7 +197083,11 @@ includes information about businesses that are located within the target busines
197017
197083
  }
197018
197084
  data["work_time"] = this.work_time ? this.work_time.toJSON() : <any>undefined;
197019
197085
  data["popular_times"] = this.popular_times ? this.popular_times.toJSON() : <any>undefined;
197020
- data["local_business_links"] = this.local_business_links ? this.local_business_links.toJSON() : <any>undefined;
197086
+ if (Array.isArray(this.local_business_links)) {
197087
+ data["local_business_links"] = [];
197088
+ for (let item of this.local_business_links)
197089
+ data["local_business_links"].push(item.toJSON());
197090
+ }
197021
197091
  data["is_directory_item"] = this.is_directory_item;
197022
197092
  data["directory"] = this.directory ? this.directory.toJSON() : <any>undefined;
197023
197093
  super.toJSON(data);
@@ -197125,7 +197195,7 @@ information related to busy hours of the business entity */
197125
197195
  popular_times?: PopularTimes | undefined;
197126
197196
  /** available interactions with the business
197127
197197
  list of options to interact with the business directly from search results */
197128
- local_business_links?: BaseLocalBusinessLink | undefined;
197198
+ local_business_links?: (BaseLocalBusinessLink | undefined)[] | undefined;
197129
197199
  /** business establishment is a part of the directory
197130
197200
  indicates whether the business establishment is a part of the directory;
197131
197201
  if true, the item is a part of the larger directory of businesses with the same address (e.g., a mall or a business centre);
@@ -218350,7 +218420,9 @@ merchant
218350
218420
  on_page
218351
218421
  business_data
218352
218422
  backlinks
218353
- app_data */
218423
+ app_data
218424
+ content_analysis
218425
+ content_generation */
218354
218426
  api?: string | undefined;
218355
218427
  /** current status
218356
218428
  you can find all information about your API statuses for the last 60 days here
@@ -218428,7 +218500,9 @@ merchant
218428
218500
  on_page
218429
218501
  business_data
218430
218502
  backlinks
218431
- app_data */
218503
+ app_data
218504
+ content_analysis
218505
+ content_generation */
218432
218506
  api?: string | undefined;
218433
218507
  /** current status
218434
218508
  you can find all information about your API statuses for the last 60 days here