dataforseo-client 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.d.ts +710 -554
- package/main.js +673 -391
- package/main.js.map +1 -1
- package/main.ts +1499 -1062
- package/package.json +1 -1
package/main.ts
CHANGED
|
@@ -18129,6 +18129,48 @@ export class BusinessDataApi {
|
|
|
18129
18129
|
return Promise.resolve<BusinessDataGoogleMyBusinessInfoTaskGetResponseInfo | null>(null as any);
|
|
18130
18130
|
}
|
|
18131
18131
|
|
|
18132
|
+
/**
|
|
18133
|
+
* @param body (optional)
|
|
18134
|
+
* @return Successful operation
|
|
18135
|
+
*/
|
|
18136
|
+
googleMyBusinessInfoLive(body: (BusinessDataTaskRequestInfo | undefined)[] | undefined): Promise<BusinessDataGoogleMyBusinessInfoLiveResponseInfo | null> {
|
|
18137
|
+
let url_ = this.baseUrl + "/v3/business_data/google/my_business_info/live";
|
|
18138
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18139
|
+
|
|
18140
|
+
const content_ = JSON.stringify(body);
|
|
18141
|
+
|
|
18142
|
+
let options_: RequestInit = {
|
|
18143
|
+
body: content_,
|
|
18144
|
+
method: "POST",
|
|
18145
|
+
headers: {
|
|
18146
|
+
"Content-Type": "application/json",
|
|
18147
|
+
"Accept": "application/json"
|
|
18148
|
+
}
|
|
18149
|
+
};
|
|
18150
|
+
|
|
18151
|
+
return this.http.fetch(url_, options_).then((_response: Response) => {
|
|
18152
|
+
return this.processGoogleMyBusinessInfoLive(_response);
|
|
18153
|
+
});
|
|
18154
|
+
}
|
|
18155
|
+
|
|
18156
|
+
protected processGoogleMyBusinessInfoLive(response: Response): Promise<BusinessDataGoogleMyBusinessInfoLiveResponseInfo | null> {
|
|
18157
|
+
const status = response.status;
|
|
18158
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
18159
|
+
if (status === 200) {
|
|
18160
|
+
return response.text().then((_responseText) => {
|
|
18161
|
+
let result200: any = null;
|
|
18162
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18163
|
+
result200 = resultData200 ? BusinessDataGoogleMyBusinessInfoLiveResponseInfo.fromJS(resultData200) : <any>null;
|
|
18164
|
+
return result200;
|
|
18165
|
+
});
|
|
18166
|
+
} else if (status !== 200 && status !== 204) {
|
|
18167
|
+
return response.text().then((_responseText) => {
|
|
18168
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18169
|
+
});
|
|
18170
|
+
}
|
|
18171
|
+
return Promise.resolve<BusinessDataGoogleMyBusinessInfoLiveResponseInfo | null>(null as any);
|
|
18172
|
+
}
|
|
18173
|
+
|
|
18132
18174
|
/**
|
|
18133
18175
|
* @param body (optional)
|
|
18134
18176
|
* @return Successful operation
|
|
@@ -20155,6 +20197,11 @@ export class BaseSerpElementItem implements IBaseSerpElementItem {
|
|
|
20155
20197
|
result.init(data);
|
|
20156
20198
|
return result;
|
|
20157
20199
|
}
|
|
20200
|
+
if (data["type"] === "courses") {
|
|
20201
|
+
let result = new CoursesSerpElementItem();
|
|
20202
|
+
result.init(data);
|
|
20203
|
+
return result;
|
|
20204
|
+
}
|
|
20158
20205
|
if (data["type"] === "maps_search") {
|
|
20159
20206
|
let result = new MapsSearchSerpElementItem();
|
|
20160
20207
|
result.init(data);
|
|
@@ -20273,13 +20320,13 @@ export class BaseDataforseoLabsSerpElementItem implements IBaseDataforseoLabsSer
|
|
|
20273
20320
|
result.init(data);
|
|
20274
20321
|
return result;
|
|
20275
20322
|
}
|
|
20276
|
-
if (data["type"] === "
|
|
20277
|
-
let result = new
|
|
20323
|
+
if (data["type"] === "people_also_ask") {
|
|
20324
|
+
let result = new PeopleAlsoAskDataforseoLabsSerpElementItem();
|
|
20278
20325
|
result.init(data);
|
|
20279
20326
|
return result;
|
|
20280
20327
|
}
|
|
20281
|
-
if (data["type"] === "
|
|
20282
|
-
let result = new
|
|
20328
|
+
if (data["type"] === "twitter") {
|
|
20329
|
+
let result = new TwitterDataforseoLabsSerpElementItem();
|
|
20283
20330
|
result.init(data);
|
|
20284
20331
|
return result;
|
|
20285
20332
|
}
|
|
@@ -20298,6 +20345,11 @@ export class BaseDataforseoLabsSerpElementItem implements IBaseDataforseoLabsSer
|
|
|
20298
20345
|
result.init(data);
|
|
20299
20346
|
return result;
|
|
20300
20347
|
}
|
|
20348
|
+
if (data["type"] === "knowledge_graph_images_item") {
|
|
20349
|
+
let result = new KnowledgeGraphImagesItemDataforseoLabsSerpElementItem();
|
|
20350
|
+
result.init(data);
|
|
20351
|
+
return result;
|
|
20352
|
+
}
|
|
20301
20353
|
if (data["type"] === "knowledge_graph_row_item") {
|
|
20302
20354
|
let result = new KnowledgeGraphRowItemDataforseoLabsSerpElementItem();
|
|
20303
20355
|
result.init(data);
|
|
@@ -20308,13 +20360,8 @@ export class BaseDataforseoLabsSerpElementItem implements IBaseDataforseoLabsSer
|
|
|
20308
20360
|
result.init(data);
|
|
20309
20361
|
return result;
|
|
20310
20362
|
}
|
|
20311
|
-
if (data["type"] === "
|
|
20312
|
-
let result = new
|
|
20313
|
-
result.init(data);
|
|
20314
|
-
return result;
|
|
20315
|
-
}
|
|
20316
|
-
if (data["type"] === "knowledge_graph_images_item") {
|
|
20317
|
-
let result = new KnowledgeGraphImagesItemDataforseoLabsSerpElementItem();
|
|
20363
|
+
if (data["type"] === "knowledge_graph") {
|
|
20364
|
+
let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
|
|
20318
20365
|
result.init(data);
|
|
20319
20366
|
return result;
|
|
20320
20367
|
}
|
|
@@ -20883,13 +20930,13 @@ export class BaseOnPageResourceItemInfo implements IBaseOnPageResourceItemInfo {
|
|
|
20883
20930
|
result.init(data);
|
|
20884
20931
|
return result;
|
|
20885
20932
|
}
|
|
20886
|
-
if (data["resource_type"] === "
|
|
20887
|
-
let result = new
|
|
20933
|
+
if (data["resource_type"] === "script") {
|
|
20934
|
+
let result = new ScriptResourceElementItem();
|
|
20888
20935
|
result.init(data);
|
|
20889
20936
|
return result;
|
|
20890
20937
|
}
|
|
20891
|
-
if (data["resource_type"] === "
|
|
20892
|
-
let result = new
|
|
20938
|
+
if (data["resource_type"] === "stylesheet") {
|
|
20939
|
+
let result = new StylesheetResourceElementItem();
|
|
20893
20940
|
result.init(data);
|
|
20894
20941
|
return result;
|
|
20895
20942
|
}
|
|
@@ -37525,6 +37572,134 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
37525
37572
|
[key: string]: any;
|
|
37526
37573
|
}
|
|
37527
37574
|
|
|
37575
|
+
export class CoursesSerpElementItem extends BaseSerpElementItem implements ICoursesSerpElementItem {
|
|
37576
|
+
/** group rank in SERP
|
|
37577
|
+
position within a group of elements with identical type values;
|
|
37578
|
+
positions of elements with different type values are omitted from rank_group;
|
|
37579
|
+
always equals 0 for desktop */
|
|
37580
|
+
rank_group?: number | undefined;
|
|
37581
|
+
/** absolute rank in SERP
|
|
37582
|
+
absolute position among all the elements in SERP
|
|
37583
|
+
always equals 0 for desktop */
|
|
37584
|
+
rank_absolute?: number | undefined;
|
|
37585
|
+
/** the alignment of the element in SERP
|
|
37586
|
+
can take the following values:
|
|
37587
|
+
left, right */
|
|
37588
|
+
position?: string | undefined;
|
|
37589
|
+
/** the XPath of the element */
|
|
37590
|
+
xpath?: string | undefined;
|
|
37591
|
+
/** title of the row */
|
|
37592
|
+
title?: string | undefined;
|
|
37593
|
+
/** array of course categories
|
|
37594
|
+
contains a list of categories relevant to courses */
|
|
37595
|
+
categories?: (string | undefined)[] | undefined;
|
|
37596
|
+
/** additional items present in the element
|
|
37597
|
+
if there are none, equals null */
|
|
37598
|
+
items?: (CoursesElement | undefined)[] | undefined;
|
|
37599
|
+
/** rectangle parameters
|
|
37600
|
+
contains cartesian coordinates and pixel dimensions of the result’s snippet in SERP
|
|
37601
|
+
equals null if calculate_rectangles in the POST request is not set to true */
|
|
37602
|
+
rectangle?: Rectangle | undefined;
|
|
37603
|
+
|
|
37604
|
+
[key: string]: any;
|
|
37605
|
+
|
|
37606
|
+
constructor(data?: ICoursesSerpElementItem) {
|
|
37607
|
+
super(data);
|
|
37608
|
+
this._discriminator = "courses";
|
|
37609
|
+
}
|
|
37610
|
+
|
|
37611
|
+
init(_data?: any) {
|
|
37612
|
+
super.init(_data);
|
|
37613
|
+
if (_data) {
|
|
37614
|
+
for (var property in _data) {
|
|
37615
|
+
if (_data.hasOwnProperty(property))
|
|
37616
|
+
this[property] = _data[property];
|
|
37617
|
+
}
|
|
37618
|
+
this.rank_group = _data["rank_group"];
|
|
37619
|
+
this.rank_absolute = _data["rank_absolute"];
|
|
37620
|
+
this.position = _data["position"];
|
|
37621
|
+
this.xpath = _data["xpath"];
|
|
37622
|
+
this.title = _data["title"];
|
|
37623
|
+
if (Array.isArray(_data["categories"])) {
|
|
37624
|
+
this.categories = [] as any;
|
|
37625
|
+
for (let item of _data["categories"])
|
|
37626
|
+
this.categories!.push(item);
|
|
37627
|
+
}
|
|
37628
|
+
if (Array.isArray(_data["items"])) {
|
|
37629
|
+
this.items = [] as any;
|
|
37630
|
+
for (let item of _data["items"])
|
|
37631
|
+
this.items!.push(CoursesElement.fromJS(item));
|
|
37632
|
+
}
|
|
37633
|
+
this.rectangle = _data["rectangle"] ? Rectangle.fromJS(_data["rectangle"]) : <any>undefined;
|
|
37634
|
+
}
|
|
37635
|
+
}
|
|
37636
|
+
|
|
37637
|
+
static fromJS(data: any): CoursesSerpElementItem {
|
|
37638
|
+
data = typeof data === 'object' ? data : {};
|
|
37639
|
+
let result = new CoursesSerpElementItem();
|
|
37640
|
+
result.init(data);
|
|
37641
|
+
return result;
|
|
37642
|
+
}
|
|
37643
|
+
|
|
37644
|
+
toJSON(data?: any) {
|
|
37645
|
+
data = typeof data === 'object' ? data : {};
|
|
37646
|
+
for (var property in this) {
|
|
37647
|
+
if (this.hasOwnProperty(property))
|
|
37648
|
+
data[property] = this[property];
|
|
37649
|
+
}
|
|
37650
|
+
data["rank_group"] = this.rank_group;
|
|
37651
|
+
data["rank_absolute"] = this.rank_absolute;
|
|
37652
|
+
data["position"] = this.position;
|
|
37653
|
+
data["xpath"] = this.xpath;
|
|
37654
|
+
data["title"] = this.title;
|
|
37655
|
+
if (Array.isArray(this.categories)) {
|
|
37656
|
+
data["categories"] = [];
|
|
37657
|
+
for (let item of this.categories)
|
|
37658
|
+
data["categories"].push(item);
|
|
37659
|
+
}
|
|
37660
|
+
if (Array.isArray(this.items)) {
|
|
37661
|
+
data["items"] = [];
|
|
37662
|
+
for (let item of this.items)
|
|
37663
|
+
data["items"].push(item.toJSON());
|
|
37664
|
+
}
|
|
37665
|
+
data["rectangle"] = this.rectangle ? this.rectangle.toJSON() : <any>undefined;
|
|
37666
|
+
super.toJSON(data);
|
|
37667
|
+
return data;
|
|
37668
|
+
}
|
|
37669
|
+
}
|
|
37670
|
+
|
|
37671
|
+
export interface ICoursesSerpElementItem extends IBaseSerpElementItem {
|
|
37672
|
+
/** group rank in SERP
|
|
37673
|
+
position within a group of elements with identical type values;
|
|
37674
|
+
positions of elements with different type values are omitted from rank_group;
|
|
37675
|
+
always equals 0 for desktop */
|
|
37676
|
+
rank_group?: number | undefined;
|
|
37677
|
+
/** absolute rank in SERP
|
|
37678
|
+
absolute position among all the elements in SERP
|
|
37679
|
+
always equals 0 for desktop */
|
|
37680
|
+
rank_absolute?: number | undefined;
|
|
37681
|
+
/** the alignment of the element in SERP
|
|
37682
|
+
can take the following values:
|
|
37683
|
+
left, right */
|
|
37684
|
+
position?: string | undefined;
|
|
37685
|
+
/** the XPath of the element */
|
|
37686
|
+
xpath?: string | undefined;
|
|
37687
|
+
/** title of the row */
|
|
37688
|
+
title?: string | undefined;
|
|
37689
|
+
/** array of course categories
|
|
37690
|
+
contains a list of categories relevant to courses */
|
|
37691
|
+
categories?: (string | undefined)[] | undefined;
|
|
37692
|
+
/** additional items present in the element
|
|
37693
|
+
if there are none, equals null */
|
|
37694
|
+
items?: (CoursesElement | undefined)[] | undefined;
|
|
37695
|
+
/** rectangle parameters
|
|
37696
|
+
contains cartesian coordinates and pixel dimensions of the result’s snippet in SERP
|
|
37697
|
+
equals null if calculate_rectangles in the POST request is not set to true */
|
|
37698
|
+
rectangle?: Rectangle | undefined;
|
|
37699
|
+
|
|
37700
|
+
[key: string]: any;
|
|
37701
|
+
}
|
|
37702
|
+
|
|
37528
37703
|
export class SerpGoogleOrganicTaskGetAdvancedResultInfo implements ISerpGoogleOrganicTaskGetAdvancedResultInfo {
|
|
37529
37704
|
/** keyword received in a POST array
|
|
37530
37705
|
the keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character) */
|
|
@@ -37551,7 +37726,7 @@ if the search engine provided results for a keyword that was corrected, we will
|
|
|
37551
37726
|
/** types of search results in SERP
|
|
37552
37727
|
contains types of search results (items) found in SERP.
|
|
37553
37728
|
possible item types:
|
|
37554
|
-
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box,product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites */
|
|
37729
|
+
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box,product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites, courses */
|
|
37555
37730
|
item_types?: (string | undefined)[] | undefined;
|
|
37556
37731
|
/** total number of results in SERP */
|
|
37557
37732
|
se_results_count?: number | undefined;
|
|
@@ -37663,7 +37838,7 @@ if the search engine provided results for a keyword that was corrected, we will
|
|
|
37663
37838
|
/** types of search results in SERP
|
|
37664
37839
|
contains types of search results (items) found in SERP.
|
|
37665
37840
|
possible item types:
|
|
37666
|
-
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box,product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites */
|
|
37841
|
+
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box,product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites, courses */
|
|
37667
37842
|
item_types?: (string | undefined)[] | undefined;
|
|
37668
37843
|
/** total number of results in SERP */
|
|
37669
37844
|
se_results_count?: number | undefined;
|
|
@@ -39077,7 +39252,7 @@ if the search engine provided results for a keyword that was corrected, we will
|
|
|
39077
39252
|
/** types of search results in SERP
|
|
39078
39253
|
contains types of search results (items) found in SERP.
|
|
39079
39254
|
possible item types:
|
|
39080
|
-
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box, product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites */
|
|
39255
|
+
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box, product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites, courses */
|
|
39081
39256
|
item_types?: (string | undefined)[] | undefined;
|
|
39082
39257
|
/** total number of results in SERP */
|
|
39083
39258
|
se_results_count?: number | undefined;
|
|
@@ -39190,7 +39365,7 @@ if the search engine provided results for a keyword that was corrected, we will
|
|
|
39190
39365
|
/** types of search results in SERP
|
|
39191
39366
|
contains types of search results (items) found in SERP.
|
|
39192
39367
|
possible item types:
|
|
39193
|
-
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box, product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites */
|
|
39368
|
+
answer_box, app, carousel, multi_carousel, featured_snippet, google_flights, google_reviews, google_posts, images, jobs, knowledge_graph, local_pack, hotels_pack, map, organic, paid, people_also_ask, related_searches, people_also_search, shopping, top_stories, twitter, video, events, mention_carousel, recipes, top_sights, scholarly_articles, popular_products, podcasts, questions_and_answers, find_results_on, stocks_box, visual_stories, commercial_units, local_services, google_hotels, math_solver, currency_box, product_considerations, found_on_web, short_videos, refine_products, explore_brands, perspectives, discussions_and_forums, compare_sites, courses */
|
|
39194
39369
|
item_types?: (string | undefined)[] | undefined;
|
|
39195
39370
|
/** total number of results in SERP */
|
|
39196
39371
|
se_results_count?: number | undefined;
|
|
@@ -72217,45 +72392,17 @@ export interface ISerpNaverOrganicTaskGetRegularResponseInfo extends IBaseRespon
|
|
|
72217
72392
|
[key: string]: any;
|
|
72218
72393
|
}
|
|
72219
72394
|
|
|
72220
|
-
export class
|
|
72221
|
-
|
|
72222
|
-
|
|
72223
|
-
|
|
72224
|
-
|
|
72225
|
-
|
|
72226
|
-
|
|
72227
|
-
se_domain?: string | undefined;
|
|
72228
|
-
/** location code in a POST array */
|
|
72229
|
-
location_code?: number | undefined;
|
|
72230
|
-
/** language code in a POST array */
|
|
72231
|
-
language_code?: string | undefined;
|
|
72232
|
-
/** direct URL to search engine results
|
|
72233
|
-
you can use it to make sure that we provided accurate results */
|
|
72234
|
-
check_url?: string | undefined;
|
|
72235
|
-
/** date and time when the result was received
|
|
72236
|
-
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
72237
|
-
example:
|
|
72238
|
-
2019-11-15 12:57:46 +00:00 */
|
|
72239
|
-
datetime?: string | undefined;
|
|
72240
|
-
/** autocorrection of the search engine
|
|
72241
|
-
if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
|
|
72242
|
-
spell?: SpellInfo | undefined;
|
|
72243
|
-
/** types of search results in SERP
|
|
72244
|
-
contains types of search results (items) found in SERP.
|
|
72245
|
-
possible item types:
|
|
72246
|
-
images, local_pack, map, organic, paid, related_searches, video */
|
|
72247
|
-
item_types?: (string | undefined)[] | undefined;
|
|
72248
|
-
/** total number of results in SERP */
|
|
72249
|
-
se_results_count?: number | undefined;
|
|
72250
|
-
/** the number of results returned in the items array */
|
|
72251
|
-
items_count?: number | undefined;
|
|
72252
|
-
/** additional items present in the element
|
|
72253
|
-
if there are none, equals null */
|
|
72254
|
-
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
72395
|
+
export class Price implements IPrice {
|
|
72396
|
+
current?: number | undefined;
|
|
72397
|
+
regular?: number | undefined;
|
|
72398
|
+
max_value?: number | undefined;
|
|
72399
|
+
currency?: string | undefined;
|
|
72400
|
+
is_price_range?: boolean | undefined;
|
|
72401
|
+
displayed_price?: string | undefined;
|
|
72255
72402
|
|
|
72256
72403
|
[key: string]: any;
|
|
72257
72404
|
|
|
72258
|
-
constructor(data?:
|
|
72405
|
+
constructor(data?: IPrice) {
|
|
72259
72406
|
if (data) {
|
|
72260
72407
|
for (var property in data) {
|
|
72261
72408
|
if (data.hasOwnProperty(property))
|
|
@@ -72270,32 +72417,18 @@ if there are none, equals null */
|
|
|
72270
72417
|
if (_data.hasOwnProperty(property))
|
|
72271
72418
|
this[property] = _data[property];
|
|
72272
72419
|
}
|
|
72273
|
-
this.
|
|
72274
|
-
this.
|
|
72275
|
-
this.
|
|
72276
|
-
this.
|
|
72277
|
-
this.
|
|
72278
|
-
this.
|
|
72279
|
-
this.datetime = _data["datetime"];
|
|
72280
|
-
this.spell = _data["spell"] ? SpellInfo.fromJS(_data["spell"]) : <any>undefined;
|
|
72281
|
-
if (Array.isArray(_data["item_types"])) {
|
|
72282
|
-
this.item_types = [] as any;
|
|
72283
|
-
for (let item of _data["item_types"])
|
|
72284
|
-
this.item_types!.push(item);
|
|
72285
|
-
}
|
|
72286
|
-
this.se_results_count = _data["se_results_count"];
|
|
72287
|
-
this.items_count = _data["items_count"];
|
|
72288
|
-
if (Array.isArray(_data["items"])) {
|
|
72289
|
-
this.items = [] as any;
|
|
72290
|
-
for (let item of _data["items"])
|
|
72291
|
-
this.items!.push(BaseSerpElementItem.fromJS(item));
|
|
72292
|
-
}
|
|
72420
|
+
this.current = _data["current"];
|
|
72421
|
+
this.regular = _data["regular"];
|
|
72422
|
+
this.max_value = _data["max_value"];
|
|
72423
|
+
this.currency = _data["currency"];
|
|
72424
|
+
this.is_price_range = _data["is_price_range"];
|
|
72425
|
+
this.displayed_price = _data["displayed_price"];
|
|
72293
72426
|
}
|
|
72294
72427
|
}
|
|
72295
72428
|
|
|
72296
|
-
static fromJS(data: any):
|
|
72429
|
+
static fromJS(data: any): Price {
|
|
72297
72430
|
data = typeof data === 'object' ? data : {};
|
|
72298
|
-
let result = new
|
|
72431
|
+
let result = new Price();
|
|
72299
72432
|
result.init(data);
|
|
72300
72433
|
return result;
|
|
72301
72434
|
}
|
|
@@ -72306,31 +72439,141 @@ if there are none, equals null */
|
|
|
72306
72439
|
if (this.hasOwnProperty(property))
|
|
72307
72440
|
data[property] = this[property];
|
|
72308
72441
|
}
|
|
72309
|
-
data["
|
|
72310
|
-
data["
|
|
72311
|
-
data["
|
|
72312
|
-
data["
|
|
72313
|
-
data["
|
|
72314
|
-
data["
|
|
72315
|
-
data["datetime"] = this.datetime;
|
|
72316
|
-
data["spell"] = this.spell ? this.spell.toJSON() : <any>undefined;
|
|
72317
|
-
if (Array.isArray(this.item_types)) {
|
|
72318
|
-
data["item_types"] = [];
|
|
72319
|
-
for (let item of this.item_types)
|
|
72320
|
-
data["item_types"].push(item);
|
|
72321
|
-
}
|
|
72322
|
-
data["se_results_count"] = this.se_results_count;
|
|
72323
|
-
data["items_count"] = this.items_count;
|
|
72324
|
-
if (Array.isArray(this.items)) {
|
|
72325
|
-
data["items"] = [];
|
|
72326
|
-
for (let item of this.items)
|
|
72327
|
-
data["items"].push(item.toJSON());
|
|
72328
|
-
}
|
|
72442
|
+
data["current"] = this.current;
|
|
72443
|
+
data["regular"] = this.regular;
|
|
72444
|
+
data["max_value"] = this.max_value;
|
|
72445
|
+
data["currency"] = this.currency;
|
|
72446
|
+
data["is_price_range"] = this.is_price_range;
|
|
72447
|
+
data["displayed_price"] = this.displayed_price;
|
|
72329
72448
|
return data;
|
|
72330
72449
|
}
|
|
72331
72450
|
}
|
|
72332
72451
|
|
|
72333
|
-
export interface
|
|
72452
|
+
export interface IPrice {
|
|
72453
|
+
current?: number | undefined;
|
|
72454
|
+
regular?: number | undefined;
|
|
72455
|
+
max_value?: number | undefined;
|
|
72456
|
+
currency?: string | undefined;
|
|
72457
|
+
is_price_range?: boolean | undefined;
|
|
72458
|
+
displayed_price?: string | undefined;
|
|
72459
|
+
|
|
72460
|
+
[key: string]: any;
|
|
72461
|
+
}
|
|
72462
|
+
|
|
72463
|
+
export class SerpNaverOrganicTaskGetAdvancedResultInfo implements ISerpNaverOrganicTaskGetAdvancedResultInfo {
|
|
72464
|
+
/** keyword received in a POST array
|
|
72465
|
+
the keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character) */
|
|
72466
|
+
keyword?: string | undefined;
|
|
72467
|
+
/** type of element */
|
|
72468
|
+
type?: string | undefined;
|
|
72469
|
+
/** search engine domain in a POST array */
|
|
72470
|
+
se_domain?: string | undefined;
|
|
72471
|
+
/** location code in a POST array */
|
|
72472
|
+
location_code?: number | undefined;
|
|
72473
|
+
/** language code in a POST array */
|
|
72474
|
+
language_code?: string | undefined;
|
|
72475
|
+
/** direct URL to search engine results
|
|
72476
|
+
you can use it to make sure that we provided accurate results */
|
|
72477
|
+
check_url?: string | undefined;
|
|
72478
|
+
/** date and time when the result was received
|
|
72479
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
72480
|
+
example:
|
|
72481
|
+
2019-11-15 12:57:46 +00:00 */
|
|
72482
|
+
datetime?: string | undefined;
|
|
72483
|
+
/** autocorrection of the search engine
|
|
72484
|
+
if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection */
|
|
72485
|
+
spell?: SpellInfo | undefined;
|
|
72486
|
+
/** types of search results in SERP
|
|
72487
|
+
contains types of search results (items) found in SERP.
|
|
72488
|
+
possible item types:
|
|
72489
|
+
images, local_pack, map, organic, paid, related_searches, video */
|
|
72490
|
+
item_types?: (string | undefined)[] | undefined;
|
|
72491
|
+
/** total number of results in SERP */
|
|
72492
|
+
se_results_count?: number | undefined;
|
|
72493
|
+
/** the number of results returned in the items array */
|
|
72494
|
+
items_count?: number | undefined;
|
|
72495
|
+
/** additional items present in the element
|
|
72496
|
+
if there are none, equals null */
|
|
72497
|
+
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
72498
|
+
|
|
72499
|
+
[key: string]: any;
|
|
72500
|
+
|
|
72501
|
+
constructor(data?: ISerpNaverOrganicTaskGetAdvancedResultInfo) {
|
|
72502
|
+
if (data) {
|
|
72503
|
+
for (var property in data) {
|
|
72504
|
+
if (data.hasOwnProperty(property))
|
|
72505
|
+
(<any>this)[property] = (<any>data)[property];
|
|
72506
|
+
}
|
|
72507
|
+
}
|
|
72508
|
+
}
|
|
72509
|
+
|
|
72510
|
+
init(_data?: any) {
|
|
72511
|
+
if (_data) {
|
|
72512
|
+
for (var property in _data) {
|
|
72513
|
+
if (_data.hasOwnProperty(property))
|
|
72514
|
+
this[property] = _data[property];
|
|
72515
|
+
}
|
|
72516
|
+
this.keyword = _data["keyword"];
|
|
72517
|
+
this.type = _data["type"];
|
|
72518
|
+
this.se_domain = _data["se_domain"];
|
|
72519
|
+
this.location_code = _data["location_code"];
|
|
72520
|
+
this.language_code = _data["language_code"];
|
|
72521
|
+
this.check_url = _data["check_url"];
|
|
72522
|
+
this.datetime = _data["datetime"];
|
|
72523
|
+
this.spell = _data["spell"] ? SpellInfo.fromJS(_data["spell"]) : <any>undefined;
|
|
72524
|
+
if (Array.isArray(_data["item_types"])) {
|
|
72525
|
+
this.item_types = [] as any;
|
|
72526
|
+
for (let item of _data["item_types"])
|
|
72527
|
+
this.item_types!.push(item);
|
|
72528
|
+
}
|
|
72529
|
+
this.se_results_count = _data["se_results_count"];
|
|
72530
|
+
this.items_count = _data["items_count"];
|
|
72531
|
+
if (Array.isArray(_data["items"])) {
|
|
72532
|
+
this.items = [] as any;
|
|
72533
|
+
for (let item of _data["items"])
|
|
72534
|
+
this.items!.push(BaseSerpElementItem.fromJS(item));
|
|
72535
|
+
}
|
|
72536
|
+
}
|
|
72537
|
+
}
|
|
72538
|
+
|
|
72539
|
+
static fromJS(data: any): SerpNaverOrganicTaskGetAdvancedResultInfo {
|
|
72540
|
+
data = typeof data === 'object' ? data : {};
|
|
72541
|
+
let result = new SerpNaverOrganicTaskGetAdvancedResultInfo();
|
|
72542
|
+
result.init(data);
|
|
72543
|
+
return result;
|
|
72544
|
+
}
|
|
72545
|
+
|
|
72546
|
+
toJSON(data?: any) {
|
|
72547
|
+
data = typeof data === 'object' ? data : {};
|
|
72548
|
+
for (var property in this) {
|
|
72549
|
+
if (this.hasOwnProperty(property))
|
|
72550
|
+
data[property] = this[property];
|
|
72551
|
+
}
|
|
72552
|
+
data["keyword"] = this.keyword;
|
|
72553
|
+
data["type"] = this.type;
|
|
72554
|
+
data["se_domain"] = this.se_domain;
|
|
72555
|
+
data["location_code"] = this.location_code;
|
|
72556
|
+
data["language_code"] = this.language_code;
|
|
72557
|
+
data["check_url"] = this.check_url;
|
|
72558
|
+
data["datetime"] = this.datetime;
|
|
72559
|
+
data["spell"] = this.spell ? this.spell.toJSON() : <any>undefined;
|
|
72560
|
+
if (Array.isArray(this.item_types)) {
|
|
72561
|
+
data["item_types"] = [];
|
|
72562
|
+
for (let item of this.item_types)
|
|
72563
|
+
data["item_types"].push(item);
|
|
72564
|
+
}
|
|
72565
|
+
data["se_results_count"] = this.se_results_count;
|
|
72566
|
+
data["items_count"] = this.items_count;
|
|
72567
|
+
if (Array.isArray(this.items)) {
|
|
72568
|
+
data["items"] = [];
|
|
72569
|
+
for (let item of this.items)
|
|
72570
|
+
data["items"].push(item.toJSON());
|
|
72571
|
+
}
|
|
72572
|
+
return data;
|
|
72573
|
+
}
|
|
72574
|
+
}
|
|
72575
|
+
|
|
72576
|
+
export interface ISerpNaverOrganicTaskGetAdvancedResultInfo {
|
|
72334
72577
|
/** keyword received in a POST array
|
|
72335
72578
|
the keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character) */
|
|
72336
72579
|
keyword?: string | undefined;
|
|
@@ -92342,7 +92585,7 @@ represents the number of search results in SERP relevant to the domain for the s
|
|
|
92342
92585
|
relevant_serp_items?: number | undefined;
|
|
92343
92586
|
/** keyword positions
|
|
92344
92587
|
SERP positions the related domain holds in SERP for the specified keywords */
|
|
92345
|
-
keywords_positions?: { [key: string]: number[]; };
|
|
92588
|
+
keywords_positions?: { [key: string]: (number | undefined)[]; } | undefined;
|
|
92346
92589
|
|
|
92347
92590
|
[key: string]: any;
|
|
92348
92591
|
|
|
@@ -92374,7 +92617,7 @@ SERP positions the related domain holds in SERP for the specified keywords */
|
|
|
92374
92617
|
this.keywords_positions = {} as any;
|
|
92375
92618
|
for (let key in _data["keywords_positions"]) {
|
|
92376
92619
|
if (_data["keywords_positions"].hasOwnProperty(key))
|
|
92377
|
-
(<any>this.keywords_positions)![key] = _data["keywords_positions"][key]
|
|
92620
|
+
(<any>this.keywords_positions)![key] = _data["keywords_positions"][key];
|
|
92378
92621
|
}
|
|
92379
92622
|
}
|
|
92380
92623
|
}
|
|
@@ -92446,7 +92689,7 @@ represents the number of search results in SERP relevant to the domain for the s
|
|
|
92446
92689
|
relevant_serp_items?: number | undefined;
|
|
92447
92690
|
/** keyword positions
|
|
92448
92691
|
SERP positions the related domain holds in SERP for the specified keywords */
|
|
92449
|
-
keywords_positions?: { [key: string]: number[]; };
|
|
92692
|
+
keywords_positions?: { [key: string]: (number | undefined)[]; } | undefined;
|
|
92450
92693
|
|
|
92451
92694
|
[key: string]: any;
|
|
92452
92695
|
}
|
|
@@ -95859,155 +96102,10 @@ you will find the specified tag value in the data object of the response */
|
|
|
95859
96102
|
[key: string]: any;
|
|
95860
96103
|
}
|
|
95861
96104
|
|
|
95862
|
-
export class KnowledgeGraphDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphDataforseoLabsSerpElementItem {
|
|
95863
|
-
/** search engine type */
|
|
95864
|
-
se_type?: string | undefined;
|
|
95865
|
-
/** group rank in SERP
|
|
95866
|
-
position within a group of elements with identical type values
|
|
95867
|
-
positions of elements with different type values are omitted from rank_group */
|
|
95868
|
-
rank_group?: number | undefined;
|
|
95869
|
-
/** absolute rank in SERP
|
|
95870
|
-
absolute position among all the elements in SERP */
|
|
95871
|
-
rank_absolute?: number | undefined;
|
|
95872
|
-
/** the alignment of the element in SERP
|
|
95873
|
-
can take the following values:
|
|
95874
|
-
left, right */
|
|
95875
|
-
position?: string | undefined;
|
|
95876
|
-
/** the XPath of the element */
|
|
95877
|
-
xpath?: string | undefined;
|
|
95878
|
-
/** title of the result in SERP */
|
|
95879
|
-
title?: string | undefined;
|
|
95880
|
-
/** subtitle of the item */
|
|
95881
|
-
sub_title?: string | undefined;
|
|
95882
|
-
/** description of the results element in SERP */
|
|
95883
|
-
description?: string | undefined;
|
|
95884
|
-
/** card id */
|
|
95885
|
-
card_id?: string | undefined;
|
|
95886
|
-
/** relevant URL in SERP */
|
|
95887
|
-
url?: string | undefined;
|
|
95888
|
-
/** URL of the image from knowledge graph */
|
|
95889
|
-
image_url?: string | undefined;
|
|
95890
|
-
/** URL of the logo from knowledge graph */
|
|
95891
|
-
logo_url?: string | undefined;
|
|
95892
|
-
/** google-defined client id */
|
|
95893
|
-
cid?: string | undefined;
|
|
95894
|
-
/** elements of search results found in SERP */
|
|
95895
|
-
items?: (PeopleAlsoAskElement | undefined)[] | undefined;
|
|
95896
|
-
|
|
95897
|
-
[key: string]: any;
|
|
95898
|
-
|
|
95899
|
-
constructor(data?: IKnowledgeGraphDataforseoLabsSerpElementItem) {
|
|
95900
|
-
super(data);
|
|
95901
|
-
this._discriminator = "knowledge_graph";
|
|
95902
|
-
}
|
|
95903
|
-
|
|
95904
|
-
init(_data?: any) {
|
|
95905
|
-
super.init(_data);
|
|
95906
|
-
if (_data) {
|
|
95907
|
-
for (var property in _data) {
|
|
95908
|
-
if (_data.hasOwnProperty(property))
|
|
95909
|
-
this[property] = _data[property];
|
|
95910
|
-
}
|
|
95911
|
-
this.se_type = _data["se_type"];
|
|
95912
|
-
this.rank_group = _data["rank_group"];
|
|
95913
|
-
this.rank_absolute = _data["rank_absolute"];
|
|
95914
|
-
this.position = _data["position"];
|
|
95915
|
-
this.xpath = _data["xpath"];
|
|
95916
|
-
this.title = _data["title"];
|
|
95917
|
-
this.sub_title = _data["sub_title"];
|
|
95918
|
-
this.description = _data["description"];
|
|
95919
|
-
this.card_id = _data["card_id"];
|
|
95920
|
-
this.url = _data["url"];
|
|
95921
|
-
this.image_url = _data["image_url"];
|
|
95922
|
-
this.logo_url = _data["logo_url"];
|
|
95923
|
-
this.cid = _data["cid"];
|
|
95924
|
-
if (Array.isArray(_data["items"])) {
|
|
95925
|
-
this.items = [] as any;
|
|
95926
|
-
for (let item of _data["items"])
|
|
95927
|
-
this.items!.push(PeopleAlsoAskElement.fromJS(item));
|
|
95928
|
-
}
|
|
95929
|
-
}
|
|
95930
|
-
}
|
|
95931
|
-
|
|
95932
|
-
static fromJS(data: any): KnowledgeGraphDataforseoLabsSerpElementItem {
|
|
95933
|
-
data = typeof data === 'object' ? data : {};
|
|
95934
|
-
let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
|
|
95935
|
-
result.init(data);
|
|
95936
|
-
return result;
|
|
95937
|
-
}
|
|
95938
|
-
|
|
95939
|
-
toJSON(data?: any) {
|
|
95940
|
-
data = typeof data === 'object' ? data : {};
|
|
95941
|
-
for (var property in this) {
|
|
95942
|
-
if (this.hasOwnProperty(property))
|
|
95943
|
-
data[property] = this[property];
|
|
95944
|
-
}
|
|
95945
|
-
data["se_type"] = this.se_type;
|
|
95946
|
-
data["rank_group"] = this.rank_group;
|
|
95947
|
-
data["rank_absolute"] = this.rank_absolute;
|
|
95948
|
-
data["position"] = this.position;
|
|
95949
|
-
data["xpath"] = this.xpath;
|
|
95950
|
-
data["title"] = this.title;
|
|
95951
|
-
data["sub_title"] = this.sub_title;
|
|
95952
|
-
data["description"] = this.description;
|
|
95953
|
-
data["card_id"] = this.card_id;
|
|
95954
|
-
data["url"] = this.url;
|
|
95955
|
-
data["image_url"] = this.image_url;
|
|
95956
|
-
data["logo_url"] = this.logo_url;
|
|
95957
|
-
data["cid"] = this.cid;
|
|
95958
|
-
if (Array.isArray(this.items)) {
|
|
95959
|
-
data["items"] = [];
|
|
95960
|
-
for (let item of this.items)
|
|
95961
|
-
data["items"].push(item.toJSON());
|
|
95962
|
-
}
|
|
95963
|
-
super.toJSON(data);
|
|
95964
|
-
return data;
|
|
95965
|
-
}
|
|
95966
|
-
}
|
|
95967
|
-
|
|
95968
|
-
export interface IKnowledgeGraphDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
95969
|
-
/** search engine type */
|
|
95970
|
-
se_type?: string | undefined;
|
|
95971
|
-
/** group rank in SERP
|
|
95972
|
-
position within a group of elements with identical type values
|
|
95973
|
-
positions of elements with different type values are omitted from rank_group */
|
|
95974
|
-
rank_group?: number | undefined;
|
|
95975
|
-
/** absolute rank in SERP
|
|
95976
|
-
absolute position among all the elements in SERP */
|
|
95977
|
-
rank_absolute?: number | undefined;
|
|
95978
|
-
/** the alignment of the element in SERP
|
|
95979
|
-
can take the following values:
|
|
95980
|
-
left, right */
|
|
95981
|
-
position?: string | undefined;
|
|
95982
|
-
/** the XPath of the element */
|
|
95983
|
-
xpath?: string | undefined;
|
|
95984
|
-
/** title of the result in SERP */
|
|
95985
|
-
title?: string | undefined;
|
|
95986
|
-
/** subtitle of the item */
|
|
95987
|
-
sub_title?: string | undefined;
|
|
95988
|
-
/** description of the results element in SERP */
|
|
95989
|
-
description?: string | undefined;
|
|
95990
|
-
/** card id */
|
|
95991
|
-
card_id?: string | undefined;
|
|
95992
|
-
/** relevant URL in SERP */
|
|
95993
|
-
url?: string | undefined;
|
|
95994
|
-
/** URL of the image from knowledge graph */
|
|
95995
|
-
image_url?: string | undefined;
|
|
95996
|
-
/** URL of the logo from knowledge graph */
|
|
95997
|
-
logo_url?: string | undefined;
|
|
95998
|
-
/** google-defined client id */
|
|
95999
|
-
cid?: string | undefined;
|
|
96000
|
-
/** elements of search results found in SERP */
|
|
96001
|
-
items?: (PeopleAlsoAskElement | undefined)[] | undefined;
|
|
96002
|
-
|
|
96003
|
-
[key: string]: any;
|
|
96004
|
-
}
|
|
96005
|
-
|
|
96006
96105
|
export class PeopleAlsoAskDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IPeopleAlsoAskDataforseoLabsSerpElementItem {
|
|
96007
96106
|
/** search engine type */
|
|
96008
96107
|
se_type?: string | undefined;
|
|
96009
|
-
/** group
|
|
96010
|
-
position within a group of elements with identical type values
|
|
96108
|
+
/** position within a group of elements with identical type values
|
|
96011
96109
|
positions of elements with different type values are omitted from rank_group */
|
|
96012
96110
|
rank_group?: number | undefined;
|
|
96013
96111
|
/** absolute rank in SERP
|
|
@@ -96080,8 +96178,7 @@ left, right */
|
|
|
96080
96178
|
export interface IPeopleAlsoAskDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
96081
96179
|
/** search engine type */
|
|
96082
96180
|
se_type?: string | undefined;
|
|
96083
|
-
/** group
|
|
96084
|
-
position within a group of elements with identical type values
|
|
96181
|
+
/** position within a group of elements with identical type values
|
|
96085
96182
|
positions of elements with different type values are omitted from rank_group */
|
|
96086
96183
|
rank_group?: number | undefined;
|
|
96087
96184
|
/** absolute rank in SERP
|
|
@@ -96099,6 +96196,112 @@ left, right */
|
|
|
96099
96196
|
[key: string]: any;
|
|
96100
96197
|
}
|
|
96101
96198
|
|
|
96199
|
+
export class TwitterDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements ITwitterDataforseoLabsSerpElementItem {
|
|
96200
|
+
/** search engine type */
|
|
96201
|
+
se_type?: string | undefined;
|
|
96202
|
+
/** position within a group of elements with identical type values
|
|
96203
|
+
positions of elements with different type values are omitted from rank_group */
|
|
96204
|
+
rank_group?: number | undefined;
|
|
96205
|
+
/** absolute rank in SERP
|
|
96206
|
+
absolute position among all the elements in SERP */
|
|
96207
|
+
rank_absolute?: number | undefined;
|
|
96208
|
+
/** the alignment of the element in SERP
|
|
96209
|
+
can take the following values:
|
|
96210
|
+
left, right */
|
|
96211
|
+
position?: string | undefined;
|
|
96212
|
+
/** the XPath of the element */
|
|
96213
|
+
xpath?: string | undefined;
|
|
96214
|
+
/** title of the result in SERP */
|
|
96215
|
+
title?: string | undefined;
|
|
96216
|
+
/** relevant URL of the Ad element in SERP */
|
|
96217
|
+
url?: string | undefined;
|
|
96218
|
+
/** elements of search results found in SERP */
|
|
96219
|
+
items?: (TwitterElement | undefined)[] | undefined;
|
|
96220
|
+
|
|
96221
|
+
[key: string]: any;
|
|
96222
|
+
|
|
96223
|
+
constructor(data?: ITwitterDataforseoLabsSerpElementItem) {
|
|
96224
|
+
super(data);
|
|
96225
|
+
this._discriminator = "twitter";
|
|
96226
|
+
}
|
|
96227
|
+
|
|
96228
|
+
init(_data?: any) {
|
|
96229
|
+
super.init(_data);
|
|
96230
|
+
if (_data) {
|
|
96231
|
+
for (var property in _data) {
|
|
96232
|
+
if (_data.hasOwnProperty(property))
|
|
96233
|
+
this[property] = _data[property];
|
|
96234
|
+
}
|
|
96235
|
+
this.se_type = _data["se_type"];
|
|
96236
|
+
this.rank_group = _data["rank_group"];
|
|
96237
|
+
this.rank_absolute = _data["rank_absolute"];
|
|
96238
|
+
this.position = _data["position"];
|
|
96239
|
+
this.xpath = _data["xpath"];
|
|
96240
|
+
this.title = _data["title"];
|
|
96241
|
+
this.url = _data["url"];
|
|
96242
|
+
if (Array.isArray(_data["items"])) {
|
|
96243
|
+
this.items = [] as any;
|
|
96244
|
+
for (let item of _data["items"])
|
|
96245
|
+
this.items!.push(TwitterElement.fromJS(item));
|
|
96246
|
+
}
|
|
96247
|
+
}
|
|
96248
|
+
}
|
|
96249
|
+
|
|
96250
|
+
static fromJS(data: any): TwitterDataforseoLabsSerpElementItem {
|
|
96251
|
+
data = typeof data === 'object' ? data : {};
|
|
96252
|
+
let result = new TwitterDataforseoLabsSerpElementItem();
|
|
96253
|
+
result.init(data);
|
|
96254
|
+
return result;
|
|
96255
|
+
}
|
|
96256
|
+
|
|
96257
|
+
toJSON(data?: any) {
|
|
96258
|
+
data = typeof data === 'object' ? data : {};
|
|
96259
|
+
for (var property in this) {
|
|
96260
|
+
if (this.hasOwnProperty(property))
|
|
96261
|
+
data[property] = this[property];
|
|
96262
|
+
}
|
|
96263
|
+
data["se_type"] = this.se_type;
|
|
96264
|
+
data["rank_group"] = this.rank_group;
|
|
96265
|
+
data["rank_absolute"] = this.rank_absolute;
|
|
96266
|
+
data["position"] = this.position;
|
|
96267
|
+
data["xpath"] = this.xpath;
|
|
96268
|
+
data["title"] = this.title;
|
|
96269
|
+
data["url"] = this.url;
|
|
96270
|
+
if (Array.isArray(this.items)) {
|
|
96271
|
+
data["items"] = [];
|
|
96272
|
+
for (let item of this.items)
|
|
96273
|
+
data["items"].push(item.toJSON());
|
|
96274
|
+
}
|
|
96275
|
+
super.toJSON(data);
|
|
96276
|
+
return data;
|
|
96277
|
+
}
|
|
96278
|
+
}
|
|
96279
|
+
|
|
96280
|
+
export interface ITwitterDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
96281
|
+
/** search engine type */
|
|
96282
|
+
se_type?: string | undefined;
|
|
96283
|
+
/** position within a group of elements with identical type values
|
|
96284
|
+
positions of elements with different type values are omitted from rank_group */
|
|
96285
|
+
rank_group?: number | undefined;
|
|
96286
|
+
/** absolute rank in SERP
|
|
96287
|
+
absolute position among all the elements in SERP */
|
|
96288
|
+
rank_absolute?: number | undefined;
|
|
96289
|
+
/** the alignment of the element in SERP
|
|
96290
|
+
can take the following values:
|
|
96291
|
+
left, right */
|
|
96292
|
+
position?: string | undefined;
|
|
96293
|
+
/** the XPath of the element */
|
|
96294
|
+
xpath?: string | undefined;
|
|
96295
|
+
/** title of the result in SERP */
|
|
96296
|
+
title?: string | undefined;
|
|
96297
|
+
/** relevant URL of the Ad element in SERP */
|
|
96298
|
+
url?: string | undefined;
|
|
96299
|
+
/** elements of search results found in SERP */
|
|
96300
|
+
items?: (TwitterElement | undefined)[] | undefined;
|
|
96301
|
+
|
|
96302
|
+
[key: string]: any;
|
|
96303
|
+
}
|
|
96304
|
+
|
|
96102
96305
|
export class PeopleAlsoSearchDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IPeopleAlsoSearchDataforseoLabsSerpElementItem {
|
|
96103
96306
|
/** search engine type */
|
|
96104
96307
|
se_type?: string | undefined;
|
|
@@ -96114,10 +96317,9 @@ left, right */
|
|
|
96114
96317
|
position?: string | undefined;
|
|
96115
96318
|
/** the XPath of the element */
|
|
96116
96319
|
xpath?: string | undefined;
|
|
96117
|
-
/** title of the
|
|
96320
|
+
/** title of the result in SERP */
|
|
96118
96321
|
title?: string | undefined;
|
|
96119
|
-
/**
|
|
96120
|
-
if there are none, equals null */
|
|
96322
|
+
/** elements of search results found in SERP */
|
|
96121
96323
|
items?: (string | undefined)[] | undefined;
|
|
96122
96324
|
|
|
96123
96325
|
[key: string]: any;
|
|
@@ -96192,10 +96394,9 @@ left, right */
|
|
|
96192
96394
|
position?: string | undefined;
|
|
96193
96395
|
/** the XPath of the element */
|
|
96194
96396
|
xpath?: string | undefined;
|
|
96195
|
-
/** title of the
|
|
96397
|
+
/** title of the result in SERP */
|
|
96196
96398
|
title?: string | undefined;
|
|
96197
|
-
/**
|
|
96198
|
-
if there are none, equals null */
|
|
96399
|
+
/** elements of search results found in SERP */
|
|
96199
96400
|
items?: (string | undefined)[] | undefined;
|
|
96200
96401
|
|
|
96201
96402
|
[key: string]: any;
|
|
@@ -96216,8 +96417,7 @@ left, right */
|
|
|
96216
96417
|
position?: string | undefined;
|
|
96217
96418
|
/** the XPath of the element */
|
|
96218
96419
|
xpath?: string | undefined;
|
|
96219
|
-
/**
|
|
96220
|
-
if there are none, equals null */
|
|
96420
|
+
/** elements of search results found in SERP */
|
|
96221
96421
|
items?: (string | undefined)[] | undefined;
|
|
96222
96422
|
|
|
96223
96423
|
[key: string]: any;
|
|
@@ -96290,8 +96490,7 @@ left, right */
|
|
|
96290
96490
|
position?: string | undefined;
|
|
96291
96491
|
/** the XPath of the element */
|
|
96292
96492
|
xpath?: string | undefined;
|
|
96293
|
-
/**
|
|
96294
|
-
if there are none, equals null */
|
|
96493
|
+
/** elements of search results found in SERP */
|
|
96295
96494
|
items?: (string | undefined)[] | undefined;
|
|
96296
96495
|
|
|
96297
96496
|
[key: string]: any;
|
|
@@ -96397,6 +96596,104 @@ if there are none, equals null */
|
|
|
96397
96596
|
[key: string]: any;
|
|
96398
96597
|
}
|
|
96399
96598
|
|
|
96599
|
+
export class KnowledgeGraphImagesItemDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem {
|
|
96600
|
+
/** group rank in SERP
|
|
96601
|
+
position within a group of elements with identical type values
|
|
96602
|
+
positions of elements with different type values are omitted from rank_group */
|
|
96603
|
+
rank_group?: number | undefined;
|
|
96604
|
+
/** absolute rank in SERP
|
|
96605
|
+
absolute position among all the elements in SERP */
|
|
96606
|
+
rank_absolute?: number | undefined;
|
|
96607
|
+
/** the alignment of the element in SERP
|
|
96608
|
+
can take the following values:
|
|
96609
|
+
left, right */
|
|
96610
|
+
position?: string | undefined;
|
|
96611
|
+
/** the XPath of the element */
|
|
96612
|
+
xpath?: string | undefined;
|
|
96613
|
+
/** link of the element */
|
|
96614
|
+
link?: LinkElement | undefined;
|
|
96615
|
+
/** additional items present in the element
|
|
96616
|
+
if there are none, equals null */
|
|
96617
|
+
items?: (KnowledgeGraphImagesElement | undefined)[] | undefined;
|
|
96618
|
+
|
|
96619
|
+
[key: string]: any;
|
|
96620
|
+
|
|
96621
|
+
constructor(data?: IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem) {
|
|
96622
|
+
super(data);
|
|
96623
|
+
this._discriminator = "knowledge_graph_images_item";
|
|
96624
|
+
}
|
|
96625
|
+
|
|
96626
|
+
init(_data?: any) {
|
|
96627
|
+
super.init(_data);
|
|
96628
|
+
if (_data) {
|
|
96629
|
+
for (var property in _data) {
|
|
96630
|
+
if (_data.hasOwnProperty(property))
|
|
96631
|
+
this[property] = _data[property];
|
|
96632
|
+
}
|
|
96633
|
+
this.rank_group = _data["rank_group"];
|
|
96634
|
+
this.rank_absolute = _data["rank_absolute"];
|
|
96635
|
+
this.position = _data["position"];
|
|
96636
|
+
this.xpath = _data["xpath"];
|
|
96637
|
+
this.link = _data["link"] ? LinkElement.fromJS(_data["link"]) : <any>undefined;
|
|
96638
|
+
if (Array.isArray(_data["items"])) {
|
|
96639
|
+
this.items = [] as any;
|
|
96640
|
+
for (let item of _data["items"])
|
|
96641
|
+
this.items!.push(KnowledgeGraphImagesElement.fromJS(item));
|
|
96642
|
+
}
|
|
96643
|
+
}
|
|
96644
|
+
}
|
|
96645
|
+
|
|
96646
|
+
static fromJS(data: any): KnowledgeGraphImagesItemDataforseoLabsSerpElementItem {
|
|
96647
|
+
data = typeof data === 'object' ? data : {};
|
|
96648
|
+
let result = new KnowledgeGraphImagesItemDataforseoLabsSerpElementItem();
|
|
96649
|
+
result.init(data);
|
|
96650
|
+
return result;
|
|
96651
|
+
}
|
|
96652
|
+
|
|
96653
|
+
toJSON(data?: any) {
|
|
96654
|
+
data = typeof data === 'object' ? data : {};
|
|
96655
|
+
for (var property in this) {
|
|
96656
|
+
if (this.hasOwnProperty(property))
|
|
96657
|
+
data[property] = this[property];
|
|
96658
|
+
}
|
|
96659
|
+
data["rank_group"] = this.rank_group;
|
|
96660
|
+
data["rank_absolute"] = this.rank_absolute;
|
|
96661
|
+
data["position"] = this.position;
|
|
96662
|
+
data["xpath"] = this.xpath;
|
|
96663
|
+
data["link"] = this.link ? this.link.toJSON() : <any>undefined;
|
|
96664
|
+
if (Array.isArray(this.items)) {
|
|
96665
|
+
data["items"] = [];
|
|
96666
|
+
for (let item of this.items)
|
|
96667
|
+
data["items"].push(item.toJSON());
|
|
96668
|
+
}
|
|
96669
|
+
super.toJSON(data);
|
|
96670
|
+
return data;
|
|
96671
|
+
}
|
|
96672
|
+
}
|
|
96673
|
+
|
|
96674
|
+
export interface IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
96675
|
+
/** group rank in SERP
|
|
96676
|
+
position within a group of elements with identical type values
|
|
96677
|
+
positions of elements with different type values are omitted from rank_group */
|
|
96678
|
+
rank_group?: number | undefined;
|
|
96679
|
+
/** absolute rank in SERP
|
|
96680
|
+
absolute position among all the elements in SERP */
|
|
96681
|
+
rank_absolute?: number | undefined;
|
|
96682
|
+
/** the alignment of the element in SERP
|
|
96683
|
+
can take the following values:
|
|
96684
|
+
left, right */
|
|
96685
|
+
position?: string | undefined;
|
|
96686
|
+
/** the XPath of the element */
|
|
96687
|
+
xpath?: string | undefined;
|
|
96688
|
+
/** link of the element */
|
|
96689
|
+
link?: LinkElement | undefined;
|
|
96690
|
+
/** additional items present in the element
|
|
96691
|
+
if there are none, equals null */
|
|
96692
|
+
items?: (KnowledgeGraphImagesElement | undefined)[] | undefined;
|
|
96693
|
+
|
|
96694
|
+
[key: string]: any;
|
|
96695
|
+
}
|
|
96696
|
+
|
|
96400
96697
|
export class KnowledgeGraphRowItemDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphRowItemDataforseoLabsSerpElementItem {
|
|
96401
96698
|
/** group rank in SERP
|
|
96402
96699
|
position within a group of elements with identical type values
|
|
@@ -96411,7 +96708,7 @@ left, right */
|
|
|
96411
96708
|
position?: string | undefined;
|
|
96412
96709
|
/** the XPath of the element */
|
|
96413
96710
|
xpath?: string | undefined;
|
|
96414
|
-
/** title of the
|
|
96711
|
+
/** title of the item */
|
|
96415
96712
|
title?: string | undefined;
|
|
96416
96713
|
/** google defined data attribute ID
|
|
96417
96714
|
example:
|
|
@@ -96497,7 +96794,7 @@ left, right */
|
|
|
96497
96794
|
position?: string | undefined;
|
|
96498
96795
|
/** the XPath of the element */
|
|
96499
96796
|
xpath?: string | undefined;
|
|
96500
|
-
/** title of the
|
|
96797
|
+
/** title of the item */
|
|
96501
96798
|
title?: string | undefined;
|
|
96502
96799
|
/** google defined data attribute ID
|
|
96503
96800
|
example:
|
|
@@ -96527,7 +96824,7 @@ left, right */
|
|
|
96527
96824
|
position?: string | undefined;
|
|
96528
96825
|
/** the XPath of the element */
|
|
96529
96826
|
xpath?: string | undefined;
|
|
96530
|
-
/** title of the
|
|
96827
|
+
/** title of the link */
|
|
96531
96828
|
title?: string | undefined;
|
|
96532
96829
|
/** google defined data attribute ID
|
|
96533
96830
|
example:
|
|
@@ -96612,7 +96909,7 @@ left, right */
|
|
|
96612
96909
|
position?: string | undefined;
|
|
96613
96910
|
/** the XPath of the element */
|
|
96614
96911
|
xpath?: string | undefined;
|
|
96615
|
-
/** title of the
|
|
96912
|
+
/** title of the link */
|
|
96616
96913
|
title?: string | undefined;
|
|
96617
96914
|
/** google defined data attribute ID
|
|
96618
96915
|
example:
|
|
@@ -96627,6 +96924,148 @@ if there are none, equals null */
|
|
|
96627
96924
|
[key: string]: any;
|
|
96628
96925
|
}
|
|
96629
96926
|
|
|
96927
|
+
export class KnowledgeGraphDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphDataforseoLabsSerpElementItem {
|
|
96928
|
+
/** search engine type */
|
|
96929
|
+
se_type?: string | undefined;
|
|
96930
|
+
/** position within a group of elements with identical type values
|
|
96931
|
+
positions of elements with different type values are omitted from rank_group */
|
|
96932
|
+
rank_group?: number | undefined;
|
|
96933
|
+
/** absolute rank in SERP
|
|
96934
|
+
absolute position among all the elements in SERP */
|
|
96935
|
+
rank_absolute?: number | undefined;
|
|
96936
|
+
/** the alignment of the element in SERP
|
|
96937
|
+
can take the following values:
|
|
96938
|
+
left, right */
|
|
96939
|
+
position?: string | undefined;
|
|
96940
|
+
/** the XPath of the element */
|
|
96941
|
+
xpath?: string | undefined;
|
|
96942
|
+
/** title of the result in SERP */
|
|
96943
|
+
title?: string | undefined;
|
|
96944
|
+
/** subtitle of the item */
|
|
96945
|
+
sub_title?: string | undefined;
|
|
96946
|
+
/** description of the results element in SERP */
|
|
96947
|
+
description?: string | undefined;
|
|
96948
|
+
/** card id */
|
|
96949
|
+
card_id?: string | undefined;
|
|
96950
|
+
/** relevant URL of the Ad element in SERP */
|
|
96951
|
+
url?: string | undefined;
|
|
96952
|
+
/** URL of the image from knowledge graph */
|
|
96953
|
+
image_url?: string | undefined;
|
|
96954
|
+
/** URL of the logo from knowledge graph */
|
|
96955
|
+
logo_url?: string | undefined;
|
|
96956
|
+
/** google-defined client id */
|
|
96957
|
+
cid?: string | undefined;
|
|
96958
|
+
/** elements of search results found in SERP */
|
|
96959
|
+
items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
|
|
96960
|
+
|
|
96961
|
+
[key: string]: any;
|
|
96962
|
+
|
|
96963
|
+
constructor(data?: IKnowledgeGraphDataforseoLabsSerpElementItem) {
|
|
96964
|
+
super(data);
|
|
96965
|
+
this._discriminator = "knowledge_graph";
|
|
96966
|
+
}
|
|
96967
|
+
|
|
96968
|
+
init(_data?: any) {
|
|
96969
|
+
super.init(_data);
|
|
96970
|
+
if (_data) {
|
|
96971
|
+
for (var property in _data) {
|
|
96972
|
+
if (_data.hasOwnProperty(property))
|
|
96973
|
+
this[property] = _data[property];
|
|
96974
|
+
}
|
|
96975
|
+
this.se_type = _data["se_type"];
|
|
96976
|
+
this.rank_group = _data["rank_group"];
|
|
96977
|
+
this.rank_absolute = _data["rank_absolute"];
|
|
96978
|
+
this.position = _data["position"];
|
|
96979
|
+
this.xpath = _data["xpath"];
|
|
96980
|
+
this.title = _data["title"];
|
|
96981
|
+
this.sub_title = _data["sub_title"];
|
|
96982
|
+
this.description = _data["description"];
|
|
96983
|
+
this.card_id = _data["card_id"];
|
|
96984
|
+
this.url = _data["url"];
|
|
96985
|
+
this.image_url = _data["image_url"];
|
|
96986
|
+
this.logo_url = _data["logo_url"];
|
|
96987
|
+
this.cid = _data["cid"];
|
|
96988
|
+
if (Array.isArray(_data["items"])) {
|
|
96989
|
+
this.items = [] as any;
|
|
96990
|
+
for (let item of _data["items"])
|
|
96991
|
+
this.items!.push(BaseDataforseoLabsSerpElementItem.fromJS(item));
|
|
96992
|
+
}
|
|
96993
|
+
}
|
|
96994
|
+
}
|
|
96995
|
+
|
|
96996
|
+
static fromJS(data: any): KnowledgeGraphDataforseoLabsSerpElementItem {
|
|
96997
|
+
data = typeof data === 'object' ? data : {};
|
|
96998
|
+
let result = new KnowledgeGraphDataforseoLabsSerpElementItem();
|
|
96999
|
+
result.init(data);
|
|
97000
|
+
return result;
|
|
97001
|
+
}
|
|
97002
|
+
|
|
97003
|
+
toJSON(data?: any) {
|
|
97004
|
+
data = typeof data === 'object' ? data : {};
|
|
97005
|
+
for (var property in this) {
|
|
97006
|
+
if (this.hasOwnProperty(property))
|
|
97007
|
+
data[property] = this[property];
|
|
97008
|
+
}
|
|
97009
|
+
data["se_type"] = this.se_type;
|
|
97010
|
+
data["rank_group"] = this.rank_group;
|
|
97011
|
+
data["rank_absolute"] = this.rank_absolute;
|
|
97012
|
+
data["position"] = this.position;
|
|
97013
|
+
data["xpath"] = this.xpath;
|
|
97014
|
+
data["title"] = this.title;
|
|
97015
|
+
data["sub_title"] = this.sub_title;
|
|
97016
|
+
data["description"] = this.description;
|
|
97017
|
+
data["card_id"] = this.card_id;
|
|
97018
|
+
data["url"] = this.url;
|
|
97019
|
+
data["image_url"] = this.image_url;
|
|
97020
|
+
data["logo_url"] = this.logo_url;
|
|
97021
|
+
data["cid"] = this.cid;
|
|
97022
|
+
if (Array.isArray(this.items)) {
|
|
97023
|
+
data["items"] = [];
|
|
97024
|
+
for (let item of this.items)
|
|
97025
|
+
data["items"].push(item.toJSON());
|
|
97026
|
+
}
|
|
97027
|
+
super.toJSON(data);
|
|
97028
|
+
return data;
|
|
97029
|
+
}
|
|
97030
|
+
}
|
|
97031
|
+
|
|
97032
|
+
export interface IKnowledgeGraphDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
97033
|
+
/** search engine type */
|
|
97034
|
+
se_type?: string | undefined;
|
|
97035
|
+
/** position within a group of elements with identical type values
|
|
97036
|
+
positions of elements with different type values are omitted from rank_group */
|
|
97037
|
+
rank_group?: number | undefined;
|
|
97038
|
+
/** absolute rank in SERP
|
|
97039
|
+
absolute position among all the elements in SERP */
|
|
97040
|
+
rank_absolute?: number | undefined;
|
|
97041
|
+
/** the alignment of the element in SERP
|
|
97042
|
+
can take the following values:
|
|
97043
|
+
left, right */
|
|
97044
|
+
position?: string | undefined;
|
|
97045
|
+
/** the XPath of the element */
|
|
97046
|
+
xpath?: string | undefined;
|
|
97047
|
+
/** title of the result in SERP */
|
|
97048
|
+
title?: string | undefined;
|
|
97049
|
+
/** subtitle of the item */
|
|
97050
|
+
sub_title?: string | undefined;
|
|
97051
|
+
/** description of the results element in SERP */
|
|
97052
|
+
description?: string | undefined;
|
|
97053
|
+
/** card id */
|
|
97054
|
+
card_id?: string | undefined;
|
|
97055
|
+
/** relevant URL of the Ad element in SERP */
|
|
97056
|
+
url?: string | undefined;
|
|
97057
|
+
/** URL of the image from knowledge graph */
|
|
97058
|
+
image_url?: string | undefined;
|
|
97059
|
+
/** URL of the logo from knowledge graph */
|
|
97060
|
+
logo_url?: string | undefined;
|
|
97061
|
+
/** google-defined client id */
|
|
97062
|
+
cid?: string | undefined;
|
|
97063
|
+
/** elements of search results found in SERP */
|
|
97064
|
+
items?: (BaseDataforseoLabsSerpElementItem | undefined)[] | undefined;
|
|
97065
|
+
|
|
97066
|
+
[key: string]: any;
|
|
97067
|
+
}
|
|
97068
|
+
|
|
96630
97069
|
export class DataforseoLabsGoogleHistoricalSerpsLiveItem implements IDataforseoLabsGoogleHistoricalSerpsLiveItem {
|
|
96631
97070
|
/** search engine type */
|
|
96632
97071
|
se_type?: string | undefined;
|
|
@@ -96785,212 +97224,6 @@ if there are none, equals null */
|
|
|
96785
97224
|
[key: string]: any;
|
|
96786
97225
|
}
|
|
96787
97226
|
|
|
96788
|
-
export class TwitterDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements ITwitterDataforseoLabsSerpElementItem {
|
|
96789
|
-
/** search engine type */
|
|
96790
|
-
se_type?: string | undefined;
|
|
96791
|
-
/** position within a group of elements with identical type values
|
|
96792
|
-
positions of elements with different type values are omitted from rank_group */
|
|
96793
|
-
rank_group?: number | undefined;
|
|
96794
|
-
/** absolute rank in SERP
|
|
96795
|
-
absolute position among all the elements in SERP */
|
|
96796
|
-
rank_absolute?: number | undefined;
|
|
96797
|
-
/** the alignment of the element in SERP
|
|
96798
|
-
can take the following values:
|
|
96799
|
-
left, right */
|
|
96800
|
-
position?: string | undefined;
|
|
96801
|
-
/** the XPath of the element */
|
|
96802
|
-
xpath?: string | undefined;
|
|
96803
|
-
/** title of the item */
|
|
96804
|
-
title?: string | undefined;
|
|
96805
|
-
/** URL link */
|
|
96806
|
-
url?: string | undefined;
|
|
96807
|
-
/** additional items present in the element
|
|
96808
|
-
if there are none, equals null */
|
|
96809
|
-
items?: (TwitterElement | undefined)[] | undefined;
|
|
96810
|
-
|
|
96811
|
-
[key: string]: any;
|
|
96812
|
-
|
|
96813
|
-
constructor(data?: ITwitterDataforseoLabsSerpElementItem) {
|
|
96814
|
-
super(data);
|
|
96815
|
-
this._discriminator = "twitter";
|
|
96816
|
-
}
|
|
96817
|
-
|
|
96818
|
-
init(_data?: any) {
|
|
96819
|
-
super.init(_data);
|
|
96820
|
-
if (_data) {
|
|
96821
|
-
for (var property in _data) {
|
|
96822
|
-
if (_data.hasOwnProperty(property))
|
|
96823
|
-
this[property] = _data[property];
|
|
96824
|
-
}
|
|
96825
|
-
this.se_type = _data["se_type"];
|
|
96826
|
-
this.rank_group = _data["rank_group"];
|
|
96827
|
-
this.rank_absolute = _data["rank_absolute"];
|
|
96828
|
-
this.position = _data["position"];
|
|
96829
|
-
this.xpath = _data["xpath"];
|
|
96830
|
-
this.title = _data["title"];
|
|
96831
|
-
this.url = _data["url"];
|
|
96832
|
-
if (Array.isArray(_data["items"])) {
|
|
96833
|
-
this.items = [] as any;
|
|
96834
|
-
for (let item of _data["items"])
|
|
96835
|
-
this.items!.push(TwitterElement.fromJS(item));
|
|
96836
|
-
}
|
|
96837
|
-
}
|
|
96838
|
-
}
|
|
96839
|
-
|
|
96840
|
-
static fromJS(data: any): TwitterDataforseoLabsSerpElementItem {
|
|
96841
|
-
data = typeof data === 'object' ? data : {};
|
|
96842
|
-
let result = new TwitterDataforseoLabsSerpElementItem();
|
|
96843
|
-
result.init(data);
|
|
96844
|
-
return result;
|
|
96845
|
-
}
|
|
96846
|
-
|
|
96847
|
-
toJSON(data?: any) {
|
|
96848
|
-
data = typeof data === 'object' ? data : {};
|
|
96849
|
-
for (var property in this) {
|
|
96850
|
-
if (this.hasOwnProperty(property))
|
|
96851
|
-
data[property] = this[property];
|
|
96852
|
-
}
|
|
96853
|
-
data["se_type"] = this.se_type;
|
|
96854
|
-
data["rank_group"] = this.rank_group;
|
|
96855
|
-
data["rank_absolute"] = this.rank_absolute;
|
|
96856
|
-
data["position"] = this.position;
|
|
96857
|
-
data["xpath"] = this.xpath;
|
|
96858
|
-
data["title"] = this.title;
|
|
96859
|
-
data["url"] = this.url;
|
|
96860
|
-
if (Array.isArray(this.items)) {
|
|
96861
|
-
data["items"] = [];
|
|
96862
|
-
for (let item of this.items)
|
|
96863
|
-
data["items"].push(item.toJSON());
|
|
96864
|
-
}
|
|
96865
|
-
super.toJSON(data);
|
|
96866
|
-
return data;
|
|
96867
|
-
}
|
|
96868
|
-
}
|
|
96869
|
-
|
|
96870
|
-
export interface ITwitterDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
96871
|
-
/** search engine type */
|
|
96872
|
-
se_type?: string | undefined;
|
|
96873
|
-
/** position within a group of elements with identical type values
|
|
96874
|
-
positions of elements with different type values are omitted from rank_group */
|
|
96875
|
-
rank_group?: number | undefined;
|
|
96876
|
-
/** absolute rank in SERP
|
|
96877
|
-
absolute position among all the elements in SERP */
|
|
96878
|
-
rank_absolute?: number | undefined;
|
|
96879
|
-
/** the alignment of the element in SERP
|
|
96880
|
-
can take the following values:
|
|
96881
|
-
left, right */
|
|
96882
|
-
position?: string | undefined;
|
|
96883
|
-
/** the XPath of the element */
|
|
96884
|
-
xpath?: string | undefined;
|
|
96885
|
-
/** title of the item */
|
|
96886
|
-
title?: string | undefined;
|
|
96887
|
-
/** URL link */
|
|
96888
|
-
url?: string | undefined;
|
|
96889
|
-
/** additional items present in the element
|
|
96890
|
-
if there are none, equals null */
|
|
96891
|
-
items?: (TwitterElement | undefined)[] | undefined;
|
|
96892
|
-
|
|
96893
|
-
[key: string]: any;
|
|
96894
|
-
}
|
|
96895
|
-
|
|
96896
|
-
export class KnowledgeGraphImagesItemDataforseoLabsSerpElementItem extends BaseDataforseoLabsSerpElementItem implements IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem {
|
|
96897
|
-
/** group rank in SERP
|
|
96898
|
-
position within a group of elements with identical type values
|
|
96899
|
-
positions of elements with different type values are omitted from rank_group */
|
|
96900
|
-
rank_group?: number | undefined;
|
|
96901
|
-
/** absolute rank in SERP
|
|
96902
|
-
absolute position among all the elements in SERP */
|
|
96903
|
-
rank_absolute?: number | undefined;
|
|
96904
|
-
/** the alignment of the element in SERP
|
|
96905
|
-
can take the following values:
|
|
96906
|
-
left, right */
|
|
96907
|
-
position?: string | undefined;
|
|
96908
|
-
/** the XPath of the element */
|
|
96909
|
-
xpath?: string | undefined;
|
|
96910
|
-
/** link of the element */
|
|
96911
|
-
link?: LinkElement | undefined;
|
|
96912
|
-
/** additional items present in the element
|
|
96913
|
-
if there are none, equals null */
|
|
96914
|
-
items?: (KnowledgeGraphImagesElement | undefined)[] | undefined;
|
|
96915
|
-
|
|
96916
|
-
[key: string]: any;
|
|
96917
|
-
|
|
96918
|
-
constructor(data?: IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem) {
|
|
96919
|
-
super(data);
|
|
96920
|
-
this._discriminator = "knowledge_graph_images_item";
|
|
96921
|
-
}
|
|
96922
|
-
|
|
96923
|
-
init(_data?: any) {
|
|
96924
|
-
super.init(_data);
|
|
96925
|
-
if (_data) {
|
|
96926
|
-
for (var property in _data) {
|
|
96927
|
-
if (_data.hasOwnProperty(property))
|
|
96928
|
-
this[property] = _data[property];
|
|
96929
|
-
}
|
|
96930
|
-
this.rank_group = _data["rank_group"];
|
|
96931
|
-
this.rank_absolute = _data["rank_absolute"];
|
|
96932
|
-
this.position = _data["position"];
|
|
96933
|
-
this.xpath = _data["xpath"];
|
|
96934
|
-
this.link = _data["link"] ? LinkElement.fromJS(_data["link"]) : <any>undefined;
|
|
96935
|
-
if (Array.isArray(_data["items"])) {
|
|
96936
|
-
this.items = [] as any;
|
|
96937
|
-
for (let item of _data["items"])
|
|
96938
|
-
this.items!.push(KnowledgeGraphImagesElement.fromJS(item));
|
|
96939
|
-
}
|
|
96940
|
-
}
|
|
96941
|
-
}
|
|
96942
|
-
|
|
96943
|
-
static fromJS(data: any): KnowledgeGraphImagesItemDataforseoLabsSerpElementItem {
|
|
96944
|
-
data = typeof data === 'object' ? data : {};
|
|
96945
|
-
let result = new KnowledgeGraphImagesItemDataforseoLabsSerpElementItem();
|
|
96946
|
-
result.init(data);
|
|
96947
|
-
return result;
|
|
96948
|
-
}
|
|
96949
|
-
|
|
96950
|
-
toJSON(data?: any) {
|
|
96951
|
-
data = typeof data === 'object' ? data : {};
|
|
96952
|
-
for (var property in this) {
|
|
96953
|
-
if (this.hasOwnProperty(property))
|
|
96954
|
-
data[property] = this[property];
|
|
96955
|
-
}
|
|
96956
|
-
data["rank_group"] = this.rank_group;
|
|
96957
|
-
data["rank_absolute"] = this.rank_absolute;
|
|
96958
|
-
data["position"] = this.position;
|
|
96959
|
-
data["xpath"] = this.xpath;
|
|
96960
|
-
data["link"] = this.link ? this.link.toJSON() : <any>undefined;
|
|
96961
|
-
if (Array.isArray(this.items)) {
|
|
96962
|
-
data["items"] = [];
|
|
96963
|
-
for (let item of this.items)
|
|
96964
|
-
data["items"].push(item.toJSON());
|
|
96965
|
-
}
|
|
96966
|
-
super.toJSON(data);
|
|
96967
|
-
return data;
|
|
96968
|
-
}
|
|
96969
|
-
}
|
|
96970
|
-
|
|
96971
|
-
export interface IKnowledgeGraphImagesItemDataforseoLabsSerpElementItem extends IBaseDataforseoLabsSerpElementItem {
|
|
96972
|
-
/** group rank in SERP
|
|
96973
|
-
position within a group of elements with identical type values
|
|
96974
|
-
positions of elements with different type values are omitted from rank_group */
|
|
96975
|
-
rank_group?: number | undefined;
|
|
96976
|
-
/** absolute rank in SERP
|
|
96977
|
-
absolute position among all the elements in SERP */
|
|
96978
|
-
rank_absolute?: number | undefined;
|
|
96979
|
-
/** the alignment of the element in SERP
|
|
96980
|
-
can take the following values:
|
|
96981
|
-
left, right */
|
|
96982
|
-
position?: string | undefined;
|
|
96983
|
-
/** the XPath of the element */
|
|
96984
|
-
xpath?: string | undefined;
|
|
96985
|
-
/** link of the element */
|
|
96986
|
-
link?: LinkElement | undefined;
|
|
96987
|
-
/** additional items present in the element
|
|
96988
|
-
if there are none, equals null */
|
|
96989
|
-
items?: (KnowledgeGraphImagesElement | undefined)[] | undefined;
|
|
96990
|
-
|
|
96991
|
-
[key: string]: any;
|
|
96992
|
-
}
|
|
96993
|
-
|
|
96994
97227
|
export class DataforseoLabsGoogleHistoricalSerpsLiveResultInfo implements IDataforseoLabsGoogleHistoricalSerpsLiveResultInfo {
|
|
96995
97228
|
/** search engine type */
|
|
96996
97229
|
se_type?: string | undefined;
|
|
@@ -97160,7 +97393,8 @@ left, right */
|
|
|
97160
97393
|
xpath?: string | undefined;
|
|
97161
97394
|
/** title of the result in SERP */
|
|
97162
97395
|
title?: string | undefined;
|
|
97163
|
-
/**
|
|
97396
|
+
/** additional items present in the element
|
|
97397
|
+
if there are none, equals null */
|
|
97164
97398
|
items?: (CarouselElement | undefined)[] | undefined;
|
|
97165
97399
|
|
|
97166
97400
|
[key: string]: any;
|
|
@@ -97234,7 +97468,8 @@ left, right */
|
|
|
97234
97468
|
xpath?: string | undefined;
|
|
97235
97469
|
/** title of the result in SERP */
|
|
97236
97470
|
title?: string | undefined;
|
|
97237
|
-
/**
|
|
97471
|
+
/** additional items present in the element
|
|
97472
|
+
if there are none, equals null */
|
|
97238
97473
|
items?: (CarouselElement | undefined)[] | undefined;
|
|
97239
97474
|
|
|
97240
97475
|
[key: string]: any;
|
|
@@ -97254,7 +97489,8 @@ left, right */
|
|
|
97254
97489
|
position?: string | undefined;
|
|
97255
97490
|
/** the XPath of the element */
|
|
97256
97491
|
xpath?: string | undefined;
|
|
97257
|
-
/**
|
|
97492
|
+
/** additional items present in the element
|
|
97493
|
+
if there are none, equals null */
|
|
97258
97494
|
items?: (MultiCarouselElement | undefined)[] | undefined;
|
|
97259
97495
|
|
|
97260
97496
|
[key: string]: any;
|
|
@@ -97324,7 +97560,8 @@ left, right */
|
|
|
97324
97560
|
position?: string | undefined;
|
|
97325
97561
|
/** the XPath of the element */
|
|
97326
97562
|
xpath?: string | undefined;
|
|
97327
|
-
/**
|
|
97563
|
+
/** additional items present in the element
|
|
97564
|
+
if there are none, equals null */
|
|
97328
97565
|
items?: (MultiCarouselElement | undefined)[] | undefined;
|
|
97329
97566
|
|
|
97330
97567
|
[key: string]: any;
|
|
@@ -97344,7 +97581,8 @@ left, right */
|
|
|
97344
97581
|
position?: string | undefined;
|
|
97345
97582
|
/** the XPath of the element */
|
|
97346
97583
|
xpath?: string | undefined;
|
|
97347
|
-
/**
|
|
97584
|
+
/** additional items present in the element
|
|
97585
|
+
if there are none, equals null */
|
|
97348
97586
|
items?: (TopStoriesElement | undefined)[] | undefined;
|
|
97349
97587
|
|
|
97350
97588
|
[key: string]: any;
|
|
@@ -97414,7 +97652,8 @@ left, right */
|
|
|
97414
97652
|
position?: string | undefined;
|
|
97415
97653
|
/** the XPath of the element */
|
|
97416
97654
|
xpath?: string | undefined;
|
|
97417
|
-
/**
|
|
97655
|
+
/** additional items present in the element
|
|
97656
|
+
if there are none, equals null */
|
|
97418
97657
|
items?: (TopStoriesElement | undefined)[] | undefined;
|
|
97419
97658
|
|
|
97420
97659
|
[key: string]: any;
|
|
@@ -97549,7 +97788,8 @@ left, right */
|
|
|
97549
97788
|
/** solution to the equation
|
|
97550
97789
|
solution to the mathematical equation specified in the keyword field when setting a task */
|
|
97551
97790
|
result?: string | undefined;
|
|
97552
|
-
/**
|
|
97791
|
+
/** additional items present in the element
|
|
97792
|
+
if there are none, equals null */
|
|
97553
97793
|
items?: (MathSolverElement | undefined)[] | undefined;
|
|
97554
97794
|
/** sitelinks
|
|
97555
97795
|
the links shown below some of Google’s search results
|
|
@@ -97642,7 +97882,8 @@ left, right */
|
|
|
97642
97882
|
/** solution to the equation
|
|
97643
97883
|
solution to the mathematical equation specified in the keyword field when setting a task */
|
|
97644
97884
|
result?: string | undefined;
|
|
97645
|
-
/**
|
|
97885
|
+
/** additional items present in the element
|
|
97886
|
+
if there are none, equals null */
|
|
97646
97887
|
items?: (MathSolverElement | undefined)[] | undefined;
|
|
97647
97888
|
/** sitelinks
|
|
97648
97889
|
the links shown below some of Google’s search results
|
|
@@ -97666,7 +97907,8 @@ left, right */
|
|
|
97666
97907
|
position?: string | undefined;
|
|
97667
97908
|
/** the XPath of the element */
|
|
97668
97909
|
xpath?: string | undefined;
|
|
97669
|
-
/**
|
|
97910
|
+
/** additional items present in the element
|
|
97911
|
+
if there are none, equals null */
|
|
97670
97912
|
items?: (VideoElement | undefined)[] | undefined;
|
|
97671
97913
|
|
|
97672
97914
|
[key: string]: any;
|
|
@@ -97736,7 +97978,8 @@ left, right */
|
|
|
97736
97978
|
position?: string | undefined;
|
|
97737
97979
|
/** the XPath of the element */
|
|
97738
97980
|
xpath?: string | undefined;
|
|
97739
|
-
/**
|
|
97981
|
+
/** additional items present in the element
|
|
97982
|
+
if there are none, equals null */
|
|
97740
97983
|
items?: (VideoElement | undefined)[] | undefined;
|
|
97741
97984
|
|
|
97742
97985
|
[key: string]: any;
|
|
@@ -97755,9 +97998,9 @@ left, right */
|
|
|
97755
97998
|
position?: string | undefined;
|
|
97756
97999
|
/** the XPath of the element */
|
|
97757
98000
|
xpath?: string | undefined;
|
|
97758
|
-
/** title of the
|
|
98001
|
+
/** title of the result in SERP */
|
|
97759
98002
|
title?: string | undefined;
|
|
97760
|
-
/** URL
|
|
98003
|
+
/** relevant URL of the Ad element in SERP */
|
|
97761
98004
|
url?: string | undefined;
|
|
97762
98005
|
|
|
97763
98006
|
[key: string]: any;
|
|
@@ -97820,9 +98063,9 @@ left, right */
|
|
|
97820
98063
|
position?: string | undefined;
|
|
97821
98064
|
/** the XPath of the element */
|
|
97822
98065
|
xpath?: string | undefined;
|
|
97823
|
-
/** title of the
|
|
98066
|
+
/** title of the result in SERP */
|
|
97824
98067
|
title?: string | undefined;
|
|
97825
|
-
/** URL
|
|
98068
|
+
/** relevant URL of the Ad element in SERP */
|
|
97826
98069
|
url?: string | undefined;
|
|
97827
98070
|
|
|
97828
98071
|
[key: string]: any;
|
|
@@ -97843,13 +98086,13 @@ left, right */
|
|
|
97843
98086
|
xpath?: string | undefined;
|
|
97844
98087
|
/** domain where a link points */
|
|
97845
98088
|
domain?: string | undefined;
|
|
97846
|
-
/** title of the
|
|
98089
|
+
/** title of the result in SERP */
|
|
97847
98090
|
title?: string | undefined;
|
|
97848
|
-
/** title
|
|
98091
|
+
/** title */
|
|
97849
98092
|
featured_title?: string | undefined;
|
|
97850
98093
|
/** description of the results element in SERP */
|
|
97851
98094
|
description?: string | undefined;
|
|
97852
|
-
/** URL
|
|
98095
|
+
/** relevant URL of the Ad element in SERP */
|
|
97853
98096
|
url?: string | undefined;
|
|
97854
98097
|
/** results table
|
|
97855
98098
|
if there are none, equals null */
|
|
@@ -97963,13 +98206,13 @@ left, right */
|
|
|
97963
98206
|
xpath?: string | undefined;
|
|
97964
98207
|
/** domain where a link points */
|
|
97965
98208
|
domain?: string | undefined;
|
|
97966
|
-
/** title of the
|
|
98209
|
+
/** title of the result in SERP */
|
|
97967
98210
|
title?: string | undefined;
|
|
97968
|
-
/** title
|
|
98211
|
+
/** title */
|
|
97969
98212
|
featured_title?: string | undefined;
|
|
97970
98213
|
/** description of the results element in SERP */
|
|
97971
98214
|
description?: string | undefined;
|
|
97972
|
-
/** URL
|
|
98215
|
+
/** relevant URL of the Ad element in SERP */
|
|
97973
98216
|
url?: string | undefined;
|
|
97974
98217
|
/** results table
|
|
97975
98218
|
if there are none, equals null */
|
|
@@ -98013,7 +98256,7 @@ left, right */
|
|
|
98013
98256
|
position?: string | undefined;
|
|
98014
98257
|
/** the XPath of the element */
|
|
98015
98258
|
xpath?: string | undefined;
|
|
98016
|
-
/** title of the
|
|
98259
|
+
/** title of the result in SERP */
|
|
98017
98260
|
title?: string | undefined;
|
|
98018
98261
|
/** description of the results element in SERP */
|
|
98019
98262
|
description?: string | undefined;
|
|
@@ -98021,7 +98264,7 @@ left, right */
|
|
|
98021
98264
|
domain?: string | undefined;
|
|
98022
98265
|
/** phone number */
|
|
98023
98266
|
phone?: string | undefined;
|
|
98024
|
-
/** URL
|
|
98267
|
+
/** relevant URL of the Ad element in SERP */
|
|
98025
98268
|
url?: string | undefined;
|
|
98026
98269
|
/** indicates whether the element is an ad */
|
|
98027
98270
|
is_paid?: boolean | undefined;
|
|
@@ -98134,7 +98377,7 @@ left, right */
|
|
|
98134
98377
|
position?: string | undefined;
|
|
98135
98378
|
/** the XPath of the element */
|
|
98136
98379
|
xpath?: string | undefined;
|
|
98137
|
-
/** title of the
|
|
98380
|
+
/** title of the result in SERP */
|
|
98138
98381
|
title?: string | undefined;
|
|
98139
98382
|
/** description of the results element in SERP */
|
|
98140
98383
|
description?: string | undefined;
|
|
@@ -98142,7 +98385,7 @@ left, right */
|
|
|
98142
98385
|
domain?: string | undefined;
|
|
98143
98386
|
/** phone number */
|
|
98144
98387
|
phone?: string | undefined;
|
|
98145
|
-
/** URL
|
|
98388
|
+
/** relevant URL of the Ad element in SERP */
|
|
98146
98389
|
url?: string | undefined;
|
|
98147
98390
|
/** indicates whether the element is an ad */
|
|
98148
98391
|
is_paid?: boolean | undefined;
|
|
@@ -98189,7 +98432,7 @@ left, right */
|
|
|
98189
98432
|
position?: string | undefined;
|
|
98190
98433
|
/** the XPath of the element */
|
|
98191
98434
|
xpath?: string | undefined;
|
|
98192
|
-
/** title of the
|
|
98435
|
+
/** title of the result in SERP */
|
|
98193
98436
|
title?: string | undefined;
|
|
98194
98437
|
/** starting date of stay
|
|
98195
98438
|
in the format “year-month-date”
|
|
@@ -98201,8 +98444,7 @@ in the format “year-month-date”
|
|
|
98201
98444
|
example:
|
|
98202
98445
|
2019-11-17 */
|
|
98203
98446
|
date_to?: string | undefined;
|
|
98204
|
-
/**
|
|
98205
|
-
if there are none, equals null */
|
|
98447
|
+
/** elements of search results found in SERP */
|
|
98206
98448
|
items?: (HotelsPackElement | undefined)[] | undefined;
|
|
98207
98449
|
|
|
98208
98450
|
[key: string]: any;
|
|
@@ -98277,7 +98519,7 @@ left, right */
|
|
|
98277
98519
|
position?: string | undefined;
|
|
98278
98520
|
/** the XPath of the element */
|
|
98279
98521
|
xpath?: string | undefined;
|
|
98280
|
-
/** title of the
|
|
98522
|
+
/** title of the result in SERP */
|
|
98281
98523
|
title?: string | undefined;
|
|
98282
98524
|
/** starting date of stay
|
|
98283
98525
|
in the format “year-month-date”
|
|
@@ -98289,8 +98531,7 @@ in the format “year-month-date”
|
|
|
98289
98531
|
example:
|
|
98290
98532
|
2019-11-17 */
|
|
98291
98533
|
date_to?: string | undefined;
|
|
98292
|
-
/**
|
|
98293
|
-
if there are none, equals null */
|
|
98534
|
+
/** elements of search results found in SERP */
|
|
98294
98535
|
items?: (HotelsPackElement | undefined)[] | undefined;
|
|
98295
98536
|
|
|
98296
98537
|
[key: string]: any;
|
|
@@ -98639,14 +98880,13 @@ left, right */
|
|
|
98639
98880
|
position?: string | undefined;
|
|
98640
98881
|
/** the XPath of the element */
|
|
98641
98882
|
xpath?: string | undefined;
|
|
98642
|
-
/** title of the
|
|
98883
|
+
/** title of the result in SERP */
|
|
98643
98884
|
title?: string | undefined;
|
|
98644
98885
|
/** google defined data attribute ID
|
|
98645
98886
|
example:
|
|
98646
98887
|
kc:/shopping/gpc:organic-offers */
|
|
98647
98888
|
data_attrid?: string | undefined;
|
|
98648
|
-
/**
|
|
98649
|
-
if there are none, equals null */
|
|
98889
|
+
/** elements of search results found in SERP */
|
|
98650
98890
|
items?: (KnowledgeGraphShoppingElement | undefined)[] | undefined;
|
|
98651
98891
|
|
|
98652
98892
|
[key: string]: any;
|
|
@@ -98719,14 +98959,13 @@ left, right */
|
|
|
98719
98959
|
position?: string | undefined;
|
|
98720
98960
|
/** the XPath of the element */
|
|
98721
98961
|
xpath?: string | undefined;
|
|
98722
|
-
/** title of the
|
|
98962
|
+
/** title of the result in SERP */
|
|
98723
98963
|
title?: string | undefined;
|
|
98724
98964
|
/** google defined data attribute ID
|
|
98725
98965
|
example:
|
|
98726
98966
|
kc:/shopping/gpc:organic-offers */
|
|
98727
98967
|
data_attrid?: string | undefined;
|
|
98728
|
-
/**
|
|
98729
|
-
if there are none, equals null */
|
|
98968
|
+
/** elements of search results found in SERP */
|
|
98730
98969
|
items?: (KnowledgeGraphShoppingElement | undefined)[] | undefined;
|
|
98731
98970
|
|
|
98732
98971
|
[key: string]: any;
|
|
@@ -98754,9 +98993,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
98754
98993
|
place_id?: string | undefined;
|
|
98755
98994
|
/** the additional feature of the review */
|
|
98756
98995
|
feature?: string | undefined;
|
|
98757
|
-
/** google-defined client id
|
|
98758
|
-
unique id of a local establishment;
|
|
98759
|
-
can be used with Google Reviews API to get a full list of reviews */
|
|
98996
|
+
/** google-defined client id */
|
|
98760
98997
|
cid?: string | undefined;
|
|
98761
98998
|
|
|
98762
98999
|
[key: string]: any;
|
|
@@ -98834,9 +99071,7 @@ the popularity rate based on reviews and displayed in SERP */
|
|
|
98834
99071
|
place_id?: string | undefined;
|
|
98835
99072
|
/** the additional feature of the review */
|
|
98836
99073
|
feature?: string | undefined;
|
|
98837
|
-
/** google-defined client id
|
|
98838
|
-
unique id of a local establishment;
|
|
98839
|
-
can be used with Google Reviews API to get a full list of reviews */
|
|
99074
|
+
/** google-defined client id */
|
|
98840
99075
|
cid?: string | undefined;
|
|
98841
99076
|
|
|
98842
99077
|
[key: string]: any;
|
|
@@ -98859,9 +99094,7 @@ left, right */
|
|
|
98859
99094
|
posts_id?: string | undefined;
|
|
98860
99095
|
/** the additional feature of the review */
|
|
98861
99096
|
feature?: string | undefined;
|
|
98862
|
-
/** google-defined client id
|
|
98863
|
-
unique id of a local establishment;
|
|
98864
|
-
can be used with Google Reviews API to get a full list of reviews */
|
|
99097
|
+
/** google-defined client id */
|
|
98865
99098
|
cid?: string | undefined;
|
|
98866
99099
|
|
|
98867
99100
|
[key: string]: any;
|
|
@@ -98930,9 +99163,7 @@ left, right */
|
|
|
98930
99163
|
posts_id?: string | undefined;
|
|
98931
99164
|
/** the additional feature of the review */
|
|
98932
99165
|
feature?: string | undefined;
|
|
98933
|
-
/** google-defined client id
|
|
98934
|
-
unique id of a local establishment;
|
|
98935
|
-
can be used with Google Reviews API to get a full list of reviews */
|
|
99166
|
+
/** google-defined client id */
|
|
98936
99167
|
cid?: string | undefined;
|
|
98937
99168
|
|
|
98938
99169
|
[key: string]: any;
|
|
@@ -98951,12 +99182,11 @@ left, right */
|
|
|
98951
99182
|
position?: string | undefined;
|
|
98952
99183
|
/** the XPath of the element */
|
|
98953
99184
|
xpath?: string | undefined;
|
|
98954
|
-
/** title of the
|
|
99185
|
+
/** title of the result in SERP */
|
|
98955
99186
|
title?: string | undefined;
|
|
98956
|
-
/** URL
|
|
99187
|
+
/** relevant URL of the Ad element in SERP */
|
|
98957
99188
|
url?: string | undefined;
|
|
98958
|
-
/**
|
|
98959
|
-
if there are none, equals null */
|
|
99189
|
+
/** elements of search results found in SERP */
|
|
98960
99190
|
items?: (GoogleFlightsElement | undefined)[] | undefined;
|
|
98961
99191
|
|
|
98962
99192
|
[key: string]: any;
|
|
@@ -99029,12 +99259,11 @@ left, right */
|
|
|
99029
99259
|
position?: string | undefined;
|
|
99030
99260
|
/** the XPath of the element */
|
|
99031
99261
|
xpath?: string | undefined;
|
|
99032
|
-
/** title of the
|
|
99262
|
+
/** title of the result in SERP */
|
|
99033
99263
|
title?: string | undefined;
|
|
99034
|
-
/** URL
|
|
99264
|
+
/** relevant URL of the Ad element in SERP */
|
|
99035
99265
|
url?: string | undefined;
|
|
99036
|
-
/**
|
|
99037
|
-
if there are none, equals null */
|
|
99266
|
+
/** elements of search results found in SERP */
|
|
99038
99267
|
items?: (GoogleFlightsElement | undefined)[] | undefined;
|
|
99039
99268
|
|
|
99040
99269
|
[key: string]: any;
|
|
@@ -99053,12 +99282,11 @@ left, right */
|
|
|
99053
99282
|
position?: string | undefined;
|
|
99054
99283
|
/** the XPath of the element */
|
|
99055
99284
|
xpath?: string | undefined;
|
|
99056
|
-
/** title of the
|
|
99285
|
+
/** title of the result in SERP */
|
|
99057
99286
|
title?: string | undefined;
|
|
99058
|
-
/** URL
|
|
99287
|
+
/** relevant URL of the Ad element in SERP */
|
|
99059
99288
|
url?: string | undefined;
|
|
99060
|
-
/**
|
|
99061
|
-
if there are none, equals null */
|
|
99289
|
+
/** elements of search results found in SERP */
|
|
99062
99290
|
items?: (ImagesElement | undefined)[] | undefined;
|
|
99063
99291
|
/** contains keywords and images related to the specified search term
|
|
99064
99292
|
if there are none, equals null */
|
|
@@ -99144,12 +99372,11 @@ left, right */
|
|
|
99144
99372
|
position?: string | undefined;
|
|
99145
99373
|
/** the XPath of the element */
|
|
99146
99374
|
xpath?: string | undefined;
|
|
99147
|
-
/** title of the
|
|
99375
|
+
/** title of the result in SERP */
|
|
99148
99376
|
title?: string | undefined;
|
|
99149
|
-
/** URL
|
|
99377
|
+
/** relevant URL of the Ad element in SERP */
|
|
99150
99378
|
url?: string | undefined;
|
|
99151
|
-
/**
|
|
99152
|
-
if there are none, equals null */
|
|
99379
|
+
/** elements of search results found in SERP */
|
|
99153
99380
|
items?: (ImagesElement | undefined)[] | undefined;
|
|
99154
99381
|
/** contains keywords and images related to the specified search term
|
|
99155
99382
|
if there are none, equals null */
|
|
@@ -99171,10 +99398,9 @@ left, right */
|
|
|
99171
99398
|
position?: string | undefined;
|
|
99172
99399
|
/** the XPath of the element */
|
|
99173
99400
|
xpath?: string | undefined;
|
|
99174
|
-
/** title of the
|
|
99401
|
+
/** title of the result in SERP */
|
|
99175
99402
|
title?: string | undefined;
|
|
99176
|
-
/**
|
|
99177
|
-
if there are none, equals null */
|
|
99403
|
+
/** elements of search results found in SERP */
|
|
99178
99404
|
items?: (ShoppingElement | undefined)[] | undefined;
|
|
99179
99405
|
|
|
99180
99406
|
[key: string]: any;
|
|
@@ -99245,10 +99471,9 @@ left, right */
|
|
|
99245
99471
|
position?: string | undefined;
|
|
99246
99472
|
/** the XPath of the element */
|
|
99247
99473
|
xpath?: string | undefined;
|
|
99248
|
-
/** title of the
|
|
99474
|
+
/** title of the result in SERP */
|
|
99249
99475
|
title?: string | undefined;
|
|
99250
|
-
/**
|
|
99251
|
-
if there are none, equals null */
|
|
99476
|
+
/** elements of search results found in SERP */
|
|
99252
99477
|
items?: (ShoppingElement | undefined)[] | undefined;
|
|
99253
99478
|
|
|
99254
99479
|
[key: string]: any;
|
|
@@ -99267,12 +99492,11 @@ left, right */
|
|
|
99267
99492
|
position?: string | undefined;
|
|
99268
99493
|
/** the XPath of the element */
|
|
99269
99494
|
xpath?: string | undefined;
|
|
99270
|
-
/** title of the
|
|
99495
|
+
/** title of the result in SERP */
|
|
99271
99496
|
title?: string | undefined;
|
|
99272
|
-
/** URL
|
|
99497
|
+
/** relevant URL of the Ad element in SERP */
|
|
99273
99498
|
url?: string | undefined;
|
|
99274
|
-
/**
|
|
99275
|
-
if there are none, equals null */
|
|
99499
|
+
/** elements of search results found in SERP */
|
|
99276
99500
|
items?: (JobsElement | undefined)[] | undefined;
|
|
99277
99501
|
|
|
99278
99502
|
[key: string]: any;
|
|
@@ -99345,12 +99569,11 @@ left, right */
|
|
|
99345
99569
|
position?: string | undefined;
|
|
99346
99570
|
/** the XPath of the element */
|
|
99347
99571
|
xpath?: string | undefined;
|
|
99348
|
-
/** title of the
|
|
99572
|
+
/** title of the result in SERP */
|
|
99349
99573
|
title?: string | undefined;
|
|
99350
|
-
/** URL
|
|
99574
|
+
/** relevant URL of the Ad element in SERP */
|
|
99351
99575
|
url?: string | undefined;
|
|
99352
|
-
/**
|
|
99353
|
-
if there are none, equals null */
|
|
99576
|
+
/** elements of search results found in SERP */
|
|
99354
99577
|
items?: (JobsElement | undefined)[] | undefined;
|
|
99355
99578
|
|
|
99356
99579
|
[key: string]: any;
|
|
@@ -99369,12 +99592,11 @@ left, right */
|
|
|
99369
99592
|
position?: string | undefined;
|
|
99370
99593
|
/** the XPath of the element */
|
|
99371
99594
|
xpath?: string | undefined;
|
|
99372
|
-
/** title of the
|
|
99595
|
+
/** title of the result in SERP */
|
|
99373
99596
|
title?: string | undefined;
|
|
99374
|
-
/** URL
|
|
99597
|
+
/** relevant URL of the Ad element in SERP */
|
|
99375
99598
|
url?: string | undefined;
|
|
99376
|
-
/**
|
|
99377
|
-
if there are none, equals null */
|
|
99599
|
+
/** elements of search results found in SERP */
|
|
99378
99600
|
items?: (EventsElement | undefined)[] | undefined;
|
|
99379
99601
|
|
|
99380
99602
|
[key: string]: any;
|
|
@@ -99447,12 +99669,11 @@ left, right */
|
|
|
99447
99669
|
position?: string | undefined;
|
|
99448
99670
|
/** the XPath of the element */
|
|
99449
99671
|
xpath?: string | undefined;
|
|
99450
|
-
/** title of the
|
|
99672
|
+
/** title of the result in SERP */
|
|
99451
99673
|
title?: string | undefined;
|
|
99452
|
-
/** URL
|
|
99674
|
+
/** relevant URL of the Ad element in SERP */
|
|
99453
99675
|
url?: string | undefined;
|
|
99454
|
-
/**
|
|
99455
|
-
if there are none, equals null */
|
|
99676
|
+
/** elements of search results found in SERP */
|
|
99456
99677
|
items?: (EventsElement | undefined)[] | undefined;
|
|
99457
99678
|
|
|
99458
99679
|
[key: string]: any;
|
|
@@ -99471,10 +99692,9 @@ left, right */
|
|
|
99471
99692
|
position?: string | undefined;
|
|
99472
99693
|
/** the XPath of the element */
|
|
99473
99694
|
xpath?: string | undefined;
|
|
99474
|
-
/** title of the
|
|
99695
|
+
/** title of the result in SERP */
|
|
99475
99696
|
title?: string | undefined;
|
|
99476
|
-
/**
|
|
99477
|
-
if there are none, equals null */
|
|
99697
|
+
/** elements of search results found in SERP */
|
|
99478
99698
|
items?: (MentionCarouselElement | undefined)[] | undefined;
|
|
99479
99699
|
|
|
99480
99700
|
[key: string]: any;
|
|
@@ -99545,10 +99765,9 @@ left, right */
|
|
|
99545
99765
|
position?: string | undefined;
|
|
99546
99766
|
/** the XPath of the element */
|
|
99547
99767
|
xpath?: string | undefined;
|
|
99548
|
-
/** title of the
|
|
99768
|
+
/** title of the result in SERP */
|
|
99549
99769
|
title?: string | undefined;
|
|
99550
|
-
/**
|
|
99551
|
-
if there are none, equals null */
|
|
99770
|
+
/** elements of search results found in SERP */
|
|
99552
99771
|
items?: (MentionCarouselElement | undefined)[] | undefined;
|
|
99553
99772
|
|
|
99554
99773
|
[key: string]: any;
|
|
@@ -99567,8 +99786,7 @@ left, right */
|
|
|
99567
99786
|
position?: string | undefined;
|
|
99568
99787
|
/** the XPath of the element */
|
|
99569
99788
|
xpath?: string | undefined;
|
|
99570
|
-
/**
|
|
99571
|
-
if there are none, equals null */
|
|
99789
|
+
/** elements of search results found in SERP */
|
|
99572
99790
|
items?: (RecipesElement | undefined)[] | undefined;
|
|
99573
99791
|
|
|
99574
99792
|
[key: string]: any;
|
|
@@ -99637,8 +99855,7 @@ left, right */
|
|
|
99637
99855
|
position?: string | undefined;
|
|
99638
99856
|
/** the XPath of the element */
|
|
99639
99857
|
xpath?: string | undefined;
|
|
99640
|
-
/**
|
|
99641
|
-
if there are none, equals null */
|
|
99858
|
+
/** elements of search results found in SERP */
|
|
99642
99859
|
items?: (RecipesElement | undefined)[] | undefined;
|
|
99643
99860
|
|
|
99644
99861
|
[key: string]: any;
|
|
@@ -99657,10 +99874,9 @@ left, right */
|
|
|
99657
99874
|
position?: string | undefined;
|
|
99658
99875
|
/** the XPath of the element */
|
|
99659
99876
|
xpath?: string | undefined;
|
|
99660
|
-
/** title of the
|
|
99877
|
+
/** title of the result in SERP */
|
|
99661
99878
|
title?: string | undefined;
|
|
99662
|
-
/**
|
|
99663
|
-
if there are none, equals null */
|
|
99879
|
+
/** elements of search results found in SERP */
|
|
99664
99880
|
items?: (TopSightsElement | undefined)[] | undefined;
|
|
99665
99881
|
|
|
99666
99882
|
[key: string]: any;
|
|
@@ -99731,10 +99947,9 @@ left, right */
|
|
|
99731
99947
|
position?: string | undefined;
|
|
99732
99948
|
/** the XPath of the element */
|
|
99733
99949
|
xpath?: string | undefined;
|
|
99734
|
-
/** title of the
|
|
99950
|
+
/** title of the result in SERP */
|
|
99735
99951
|
title?: string | undefined;
|
|
99736
|
-
/**
|
|
99737
|
-
if there are none, equals null */
|
|
99952
|
+
/** elements of search results found in SERP */
|
|
99738
99953
|
items?: (TopSightsElement | undefined)[] | undefined;
|
|
99739
99954
|
|
|
99740
99955
|
[key: string]: any;
|
|
@@ -99753,12 +99968,11 @@ left, right */
|
|
|
99753
99968
|
position?: string | undefined;
|
|
99754
99969
|
/** the XPath of the element */
|
|
99755
99970
|
xpath?: string | undefined;
|
|
99756
|
-
/** title of the
|
|
99971
|
+
/** title of the result in SERP */
|
|
99757
99972
|
title?: string | undefined;
|
|
99758
|
-
/** URL
|
|
99973
|
+
/** relevant URL of the Ad element in SERP */
|
|
99759
99974
|
url?: string | undefined;
|
|
99760
|
-
/**
|
|
99761
|
-
if there are none, equals null */
|
|
99975
|
+
/** elements of search results found in SERP */
|
|
99762
99976
|
items?: (ScholarlyArticlesElement | undefined)[] | undefined;
|
|
99763
99977
|
|
|
99764
99978
|
[key: string]: any;
|
|
@@ -99831,12 +100045,11 @@ left, right */
|
|
|
99831
100045
|
position?: string | undefined;
|
|
99832
100046
|
/** the XPath of the element */
|
|
99833
100047
|
xpath?: string | undefined;
|
|
99834
|
-
/** title of the
|
|
100048
|
+
/** title of the result in SERP */
|
|
99835
100049
|
title?: string | undefined;
|
|
99836
|
-
/** URL
|
|
100050
|
+
/** relevant URL of the Ad element in SERP */
|
|
99837
100051
|
url?: string | undefined;
|
|
99838
|
-
/**
|
|
99839
|
-
if there are none, equals null */
|
|
100052
|
+
/** elements of search results found in SERP */
|
|
99840
100053
|
items?: (ScholarlyArticlesElement | undefined)[] | undefined;
|
|
99841
100054
|
|
|
99842
100055
|
[key: string]: any;
|
|
@@ -99855,8 +100068,7 @@ left, right */
|
|
|
99855
100068
|
position?: string | undefined;
|
|
99856
100069
|
/** the XPath of the element */
|
|
99857
100070
|
xpath?: string | undefined;
|
|
99858
|
-
/**
|
|
99859
|
-
if there are none, equals null */
|
|
100071
|
+
/** elements of search results found in SERP */
|
|
99860
100072
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
99861
100073
|
|
|
99862
100074
|
[key: string]: any;
|
|
@@ -99925,8 +100137,7 @@ left, right */
|
|
|
99925
100137
|
position?: string | undefined;
|
|
99926
100138
|
/** the XPath of the element */
|
|
99927
100139
|
xpath?: string | undefined;
|
|
99928
|
-
/**
|
|
99929
|
-
if there are none, equals null */
|
|
100140
|
+
/** elements of search results found in SERP */
|
|
99930
100141
|
items?: (PopularProductsElement | undefined)[] | undefined;
|
|
99931
100142
|
|
|
99932
100143
|
[key: string]: any;
|
|
@@ -99945,8 +100156,7 @@ left, right */
|
|
|
99945
100156
|
position?: string | undefined;
|
|
99946
100157
|
/** the XPath of the element */
|
|
99947
100158
|
xpath?: string | undefined;
|
|
99948
|
-
/**
|
|
99949
|
-
if there are none, equals null */
|
|
100159
|
+
/** elements of search results found in SERP */
|
|
99950
100160
|
items?: (PodcastsElement | undefined)[] | undefined;
|
|
99951
100161
|
|
|
99952
100162
|
[key: string]: any;
|
|
@@ -100015,8 +100225,7 @@ left, right */
|
|
|
100015
100225
|
position?: string | undefined;
|
|
100016
100226
|
/** the XPath of the element */
|
|
100017
100227
|
xpath?: string | undefined;
|
|
100018
|
-
/**
|
|
100019
|
-
if there are none, equals null */
|
|
100228
|
+
/** elements of search results found in SERP */
|
|
100020
100229
|
items?: (PodcastsElement | undefined)[] | undefined;
|
|
100021
100230
|
|
|
100022
100231
|
[key: string]: any;
|
|
@@ -100035,8 +100244,7 @@ left, right */
|
|
|
100035
100244
|
position?: string | undefined;
|
|
100036
100245
|
/** the XPath of the element */
|
|
100037
100246
|
xpath?: string | undefined;
|
|
100038
|
-
/**
|
|
100039
|
-
if there are none, equals null */
|
|
100247
|
+
/** elements of search results found in SERP */
|
|
100040
100248
|
items?: (QuestionsAndAnswersElement | undefined)[] | undefined;
|
|
100041
100249
|
|
|
100042
100250
|
[key: string]: any;
|
|
@@ -100105,8 +100313,7 @@ left, right */
|
|
|
100105
100313
|
position?: string | undefined;
|
|
100106
100314
|
/** the XPath of the element */
|
|
100107
100315
|
xpath?: string | undefined;
|
|
100108
|
-
/**
|
|
100109
|
-
if there are none, equals null */
|
|
100316
|
+
/** elements of search results found in SERP */
|
|
100110
100317
|
items?: (QuestionsAndAnswersElement | undefined)[] | undefined;
|
|
100111
100318
|
|
|
100112
100319
|
[key: string]: any;
|
|
@@ -100125,8 +100332,7 @@ left, right */
|
|
|
100125
100332
|
position?: string | undefined;
|
|
100126
100333
|
/** the XPath of the element */
|
|
100127
100334
|
xpath?: string | undefined;
|
|
100128
|
-
/**
|
|
100129
|
-
if there are none, equals null */
|
|
100335
|
+
/** elements of search results found in SERP */
|
|
100130
100336
|
items?: (ShortVideosElement | undefined)[] | undefined;
|
|
100131
100337
|
|
|
100132
100338
|
[key: string]: any;
|
|
@@ -100195,8 +100401,7 @@ left, right */
|
|
|
100195
100401
|
position?: string | undefined;
|
|
100196
100402
|
/** the XPath of the element */
|
|
100197
100403
|
xpath?: string | undefined;
|
|
100198
|
-
/**
|
|
100199
|
-
if there are none, equals null */
|
|
100404
|
+
/** elements of search results found in SERP */
|
|
100200
100405
|
items?: (ShortVideosElement | undefined)[] | undefined;
|
|
100201
100406
|
|
|
100202
100407
|
[key: string]: any;
|
|
@@ -100215,7 +100420,7 @@ left, right */
|
|
|
100215
100420
|
position?: string | undefined;
|
|
100216
100421
|
/** the XPath of the element */
|
|
100217
100422
|
xpath?: string | undefined;
|
|
100218
|
-
/** title of the
|
|
100423
|
+
/** title of the result in SERP */
|
|
100219
100424
|
title?: string | undefined;
|
|
100220
100425
|
/** source of the element
|
|
100221
100426
|
indicates the source of information included in the shopping_element */
|
|
@@ -100223,8 +100428,8 @@ indicates the source of information included in the shopping_element */
|
|
|
100223
100428
|
/** text alongside the link title */
|
|
100224
100429
|
snippet?: string | undefined;
|
|
100225
100430
|
/** price of the shopping element */
|
|
100226
|
-
price?:
|
|
100227
|
-
/** URL
|
|
100431
|
+
price?: Price | undefined;
|
|
100432
|
+
/** relevant URL of the Ad element in SERP */
|
|
100228
100433
|
url?: string | undefined;
|
|
100229
100434
|
/** domain where a link points */
|
|
100230
100435
|
domain?: string | undefined;
|
|
@@ -100255,7 +100460,7 @@ if there are none, equals null */
|
|
|
100255
100460
|
this.title = _data["title"];
|
|
100256
100461
|
this.source = _data["source"];
|
|
100257
100462
|
this.snippet = _data["snippet"];
|
|
100258
|
-
this.price = _data["price"] ?
|
|
100463
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
100259
100464
|
this.url = _data["url"];
|
|
100260
100465
|
this.domain = _data["domain"];
|
|
100261
100466
|
this.table = _data["table"] ? Table.fromJS(_data["table"]) : <any>undefined;
|
|
@@ -100306,7 +100511,7 @@ left, right */
|
|
|
100306
100511
|
position?: string | undefined;
|
|
100307
100512
|
/** the XPath of the element */
|
|
100308
100513
|
xpath?: string | undefined;
|
|
100309
|
-
/** title of the
|
|
100514
|
+
/** title of the result in SERP */
|
|
100310
100515
|
title?: string | undefined;
|
|
100311
100516
|
/** source of the element
|
|
100312
100517
|
indicates the source of information included in the shopping_element */
|
|
@@ -100314,8 +100519,8 @@ indicates the source of information included in the shopping_element */
|
|
|
100314
100519
|
/** text alongside the link title */
|
|
100315
100520
|
snippet?: string | undefined;
|
|
100316
100521
|
/** price of the shopping element */
|
|
100317
|
-
price?:
|
|
100318
|
-
/** URL
|
|
100522
|
+
price?: Price | undefined;
|
|
100523
|
+
/** relevant URL of the Ad element in SERP */
|
|
100319
100524
|
url?: string | undefined;
|
|
100320
100525
|
/** domain where a link points */
|
|
100321
100526
|
domain?: string | undefined;
|
|
@@ -100341,8 +100546,7 @@ left, right */
|
|
|
100341
100546
|
position?: string | undefined;
|
|
100342
100547
|
/** the XPath of the element */
|
|
100343
100548
|
xpath?: string | undefined;
|
|
100344
|
-
/**
|
|
100345
|
-
if there are none, equals null */
|
|
100549
|
+
/** elements of search results found in SERP */
|
|
100346
100550
|
items?: (LicensesElement | undefined)[] | undefined;
|
|
100347
100551
|
|
|
100348
100552
|
[key: string]: any;
|
|
@@ -100411,8 +100615,7 @@ left, right */
|
|
|
100411
100615
|
position?: string | undefined;
|
|
100412
100616
|
/** the XPath of the element */
|
|
100413
100617
|
xpath?: string | undefined;
|
|
100414
|
-
/**
|
|
100415
|
-
if there are none, equals null */
|
|
100618
|
+
/** elements of search results found in SERP */
|
|
100416
100619
|
items?: (LicensesElement | undefined)[] | undefined;
|
|
100417
100620
|
|
|
100418
100621
|
[key: string]: any;
|
|
@@ -100431,10 +100634,9 @@ left, right */
|
|
|
100431
100634
|
position?: string | undefined;
|
|
100432
100635
|
/** the XPath of the element */
|
|
100433
100636
|
xpath?: string | undefined;
|
|
100434
|
-
/** title of the
|
|
100637
|
+
/** title of the result in SERP */
|
|
100435
100638
|
title?: string | undefined;
|
|
100436
|
-
/**
|
|
100437
|
-
if there are none, equals null */
|
|
100639
|
+
/** elements of search results found in SERP */
|
|
100438
100640
|
items?: (CommercialUnitsElement | undefined)[] | undefined;
|
|
100439
100641
|
|
|
100440
100642
|
[key: string]: any;
|
|
@@ -100505,10 +100707,9 @@ left, right */
|
|
|
100505
100707
|
position?: string | undefined;
|
|
100506
100708
|
/** the XPath of the element */
|
|
100507
100709
|
xpath?: string | undefined;
|
|
100508
|
-
/** title of the
|
|
100710
|
+
/** title of the result in SERP */
|
|
100509
100711
|
title?: string | undefined;
|
|
100510
|
-
/**
|
|
100511
|
-
if there are none, equals null */
|
|
100712
|
+
/** elements of search results found in SERP */
|
|
100512
100713
|
items?: (CommercialUnitsElement | undefined)[] | undefined;
|
|
100513
100714
|
|
|
100514
100715
|
[key: string]: any;
|
|
@@ -100527,14 +100728,13 @@ left, right */
|
|
|
100527
100728
|
position?: string | undefined;
|
|
100528
100729
|
/** the XPath of the element */
|
|
100529
100730
|
xpath?: string | undefined;
|
|
100530
|
-
/** title of the
|
|
100731
|
+
/** title of the result in SERP */
|
|
100531
100732
|
title?: string | undefined;
|
|
100532
|
-
/** URL
|
|
100733
|
+
/** relevant URL of the Ad element in SERP */
|
|
100533
100734
|
url?: string | undefined;
|
|
100534
100735
|
/** domain where a link points */
|
|
100535
100736
|
domain?: string | undefined;
|
|
100536
|
-
/**
|
|
100537
|
-
if there are none, equals null */
|
|
100737
|
+
/** elements of search results found in SERP */
|
|
100538
100738
|
items?: (LocalServicesElement | undefined)[] | undefined;
|
|
100539
100739
|
|
|
100540
100740
|
[key: string]: any;
|
|
@@ -100609,14 +100809,13 @@ left, right */
|
|
|
100609
100809
|
position?: string | undefined;
|
|
100610
100810
|
/** the XPath of the element */
|
|
100611
100811
|
xpath?: string | undefined;
|
|
100612
|
-
/** title of the
|
|
100812
|
+
/** title of the result in SERP */
|
|
100613
100813
|
title?: string | undefined;
|
|
100614
|
-
/** URL
|
|
100814
|
+
/** relevant URL of the Ad element in SERP */
|
|
100615
100815
|
url?: string | undefined;
|
|
100616
100816
|
/** domain where a link points */
|
|
100617
100817
|
domain?: string | undefined;
|
|
100618
|
-
/**
|
|
100619
|
-
if there are none, equals null */
|
|
100818
|
+
/** elements of search results found in SERP */
|
|
100620
100819
|
items?: (LocalServicesElement | undefined)[] | undefined;
|
|
100621
100820
|
|
|
100622
100821
|
[key: string]: any;
|
|
@@ -100639,7 +100838,7 @@ left, right */
|
|
|
100639
100838
|
unique hotel identifier assigned by Google;
|
|
100640
100839
|
example: "CgoIjaeSlI6CnNpVEAE" */
|
|
100641
100840
|
hotel_identifier?: string | undefined;
|
|
100642
|
-
/** URL
|
|
100841
|
+
/** relevant URL of the Ad element in SERP */
|
|
100643
100842
|
url?: string | undefined;
|
|
100644
100843
|
|
|
100645
100844
|
[key: string]: any;
|
|
@@ -100706,7 +100905,7 @@ left, right */
|
|
|
100706
100905
|
unique hotel identifier assigned by Google;
|
|
100707
100906
|
example: "CgoIjaeSlI6CnNpVEAE" */
|
|
100708
100907
|
hotel_identifier?: string | undefined;
|
|
100709
|
-
/** URL
|
|
100908
|
+
/** relevant URL of the Ad element in SERP */
|
|
100710
100909
|
url?: string | undefined;
|
|
100711
100910
|
|
|
100712
100911
|
[key: string]: any;
|
|
@@ -103861,7 +104060,7 @@ you will find the specified tag value in the data object of the response */
|
|
|
103861
104060
|
[key: string]: any;
|
|
103862
104061
|
}
|
|
103863
104062
|
|
|
103864
|
-
export class
|
|
104063
|
+
export class KeywordData implements IKeywordData {
|
|
103865
104064
|
/** search engine type
|
|
103866
104065
|
search engine type specified in a POST request;
|
|
103867
104066
|
for this endpoint, the field equals bing */
|
|
@@ -103885,7 +104084,7 @@ this object provides the average number of backlinks, referring pages and domain
|
|
|
103885
104084
|
|
|
103886
104085
|
[key: string]: any;
|
|
103887
104086
|
|
|
103888
|
-
constructor(data?:
|
|
104087
|
+
constructor(data?: IKeywordData) {
|
|
103889
104088
|
if (data) {
|
|
103890
104089
|
for (var property in data) {
|
|
103891
104090
|
if (data.hasOwnProperty(property))
|
|
@@ -103911,9 +104110,9 @@ this object provides the average number of backlinks, referring pages and domain
|
|
|
103911
104110
|
}
|
|
103912
104111
|
}
|
|
103913
104112
|
|
|
103914
|
-
static fromJS(data: any):
|
|
104113
|
+
static fromJS(data: any): KeywordData {
|
|
103915
104114
|
data = typeof data === 'object' ? data : {};
|
|
103916
|
-
let result = new
|
|
104115
|
+
let result = new KeywordData();
|
|
103917
104116
|
result.init(data);
|
|
103918
104117
|
return result;
|
|
103919
104118
|
}
|
|
@@ -103936,7 +104135,7 @@ this object provides the average number of backlinks, referring pages and domain
|
|
|
103936
104135
|
}
|
|
103937
104136
|
}
|
|
103938
104137
|
|
|
103939
|
-
export interface
|
|
104138
|
+
export interface IKeywordData {
|
|
103940
104139
|
/** search engine type
|
|
103941
104140
|
search engine type specified in a POST request;
|
|
103942
104141
|
for this endpoint, the field equals bing */
|
|
@@ -104833,7 +105032,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
104833
105032
|
/** search engine type */
|
|
104834
105033
|
se_type?: string | undefined;
|
|
104835
105034
|
/** keyword data for the returned keyword */
|
|
104836
|
-
keyword_data?:
|
|
105035
|
+
keyword_data?: KeywordData | undefined;
|
|
104837
105036
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
104838
105037
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
104839
105038
|
|
|
@@ -104855,7 +105054,7 @@ export class DataforseoLabsAmazonRankedKeywordsLiveItem implements IDataforseoLa
|
|
|
104855
105054
|
this[property] = _data[property];
|
|
104856
105055
|
}
|
|
104857
105056
|
this.se_type = _data["se_type"];
|
|
104858
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
105057
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
104859
105058
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AmazonRankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
104860
105059
|
}
|
|
104861
105060
|
}
|
|
@@ -104884,7 +105083,7 @@ export interface IDataforseoLabsAmazonRankedKeywordsLiveItem {
|
|
|
104884
105083
|
/** search engine type */
|
|
104885
105084
|
se_type?: string | undefined;
|
|
104886
105085
|
/** keyword data for the returned keyword */
|
|
104887
|
-
keyword_data?:
|
|
105086
|
+
keyword_data?: KeywordData | undefined;
|
|
104888
105087
|
/** contains data on the products’s SERP element found for the returned keyword */
|
|
104889
105088
|
ranked_serp_element?: AmazonRankedSerpElement | undefined;
|
|
104890
105089
|
|
|
@@ -108393,7 +108592,7 @@ search engine type specified in a POST request;
|
|
|
108393
108592
|
for this endpoint, the field equals bing */
|
|
108394
108593
|
se_type?: string | undefined;
|
|
108395
108594
|
/** keyword data for the returned keyword */
|
|
108396
|
-
keyword_data?:
|
|
108595
|
+
keyword_data?: KeywordData | undefined;
|
|
108397
108596
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
108398
108597
|
the list of supported SERP elements can be found below */
|
|
108399
108598
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -108419,7 +108618,7 @@ the list of supported SERP elements can be found below */
|
|
|
108419
108618
|
this[property] = _data[property];
|
|
108420
108619
|
}
|
|
108421
108620
|
this.se_type = _data["se_type"];
|
|
108422
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
108621
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
108423
108622
|
this.first_domain_serp_element = _data["first_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["first_domain_serp_element"]) : <any>undefined;
|
|
108424
108623
|
this.second_domain_serp_element = _data["second_domain_serp_element"] ? BaseDataforseoLabsSerpElementItem.fromJS(_data["second_domain_serp_element"]) : <any>undefined;
|
|
108425
108624
|
}
|
|
@@ -108452,7 +108651,7 @@ search engine type specified in a POST request;
|
|
|
108452
108651
|
for this endpoint, the field equals bing */
|
|
108453
108652
|
se_type?: string | undefined;
|
|
108454
108653
|
/** keyword data for the returned keyword */
|
|
108455
|
-
keyword_data?:
|
|
108654
|
+
keyword_data?: KeywordData | undefined;
|
|
108456
108655
|
/** contains data on the first domain’s SERP element found for the returned keyword
|
|
108457
108656
|
the list of supported SERP elements can be found below */
|
|
108458
108657
|
first_domain_serp_element?: BaseDataforseoLabsSerpElementItem | undefined;
|
|
@@ -109485,7 +109684,7 @@ search engine type specified in a POST request;
|
|
|
109485
109684
|
for this endpoint, the field equals bing */
|
|
109486
109685
|
se_type?: string | undefined;
|
|
109487
109686
|
/** keyword data for the returned keyword */
|
|
109488
|
-
keyword_data?:
|
|
109687
|
+
keyword_data?: KeywordData | undefined;
|
|
109489
109688
|
/** contains data on the SERP elements found for the returned keyword
|
|
109490
109689
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
109491
109690
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -109509,7 +109708,7 @@ depending on the number of specified URLs, it can contain from 1 to 20 arrays na
|
|
|
109509
109708
|
this[property] = _data[property];
|
|
109510
109709
|
}
|
|
109511
109710
|
this.se_type = _data["se_type"];
|
|
109512
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
109711
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
109513
109712
|
if (_data["intersection_result"]) {
|
|
109514
109713
|
this.intersection_result = {} as any;
|
|
109515
109714
|
for (let key in _data["intersection_result"]) {
|
|
@@ -109552,7 +109751,7 @@ search engine type specified in a POST request;
|
|
|
109552
109751
|
for this endpoint, the field equals bing */
|
|
109553
109752
|
se_type?: string | undefined;
|
|
109554
109753
|
/** keyword data for the returned keyword */
|
|
109555
|
-
keyword_data?:
|
|
109754
|
+
keyword_data?: KeywordData | undefined;
|
|
109556
109755
|
/** contains data on the SERP elements found for the returned keyword
|
|
109557
109756
|
data will be provided in separate arrays for each URL you specified in the pages object when setting a task;
|
|
109558
109757
|
depending on the number of specified URLs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -110147,17 +110346,17 @@ you will find the specified tag value in the data object of the response */
|
|
|
110147
110346
|
[key: string]: any;
|
|
110148
110347
|
}
|
|
110149
110348
|
|
|
110150
|
-
export class
|
|
110349
|
+
export class DataforseoLabsBingRankedKeywordsLiveItem implements IDataforseoLabsBingRankedKeywordsLiveItem {
|
|
110151
110350
|
/** search engine type */
|
|
110152
110351
|
se_type?: string | undefined;
|
|
110153
110352
|
/** keyword data for the returned keyword */
|
|
110154
|
-
keyword_data?:
|
|
110353
|
+
keyword_data?: KeywordData | undefined;
|
|
110155
110354
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
110156
110355
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
110157
110356
|
|
|
110158
110357
|
[key: string]: any;
|
|
110159
110358
|
|
|
110160
|
-
constructor(data?:
|
|
110359
|
+
constructor(data?: IDataforseoLabsBingRankedKeywordsLiveItem) {
|
|
110161
110360
|
if (data) {
|
|
110162
110361
|
for (var property in data) {
|
|
110163
110362
|
if (data.hasOwnProperty(property))
|
|
@@ -110173,14 +110372,14 @@ export class DataforseoLabsLiveItem implements IDataforseoLabsLiveItem {
|
|
|
110173
110372
|
this[property] = _data[property];
|
|
110174
110373
|
}
|
|
110175
110374
|
this.se_type = _data["se_type"];
|
|
110176
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
110375
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
110177
110376
|
this.ranked_serp_element = _data["ranked_serp_element"] ? RankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
110178
110377
|
}
|
|
110179
110378
|
}
|
|
110180
110379
|
|
|
110181
|
-
static fromJS(data: any):
|
|
110380
|
+
static fromJS(data: any): DataforseoLabsBingRankedKeywordsLiveItem {
|
|
110182
110381
|
data = typeof data === 'object' ? data : {};
|
|
110183
|
-
let result = new
|
|
110382
|
+
let result = new DataforseoLabsBingRankedKeywordsLiveItem();
|
|
110184
110383
|
result.init(data);
|
|
110185
110384
|
return result;
|
|
110186
110385
|
}
|
|
@@ -110198,11 +110397,11 @@ export class DataforseoLabsLiveItem implements IDataforseoLabsLiveItem {
|
|
|
110198
110397
|
}
|
|
110199
110398
|
}
|
|
110200
110399
|
|
|
110201
|
-
export interface
|
|
110400
|
+
export interface IDataforseoLabsBingRankedKeywordsLiveItem {
|
|
110202
110401
|
/** search engine type */
|
|
110203
110402
|
se_type?: string | undefined;
|
|
110204
110403
|
/** keyword data for the returned keyword */
|
|
110205
|
-
keyword_data?:
|
|
110404
|
+
keyword_data?: KeywordData | undefined;
|
|
110206
110405
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
110207
110406
|
ranked_serp_element?: RankedSerpElement | undefined;
|
|
110208
110407
|
|
|
@@ -110231,7 +110430,7 @@ ranking data is provided by the rank_group parameters that show the result’s r
|
|
|
110231
110430
|
ranking data is provided by the rank_absolute parameters that indicate the result’s position among all SERP elements */
|
|
110232
110431
|
metrics_absolute?: { [key: string]: DataforseoLabsMetricsInfo; } | undefined;
|
|
110233
110432
|
/** contains ranked keywords and related data */
|
|
110234
|
-
items?: (
|
|
110433
|
+
items?: (DataforseoLabsBingRankedKeywordsLiveItem | undefined)[] | undefined;
|
|
110235
110434
|
|
|
110236
110435
|
[key: string]: any;
|
|
110237
110436
|
|
|
@@ -110273,7 +110472,7 @@ ranking data is provided by the rank_absolute parameters that indicate the resul
|
|
|
110273
110472
|
if (Array.isArray(_data["items"])) {
|
|
110274
110473
|
this.items = [] as any;
|
|
110275
110474
|
for (let item of _data["items"])
|
|
110276
|
-
this.items!.push(
|
|
110475
|
+
this.items!.push(DataforseoLabsBingRankedKeywordsLiveItem.fromJS(item));
|
|
110277
110476
|
}
|
|
110278
110477
|
}
|
|
110279
110478
|
}
|
|
@@ -110342,7 +110541,7 @@ ranking data is provided by the rank_group parameters that show the result’s r
|
|
|
110342
110541
|
ranking data is provided by the rank_absolute parameters that indicate the result’s position among all SERP elements */
|
|
110343
110542
|
metrics_absolute?: { [key: string]: DataforseoLabsMetricsInfo; } | undefined;
|
|
110344
110543
|
/** contains ranked keywords and related data */
|
|
110345
|
-
items?: (
|
|
110544
|
+
items?: (DataforseoLabsBingRankedKeywordsLiveItem | undefined)[] | undefined;
|
|
110346
110545
|
|
|
110347
110546
|
[key: string]: any;
|
|
110348
110547
|
}
|
|
@@ -110785,7 +110984,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveItem implements IDataforseoLab
|
|
|
110785
110984
|
/** search engine type */
|
|
110786
110985
|
se_type?: string | undefined;
|
|
110787
110986
|
/** keyword data for the returned keyword */
|
|
110788
|
-
keyword_data?:
|
|
110987
|
+
keyword_data?: KeywordData | undefined;
|
|
110789
110988
|
/** keyword search depth */
|
|
110790
110989
|
depth?: number | undefined;
|
|
110791
110990
|
/** list of related keywords
|
|
@@ -110810,7 +111009,7 @@ represents the list of search queries which are related to the keyword returned
|
|
|
110810
111009
|
this[property] = _data[property];
|
|
110811
111010
|
}
|
|
110812
111011
|
this.se_type = _data["se_type"];
|
|
110813
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
111012
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
110814
111013
|
this.depth = _data["depth"];
|
|
110815
111014
|
if (Array.isArray(_data["related_keywords"])) {
|
|
110816
111015
|
this.related_keywords = [] as any;
|
|
@@ -110849,7 +111048,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveItem {
|
|
|
110849
111048
|
/** search engine type */
|
|
110850
111049
|
se_type?: string | undefined;
|
|
110851
111050
|
/** keyword data for the returned keyword */
|
|
110852
|
-
keyword_data?:
|
|
111051
|
+
keyword_data?: KeywordData | undefined;
|
|
110853
111052
|
/** keyword search depth */
|
|
110854
111053
|
depth?: number | undefined;
|
|
110855
111054
|
/** list of related keywords
|
|
@@ -110866,7 +111065,7 @@ export class DataforseoLabsBingRelatedKeywordsLiveResultInfo implements IDatafor
|
|
|
110866
111065
|
seed_keyword?: string | undefined;
|
|
110867
111066
|
/** keyword data for the seed keyword
|
|
110868
111067
|
fields in the array are identical to that of keyword_data */
|
|
110869
|
-
seed_keyword_data?:
|
|
111068
|
+
seed_keyword_data?: KeywordData | undefined;
|
|
110870
111069
|
/** location code in a POST array */
|
|
110871
111070
|
location_code?: number | undefined;
|
|
110872
111071
|
/** language code in a POST array */
|
|
@@ -110897,7 +111096,7 @@ fields in the array are identical to that of keyword_data */
|
|
|
110897
111096
|
}
|
|
110898
111097
|
this.se_type = _data["se_type"];
|
|
110899
111098
|
this.seed_keyword = _data["seed_keyword"];
|
|
110900
|
-
this.seed_keyword_data = _data["seed_keyword_data"] ?
|
|
111099
|
+
this.seed_keyword_data = _data["seed_keyword_data"] ? KeywordData.fromJS(_data["seed_keyword_data"]) : <any>undefined;
|
|
110901
111100
|
this.location_code = _data["location_code"];
|
|
110902
111101
|
this.language_code = _data["language_code"];
|
|
110903
111102
|
this.total_count = _data["total_count"];
|
|
@@ -110946,7 +111145,7 @@ export interface IDataforseoLabsBingRelatedKeywordsLiveResultInfo {
|
|
|
110946
111145
|
seed_keyword?: string | undefined;
|
|
110947
111146
|
/** keyword data for the seed keyword
|
|
110948
111147
|
fields in the array are identical to that of keyword_data */
|
|
110949
|
-
seed_keyword_data?:
|
|
111148
|
+
seed_keyword_data?: KeywordData | undefined;
|
|
110950
111149
|
/** location code in a POST array */
|
|
110951
111150
|
location_code?: number | undefined;
|
|
110952
111151
|
/** language code in a POST array */
|
|
@@ -113343,7 +113542,7 @@ left, right */
|
|
|
113343
113542
|
/** indicates whether the app is free */
|
|
113344
113543
|
is_free?: boolean | undefined;
|
|
113345
113544
|
/** price of the app */
|
|
113346
|
-
price?:
|
|
113545
|
+
price?: Price | undefined;
|
|
113347
113546
|
/** name of the app developer */
|
|
113348
113547
|
developer?: string | undefined;
|
|
113349
113548
|
/** URL to the developer page on Google Play */
|
|
@@ -113373,7 +113572,7 @@ left, right */
|
|
|
113373
113572
|
this.reviews_count = _data["reviews_count"];
|
|
113374
113573
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
113375
113574
|
this.is_free = _data["is_free"];
|
|
113376
|
-
this.price = _data["price"] ?
|
|
113575
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
113377
113576
|
this.developer = _data["developer"];
|
|
113378
113577
|
this.developer_url = _data["developer_url"];
|
|
113379
113578
|
}
|
|
@@ -113436,7 +113635,7 @@ left, right */
|
|
|
113436
113635
|
/** indicates whether the app is free */
|
|
113437
113636
|
is_free?: boolean | undefined;
|
|
113438
113637
|
/** price of the app */
|
|
113439
|
-
price?:
|
|
113638
|
+
price?: Price | undefined;
|
|
113440
113639
|
/** name of the app developer */
|
|
113441
113640
|
developer?: string | undefined;
|
|
113442
113641
|
/** URL to the developer page on Google Play */
|
|
@@ -113547,7 +113746,7 @@ export class DataforseoLabsGoogleKeywordsForAppLiveItem implements IDataforseoLa
|
|
|
113547
113746
|
/** search engine type */
|
|
113548
113747
|
se_type?: string | undefined;
|
|
113549
113748
|
/** keyword data for the returned keyword */
|
|
113550
|
-
keyword_data?:
|
|
113749
|
+
keyword_data?: KeywordData | undefined;
|
|
113551
113750
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
113552
113751
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
113553
113752
|
|
|
@@ -113569,7 +113768,7 @@ export class DataforseoLabsGoogleKeywordsForAppLiveItem implements IDataforseoLa
|
|
|
113569
113768
|
this[property] = _data[property];
|
|
113570
113769
|
}
|
|
113571
113770
|
this.se_type = _data["se_type"];
|
|
113572
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
113771
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
113573
113772
|
this.ranked_serp_element = _data["ranked_serp_element"] ? AppRankedSerpElementInfo.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
113574
113773
|
}
|
|
113575
113774
|
}
|
|
@@ -113598,7 +113797,7 @@ export interface IDataforseoLabsGoogleKeywordsForAppLiveItem {
|
|
|
113598
113797
|
/** search engine type */
|
|
113599
113798
|
se_type?: string | undefined;
|
|
113600
113799
|
/** keyword data for the returned keyword */
|
|
113601
|
-
keyword_data?:
|
|
113800
|
+
keyword_data?: KeywordData | undefined;
|
|
113602
113801
|
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
113603
113802
|
ranked_serp_element?: AppRankedSerpElementInfo | undefined;
|
|
113604
113803
|
|
|
@@ -114711,7 +114910,7 @@ export class DataforseoLabsGoogleAppIntersectionLiveItem implements IDataforseoL
|
|
|
114711
114910
|
/** search engine type */
|
|
114712
114911
|
se_type?: string | undefined;
|
|
114713
114912
|
/** keyword data for the returned keyword */
|
|
114714
|
-
keyword_data?:
|
|
114913
|
+
keyword_data?: KeywordData | undefined;
|
|
114715
114914
|
/** contains SERP data for the returned keyword
|
|
114716
114915
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
114717
114916
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -114735,7 +114934,7 @@ depending on the number of specified app IDs, it can contain from 1 to 20 arrays
|
|
|
114735
114934
|
this[property] = _data[property];
|
|
114736
114935
|
}
|
|
114737
114936
|
this.se_type = _data["se_type"];
|
|
114738
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
114937
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
114739
114938
|
if (_data["intersection_result"]) {
|
|
114740
114939
|
this.intersection_result = {} as any;
|
|
114741
114940
|
for (let key in _data["intersection_result"]) {
|
|
@@ -114776,7 +114975,7 @@ export interface IDataforseoLabsGoogleAppIntersectionLiveItem {
|
|
|
114776
114975
|
/** search engine type */
|
|
114777
114976
|
se_type?: string | undefined;
|
|
114778
114977
|
/** keyword data for the returned keyword */
|
|
114779
|
-
keyword_data?:
|
|
114978
|
+
keyword_data?: KeywordData | undefined;
|
|
114780
114979
|
/** contains SERP data for the returned keyword
|
|
114781
114980
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
114782
114981
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -115647,7 +115846,7 @@ left, right */
|
|
|
115647
115846
|
/** indicates whether the app is free */
|
|
115648
115847
|
is_free?: boolean | undefined;
|
|
115649
115848
|
/** price of the app */
|
|
115650
|
-
price?:
|
|
115849
|
+
price?: Price | undefined;
|
|
115651
115850
|
|
|
115652
115851
|
[key: string]: any;
|
|
115653
115852
|
|
|
@@ -115673,7 +115872,7 @@ left, right */
|
|
|
115673
115872
|
this.reviews_count = _data["reviews_count"];
|
|
115674
115873
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
115675
115874
|
this.is_free = _data["is_free"];
|
|
115676
|
-
this.price = _data["price"] ?
|
|
115875
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
115677
115876
|
}
|
|
115678
115877
|
}
|
|
115679
115878
|
|
|
@@ -115732,7 +115931,167 @@ left, right */
|
|
|
115732
115931
|
/** indicates whether the app is free */
|
|
115733
115932
|
is_free?: boolean | undefined;
|
|
115734
115933
|
/** price of the app */
|
|
115735
|
-
price?:
|
|
115934
|
+
price?: Price | undefined;
|
|
115935
|
+
|
|
115936
|
+
[key: string]: any;
|
|
115937
|
+
}
|
|
115938
|
+
|
|
115939
|
+
export class ItemsRankedSerpElement implements IItemsRankedSerpElement {
|
|
115940
|
+
/** search engine type */
|
|
115941
|
+
se_type?: string | undefined;
|
|
115942
|
+
/** contains data on the SERP element
|
|
115943
|
+
the list of supported SERP elements can be found below */
|
|
115944
|
+
serp_item?: AppDataAppStoreSearchOrganicSerpElementItem | undefined;
|
|
115945
|
+
/** direct URL to search engine results
|
|
115946
|
+
you can use it to make sure that we provided accurate results */
|
|
115947
|
+
check_url?: string | undefined;
|
|
115948
|
+
/** number of search results for the returned keyword */
|
|
115949
|
+
se_results_count?: string | undefined;
|
|
115950
|
+
/** date and time when SERP data was updated
|
|
115951
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
115952
|
+
example:
|
|
115953
|
+
2019-11-15 12:57:46 +00:00 */
|
|
115954
|
+
last_updated_time?: string | undefined;
|
|
115955
|
+
/** previous to the most recent date and time when SERP data was updated
|
|
115956
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
115957
|
+
example:
|
|
115958
|
+
2019-10-15 12:57:46 +00:00;
|
|
115959
|
+
in this case, will equal null */
|
|
115960
|
+
previous_updated_time?: string | undefined;
|
|
115961
|
+
|
|
115962
|
+
[key: string]: any;
|
|
115963
|
+
|
|
115964
|
+
constructor(data?: IItemsRankedSerpElement) {
|
|
115965
|
+
if (data) {
|
|
115966
|
+
for (var property in data) {
|
|
115967
|
+
if (data.hasOwnProperty(property))
|
|
115968
|
+
(<any>this)[property] = (<any>data)[property];
|
|
115969
|
+
}
|
|
115970
|
+
}
|
|
115971
|
+
}
|
|
115972
|
+
|
|
115973
|
+
init(_data?: any) {
|
|
115974
|
+
if (_data) {
|
|
115975
|
+
for (var property in _data) {
|
|
115976
|
+
if (_data.hasOwnProperty(property))
|
|
115977
|
+
this[property] = _data[property];
|
|
115978
|
+
}
|
|
115979
|
+
this.se_type = _data["se_type"];
|
|
115980
|
+
this.serp_item = _data["serp_item"] ? AppDataAppStoreSearchOrganicSerpElementItem.fromJS(_data["serp_item"]) : <any>undefined;
|
|
115981
|
+
this.check_url = _data["check_url"];
|
|
115982
|
+
this.se_results_count = _data["se_results_count"];
|
|
115983
|
+
this.last_updated_time = _data["last_updated_time"];
|
|
115984
|
+
this.previous_updated_time = _data["previous_updated_time"];
|
|
115985
|
+
}
|
|
115986
|
+
}
|
|
115987
|
+
|
|
115988
|
+
static fromJS(data: any): ItemsRankedSerpElement {
|
|
115989
|
+
data = typeof data === 'object' ? data : {};
|
|
115990
|
+
let result = new ItemsRankedSerpElement();
|
|
115991
|
+
result.init(data);
|
|
115992
|
+
return result;
|
|
115993
|
+
}
|
|
115994
|
+
|
|
115995
|
+
toJSON(data?: any) {
|
|
115996
|
+
data = typeof data === 'object' ? data : {};
|
|
115997
|
+
for (var property in this) {
|
|
115998
|
+
if (this.hasOwnProperty(property))
|
|
115999
|
+
data[property] = this[property];
|
|
116000
|
+
}
|
|
116001
|
+
data["se_type"] = this.se_type;
|
|
116002
|
+
data["serp_item"] = this.serp_item ? this.serp_item.toJSON() : <any>undefined;
|
|
116003
|
+
data["check_url"] = this.check_url;
|
|
116004
|
+
data["se_results_count"] = this.se_results_count;
|
|
116005
|
+
data["last_updated_time"] = this.last_updated_time;
|
|
116006
|
+
data["previous_updated_time"] = this.previous_updated_time;
|
|
116007
|
+
return data;
|
|
116008
|
+
}
|
|
116009
|
+
}
|
|
116010
|
+
|
|
116011
|
+
export interface IItemsRankedSerpElement {
|
|
116012
|
+
/** search engine type */
|
|
116013
|
+
se_type?: string | undefined;
|
|
116014
|
+
/** contains data on the SERP element
|
|
116015
|
+
the list of supported SERP elements can be found below */
|
|
116016
|
+
serp_item?: AppDataAppStoreSearchOrganicSerpElementItem | undefined;
|
|
116017
|
+
/** direct URL to search engine results
|
|
116018
|
+
you can use it to make sure that we provided accurate results */
|
|
116019
|
+
check_url?: string | undefined;
|
|
116020
|
+
/** number of search results for the returned keyword */
|
|
116021
|
+
se_results_count?: string | undefined;
|
|
116022
|
+
/** date and time when SERP data was updated
|
|
116023
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
116024
|
+
example:
|
|
116025
|
+
2019-11-15 12:57:46 +00:00 */
|
|
116026
|
+
last_updated_time?: string | undefined;
|
|
116027
|
+
/** previous to the most recent date and time when SERP data was updated
|
|
116028
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
116029
|
+
example:
|
|
116030
|
+
2019-10-15 12:57:46 +00:00;
|
|
116031
|
+
in this case, will equal null */
|
|
116032
|
+
previous_updated_time?: string | undefined;
|
|
116033
|
+
|
|
116034
|
+
[key: string]: any;
|
|
116035
|
+
}
|
|
116036
|
+
|
|
116037
|
+
export class DataforseoLabsAppleKeywordsForAppLiveItem implements IDataforseoLabsAppleKeywordsForAppLiveItem {
|
|
116038
|
+
/** search engine type */
|
|
116039
|
+
se_type?: string | undefined;
|
|
116040
|
+
/** keyword data for the returned keyword */
|
|
116041
|
+
keyword_data?: KeywordData | undefined;
|
|
116042
|
+
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
116043
|
+
ranked_serp_element?: ItemsRankedSerpElement | undefined;
|
|
116044
|
+
|
|
116045
|
+
[key: string]: any;
|
|
116046
|
+
|
|
116047
|
+
constructor(data?: IDataforseoLabsAppleKeywordsForAppLiveItem) {
|
|
116048
|
+
if (data) {
|
|
116049
|
+
for (var property in data) {
|
|
116050
|
+
if (data.hasOwnProperty(property))
|
|
116051
|
+
(<any>this)[property] = (<any>data)[property];
|
|
116052
|
+
}
|
|
116053
|
+
}
|
|
116054
|
+
}
|
|
116055
|
+
|
|
116056
|
+
init(_data?: any) {
|
|
116057
|
+
if (_data) {
|
|
116058
|
+
for (var property in _data) {
|
|
116059
|
+
if (_data.hasOwnProperty(property))
|
|
116060
|
+
this[property] = _data[property];
|
|
116061
|
+
}
|
|
116062
|
+
this.se_type = _data["se_type"];
|
|
116063
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
116064
|
+
this.ranked_serp_element = _data["ranked_serp_element"] ? ItemsRankedSerpElement.fromJS(_data["ranked_serp_element"]) : <any>undefined;
|
|
116065
|
+
}
|
|
116066
|
+
}
|
|
116067
|
+
|
|
116068
|
+
static fromJS(data: any): DataforseoLabsAppleKeywordsForAppLiveItem {
|
|
116069
|
+
data = typeof data === 'object' ? data : {};
|
|
116070
|
+
let result = new DataforseoLabsAppleKeywordsForAppLiveItem();
|
|
116071
|
+
result.init(data);
|
|
116072
|
+
return result;
|
|
116073
|
+
}
|
|
116074
|
+
|
|
116075
|
+
toJSON(data?: any) {
|
|
116076
|
+
data = typeof data === 'object' ? data : {};
|
|
116077
|
+
for (var property in this) {
|
|
116078
|
+
if (this.hasOwnProperty(property))
|
|
116079
|
+
data[property] = this[property];
|
|
116080
|
+
}
|
|
116081
|
+
data["se_type"] = this.se_type;
|
|
116082
|
+
data["keyword_data"] = this.keyword_data ? this.keyword_data.toJSON() : <any>undefined;
|
|
116083
|
+
data["ranked_serp_element"] = this.ranked_serp_element ? this.ranked_serp_element.toJSON() : <any>undefined;
|
|
116084
|
+
return data;
|
|
116085
|
+
}
|
|
116086
|
+
}
|
|
116087
|
+
|
|
116088
|
+
export interface IDataforseoLabsAppleKeywordsForAppLiveItem {
|
|
116089
|
+
/** search engine type */
|
|
116090
|
+
se_type?: string | undefined;
|
|
116091
|
+
/** keyword data for the returned keyword */
|
|
116092
|
+
keyword_data?: KeywordData | undefined;
|
|
116093
|
+
/** contains data on the domain’s SERP element found for the returned keyword */
|
|
116094
|
+
ranked_serp_element?: ItemsRankedSerpElement | undefined;
|
|
115736
116095
|
|
|
115737
116096
|
[key: string]: any;
|
|
115738
116097
|
}
|
|
@@ -115751,7 +116110,7 @@ export class DataforseoLabsAppleKeywordsForAppLiveResultInfo implements IDatafor
|
|
|
115751
116110
|
/** the number of results returned in the items array */
|
|
115752
116111
|
items_count?: number | undefined;
|
|
115753
116112
|
/** contains data related to the ranking keywords for the app specified in the app_id field */
|
|
115754
|
-
items?: (
|
|
116113
|
+
items?: (DataforseoLabsAppleKeywordsForAppLiveItem | undefined)[] | undefined;
|
|
115755
116114
|
|
|
115756
116115
|
[key: string]: any;
|
|
115757
116116
|
|
|
@@ -115779,7 +116138,7 @@ export class DataforseoLabsAppleKeywordsForAppLiveResultInfo implements IDatafor
|
|
|
115779
116138
|
if (Array.isArray(_data["items"])) {
|
|
115780
116139
|
this.items = [] as any;
|
|
115781
116140
|
for (let item of _data["items"])
|
|
115782
|
-
this.items!.push(
|
|
116141
|
+
this.items!.push(DataforseoLabsAppleKeywordsForAppLiveItem.fromJS(item));
|
|
115783
116142
|
}
|
|
115784
116143
|
}
|
|
115785
116144
|
}
|
|
@@ -115826,7 +116185,7 @@ export interface IDataforseoLabsAppleKeywordsForAppLiveResultInfo {
|
|
|
115826
116185
|
/** the number of results returned in the items array */
|
|
115827
116186
|
items_count?: number | undefined;
|
|
115828
116187
|
/** contains data related to the ranking keywords for the app specified in the app_id field */
|
|
115829
|
-
items?: (
|
|
116188
|
+
items?: (DataforseoLabsAppleKeywordsForAppLiveItem | undefined)[] | undefined;
|
|
115830
116189
|
|
|
115831
116190
|
[key: string]: any;
|
|
115832
116191
|
}
|
|
@@ -116843,7 +117202,7 @@ export class DataforseoLabsAppleAppIntersectionLiveItem implements IDataforseoLa
|
|
|
116843
117202
|
/** search engine type */
|
|
116844
117203
|
se_type?: string | undefined;
|
|
116845
117204
|
/** keyword data for the returned keyword */
|
|
116846
|
-
keyword_data?:
|
|
117205
|
+
keyword_data?: KeywordData | undefined;
|
|
116847
117206
|
/** contains SERP data for the returned keyword
|
|
116848
117207
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
116849
117208
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -116867,7 +117226,7 @@ depending on the number of specified app IDs, it can contain from 1 to 20 arrays
|
|
|
116867
117226
|
this[property] = _data[property];
|
|
116868
117227
|
}
|
|
116869
117228
|
this.se_type = _data["se_type"];
|
|
116870
|
-
this.keyword_data = _data["keyword_data"] ?
|
|
117229
|
+
this.keyword_data = _data["keyword_data"] ? KeywordData.fromJS(_data["keyword_data"]) : <any>undefined;
|
|
116871
117230
|
if (_data["intersection_result"]) {
|
|
116872
117231
|
this.intersection_result = {} as any;
|
|
116873
117232
|
for (let key in _data["intersection_result"]) {
|
|
@@ -116908,7 +117267,7 @@ export interface IDataforseoLabsAppleAppIntersectionLiveItem {
|
|
|
116908
117267
|
/** search engine type */
|
|
116909
117268
|
se_type?: string | undefined;
|
|
116910
117269
|
/** keyword data for the returned keyword */
|
|
116911
|
-
keyword_data?:
|
|
117270
|
+
keyword_data?: KeywordData | undefined;
|
|
116912
117271
|
/** contains SERP data for the returned keyword
|
|
116913
117272
|
data will be provided in separate arrays for each app ID you specified in the app_ids object when setting a task;
|
|
116914
117273
|
depending on the number of specified app IDs, it can contain from 1 to 20 arrays named respectively */
|
|
@@ -154768,7 +155127,7 @@ the amount of time a browser needs to complete downloading a resource */
|
|
|
154768
155127
|
[key: string]: any;
|
|
154769
155128
|
}
|
|
154770
155129
|
|
|
154771
|
-
export class
|
|
155130
|
+
export class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
154772
155131
|
/** resource properties
|
|
154773
155132
|
the value depends on the resource_type
|
|
154774
155133
|
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;
|
|
@@ -154818,24 +155177,12 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
154818
155177
|
/** contains data on changes related to the resource
|
|
154819
155178
|
if there is no data, the value will be null */
|
|
154820
155179
|
last_modified?: LastModified | undefined;
|
|
154821
|
-
/** resource initiator */
|
|
154822
|
-
initiator?: string | undefined;
|
|
154823
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
154824
|
-
duration_time?: number | undefined;
|
|
154825
|
-
/** time to start downloading the resource
|
|
154826
|
-
the amount of time the browser needs to start downloading a resource */
|
|
154827
|
-
fetch_start?: number | undefined;
|
|
154828
|
-
/** time to complete downloading the resource
|
|
154829
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
154830
|
-
fetch_end?: number | undefined;
|
|
154831
|
-
/** indicates whether the resource blocks rendering */
|
|
154832
|
-
is_render_blocking?: boolean | undefined;
|
|
154833
155180
|
|
|
154834
155181
|
[key: string]: any;
|
|
154835
155182
|
|
|
154836
|
-
constructor(data?:
|
|
155183
|
+
constructor(data?: IScriptResourceElementItem) {
|
|
154837
155184
|
super(data);
|
|
154838
|
-
this._discriminator = "
|
|
155185
|
+
this._discriminator = "script";
|
|
154839
155186
|
}
|
|
154840
155187
|
|
|
154841
155188
|
init(_data?: any) {
|
|
@@ -154868,17 +155215,12 @@ the amount of time the browser needs to complete downloading a resource */
|
|
|
154868
155215
|
this.accept_type = _data["accept_type"];
|
|
154869
155216
|
this.server = _data["server"];
|
|
154870
155217
|
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
154871
|
-
this.initiator = _data["initiator"];
|
|
154872
|
-
this.duration_time = _data["duration_time"];
|
|
154873
|
-
this.fetch_start = _data["fetch_start"];
|
|
154874
|
-
this.fetch_end = _data["fetch_end"];
|
|
154875
|
-
this.is_render_blocking = _data["is_render_blocking"];
|
|
154876
155218
|
}
|
|
154877
155219
|
}
|
|
154878
155220
|
|
|
154879
|
-
static fromJS(data: any):
|
|
155221
|
+
static fromJS(data: any): ScriptResourceElementItem {
|
|
154880
155222
|
data = typeof data === 'object' ? data : {};
|
|
154881
|
-
let result = new
|
|
155223
|
+
let result = new ScriptResourceElementItem();
|
|
154882
155224
|
result.init(data);
|
|
154883
155225
|
return result;
|
|
154884
155226
|
}
|
|
@@ -154912,17 +155254,12 @@ the amount of time the browser needs to complete downloading a resource */
|
|
|
154912
155254
|
data["accept_type"] = this.accept_type;
|
|
154913
155255
|
data["server"] = this.server;
|
|
154914
155256
|
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
154915
|
-
data["initiator"] = this.initiator;
|
|
154916
|
-
data["duration_time"] = this.duration_time;
|
|
154917
|
-
data["fetch_start"] = this.fetch_start;
|
|
154918
|
-
data["fetch_end"] = this.fetch_end;
|
|
154919
|
-
data["is_render_blocking"] = this.is_render_blocking;
|
|
154920
155257
|
super.toJSON(data);
|
|
154921
155258
|
return data;
|
|
154922
155259
|
}
|
|
154923
155260
|
}
|
|
154924
155261
|
|
|
154925
|
-
export interface
|
|
155262
|
+
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
154926
155263
|
/** resource properties
|
|
154927
155264
|
the value depends on the resource_type
|
|
154928
155265
|
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;
|
|
@@ -154972,162 +155309,11 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
154972
155309
|
/** contains data on changes related to the resource
|
|
154973
155310
|
if there is no data, the value will be null */
|
|
154974
155311
|
last_modified?: LastModified | undefined;
|
|
154975
|
-
/** resource initiator */
|
|
154976
|
-
initiator?: string | undefined;
|
|
154977
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
154978
|
-
duration_time?: number | undefined;
|
|
154979
|
-
/** time to start downloading the resource
|
|
154980
|
-
the amount of time the browser needs to start downloading a resource */
|
|
154981
|
-
fetch_start?: number | undefined;
|
|
154982
|
-
/** time to complete downloading the resource
|
|
154983
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
154984
|
-
fetch_end?: number | undefined;
|
|
154985
|
-
/** indicates whether the resource blocks rendering */
|
|
154986
|
-
is_render_blocking?: boolean | undefined;
|
|
154987
|
-
|
|
154988
|
-
[key: string]: any;
|
|
154989
|
-
}
|
|
154990
|
-
|
|
154991
|
-
export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
154992
|
-
/** status of the crawling session
|
|
154993
|
-
possible values: in_progress, finished */
|
|
154994
|
-
crawl_progress?: string | undefined;
|
|
154995
|
-
/** details of the crawling session */
|
|
154996
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
154997
|
-
/** total number of relevant items crawled */
|
|
154998
|
-
total_items_count?: number | undefined;
|
|
154999
|
-
/** number of items in the results array */
|
|
155000
|
-
items_count?: number | undefined;
|
|
155001
|
-
/** items array */
|
|
155002
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
155003
|
-
|
|
155004
|
-
[key: string]: any;
|
|
155005
|
-
|
|
155006
|
-
constructor(data?: IOnPageResourcesResultInfo) {
|
|
155007
|
-
if (data) {
|
|
155008
|
-
for (var property in data) {
|
|
155009
|
-
if (data.hasOwnProperty(property))
|
|
155010
|
-
(<any>this)[property] = (<any>data)[property];
|
|
155011
|
-
}
|
|
155012
|
-
}
|
|
155013
|
-
}
|
|
155014
|
-
|
|
155015
|
-
init(_data?: any) {
|
|
155016
|
-
if (_data) {
|
|
155017
|
-
for (var property in _data) {
|
|
155018
|
-
if (_data.hasOwnProperty(property))
|
|
155019
|
-
this[property] = _data[property];
|
|
155020
|
-
}
|
|
155021
|
-
this.crawl_progress = _data["crawl_progress"];
|
|
155022
|
-
this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
|
|
155023
|
-
this.total_items_count = _data["total_items_count"];
|
|
155024
|
-
this.items_count = _data["items_count"];
|
|
155025
|
-
if (Array.isArray(_data["items"])) {
|
|
155026
|
-
this.items = [] as any;
|
|
155027
|
-
for (let item of _data["items"])
|
|
155028
|
-
this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
|
|
155029
|
-
}
|
|
155030
|
-
}
|
|
155031
|
-
}
|
|
155032
|
-
|
|
155033
|
-
static fromJS(data: any): OnPageResourcesResultInfo {
|
|
155034
|
-
data = typeof data === 'object' ? data : {};
|
|
155035
|
-
let result = new OnPageResourcesResultInfo();
|
|
155036
|
-
result.init(data);
|
|
155037
|
-
return result;
|
|
155038
|
-
}
|
|
155039
|
-
|
|
155040
|
-
toJSON(data?: any) {
|
|
155041
|
-
data = typeof data === 'object' ? data : {};
|
|
155042
|
-
for (var property in this) {
|
|
155043
|
-
if (this.hasOwnProperty(property))
|
|
155044
|
-
data[property] = this[property];
|
|
155045
|
-
}
|
|
155046
|
-
data["crawl_progress"] = this.crawl_progress;
|
|
155047
|
-
data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
|
|
155048
|
-
data["total_items_count"] = this.total_items_count;
|
|
155049
|
-
data["items_count"] = this.items_count;
|
|
155050
|
-
if (Array.isArray(this.items)) {
|
|
155051
|
-
data["items"] = [];
|
|
155052
|
-
for (let item of this.items)
|
|
155053
|
-
data["items"].push(item.toJSON());
|
|
155054
|
-
}
|
|
155055
|
-
return data;
|
|
155056
|
-
}
|
|
155057
|
-
}
|
|
155058
|
-
|
|
155059
|
-
export interface IOnPageResourcesResultInfo {
|
|
155060
|
-
/** status of the crawling session
|
|
155061
|
-
possible values: in_progress, finished */
|
|
155062
|
-
crawl_progress?: string | undefined;
|
|
155063
|
-
/** details of the crawling session */
|
|
155064
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
155065
|
-
/** total number of relevant items crawled */
|
|
155066
|
-
total_items_count?: number | undefined;
|
|
155067
|
-
/** number of items in the results array */
|
|
155068
|
-
items_count?: number | undefined;
|
|
155069
|
-
/** items array */
|
|
155070
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
155071
|
-
|
|
155072
|
-
[key: string]: any;
|
|
155073
|
-
}
|
|
155074
|
-
|
|
155075
|
-
export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
155076
|
-
/** array of results */
|
|
155077
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
155078
|
-
|
|
155079
|
-
[key: string]: any;
|
|
155080
|
-
|
|
155081
|
-
constructor(data?: IOnPageResourcesTaskInfo) {
|
|
155082
|
-
super(data);
|
|
155083
|
-
}
|
|
155084
|
-
|
|
155085
|
-
init(_data?: any) {
|
|
155086
|
-
super.init(_data);
|
|
155087
|
-
if (_data) {
|
|
155088
|
-
for (var property in _data) {
|
|
155089
|
-
if (_data.hasOwnProperty(property))
|
|
155090
|
-
this[property] = _data[property];
|
|
155091
|
-
}
|
|
155092
|
-
if (Array.isArray(_data["result"])) {
|
|
155093
|
-
this.result = [] as any;
|
|
155094
|
-
for (let item of _data["result"])
|
|
155095
|
-
this.result!.push(OnPageResourcesResultInfo.fromJS(item));
|
|
155096
|
-
}
|
|
155097
|
-
}
|
|
155098
|
-
}
|
|
155099
|
-
|
|
155100
|
-
static fromJS(data: any): OnPageResourcesTaskInfo {
|
|
155101
|
-
data = typeof data === 'object' ? data : {};
|
|
155102
|
-
let result = new OnPageResourcesTaskInfo();
|
|
155103
|
-
result.init(data);
|
|
155104
|
-
return result;
|
|
155105
|
-
}
|
|
155106
|
-
|
|
155107
|
-
toJSON(data?: any) {
|
|
155108
|
-
data = typeof data === 'object' ? data : {};
|
|
155109
|
-
for (var property in this) {
|
|
155110
|
-
if (this.hasOwnProperty(property))
|
|
155111
|
-
data[property] = this[property];
|
|
155112
|
-
}
|
|
155113
|
-
if (Array.isArray(this.result)) {
|
|
155114
|
-
data["result"] = [];
|
|
155115
|
-
for (let item of this.result)
|
|
155116
|
-
data["result"].push(item.toJSON());
|
|
155117
|
-
}
|
|
155118
|
-
super.toJSON(data);
|
|
155119
|
-
return data;
|
|
155120
|
-
}
|
|
155121
|
-
}
|
|
155122
|
-
|
|
155123
|
-
export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
155124
|
-
/** array of results */
|
|
155125
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
155126
155312
|
|
|
155127
155313
|
[key: string]: any;
|
|
155128
155314
|
}
|
|
155129
155315
|
|
|
155130
|
-
export class
|
|
155316
|
+
export class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
|
|
155131
155317
|
/** resource properties
|
|
155132
155318
|
the value depends on the resource_type
|
|
155133
155319
|
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;
|
|
@@ -155161,6 +155347,8 @@ example:
|
|
|
155161
155347
|
/** resource check-ups
|
|
155162
155348
|
contents of the array depend on the resource_type */
|
|
155163
155349
|
checks?: { [key: string]: boolean; } | undefined;
|
|
155350
|
+
/** resource errors and warnings */
|
|
155351
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
155164
155352
|
/** type of encoding */
|
|
155165
155353
|
content_encoding?: string | undefined;
|
|
155166
155354
|
/** types of media used to display a resource */
|
|
@@ -155175,14 +155363,24 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
155175
155363
|
/** contains data on changes related to the resource
|
|
155176
155364
|
if there is no data, the value will be null */
|
|
155177
155365
|
last_modified?: LastModified | undefined;
|
|
155178
|
-
/** resource
|
|
155179
|
-
|
|
155366
|
+
/** resource initiator */
|
|
155367
|
+
initiator?: string | undefined;
|
|
155368
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
155369
|
+
duration_time?: number | undefined;
|
|
155370
|
+
/** time to start downloading the resource
|
|
155371
|
+
the amount of time the browser needs to start downloading a resource */
|
|
155372
|
+
fetch_start?: number | undefined;
|
|
155373
|
+
/** time to complete downloading the resource
|
|
155374
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
155375
|
+
fetch_end?: number | undefined;
|
|
155376
|
+
/** indicates whether the resource blocks rendering */
|
|
155377
|
+
is_render_blocking?: boolean | undefined;
|
|
155180
155378
|
|
|
155181
155379
|
[key: string]: any;
|
|
155182
155380
|
|
|
155183
|
-
constructor(data?:
|
|
155381
|
+
constructor(data?: IStylesheetResourceElementItem) {
|
|
155184
155382
|
super(data);
|
|
155185
|
-
this._discriminator = "
|
|
155383
|
+
this._discriminator = "stylesheet";
|
|
155186
155384
|
}
|
|
155187
155385
|
|
|
155188
155386
|
init(_data?: any) {
|
|
@@ -155209,18 +155407,23 @@ if there is no data, the value will be null */
|
|
|
155209
155407
|
(<any>this.checks)![key] = _data["checks"][key];
|
|
155210
155408
|
}
|
|
155211
155409
|
}
|
|
155410
|
+
this.resource_errors = _data["resource_errors"] ? OnPageResourceIssueInfo.fromJS(_data["resource_errors"]) : <any>undefined;
|
|
155212
155411
|
this.content_encoding = _data["content_encoding"];
|
|
155213
155412
|
this.media_type = _data["media_type"];
|
|
155214
155413
|
this.accept_type = _data["accept_type"];
|
|
155215
155414
|
this.server = _data["server"];
|
|
155216
155415
|
this.last_modified = _data["last_modified"] ? LastModified.fromJS(_data["last_modified"]) : <any>undefined;
|
|
155217
|
-
this.
|
|
155416
|
+
this.initiator = _data["initiator"];
|
|
155417
|
+
this.duration_time = _data["duration_time"];
|
|
155418
|
+
this.fetch_start = _data["fetch_start"];
|
|
155419
|
+
this.fetch_end = _data["fetch_end"];
|
|
155420
|
+
this.is_render_blocking = _data["is_render_blocking"];
|
|
155218
155421
|
}
|
|
155219
155422
|
}
|
|
155220
155423
|
|
|
155221
|
-
static fromJS(data: any):
|
|
155424
|
+
static fromJS(data: any): StylesheetResourceElementItem {
|
|
155222
155425
|
data = typeof data === 'object' ? data : {};
|
|
155223
|
-
let result = new
|
|
155426
|
+
let result = new StylesheetResourceElementItem();
|
|
155224
155427
|
result.init(data);
|
|
155225
155428
|
return result;
|
|
155226
155429
|
}
|
|
@@ -155248,18 +155451,23 @@ if there is no data, the value will be null */
|
|
|
155248
155451
|
(<any>data["checks"])[key] = (<any>this.checks)[key];
|
|
155249
155452
|
}
|
|
155250
155453
|
}
|
|
155454
|
+
data["resource_errors"] = this.resource_errors ? this.resource_errors.toJSON() : <any>undefined;
|
|
155251
155455
|
data["content_encoding"] = this.content_encoding;
|
|
155252
155456
|
data["media_type"] = this.media_type;
|
|
155253
155457
|
data["accept_type"] = this.accept_type;
|
|
155254
155458
|
data["server"] = this.server;
|
|
155255
155459
|
data["last_modified"] = this.last_modified ? this.last_modified.toJSON() : <any>undefined;
|
|
155256
|
-
data["
|
|
155460
|
+
data["initiator"] = this.initiator;
|
|
155461
|
+
data["duration_time"] = this.duration_time;
|
|
155462
|
+
data["fetch_start"] = this.fetch_start;
|
|
155463
|
+
data["fetch_end"] = this.fetch_end;
|
|
155464
|
+
data["is_render_blocking"] = this.is_render_blocking;
|
|
155257
155465
|
super.toJSON(data);
|
|
155258
155466
|
return data;
|
|
155259
155467
|
}
|
|
155260
155468
|
}
|
|
155261
155469
|
|
|
155262
|
-
export interface
|
|
155470
|
+
export interface IStylesheetResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
155263
155471
|
/** resource properties
|
|
155264
155472
|
the value depends on the resource_type
|
|
155265
155473
|
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;
|
|
@@ -155293,6 +155501,8 @@ example:
|
|
|
155293
155501
|
/** resource check-ups
|
|
155294
155502
|
contents of the array depend on the resource_type */
|
|
155295
155503
|
checks?: { [key: string]: boolean; } | undefined;
|
|
155504
|
+
/** resource errors and warnings */
|
|
155505
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
155296
155506
|
/** type of encoding */
|
|
155297
155507
|
content_encoding?: string | undefined;
|
|
155298
155508
|
/** types of media used to display a resource */
|
|
@@ -155307,8 +155517,157 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
155307
155517
|
/** contains data on changes related to the resource
|
|
155308
155518
|
if there is no data, the value will be null */
|
|
155309
155519
|
last_modified?: LastModified | undefined;
|
|
155310
|
-
/** resource
|
|
155311
|
-
|
|
155520
|
+
/** resource initiator */
|
|
155521
|
+
initiator?: string | undefined;
|
|
155522
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
155523
|
+
duration_time?: number | undefined;
|
|
155524
|
+
/** time to start downloading the resource
|
|
155525
|
+
the amount of time the browser needs to start downloading a resource */
|
|
155526
|
+
fetch_start?: number | undefined;
|
|
155527
|
+
/** time to complete downloading the resource
|
|
155528
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
155529
|
+
fetch_end?: number | undefined;
|
|
155530
|
+
/** indicates whether the resource blocks rendering */
|
|
155531
|
+
is_render_blocking?: boolean | undefined;
|
|
155532
|
+
|
|
155533
|
+
[key: string]: any;
|
|
155534
|
+
}
|
|
155535
|
+
|
|
155536
|
+
export class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
155537
|
+
/** status of the crawling session
|
|
155538
|
+
possible values: in_progress, finished */
|
|
155539
|
+
crawl_progress?: string | undefined;
|
|
155540
|
+
/** details of the crawling session */
|
|
155541
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
155542
|
+
/** total number of relevant items crawled */
|
|
155543
|
+
total_items_count?: number | undefined;
|
|
155544
|
+
/** number of items in the results array */
|
|
155545
|
+
items_count?: number | undefined;
|
|
155546
|
+
/** items array */
|
|
155547
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
155548
|
+
|
|
155549
|
+
[key: string]: any;
|
|
155550
|
+
|
|
155551
|
+
constructor(data?: IOnPageResourcesResultInfo) {
|
|
155552
|
+
if (data) {
|
|
155553
|
+
for (var property in data) {
|
|
155554
|
+
if (data.hasOwnProperty(property))
|
|
155555
|
+
(<any>this)[property] = (<any>data)[property];
|
|
155556
|
+
}
|
|
155557
|
+
}
|
|
155558
|
+
}
|
|
155559
|
+
|
|
155560
|
+
init(_data?: any) {
|
|
155561
|
+
if (_data) {
|
|
155562
|
+
for (var property in _data) {
|
|
155563
|
+
if (_data.hasOwnProperty(property))
|
|
155564
|
+
this[property] = _data[property];
|
|
155565
|
+
}
|
|
155566
|
+
this.crawl_progress = _data["crawl_progress"];
|
|
155567
|
+
this.crawl_status = _data["crawl_status"] ? CrawlStatusInfo.fromJS(_data["crawl_status"]) : <any>undefined;
|
|
155568
|
+
this.total_items_count = _data["total_items_count"];
|
|
155569
|
+
this.items_count = _data["items_count"];
|
|
155570
|
+
if (Array.isArray(_data["items"])) {
|
|
155571
|
+
this.items = [] as any;
|
|
155572
|
+
for (let item of _data["items"])
|
|
155573
|
+
this.items!.push(BaseOnPageResourceItemInfo.fromJS(item));
|
|
155574
|
+
}
|
|
155575
|
+
}
|
|
155576
|
+
}
|
|
155577
|
+
|
|
155578
|
+
static fromJS(data: any): OnPageResourcesResultInfo {
|
|
155579
|
+
data = typeof data === 'object' ? data : {};
|
|
155580
|
+
let result = new OnPageResourcesResultInfo();
|
|
155581
|
+
result.init(data);
|
|
155582
|
+
return result;
|
|
155583
|
+
}
|
|
155584
|
+
|
|
155585
|
+
toJSON(data?: any) {
|
|
155586
|
+
data = typeof data === 'object' ? data : {};
|
|
155587
|
+
for (var property in this) {
|
|
155588
|
+
if (this.hasOwnProperty(property))
|
|
155589
|
+
data[property] = this[property];
|
|
155590
|
+
}
|
|
155591
|
+
data["crawl_progress"] = this.crawl_progress;
|
|
155592
|
+
data["crawl_status"] = this.crawl_status ? this.crawl_status.toJSON() : <any>undefined;
|
|
155593
|
+
data["total_items_count"] = this.total_items_count;
|
|
155594
|
+
data["items_count"] = this.items_count;
|
|
155595
|
+
if (Array.isArray(this.items)) {
|
|
155596
|
+
data["items"] = [];
|
|
155597
|
+
for (let item of this.items)
|
|
155598
|
+
data["items"].push(item.toJSON());
|
|
155599
|
+
}
|
|
155600
|
+
return data;
|
|
155601
|
+
}
|
|
155602
|
+
}
|
|
155603
|
+
|
|
155604
|
+
export interface IOnPageResourcesResultInfo {
|
|
155605
|
+
/** status of the crawling session
|
|
155606
|
+
possible values: in_progress, finished */
|
|
155607
|
+
crawl_progress?: string | undefined;
|
|
155608
|
+
/** details of the crawling session */
|
|
155609
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
155610
|
+
/** total number of relevant items crawled */
|
|
155611
|
+
total_items_count?: number | undefined;
|
|
155612
|
+
/** number of items in the results array */
|
|
155613
|
+
items_count?: number | undefined;
|
|
155614
|
+
/** items array */
|
|
155615
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
155616
|
+
|
|
155617
|
+
[key: string]: any;
|
|
155618
|
+
}
|
|
155619
|
+
|
|
155620
|
+
export class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
155621
|
+
/** array of results */
|
|
155622
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
155623
|
+
|
|
155624
|
+
[key: string]: any;
|
|
155625
|
+
|
|
155626
|
+
constructor(data?: IOnPageResourcesTaskInfo) {
|
|
155627
|
+
super(data);
|
|
155628
|
+
}
|
|
155629
|
+
|
|
155630
|
+
init(_data?: any) {
|
|
155631
|
+
super.init(_data);
|
|
155632
|
+
if (_data) {
|
|
155633
|
+
for (var property in _data) {
|
|
155634
|
+
if (_data.hasOwnProperty(property))
|
|
155635
|
+
this[property] = _data[property];
|
|
155636
|
+
}
|
|
155637
|
+
if (Array.isArray(_data["result"])) {
|
|
155638
|
+
this.result = [] as any;
|
|
155639
|
+
for (let item of _data["result"])
|
|
155640
|
+
this.result!.push(OnPageResourcesResultInfo.fromJS(item));
|
|
155641
|
+
}
|
|
155642
|
+
}
|
|
155643
|
+
}
|
|
155644
|
+
|
|
155645
|
+
static fromJS(data: any): OnPageResourcesTaskInfo {
|
|
155646
|
+
data = typeof data === 'object' ? data : {};
|
|
155647
|
+
let result = new OnPageResourcesTaskInfo();
|
|
155648
|
+
result.init(data);
|
|
155649
|
+
return result;
|
|
155650
|
+
}
|
|
155651
|
+
|
|
155652
|
+
toJSON(data?: any) {
|
|
155653
|
+
data = typeof data === 'object' ? data : {};
|
|
155654
|
+
for (var property in this) {
|
|
155655
|
+
if (this.hasOwnProperty(property))
|
|
155656
|
+
data[property] = this[property];
|
|
155657
|
+
}
|
|
155658
|
+
if (Array.isArray(this.result)) {
|
|
155659
|
+
data["result"] = [];
|
|
155660
|
+
for (let item of this.result)
|
|
155661
|
+
data["result"].push(item.toJSON());
|
|
155662
|
+
}
|
|
155663
|
+
super.toJSON(data);
|
|
155664
|
+
return data;
|
|
155665
|
+
}
|
|
155666
|
+
}
|
|
155667
|
+
|
|
155668
|
+
export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
155669
|
+
/** array of results */
|
|
155670
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
155312
155671
|
|
|
155313
155672
|
[key: string]: any;
|
|
155314
155673
|
}
|
|
@@ -161008,7 +161367,7 @@ export interface ITableContent {
|
|
|
161008
161367
|
[key: string]: any;
|
|
161009
161368
|
}
|
|
161010
161369
|
|
|
161011
|
-
export class
|
|
161370
|
+
export class TopicInfo implements ITopicInfo {
|
|
161012
161371
|
/** meta title */
|
|
161013
161372
|
h_title?: string | undefined;
|
|
161014
161373
|
/** main title of the block */
|
|
@@ -161030,7 +161389,7 @@ you can find more information about content priority calculation in this help ce
|
|
|
161030
161389
|
|
|
161031
161390
|
[key: string]: any;
|
|
161032
161391
|
|
|
161033
|
-
constructor(data?:
|
|
161392
|
+
constructor(data?: ITopicInfo) {
|
|
161034
161393
|
if (data) {
|
|
161035
161394
|
for (var property in data) {
|
|
161036
161395
|
if (data.hasOwnProperty(property))
|
|
@@ -161068,9 +161427,9 @@ you can find more information about content priority calculation in this help ce
|
|
|
161068
161427
|
}
|
|
161069
161428
|
}
|
|
161070
161429
|
|
|
161071
|
-
static fromJS(data: any):
|
|
161430
|
+
static fromJS(data: any): TopicInfo {
|
|
161072
161431
|
data = typeof data === 'object' ? data : {};
|
|
161073
|
-
let result = new
|
|
161432
|
+
let result = new TopicInfo();
|
|
161074
161433
|
result.init(data);
|
|
161075
161434
|
return result;
|
|
161076
161435
|
}
|
|
@@ -161105,7 +161464,7 @@ you can find more information about content priority calculation in this help ce
|
|
|
161105
161464
|
}
|
|
161106
161465
|
}
|
|
161107
161466
|
|
|
161108
|
-
export interface
|
|
161467
|
+
export interface ITopicInfo {
|
|
161109
161468
|
/** meta title */
|
|
161110
161469
|
h_title?: string | undefined;
|
|
161111
161470
|
/** main title of the block */
|
|
@@ -161128,118 +161487,6 @@ you can find more information about content priority calculation in this help ce
|
|
|
161128
161487
|
[key: string]: any;
|
|
161129
161488
|
}
|
|
161130
161489
|
|
|
161131
|
-
export class SecondaryTopic implements ISecondaryTopic {
|
|
161132
|
-
/** meta title */
|
|
161133
|
-
h_title?: string | undefined;
|
|
161134
|
-
/** main title of the block */
|
|
161135
|
-
main_title?: string | undefined;
|
|
161136
|
-
/** content author name */
|
|
161137
|
-
author?: string | undefined;
|
|
161138
|
-
/** content language */
|
|
161139
|
-
language?: string | undefined;
|
|
161140
|
-
/** HTML level */
|
|
161141
|
-
level?: number | undefined;
|
|
161142
|
-
/** primary content on the page
|
|
161143
|
-
you can find more information about content priority calculation in this help center article */
|
|
161144
|
-
primary_content?: string | undefined;
|
|
161145
|
-
/** secondary content on the page
|
|
161146
|
-
you can find more information about content priority calculation in this help center article */
|
|
161147
|
-
secondary_content?: (ContentItemInfo | undefined)[] | undefined;
|
|
161148
|
-
/** content of the table on the page */
|
|
161149
|
-
table_content?: (TableContent | undefined)[] | undefined;
|
|
161150
|
-
|
|
161151
|
-
[key: string]: any;
|
|
161152
|
-
|
|
161153
|
-
constructor(data?: ISecondaryTopic) {
|
|
161154
|
-
if (data) {
|
|
161155
|
-
for (var property in data) {
|
|
161156
|
-
if (data.hasOwnProperty(property))
|
|
161157
|
-
(<any>this)[property] = (<any>data)[property];
|
|
161158
|
-
}
|
|
161159
|
-
}
|
|
161160
|
-
}
|
|
161161
|
-
|
|
161162
|
-
init(_data?: any) {
|
|
161163
|
-
if (_data) {
|
|
161164
|
-
for (var property in _data) {
|
|
161165
|
-
if (_data.hasOwnProperty(property))
|
|
161166
|
-
this[property] = _data[property];
|
|
161167
|
-
}
|
|
161168
|
-
this.h_title = _data["h_title"];
|
|
161169
|
-
this.main_title = _data["main_title"];
|
|
161170
|
-
this.author = _data["author"];
|
|
161171
|
-
this.language = _data["language"];
|
|
161172
|
-
this.level = _data["level"];
|
|
161173
|
-
this.primary_content = _data["primary_content"];
|
|
161174
|
-
if (Array.isArray(_data["secondary_content"])) {
|
|
161175
|
-
this.secondary_content = [] as any;
|
|
161176
|
-
for (let item of _data["secondary_content"])
|
|
161177
|
-
this.secondary_content!.push(ContentItemInfo.fromJS(item));
|
|
161178
|
-
}
|
|
161179
|
-
if (Array.isArray(_data["table_content"])) {
|
|
161180
|
-
this.table_content = [] as any;
|
|
161181
|
-
for (let item of _data["table_content"])
|
|
161182
|
-
this.table_content!.push(TableContent.fromJS(item));
|
|
161183
|
-
}
|
|
161184
|
-
}
|
|
161185
|
-
}
|
|
161186
|
-
|
|
161187
|
-
static fromJS(data: any): SecondaryTopic {
|
|
161188
|
-
data = typeof data === 'object' ? data : {};
|
|
161189
|
-
let result = new SecondaryTopic();
|
|
161190
|
-
result.init(data);
|
|
161191
|
-
return result;
|
|
161192
|
-
}
|
|
161193
|
-
|
|
161194
|
-
toJSON(data?: any) {
|
|
161195
|
-
data = typeof data === 'object' ? data : {};
|
|
161196
|
-
for (var property in this) {
|
|
161197
|
-
if (this.hasOwnProperty(property))
|
|
161198
|
-
data[property] = this[property];
|
|
161199
|
-
}
|
|
161200
|
-
data["h_title"] = this.h_title;
|
|
161201
|
-
data["main_title"] = this.main_title;
|
|
161202
|
-
data["author"] = this.author;
|
|
161203
|
-
data["language"] = this.language;
|
|
161204
|
-
data["level"] = this.level;
|
|
161205
|
-
data["primary_content"] = this.primary_content;
|
|
161206
|
-
if (Array.isArray(this.secondary_content)) {
|
|
161207
|
-
data["secondary_content"] = [];
|
|
161208
|
-
for (let item of this.secondary_content)
|
|
161209
|
-
data["secondary_content"].push(item.toJSON());
|
|
161210
|
-
}
|
|
161211
|
-
if (Array.isArray(this.table_content)) {
|
|
161212
|
-
data["table_content"] = [];
|
|
161213
|
-
for (let item of this.table_content)
|
|
161214
|
-
data["table_content"].push(item.toJSON());
|
|
161215
|
-
}
|
|
161216
|
-
return data;
|
|
161217
|
-
}
|
|
161218
|
-
}
|
|
161219
|
-
|
|
161220
|
-
export interface ISecondaryTopic {
|
|
161221
|
-
/** meta title */
|
|
161222
|
-
h_title?: string | undefined;
|
|
161223
|
-
/** main title of the block */
|
|
161224
|
-
main_title?: string | undefined;
|
|
161225
|
-
/** content author name */
|
|
161226
|
-
author?: string | undefined;
|
|
161227
|
-
/** content language */
|
|
161228
|
-
language?: string | undefined;
|
|
161229
|
-
/** HTML level */
|
|
161230
|
-
level?: number | undefined;
|
|
161231
|
-
/** primary content on the page
|
|
161232
|
-
you can find more information about content priority calculation in this help center article */
|
|
161233
|
-
primary_content?: string | undefined;
|
|
161234
|
-
/** secondary content on the page
|
|
161235
|
-
you can find more information about content priority calculation in this help center article */
|
|
161236
|
-
secondary_content?: (ContentItemInfo | undefined)[] | undefined;
|
|
161237
|
-
/** content of the table on the page */
|
|
161238
|
-
table_content?: (TableContent | undefined)[] | undefined;
|
|
161239
|
-
|
|
161240
|
-
[key: string]: any;
|
|
161241
|
-
}
|
|
161242
|
-
|
|
161243
161490
|
export class PageContentInfo implements IPageContentInfo {
|
|
161244
161491
|
/** content of the header of the table */
|
|
161245
161492
|
header?: PageSectionContentInfo | undefined;
|
|
@@ -161247,10 +161494,10 @@ export class PageContentInfo implements IPageContentInfo {
|
|
|
161247
161494
|
footer?: PageSectionContentInfo | undefined;
|
|
161248
161495
|
/** main topic on the page
|
|
161249
161496
|
you can find more information about topic priority calculation in this help center article */
|
|
161250
|
-
main_topic?: (
|
|
161497
|
+
main_topic?: (TopicInfo | undefined)[] | undefined;
|
|
161251
161498
|
/** secondary topic on the page
|
|
161252
161499
|
you can find more information about topic priority calculation in this help center article */
|
|
161253
|
-
secondary_topic?: (
|
|
161500
|
+
secondary_topic?: (TopicInfo | undefined)[] | undefined;
|
|
161254
161501
|
|
|
161255
161502
|
[key: string]: any;
|
|
161256
161503
|
|
|
@@ -161274,12 +161521,12 @@ you can find more information about topic priority calculation in this help cent
|
|
|
161274
161521
|
if (Array.isArray(_data["main_topic"])) {
|
|
161275
161522
|
this.main_topic = [] as any;
|
|
161276
161523
|
for (let item of _data["main_topic"])
|
|
161277
|
-
this.main_topic!.push(
|
|
161524
|
+
this.main_topic!.push(TopicInfo.fromJS(item));
|
|
161278
161525
|
}
|
|
161279
161526
|
if (Array.isArray(_data["secondary_topic"])) {
|
|
161280
161527
|
this.secondary_topic = [] as any;
|
|
161281
161528
|
for (let item of _data["secondary_topic"])
|
|
161282
|
-
this.secondary_topic!.push(
|
|
161529
|
+
this.secondary_topic!.push(TopicInfo.fromJS(item));
|
|
161283
161530
|
}
|
|
161284
161531
|
}
|
|
161285
161532
|
}
|
|
@@ -161320,10 +161567,10 @@ export interface IPageContentInfo {
|
|
|
161320
161567
|
footer?: PageSectionContentInfo | undefined;
|
|
161321
161568
|
/** main topic on the page
|
|
161322
161569
|
you can find more information about topic priority calculation in this help center article */
|
|
161323
|
-
main_topic?: (
|
|
161570
|
+
main_topic?: (TopicInfo | undefined)[] | undefined;
|
|
161324
161571
|
/** secondary topic on the page
|
|
161325
161572
|
you can find more information about topic priority calculation in this help center article */
|
|
161326
|
-
secondary_topic?: (
|
|
161573
|
+
secondary_topic?: (TopicInfo | undefined)[] | undefined;
|
|
161327
161574
|
|
|
161328
161575
|
[key: string]: any;
|
|
161329
161576
|
}
|
|
@@ -161896,68 +162143,6 @@ possible values: us, de */
|
|
|
161896
162143
|
[key: string]: any;
|
|
161897
162144
|
}
|
|
161898
162145
|
|
|
161899
|
-
export class RowCells implements IRowCells {
|
|
161900
|
-
/** content text */
|
|
161901
|
-
text?: string | undefined;
|
|
161902
|
-
/** contains other URLs and anchors found in the content element */
|
|
161903
|
-
urls?: any | undefined;
|
|
161904
|
-
/** indicates if the text belongs to the header */
|
|
161905
|
-
is_header?: boolean | undefined;
|
|
161906
|
-
|
|
161907
|
-
[key: string]: any;
|
|
161908
|
-
|
|
161909
|
-
constructor(data?: IRowCells) {
|
|
161910
|
-
if (data) {
|
|
161911
|
-
for (var property in data) {
|
|
161912
|
-
if (data.hasOwnProperty(property))
|
|
161913
|
-
(<any>this)[property] = (<any>data)[property];
|
|
161914
|
-
}
|
|
161915
|
-
}
|
|
161916
|
-
}
|
|
161917
|
-
|
|
161918
|
-
init(_data?: any) {
|
|
161919
|
-
if (_data) {
|
|
161920
|
-
for (var property in _data) {
|
|
161921
|
-
if (_data.hasOwnProperty(property))
|
|
161922
|
-
this[property] = _data[property];
|
|
161923
|
-
}
|
|
161924
|
-
this.text = _data["text"];
|
|
161925
|
-
this.urls = _data["urls"];
|
|
161926
|
-
this.is_header = _data["is_header"];
|
|
161927
|
-
}
|
|
161928
|
-
}
|
|
161929
|
-
|
|
161930
|
-
static fromJS(data: any): RowCells {
|
|
161931
|
-
data = typeof data === 'object' ? data : {};
|
|
161932
|
-
let result = new RowCells();
|
|
161933
|
-
result.init(data);
|
|
161934
|
-
return result;
|
|
161935
|
-
}
|
|
161936
|
-
|
|
161937
|
-
toJSON(data?: any) {
|
|
161938
|
-
data = typeof data === 'object' ? data : {};
|
|
161939
|
-
for (var property in this) {
|
|
161940
|
-
if (this.hasOwnProperty(property))
|
|
161941
|
-
data[property] = this[property];
|
|
161942
|
-
}
|
|
161943
|
-
data["text"] = this.text;
|
|
161944
|
-
data["urls"] = this.urls;
|
|
161945
|
-
data["is_header"] = this.is_header;
|
|
161946
|
-
return data;
|
|
161947
|
-
}
|
|
161948
|
-
}
|
|
161949
|
-
|
|
161950
|
-
export interface IRowCells {
|
|
161951
|
-
/** content text */
|
|
161952
|
-
text?: string | undefined;
|
|
161953
|
-
/** contains other URLs and anchors found in the content element */
|
|
161954
|
-
urls?: any | undefined;
|
|
161955
|
-
/** indicates if the text belongs to the header */
|
|
161956
|
-
is_header?: boolean | undefined;
|
|
161957
|
-
|
|
161958
|
-
[key: string]: any;
|
|
161959
|
-
}
|
|
161960
|
-
|
|
161961
162146
|
export class OnPageContentParsingLiveResultInfo implements IOnPageContentParsingLiveResultInfo {
|
|
161962
162147
|
/** status of the crawling session
|
|
161963
162148
|
possible values: in_progress, finished */
|
|
@@ -178331,7 +178516,7 @@ number of reviews on the product seller’s account */
|
|
|
178331
178516
|
seller_review_count?: number | undefined;
|
|
178332
178517
|
/** product price
|
|
178333
178518
|
product price details on the seller’s website */
|
|
178334
|
-
price?:
|
|
178519
|
+
price?: Price | undefined;
|
|
178335
178520
|
/** delivery information
|
|
178336
178521
|
product delivery information */
|
|
178337
178522
|
delivery_info?: DeliveryInfo | undefined;
|
|
@@ -178358,7 +178543,7 @@ product delivery information */
|
|
|
178358
178543
|
this.url = _data["url"];
|
|
178359
178544
|
this.seller_rating = _data["seller_rating"] ? RatingElement.fromJS(_data["seller_rating"]) : <any>undefined;
|
|
178360
178545
|
this.seller_review_count = _data["seller_review_count"];
|
|
178361
|
-
this.price = _data["price"] ?
|
|
178546
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
178362
178547
|
this.delivery_info = _data["delivery_info"] ? DeliveryInfo.fromJS(_data["delivery_info"]) : <any>undefined;
|
|
178363
178548
|
}
|
|
178364
178549
|
}
|
|
@@ -178402,7 +178587,7 @@ number of reviews on the product seller’s account */
|
|
|
178402
178587
|
seller_review_count?: number | undefined;
|
|
178403
178588
|
/** product price
|
|
178404
178589
|
product price details on the seller’s website */
|
|
178405
|
-
price?:
|
|
178590
|
+
price?: Price | undefined;
|
|
178406
178591
|
/** delivery information
|
|
178407
178592
|
product delivery information */
|
|
178408
178593
|
delivery_info?: DeliveryInfo | undefined;
|
|
@@ -183470,7 +183655,7 @@ left, right */
|
|
|
183470
183655
|
ships_from?: string | undefined;
|
|
183471
183656
|
/** product pricing details
|
|
183472
183657
|
if there are no details, the value will be null */
|
|
183473
|
-
price?:
|
|
183658
|
+
price?: Price | undefined;
|
|
183474
183659
|
/** seller rating details
|
|
183475
183660
|
seller popularity rate based on customer reviews */
|
|
183476
183661
|
rating?: RatingElement | undefined;
|
|
@@ -183505,7 +183690,7 @@ delivery information including free and fast delivery date ranges */
|
|
|
183505
183690
|
this.seller_name = _data["seller_name"];
|
|
183506
183691
|
this.seller_url = _data["seller_url"];
|
|
183507
183692
|
this.ships_from = _data["ships_from"];
|
|
183508
|
-
this.price = _data["price"] ?
|
|
183693
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
183509
183694
|
this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
|
|
183510
183695
|
this.condition = _data["condition"];
|
|
183511
183696
|
this.condition_description = _data["condition_description"];
|
|
@@ -183564,7 +183749,7 @@ left, right */
|
|
|
183564
183749
|
ships_from?: string | undefined;
|
|
183565
183750
|
/** product pricing details
|
|
183566
183751
|
if there are no details, the value will be null */
|
|
183567
|
-
price?:
|
|
183752
|
+
price?: Price | undefined;
|
|
183568
183753
|
/** seller rating details
|
|
183569
183754
|
seller popularity rate based on customer reviews */
|
|
183570
183755
|
rating?: RatingElement | undefined;
|
|
@@ -183602,7 +183787,7 @@ left, right */
|
|
|
183602
183787
|
ships_from?: string | undefined;
|
|
183603
183788
|
/** product pricing details
|
|
183604
183789
|
if there are no details, the value will be null */
|
|
183605
|
-
price?:
|
|
183790
|
+
price?: Price | undefined;
|
|
183606
183791
|
/** seller rating details
|
|
183607
183792
|
seller popularity rate based on customer reviews */
|
|
183608
183793
|
rating?: RatingElement | undefined;
|
|
@@ -183637,7 +183822,7 @@ delivery information including free and fast delivery date ranges */
|
|
|
183637
183822
|
this.seller_name = _data["seller_name"];
|
|
183638
183823
|
this.seller_url = _data["seller_url"];
|
|
183639
183824
|
this.ships_from = _data["ships_from"];
|
|
183640
|
-
this.price = _data["price"] ?
|
|
183825
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
183641
183826
|
this.rating = _data["rating"] ? RatingElement.fromJS(_data["rating"]) : <any>undefined;
|
|
183642
183827
|
this.condition = _data["condition"];
|
|
183643
183828
|
this.condition_description = _data["condition_description"];
|
|
@@ -183696,7 +183881,7 @@ left, right */
|
|
|
183696
183881
|
ships_from?: string | undefined;
|
|
183697
183882
|
/** product pricing details
|
|
183698
183883
|
if there are no details, the value will be null */
|
|
183699
|
-
price?:
|
|
183884
|
+
price?: Price | undefined;
|
|
183700
183885
|
/** seller rating details
|
|
183701
183886
|
seller popularity rate based on customer reviews */
|
|
183702
183887
|
rating?: RatingElement | undefined;
|
|
@@ -189594,7 +189779,7 @@ can take the following values: left */
|
|
|
189594
189779
|
/** average rating of the app */
|
|
189595
189780
|
rating?: RatingInfo | undefined;
|
|
189596
189781
|
/** price of the app */
|
|
189597
|
-
price?:
|
|
189782
|
+
price?: Price | undefined;
|
|
189598
189783
|
/** indicates whether the app is free */
|
|
189599
189784
|
is_free?: boolean | undefined;
|
|
189600
189785
|
/** main category of the app */
|
|
@@ -189679,7 +189864,7 @@ contains relevant app tags */
|
|
|
189679
189864
|
this.description = _data["description"];
|
|
189680
189865
|
this.reviews_count = _data["reviews_count"];
|
|
189681
189866
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
189682
|
-
this.price = _data["price"] ?
|
|
189867
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
189683
189868
|
this.is_free = _data["is_free"];
|
|
189684
189869
|
this.main_category = _data["main_category"];
|
|
189685
189870
|
this.installs = _data["installs"];
|
|
@@ -189829,7 +190014,7 @@ can take the following values: left */
|
|
|
189829
190014
|
/** average rating of the app */
|
|
189830
190015
|
rating?: RatingInfo | undefined;
|
|
189831
190016
|
/** price of the app */
|
|
189832
|
-
price?:
|
|
190017
|
+
price?: Price | undefined;
|
|
189833
190018
|
/** indicates whether the app is free */
|
|
189834
190019
|
is_free?: boolean | undefined;
|
|
189835
190020
|
/** main category of the app */
|
|
@@ -194162,7 +194347,7 @@ can take the following values: left */
|
|
|
194162
194347
|
/** average rating of the app */
|
|
194163
194348
|
rating?: RatingInfo | undefined;
|
|
194164
194349
|
/** price of the app */
|
|
194165
|
-
price?:
|
|
194350
|
+
price?: Price | undefined;
|
|
194166
194351
|
/** indicates whether the app is free */
|
|
194167
194352
|
is_free?: boolean | undefined;
|
|
194168
194353
|
/** main category/genre of the app */
|
|
@@ -194232,7 +194417,7 @@ information about apps built by the same developer */
|
|
|
194232
194417
|
this.description = _data["description"];
|
|
194233
194418
|
this.reviews_count = _data["reviews_count"];
|
|
194234
194419
|
this.rating = _data["rating"] ? RatingInfo.fromJS(_data["rating"]) : <any>undefined;
|
|
194235
|
-
this.price = _data["price"] ?
|
|
194420
|
+
this.price = _data["price"] ? Price.fromJS(_data["price"]) : <any>undefined;
|
|
194236
194421
|
this.is_free = _data["is_free"];
|
|
194237
194422
|
this.main_category = _data["main_category"];
|
|
194238
194423
|
if (Array.isArray(_data["categories"])) {
|
|
@@ -194372,7 +194557,7 @@ can take the following values: left */
|
|
|
194372
194557
|
/** average rating of the app */
|
|
194373
194558
|
rating?: RatingInfo | undefined;
|
|
194374
194559
|
/** price of the app */
|
|
194375
|
-
price?:
|
|
194560
|
+
price?: Price | undefined;
|
|
194376
194561
|
/** indicates whether the app is free */
|
|
194377
194562
|
is_free?: boolean | undefined;
|
|
194378
194563
|
/** main category/genre of the app */
|
|
@@ -202105,6 +202290,258 @@ export interface IBusinessDataGoogleMyBusinessInfoTaskGetResponseInfo extends IB
|
|
|
202105
202290
|
[key: string]: any;
|
|
202106
202291
|
}
|
|
202107
202292
|
|
|
202293
|
+
export class BusinessDataGoogleMyBusinessInfoLiveResultInfo implements IBusinessDataGoogleMyBusinessInfoLiveResultInfo {
|
|
202294
|
+
/** keyword received in a POST array
|
|
202295
|
+
keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
|
|
202296
|
+
this field will contain the cid parameter if you specified it in the keyword field when setting a task;
|
|
202297
|
+
example:
|
|
202298
|
+
cid:2946633002421908862
|
|
202299
|
+
learn more about the parameter in this help center article */
|
|
202300
|
+
keyword?: string | undefined;
|
|
202301
|
+
/** search engine domain as specified in a POST array */
|
|
202302
|
+
se_domain?: string | undefined;
|
|
202303
|
+
/** location code in a POST array */
|
|
202304
|
+
location_code?: number | undefined;
|
|
202305
|
+
/** language code in a POST array */
|
|
202306
|
+
language_code?: string | undefined;
|
|
202307
|
+
/** direct URL to search engine results
|
|
202308
|
+
you can use it to make sure that we provided accurate results */
|
|
202309
|
+
check_url?: string | undefined;
|
|
202310
|
+
/** date and time when the result was received
|
|
202311
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
202312
|
+
example:
|
|
202313
|
+
2019-11-15 12:57:46 +00:00 */
|
|
202314
|
+
datetime?: string | undefined;
|
|
202315
|
+
/** item types
|
|
202316
|
+
types of search engine results encountered in the items array;
|
|
202317
|
+
possible item types: google_business_info */
|
|
202318
|
+
item_types?: (string | undefined)[] | undefined;
|
|
202319
|
+
/** item types
|
|
202320
|
+
the number of items in the items array */
|
|
202321
|
+
items_count?: number | undefined;
|
|
202322
|
+
/** encountered item types
|
|
202323
|
+
types of search engine results encountered in the items array;
|
|
202324
|
+
possible item types: google_business_info */
|
|
202325
|
+
items?: (BaseBusinessDataSerpElementItem | undefined)[] | undefined;
|
|
202326
|
+
|
|
202327
|
+
[key: string]: any;
|
|
202328
|
+
|
|
202329
|
+
constructor(data?: IBusinessDataGoogleMyBusinessInfoLiveResultInfo) {
|
|
202330
|
+
if (data) {
|
|
202331
|
+
for (var property in data) {
|
|
202332
|
+
if (data.hasOwnProperty(property))
|
|
202333
|
+
(<any>this)[property] = (<any>data)[property];
|
|
202334
|
+
}
|
|
202335
|
+
}
|
|
202336
|
+
}
|
|
202337
|
+
|
|
202338
|
+
init(_data?: any) {
|
|
202339
|
+
if (_data) {
|
|
202340
|
+
for (var property in _data) {
|
|
202341
|
+
if (_data.hasOwnProperty(property))
|
|
202342
|
+
this[property] = _data[property];
|
|
202343
|
+
}
|
|
202344
|
+
this.keyword = _data["keyword"];
|
|
202345
|
+
this.se_domain = _data["se_domain"];
|
|
202346
|
+
this.location_code = _data["location_code"];
|
|
202347
|
+
this.language_code = _data["language_code"];
|
|
202348
|
+
this.check_url = _data["check_url"];
|
|
202349
|
+
this.datetime = _data["datetime"];
|
|
202350
|
+
if (Array.isArray(_data["item_types"])) {
|
|
202351
|
+
this.item_types = [] as any;
|
|
202352
|
+
for (let item of _data["item_types"])
|
|
202353
|
+
this.item_types!.push(item);
|
|
202354
|
+
}
|
|
202355
|
+
this.items_count = _data["items_count"];
|
|
202356
|
+
if (Array.isArray(_data["items"])) {
|
|
202357
|
+
this.items = [] as any;
|
|
202358
|
+
for (let item of _data["items"])
|
|
202359
|
+
this.items!.push(BaseBusinessDataSerpElementItem.fromJS(item));
|
|
202360
|
+
}
|
|
202361
|
+
}
|
|
202362
|
+
}
|
|
202363
|
+
|
|
202364
|
+
static fromJS(data: any): BusinessDataGoogleMyBusinessInfoLiveResultInfo {
|
|
202365
|
+
data = typeof data === 'object' ? data : {};
|
|
202366
|
+
let result = new BusinessDataGoogleMyBusinessInfoLiveResultInfo();
|
|
202367
|
+
result.init(data);
|
|
202368
|
+
return result;
|
|
202369
|
+
}
|
|
202370
|
+
|
|
202371
|
+
toJSON(data?: any) {
|
|
202372
|
+
data = typeof data === 'object' ? data : {};
|
|
202373
|
+
for (var property in this) {
|
|
202374
|
+
if (this.hasOwnProperty(property))
|
|
202375
|
+
data[property] = this[property];
|
|
202376
|
+
}
|
|
202377
|
+
data["keyword"] = this.keyword;
|
|
202378
|
+
data["se_domain"] = this.se_domain;
|
|
202379
|
+
data["location_code"] = this.location_code;
|
|
202380
|
+
data["language_code"] = this.language_code;
|
|
202381
|
+
data["check_url"] = this.check_url;
|
|
202382
|
+
data["datetime"] = this.datetime;
|
|
202383
|
+
if (Array.isArray(this.item_types)) {
|
|
202384
|
+
data["item_types"] = [];
|
|
202385
|
+
for (let item of this.item_types)
|
|
202386
|
+
data["item_types"].push(item);
|
|
202387
|
+
}
|
|
202388
|
+
data["items_count"] = this.items_count;
|
|
202389
|
+
if (Array.isArray(this.items)) {
|
|
202390
|
+
data["items"] = [];
|
|
202391
|
+
for (let item of this.items)
|
|
202392
|
+
data["items"].push(item.toJSON());
|
|
202393
|
+
}
|
|
202394
|
+
return data;
|
|
202395
|
+
}
|
|
202396
|
+
}
|
|
202397
|
+
|
|
202398
|
+
export interface IBusinessDataGoogleMyBusinessInfoLiveResultInfo {
|
|
202399
|
+
/** keyword received in a POST array
|
|
202400
|
+
keyword is returned with decoded %## (plus symbol ‘+’ will be decoded to a space character)
|
|
202401
|
+
this field will contain the cid parameter if you specified it in the keyword field when setting a task;
|
|
202402
|
+
example:
|
|
202403
|
+
cid:2946633002421908862
|
|
202404
|
+
learn more about the parameter in this help center article */
|
|
202405
|
+
keyword?: string | undefined;
|
|
202406
|
+
/** search engine domain as specified in a POST array */
|
|
202407
|
+
se_domain?: string | undefined;
|
|
202408
|
+
/** location code in a POST array */
|
|
202409
|
+
location_code?: number | undefined;
|
|
202410
|
+
/** language code in a POST array */
|
|
202411
|
+
language_code?: string | undefined;
|
|
202412
|
+
/** direct URL to search engine results
|
|
202413
|
+
you can use it to make sure that we provided accurate results */
|
|
202414
|
+
check_url?: string | undefined;
|
|
202415
|
+
/** date and time when the result was received
|
|
202416
|
+
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
|
|
202417
|
+
example:
|
|
202418
|
+
2019-11-15 12:57:46 +00:00 */
|
|
202419
|
+
datetime?: string | undefined;
|
|
202420
|
+
/** item types
|
|
202421
|
+
types of search engine results encountered in the items array;
|
|
202422
|
+
possible item types: google_business_info */
|
|
202423
|
+
item_types?: (string | undefined)[] | undefined;
|
|
202424
|
+
/** item types
|
|
202425
|
+
the number of items in the items array */
|
|
202426
|
+
items_count?: number | undefined;
|
|
202427
|
+
/** encountered item types
|
|
202428
|
+
types of search engine results encountered in the items array;
|
|
202429
|
+
possible item types: google_business_info */
|
|
202430
|
+
items?: (BaseBusinessDataSerpElementItem | undefined)[] | undefined;
|
|
202431
|
+
|
|
202432
|
+
[key: string]: any;
|
|
202433
|
+
}
|
|
202434
|
+
|
|
202435
|
+
export class BusinessDataGoogleMyBusinessInfoLiveTaskInfo extends BaseResponseTaskInfo implements IBusinessDataGoogleMyBusinessInfoLiveTaskInfo {
|
|
202436
|
+
/** array of results */
|
|
202437
|
+
result?: (BusinessDataGoogleMyBusinessInfoLiveResultInfo | undefined)[] | undefined;
|
|
202438
|
+
|
|
202439
|
+
[key: string]: any;
|
|
202440
|
+
|
|
202441
|
+
constructor(data?: IBusinessDataGoogleMyBusinessInfoLiveTaskInfo) {
|
|
202442
|
+
super(data);
|
|
202443
|
+
}
|
|
202444
|
+
|
|
202445
|
+
init(_data?: any) {
|
|
202446
|
+
super.init(_data);
|
|
202447
|
+
if (_data) {
|
|
202448
|
+
for (var property in _data) {
|
|
202449
|
+
if (_data.hasOwnProperty(property))
|
|
202450
|
+
this[property] = _data[property];
|
|
202451
|
+
}
|
|
202452
|
+
if (Array.isArray(_data["result"])) {
|
|
202453
|
+
this.result = [] as any;
|
|
202454
|
+
for (let item of _data["result"])
|
|
202455
|
+
this.result!.push(BusinessDataGoogleMyBusinessInfoLiveResultInfo.fromJS(item));
|
|
202456
|
+
}
|
|
202457
|
+
}
|
|
202458
|
+
}
|
|
202459
|
+
|
|
202460
|
+
static fromJS(data: any): BusinessDataGoogleMyBusinessInfoLiveTaskInfo {
|
|
202461
|
+
data = typeof data === 'object' ? data : {};
|
|
202462
|
+
let result = new BusinessDataGoogleMyBusinessInfoLiveTaskInfo();
|
|
202463
|
+
result.init(data);
|
|
202464
|
+
return result;
|
|
202465
|
+
}
|
|
202466
|
+
|
|
202467
|
+
toJSON(data?: any) {
|
|
202468
|
+
data = typeof data === 'object' ? data : {};
|
|
202469
|
+
for (var property in this) {
|
|
202470
|
+
if (this.hasOwnProperty(property))
|
|
202471
|
+
data[property] = this[property];
|
|
202472
|
+
}
|
|
202473
|
+
if (Array.isArray(this.result)) {
|
|
202474
|
+
data["result"] = [];
|
|
202475
|
+
for (let item of this.result)
|
|
202476
|
+
data["result"].push(item.toJSON());
|
|
202477
|
+
}
|
|
202478
|
+
super.toJSON(data);
|
|
202479
|
+
return data;
|
|
202480
|
+
}
|
|
202481
|
+
}
|
|
202482
|
+
|
|
202483
|
+
export interface IBusinessDataGoogleMyBusinessInfoLiveTaskInfo extends IBaseResponseTaskInfo {
|
|
202484
|
+
/** array of results */
|
|
202485
|
+
result?: (BusinessDataGoogleMyBusinessInfoLiveResultInfo | undefined)[] | undefined;
|
|
202486
|
+
|
|
202487
|
+
[key: string]: any;
|
|
202488
|
+
}
|
|
202489
|
+
|
|
202490
|
+
export class BusinessDataGoogleMyBusinessInfoLiveResponseInfo extends BaseResponseInfo implements IBusinessDataGoogleMyBusinessInfoLiveResponseInfo {
|
|
202491
|
+
/** array of tasks */
|
|
202492
|
+
tasks?: (BusinessDataGoogleMyBusinessInfoLiveTaskInfo | undefined)[] | undefined;
|
|
202493
|
+
|
|
202494
|
+
[key: string]: any;
|
|
202495
|
+
|
|
202496
|
+
constructor(data?: IBusinessDataGoogleMyBusinessInfoLiveResponseInfo) {
|
|
202497
|
+
super(data);
|
|
202498
|
+
}
|
|
202499
|
+
|
|
202500
|
+
init(_data?: any) {
|
|
202501
|
+
super.init(_data);
|
|
202502
|
+
if (_data) {
|
|
202503
|
+
for (var property in _data) {
|
|
202504
|
+
if (_data.hasOwnProperty(property))
|
|
202505
|
+
this[property] = _data[property];
|
|
202506
|
+
}
|
|
202507
|
+
if (Array.isArray(_data["tasks"])) {
|
|
202508
|
+
this.tasks = [] as any;
|
|
202509
|
+
for (let item of _data["tasks"])
|
|
202510
|
+
this.tasks!.push(BusinessDataGoogleMyBusinessInfoLiveTaskInfo.fromJS(item));
|
|
202511
|
+
}
|
|
202512
|
+
}
|
|
202513
|
+
}
|
|
202514
|
+
|
|
202515
|
+
static fromJS(data: any): BusinessDataGoogleMyBusinessInfoLiveResponseInfo {
|
|
202516
|
+
data = typeof data === 'object' ? data : {};
|
|
202517
|
+
let result = new BusinessDataGoogleMyBusinessInfoLiveResponseInfo();
|
|
202518
|
+
result.init(data);
|
|
202519
|
+
return result;
|
|
202520
|
+
}
|
|
202521
|
+
|
|
202522
|
+
toJSON(data?: any) {
|
|
202523
|
+
data = typeof data === 'object' ? data : {};
|
|
202524
|
+
for (var property in this) {
|
|
202525
|
+
if (this.hasOwnProperty(property))
|
|
202526
|
+
data[property] = this[property];
|
|
202527
|
+
}
|
|
202528
|
+
if (Array.isArray(this.tasks)) {
|
|
202529
|
+
data["tasks"] = [];
|
|
202530
|
+
for (let item of this.tasks)
|
|
202531
|
+
data["tasks"].push(item.toJSON());
|
|
202532
|
+
}
|
|
202533
|
+
super.toJSON(data);
|
|
202534
|
+
return data;
|
|
202535
|
+
}
|
|
202536
|
+
}
|
|
202537
|
+
|
|
202538
|
+
export interface IBusinessDataGoogleMyBusinessInfoLiveResponseInfo extends IBaseResponseInfo {
|
|
202539
|
+
/** array of tasks */
|
|
202540
|
+
tasks?: (BusinessDataGoogleMyBusinessInfoLiveTaskInfo | undefined)[] | undefined;
|
|
202541
|
+
|
|
202542
|
+
[key: string]: any;
|
|
202543
|
+
}
|
|
202544
|
+
|
|
202108
202545
|
export class BusinessDataGoogleMyBusinessUpdatesTaskPostRequestInfo extends BusinessDataTaskRequestInfo implements IBusinessDataGoogleMyBusinessUpdatesTaskPostRequestInfo {
|
|
202109
202546
|
/** parsing depth
|
|
202110
202547
|
optional field
|