dataforseo-client 1.0.6 → 1.0.7
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/README.md +1 -3
- package/main.d.ts +96 -146
- package/main.js +151 -211
- package/main.ts +224 -344
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
API client that provide services of DataForSeo API
|
|
2
|
-
|
|
3
|
-
For more information about client code generation, please follow to github (https://github.com/dataforseo/TypeScriptClient)
|
|
1
|
+
API client that provide services of DataForSeo API. For more information about client code generation, please follow to github
|
package/main.d.ts
CHANGED
|
@@ -3518,62 +3518,6 @@ export interface ISocialMetricsInfo {
|
|
|
3518
3518
|
like_count?: number | undefined;
|
|
3519
3519
|
[key: string]: any;
|
|
3520
3520
|
}
|
|
3521
|
-
export declare class ConnotationTypeInfo implements IConnotationTypeInfo {
|
|
3522
|
-
/** positive connotation */
|
|
3523
|
-
positive?: number | undefined;
|
|
3524
|
-
/** negative connotation */
|
|
3525
|
-
negative?: number | undefined;
|
|
3526
|
-
/** neutral connotation */
|
|
3527
|
-
neutral?: number | undefined;
|
|
3528
|
-
[key: string]: any;
|
|
3529
|
-
constructor(data?: IConnotationTypeInfo);
|
|
3530
|
-
init(_data?: any): void;
|
|
3531
|
-
static fromJS(data: any): ConnotationTypeInfo;
|
|
3532
|
-
toJSON(data?: any): any;
|
|
3533
|
-
}
|
|
3534
|
-
export interface IConnotationTypeInfo {
|
|
3535
|
-
/** positive connotation */
|
|
3536
|
-
positive?: number | undefined;
|
|
3537
|
-
/** negative connotation */
|
|
3538
|
-
negative?: number | undefined;
|
|
3539
|
-
/** neutral connotation */
|
|
3540
|
-
neutral?: number | undefined;
|
|
3541
|
-
[key: string]: any;
|
|
3542
|
-
}
|
|
3543
|
-
export declare class SentimentConnotationInfo implements ISentimentConnotationInfo {
|
|
3544
|
-
/** anger */
|
|
3545
|
-
anger?: number | undefined;
|
|
3546
|
-
/** happiness */
|
|
3547
|
-
happiness?: number | undefined;
|
|
3548
|
-
/** love */
|
|
3549
|
-
love?: number | undefined;
|
|
3550
|
-
/** sadness */
|
|
3551
|
-
sadness?: number | undefined;
|
|
3552
|
-
/** share */
|
|
3553
|
-
share?: number | undefined;
|
|
3554
|
-
/** fun */
|
|
3555
|
-
fun?: number | undefined;
|
|
3556
|
-
[key: string]: any;
|
|
3557
|
-
constructor(data?: ISentimentConnotationInfo);
|
|
3558
|
-
init(_data?: any): void;
|
|
3559
|
-
static fromJS(data: any): SentimentConnotationInfo;
|
|
3560
|
-
toJSON(data?: any): any;
|
|
3561
|
-
}
|
|
3562
|
-
export interface ISentimentConnotationInfo {
|
|
3563
|
-
/** anger */
|
|
3564
|
-
anger?: number | undefined;
|
|
3565
|
-
/** happiness */
|
|
3566
|
-
happiness?: number | undefined;
|
|
3567
|
-
/** love */
|
|
3568
|
-
love?: number | undefined;
|
|
3569
|
-
/** sadness */
|
|
3570
|
-
sadness?: number | undefined;
|
|
3571
|
-
/** share */
|
|
3572
|
-
share?: number | undefined;
|
|
3573
|
-
/** fun */
|
|
3574
|
-
fun?: number | undefined;
|
|
3575
|
-
[key: string]: any;
|
|
3576
|
-
}
|
|
3577
3521
|
export declare class TopDomainInfo implements ITopDomainInfo {
|
|
3578
3522
|
domain?: string | undefined;
|
|
3579
3523
|
count?: number | undefined;
|
|
@@ -18961,8 +18905,7 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
18961
18905
|
se_results_count?: number | undefined;
|
|
18962
18906
|
/** the number of results returned in the items array */
|
|
18963
18907
|
items_count?: number | undefined;
|
|
18964
|
-
/**
|
|
18965
|
-
if there are none, equals null */
|
|
18908
|
+
/** items featured in the faq_box */
|
|
18966
18909
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
18967
18910
|
[key: string]: any;
|
|
18968
18911
|
constructor(data?: ISerpBingOrganicLiveAdvancedResultInfo);
|
|
@@ -19002,8 +18945,7 @@ answer_box, carousel, events, featured_snippet, hotels_pack, images, jobs, local
|
|
|
19002
18945
|
se_results_count?: number | undefined;
|
|
19003
18946
|
/** the number of results returned in the items array */
|
|
19004
18947
|
items_count?: number | undefined;
|
|
19005
|
-
/**
|
|
19006
|
-
if there are none, equals null */
|
|
18948
|
+
/** items featured in the faq_box */
|
|
19007
18949
|
items?: (BaseSerpElementItem | undefined)[] | undefined;
|
|
19008
18950
|
[key: string]: any;
|
|
19009
18951
|
}
|
|
@@ -63587,7 +63529,7 @@ the amount of time a browser needs to complete downloading a resource */
|
|
|
63587
63529
|
fetch_end?: number | undefined;
|
|
63588
63530
|
[key: string]: any;
|
|
63589
63531
|
}
|
|
63590
|
-
export declare class
|
|
63532
|
+
export declare class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
63591
63533
|
/** resource properties
|
|
63592
63534
|
the value depends on the resource_type
|
|
63593
63535
|
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;
|
|
@@ -63639,25 +63581,13 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
63639
63581
|
/** contains data on changes related to the resource
|
|
63640
63582
|
if there is no data, the value will be null */
|
|
63641
63583
|
last_modified?: LastModified | undefined;
|
|
63642
|
-
/** resource initiator */
|
|
63643
|
-
initiator?: string | undefined;
|
|
63644
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
63645
|
-
duration_time?: number | undefined;
|
|
63646
|
-
/** time to start downloading the resource
|
|
63647
|
-
the amount of time the browser needs to start downloading a resource */
|
|
63648
|
-
fetch_start?: number | undefined;
|
|
63649
|
-
/** time to complete downloading the resource
|
|
63650
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
63651
|
-
fetch_end?: number | undefined;
|
|
63652
|
-
/** indicates whether the resource blocks rendering */
|
|
63653
|
-
is_render_blocking?: boolean | undefined;
|
|
63654
63584
|
[key: string]: any;
|
|
63655
|
-
constructor(data?:
|
|
63585
|
+
constructor(data?: IScriptResourceElementItem);
|
|
63656
63586
|
init(_data?: any): void;
|
|
63657
|
-
static fromJS(data: any):
|
|
63587
|
+
static fromJS(data: any): ScriptResourceElementItem;
|
|
63658
63588
|
toJSON(data?: any): any;
|
|
63659
63589
|
}
|
|
63660
|
-
export interface
|
|
63590
|
+
export interface IScriptResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
63661
63591
|
/** resource properties
|
|
63662
63592
|
the value depends on the resource_type
|
|
63663
63593
|
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;
|
|
@@ -63709,67 +63639,9 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
63709
63639
|
/** contains data on changes related to the resource
|
|
63710
63640
|
if there is no data, the value will be null */
|
|
63711
63641
|
last_modified?: LastModified | undefined;
|
|
63712
|
-
/** resource initiator */
|
|
63713
|
-
initiator?: string | undefined;
|
|
63714
|
-
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
63715
|
-
duration_time?: number | undefined;
|
|
63716
|
-
/** time to start downloading the resource
|
|
63717
|
-
the amount of time the browser needs to start downloading a resource */
|
|
63718
|
-
fetch_start?: number | undefined;
|
|
63719
|
-
/** time to complete downloading the resource
|
|
63720
|
-
the amount of time the browser needs to complete downloading a resource */
|
|
63721
|
-
fetch_end?: number | undefined;
|
|
63722
|
-
/** indicates whether the resource blocks rendering */
|
|
63723
|
-
is_render_blocking?: boolean | undefined;
|
|
63724
|
-
[key: string]: any;
|
|
63725
|
-
}
|
|
63726
|
-
export declare class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
63727
|
-
/** status of the crawling session
|
|
63728
|
-
possible values: in_progress, finished */
|
|
63729
|
-
crawl_progress?: string | undefined;
|
|
63730
|
-
/** details of the crawling session */
|
|
63731
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
63732
|
-
/** total number of relevant items crawled */
|
|
63733
|
-
total_items_count?: number | undefined;
|
|
63734
|
-
/** number of items in the results array */
|
|
63735
|
-
items_count?: number | undefined;
|
|
63736
|
-
/** items array */
|
|
63737
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
63738
|
-
[key: string]: any;
|
|
63739
|
-
constructor(data?: IOnPageResourcesResultInfo);
|
|
63740
|
-
init(_data?: any): void;
|
|
63741
|
-
static fromJS(data: any): OnPageResourcesResultInfo;
|
|
63742
|
-
toJSON(data?: any): any;
|
|
63743
|
-
}
|
|
63744
|
-
export interface IOnPageResourcesResultInfo {
|
|
63745
|
-
/** status of the crawling session
|
|
63746
|
-
possible values: in_progress, finished */
|
|
63747
|
-
crawl_progress?: string | undefined;
|
|
63748
|
-
/** details of the crawling session */
|
|
63749
|
-
crawl_status?: CrawlStatusInfo | undefined;
|
|
63750
|
-
/** total number of relevant items crawled */
|
|
63751
|
-
total_items_count?: number | undefined;
|
|
63752
|
-
/** number of items in the results array */
|
|
63753
|
-
items_count?: number | undefined;
|
|
63754
|
-
/** items array */
|
|
63755
|
-
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
63756
|
-
[key: string]: any;
|
|
63757
|
-
}
|
|
63758
|
-
export declare class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
63759
|
-
/** array of results */
|
|
63760
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
63761
63642
|
[key: string]: any;
|
|
63762
|
-
constructor(data?: IOnPageResourcesTaskInfo);
|
|
63763
|
-
init(_data?: any): void;
|
|
63764
|
-
static fromJS(data: any): OnPageResourcesTaskInfo;
|
|
63765
|
-
toJSON(data?: any): any;
|
|
63766
63643
|
}
|
|
63767
|
-
export
|
|
63768
|
-
/** array of results */
|
|
63769
|
-
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
63770
|
-
[key: string]: any;
|
|
63771
|
-
}
|
|
63772
|
-
export declare class ScriptResourceElementItem extends BaseOnPageResourceItemInfo implements IScriptResourceElementItem {
|
|
63644
|
+
export declare class StylesheetResourceElementItem extends BaseOnPageResourceItemInfo implements IStylesheetResourceElementItem {
|
|
63773
63645
|
/** resource properties
|
|
63774
63646
|
the value depends on the resource_type
|
|
63775
63647
|
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;
|
|
@@ -63805,6 +63677,8 @@ contents of the array depend on the resource_type */
|
|
|
63805
63677
|
checks?: {
|
|
63806
63678
|
[key: string]: boolean;
|
|
63807
63679
|
} | undefined;
|
|
63680
|
+
/** resource errors and warnings */
|
|
63681
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
63808
63682
|
/** type of encoding */
|
|
63809
63683
|
content_encoding?: string | undefined;
|
|
63810
63684
|
/** types of media used to display a resource */
|
|
@@ -63819,15 +63693,25 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
63819
63693
|
/** contains data on changes related to the resource
|
|
63820
63694
|
if there is no data, the value will be null */
|
|
63821
63695
|
last_modified?: LastModified | undefined;
|
|
63822
|
-
/** resource
|
|
63823
|
-
|
|
63696
|
+
/** resource initiator */
|
|
63697
|
+
initiator?: string | undefined;
|
|
63698
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
63699
|
+
duration_time?: number | undefined;
|
|
63700
|
+
/** time to start downloading the resource
|
|
63701
|
+
the amount of time the browser needs to start downloading a resource */
|
|
63702
|
+
fetch_start?: number | undefined;
|
|
63703
|
+
/** time to complete downloading the resource
|
|
63704
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
63705
|
+
fetch_end?: number | undefined;
|
|
63706
|
+
/** indicates whether the resource blocks rendering */
|
|
63707
|
+
is_render_blocking?: boolean | undefined;
|
|
63824
63708
|
[key: string]: any;
|
|
63825
|
-
constructor(data?:
|
|
63709
|
+
constructor(data?: IStylesheetResourceElementItem);
|
|
63826
63710
|
init(_data?: any): void;
|
|
63827
|
-
static fromJS(data: any):
|
|
63711
|
+
static fromJS(data: any): StylesheetResourceElementItem;
|
|
63828
63712
|
toJSON(data?: any): any;
|
|
63829
63713
|
}
|
|
63830
|
-
export interface
|
|
63714
|
+
export interface IStylesheetResourceElementItem extends IBaseOnPageResourceItemInfo {
|
|
63831
63715
|
/** resource properties
|
|
63832
63716
|
the value depends on the resource_type
|
|
63833
63717
|
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;
|
|
@@ -63863,6 +63747,8 @@ contents of the array depend on the resource_type */
|
|
|
63863
63747
|
checks?: {
|
|
63864
63748
|
[key: string]: boolean;
|
|
63865
63749
|
} | undefined;
|
|
63750
|
+
/** resource errors and warnings */
|
|
63751
|
+
resource_errors?: OnPageResourceIssueInfo | undefined;
|
|
63866
63752
|
/** type of encoding */
|
|
63867
63753
|
content_encoding?: string | undefined;
|
|
63868
63754
|
/** types of media used to display a resource */
|
|
@@ -63877,8 +63763,64 @@ any, none, image, sitemap, robots, script, stylesheet, redirect, html, text, oth
|
|
|
63877
63763
|
/** contains data on changes related to the resource
|
|
63878
63764
|
if there is no data, the value will be null */
|
|
63879
63765
|
last_modified?: LastModified | undefined;
|
|
63880
|
-
/** resource
|
|
63881
|
-
|
|
63766
|
+
/** resource initiator */
|
|
63767
|
+
initiator?: string | undefined;
|
|
63768
|
+
/** total time it takes until a browser receives a complete response from a server (in milliseconds) */
|
|
63769
|
+
duration_time?: number | undefined;
|
|
63770
|
+
/** time to start downloading the resource
|
|
63771
|
+
the amount of time the browser needs to start downloading a resource */
|
|
63772
|
+
fetch_start?: number | undefined;
|
|
63773
|
+
/** time to complete downloading the resource
|
|
63774
|
+
the amount of time the browser needs to complete downloading a resource */
|
|
63775
|
+
fetch_end?: number | undefined;
|
|
63776
|
+
/** indicates whether the resource blocks rendering */
|
|
63777
|
+
is_render_blocking?: boolean | undefined;
|
|
63778
|
+
[key: string]: any;
|
|
63779
|
+
}
|
|
63780
|
+
export declare class OnPageResourcesResultInfo implements IOnPageResourcesResultInfo {
|
|
63781
|
+
/** status of the crawling session
|
|
63782
|
+
possible values: in_progress, finished */
|
|
63783
|
+
crawl_progress?: string | undefined;
|
|
63784
|
+
/** details of the crawling session */
|
|
63785
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
63786
|
+
/** total number of relevant items crawled */
|
|
63787
|
+
total_items_count?: number | undefined;
|
|
63788
|
+
/** number of items in the results array */
|
|
63789
|
+
items_count?: number | undefined;
|
|
63790
|
+
/** items array */
|
|
63791
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
63792
|
+
[key: string]: any;
|
|
63793
|
+
constructor(data?: IOnPageResourcesResultInfo);
|
|
63794
|
+
init(_data?: any): void;
|
|
63795
|
+
static fromJS(data: any): OnPageResourcesResultInfo;
|
|
63796
|
+
toJSON(data?: any): any;
|
|
63797
|
+
}
|
|
63798
|
+
export interface IOnPageResourcesResultInfo {
|
|
63799
|
+
/** status of the crawling session
|
|
63800
|
+
possible values: in_progress, finished */
|
|
63801
|
+
crawl_progress?: string | undefined;
|
|
63802
|
+
/** details of the crawling session */
|
|
63803
|
+
crawl_status?: CrawlStatusInfo | undefined;
|
|
63804
|
+
/** total number of relevant items crawled */
|
|
63805
|
+
total_items_count?: number | undefined;
|
|
63806
|
+
/** number of items in the results array */
|
|
63807
|
+
items_count?: number | undefined;
|
|
63808
|
+
/** items array */
|
|
63809
|
+
items?: (BaseOnPageResourceItemInfo | undefined)[] | undefined;
|
|
63810
|
+
[key: string]: any;
|
|
63811
|
+
}
|
|
63812
|
+
export declare class OnPageResourcesTaskInfo extends BaseResponseTaskInfo implements IOnPageResourcesTaskInfo {
|
|
63813
|
+
/** array of results */
|
|
63814
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
63815
|
+
[key: string]: any;
|
|
63816
|
+
constructor(data?: IOnPageResourcesTaskInfo);
|
|
63817
|
+
init(_data?: any): void;
|
|
63818
|
+
static fromJS(data: any): OnPageResourcesTaskInfo;
|
|
63819
|
+
toJSON(data?: any): any;
|
|
63820
|
+
}
|
|
63821
|
+
export interface IOnPageResourcesTaskInfo extends IBaseResponseTaskInfo {
|
|
63822
|
+
/** array of results */
|
|
63823
|
+
result?: (OnPageResourcesResultInfo | undefined)[] | undefined;
|
|
63882
63824
|
[key: string]: any;
|
|
63883
63825
|
}
|
|
63884
63826
|
export declare class ImageResourceElementItem extends BaseOnPageResourceItemInfo implements IImageResourceElementItem {
|
|
@@ -68296,11 +68238,15 @@ to obtain a full list of available languages, refer to the Languages endpoint */
|
|
|
68296
68238
|
/** sentiment connotations
|
|
68297
68239
|
contains sentiments (emotional reactions) related to the given citation and probability index per each sentiment
|
|
68298
68240
|
possible sentiment connotations: anger, happiness, love, sadness, share, fun */
|
|
68299
|
-
sentiment_connotations?:
|
|
68241
|
+
sentiment_connotations?: {
|
|
68242
|
+
[key: string]: number;
|
|
68243
|
+
} | undefined;
|
|
68300
68244
|
/** connotation types
|
|
68301
68245
|
contains types of sentiments (sentiment polarity) related to the given citation and probability index per each sentiment type
|
|
68302
68246
|
possible sentiment connotation types: positive, negative, neutral */
|
|
68303
|
-
connotation_types?:
|
|
68247
|
+
connotation_types?: {
|
|
68248
|
+
[key: string]: number;
|
|
68249
|
+
} | undefined;
|
|
68304
68250
|
/** text category
|
|
68305
68251
|
to obtain a full list of available categories, refer to the Categories endpoint */
|
|
68306
68252
|
text_category?: number[] | undefined;
|
|
@@ -68364,11 +68310,15 @@ to obtain a full list of available languages, refer to the Languages endpoint */
|
|
|
68364
68310
|
/** sentiment connotations
|
|
68365
68311
|
contains sentiments (emotional reactions) related to the given citation and probability index per each sentiment
|
|
68366
68312
|
possible sentiment connotations: anger, happiness, love, sadness, share, fun */
|
|
68367
|
-
sentiment_connotations?:
|
|
68313
|
+
sentiment_connotations?: {
|
|
68314
|
+
[key: string]: number;
|
|
68315
|
+
} | undefined;
|
|
68368
68316
|
/** connotation types
|
|
68369
68317
|
contains types of sentiments (sentiment polarity) related to the given citation and probability index per each sentiment type
|
|
68370
68318
|
possible sentiment connotation types: positive, negative, neutral */
|
|
68371
|
-
connotation_types?:
|
|
68319
|
+
connotation_types?: {
|
|
68320
|
+
[key: string]: number;
|
|
68321
|
+
} | undefined;
|
|
68372
68322
|
/** text category
|
|
68373
68323
|
to obtain a full list of available categories, refer to the Categories endpoint */
|
|
68374
68324
|
text_category?: number[] | undefined;
|