@crawlora-org/sdk 1.29.0-sdk.1 → 1.30.0-sdk.1
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/CHANGELOG.md +4 -0
- package/docs/operations.md +5 -4
- package/openapi/public.json +427 -118
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/operations.js +182 -1
- package/src/types.d.ts +64 -0
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { operations, groups } from "./operations.js";
|
|
2
2
|
|
|
3
3
|
const DEFAULT_BASE_URL = "https://api.crawlora.net/api/v1";
|
|
4
|
-
export const VERSION = "1.
|
|
4
|
+
export const VERSION = "1.30.0-sdk.1";
|
|
5
5
|
const DEFAULT_USER_AGENT = `crawlora-js-sdk/${VERSION}`;
|
|
6
6
|
|
|
7
7
|
export class CrawloraError extends Error {
|
package/src/operations.js
CHANGED
|
@@ -33897,6 +33897,7 @@ export const operations = {
|
|
|
33897
33897
|
"formParams": [],
|
|
33898
33898
|
"id": "tmdb-movie-list",
|
|
33899
33899
|
"method": "GET",
|
|
33900
|
+
"paginatable": true,
|
|
33900
33901
|
"path": "/tmdb/movie/list",
|
|
33901
33902
|
"pathParams": [],
|
|
33902
33903
|
"produces": [
|
|
@@ -33914,6 +33915,76 @@ export const operations = {
|
|
|
33914
33915
|
"name": "category",
|
|
33915
33916
|
"type": "string"
|
|
33916
33917
|
},
|
|
33918
|
+
{
|
|
33919
|
+
"in": "query",
|
|
33920
|
+
"name": "page",
|
|
33921
|
+
"type": "integer"
|
|
33922
|
+
},
|
|
33923
|
+
{
|
|
33924
|
+
"enum": [
|
|
33925
|
+
"popularity.desc",
|
|
33926
|
+
"popularity.asc",
|
|
33927
|
+
"vote_average.desc",
|
|
33928
|
+
"vote_average.asc",
|
|
33929
|
+
"primary_release_date.desc",
|
|
33930
|
+
"primary_release_date.asc",
|
|
33931
|
+
"title.asc",
|
|
33932
|
+
"title.desc"
|
|
33933
|
+
],
|
|
33934
|
+
"in": "query",
|
|
33935
|
+
"name": "sort_by",
|
|
33936
|
+
"type": "string"
|
|
33937
|
+
},
|
|
33938
|
+
{
|
|
33939
|
+
"in": "query",
|
|
33940
|
+
"name": "with_genres",
|
|
33941
|
+
"type": "string"
|
|
33942
|
+
},
|
|
33943
|
+
{
|
|
33944
|
+
"in": "query",
|
|
33945
|
+
"name": "original_language",
|
|
33946
|
+
"type": "string"
|
|
33947
|
+
},
|
|
33948
|
+
{
|
|
33949
|
+
"in": "query",
|
|
33950
|
+
"name": "date_from",
|
|
33951
|
+
"type": "string"
|
|
33952
|
+
},
|
|
33953
|
+
{
|
|
33954
|
+
"in": "query",
|
|
33955
|
+
"name": "date_to",
|
|
33956
|
+
"type": "string"
|
|
33957
|
+
},
|
|
33958
|
+
{
|
|
33959
|
+
"in": "query",
|
|
33960
|
+
"name": "min_rating",
|
|
33961
|
+
"type": "number"
|
|
33962
|
+
},
|
|
33963
|
+
{
|
|
33964
|
+
"in": "query",
|
|
33965
|
+
"name": "max_rating",
|
|
33966
|
+
"type": "number"
|
|
33967
|
+
},
|
|
33968
|
+
{
|
|
33969
|
+
"in": "query",
|
|
33970
|
+
"name": "min_votes",
|
|
33971
|
+
"type": "integer"
|
|
33972
|
+
},
|
|
33973
|
+
{
|
|
33974
|
+
"in": "query",
|
|
33975
|
+
"name": "min_runtime",
|
|
33976
|
+
"type": "integer"
|
|
33977
|
+
},
|
|
33978
|
+
{
|
|
33979
|
+
"in": "query",
|
|
33980
|
+
"name": "max_runtime",
|
|
33981
|
+
"type": "integer"
|
|
33982
|
+
},
|
|
33983
|
+
{
|
|
33984
|
+
"in": "query",
|
|
33985
|
+
"name": "include_adult",
|
|
33986
|
+
"type": "boolean"
|
|
33987
|
+
},
|
|
33917
33988
|
{
|
|
33918
33989
|
"in": "query",
|
|
33919
33990
|
"name": "limit",
|
|
@@ -33951,6 +34022,37 @@ export const operations = {
|
|
|
33951
34022
|
"ApiKeyAuth"
|
|
33952
34023
|
]
|
|
33953
34024
|
},
|
|
34025
|
+
"tmdb-person-list": {
|
|
34026
|
+
"bodyParam": null,
|
|
34027
|
+
"bodyRequired": false,
|
|
34028
|
+
"consumes": [
|
|
34029
|
+
"application/json"
|
|
34030
|
+
],
|
|
34031
|
+
"formParams": [],
|
|
34032
|
+
"id": "tmdb-person-list",
|
|
34033
|
+
"method": "GET",
|
|
34034
|
+
"paginatable": true,
|
|
34035
|
+
"path": "/tmdb/person/list",
|
|
34036
|
+
"pathParams": [],
|
|
34037
|
+
"produces": [
|
|
34038
|
+
"application/json"
|
|
34039
|
+
],
|
|
34040
|
+
"queryParams": [
|
|
34041
|
+
{
|
|
34042
|
+
"in": "query",
|
|
34043
|
+
"name": "page",
|
|
34044
|
+
"type": "integer"
|
|
34045
|
+
},
|
|
34046
|
+
{
|
|
34047
|
+
"in": "query",
|
|
34048
|
+
"name": "limit",
|
|
34049
|
+
"type": "integer"
|
|
34050
|
+
}
|
|
34051
|
+
],
|
|
34052
|
+
"security": [
|
|
34053
|
+
"ApiKeyAuth"
|
|
34054
|
+
]
|
|
34055
|
+
},
|
|
33954
34056
|
"tmdb-search": {
|
|
33955
34057
|
"bodyParam": null,
|
|
33956
34058
|
"bodyRequired": false,
|
|
@@ -33960,6 +34062,7 @@ export const operations = {
|
|
|
33960
34062
|
"formParams": [],
|
|
33961
34063
|
"id": "tmdb-search",
|
|
33962
34064
|
"method": "GET",
|
|
34065
|
+
"paginatable": true,
|
|
33963
34066
|
"path": "/tmdb/search",
|
|
33964
34067
|
"pathParams": [],
|
|
33965
34068
|
"produces": [
|
|
@@ -33982,6 +34085,11 @@ export const operations = {
|
|
|
33982
34085
|
"name": "type",
|
|
33983
34086
|
"type": "string"
|
|
33984
34087
|
},
|
|
34088
|
+
{
|
|
34089
|
+
"in": "query",
|
|
34090
|
+
"name": "page",
|
|
34091
|
+
"type": "integer"
|
|
34092
|
+
},
|
|
33985
34093
|
{
|
|
33986
34094
|
"in": "query",
|
|
33987
34095
|
"name": "limit",
|
|
@@ -34022,6 +34130,7 @@ export const operations = {
|
|
|
34022
34130
|
"formParams": [],
|
|
34023
34131
|
"id": "tmdb-tv-list",
|
|
34024
34132
|
"method": "GET",
|
|
34133
|
+
"paginatable": true,
|
|
34025
34134
|
"path": "/tmdb/tv/list",
|
|
34026
34135
|
"pathParams": [],
|
|
34027
34136
|
"produces": [
|
|
@@ -34039,6 +34148,76 @@ export const operations = {
|
|
|
34039
34148
|
"name": "category",
|
|
34040
34149
|
"type": "string"
|
|
34041
34150
|
},
|
|
34151
|
+
{
|
|
34152
|
+
"in": "query",
|
|
34153
|
+
"name": "page",
|
|
34154
|
+
"type": "integer"
|
|
34155
|
+
},
|
|
34156
|
+
{
|
|
34157
|
+
"enum": [
|
|
34158
|
+
"popularity.desc",
|
|
34159
|
+
"popularity.asc",
|
|
34160
|
+
"vote_average.desc",
|
|
34161
|
+
"vote_average.asc",
|
|
34162
|
+
"first_air_date.desc",
|
|
34163
|
+
"first_air_date.asc",
|
|
34164
|
+
"name.asc",
|
|
34165
|
+
"name.desc"
|
|
34166
|
+
],
|
|
34167
|
+
"in": "query",
|
|
34168
|
+
"name": "sort_by",
|
|
34169
|
+
"type": "string"
|
|
34170
|
+
},
|
|
34171
|
+
{
|
|
34172
|
+
"in": "query",
|
|
34173
|
+
"name": "with_genres",
|
|
34174
|
+
"type": "string"
|
|
34175
|
+
},
|
|
34176
|
+
{
|
|
34177
|
+
"in": "query",
|
|
34178
|
+
"name": "original_language",
|
|
34179
|
+
"type": "string"
|
|
34180
|
+
},
|
|
34181
|
+
{
|
|
34182
|
+
"in": "query",
|
|
34183
|
+
"name": "date_from",
|
|
34184
|
+
"type": "string"
|
|
34185
|
+
},
|
|
34186
|
+
{
|
|
34187
|
+
"in": "query",
|
|
34188
|
+
"name": "date_to",
|
|
34189
|
+
"type": "string"
|
|
34190
|
+
},
|
|
34191
|
+
{
|
|
34192
|
+
"in": "query",
|
|
34193
|
+
"name": "min_rating",
|
|
34194
|
+
"type": "number"
|
|
34195
|
+
},
|
|
34196
|
+
{
|
|
34197
|
+
"in": "query",
|
|
34198
|
+
"name": "max_rating",
|
|
34199
|
+
"type": "number"
|
|
34200
|
+
},
|
|
34201
|
+
{
|
|
34202
|
+
"in": "query",
|
|
34203
|
+
"name": "min_votes",
|
|
34204
|
+
"type": "integer"
|
|
34205
|
+
},
|
|
34206
|
+
{
|
|
34207
|
+
"in": "query",
|
|
34208
|
+
"name": "min_runtime",
|
|
34209
|
+
"type": "integer"
|
|
34210
|
+
},
|
|
34211
|
+
{
|
|
34212
|
+
"in": "query",
|
|
34213
|
+
"name": "max_runtime",
|
|
34214
|
+
"type": "integer"
|
|
34215
|
+
},
|
|
34216
|
+
{
|
|
34217
|
+
"in": "query",
|
|
34218
|
+
"name": "include_adult",
|
|
34219
|
+
"type": "boolean"
|
|
34220
|
+
},
|
|
34042
34221
|
{
|
|
34043
34222
|
"in": "query",
|
|
34044
34223
|
"name": "limit",
|
|
@@ -37938,6 +38117,7 @@ export const groups = {
|
|
|
37938
38117
|
"movie": "tmdb-movie",
|
|
37939
38118
|
"movieList": "tmdb-movie-list",
|
|
37940
38119
|
"person": "tmdb-person",
|
|
38120
|
+
"personList": "tmdb-person-list",
|
|
37941
38121
|
"search": "tmdb-search",
|
|
37942
38122
|
"tv": "tmdb-tv",
|
|
37943
38123
|
"tvList": "tmdb-tv-list"
|
|
@@ -38065,7 +38245,7 @@ export const groups = {
|
|
|
38065
38245
|
}
|
|
38066
38246
|
};
|
|
38067
38247
|
|
|
38068
|
-
export const operationCount =
|
|
38248
|
+
export const operationCount = 882;
|
|
38069
38249
|
|
|
38070
38250
|
// PascalCase aliases for every operation id, for discoverable, typo-safe
|
|
38071
38251
|
// dynamic calls: client.request(OperationIds.BingSearch, { q: "coffee" }).
|
|
@@ -38851,6 +39031,7 @@ export const OperationIds = Object.freeze({
|
|
|
38851
39031
|
"TmdbMovie": "tmdb-movie",
|
|
38852
39032
|
"TmdbMovieList": "tmdb-movie-list",
|
|
38853
39033
|
"TmdbPerson": "tmdb-person",
|
|
39034
|
+
"TmdbPersonList": "tmdb-person-list",
|
|
38854
39035
|
"TmdbSearch": "tmdb-search",
|
|
38855
39036
|
"TmdbTv": "tmdb-tv",
|
|
38856
39037
|
"TmdbTvList": "tmdb-tv-list",
|
package/src/types.d.ts
CHANGED
|
@@ -17837,7 +17837,9 @@ export interface ModelTmdbMediaRef {
|
|
|
17837
17837
|
|
|
17838
17838
|
export interface ModelTmdbMovieListResponse {
|
|
17839
17839
|
"category"?: string;
|
|
17840
|
+
"has_next_page"?: boolean;
|
|
17840
17841
|
"movies"?: Array<ModelTmdbMediaRef>;
|
|
17842
|
+
"page"?: number;
|
|
17841
17843
|
"source_url"?: string;
|
|
17842
17844
|
}
|
|
17843
17845
|
|
|
@@ -17882,6 +17884,8 @@ export interface ModelTmdbRating {
|
|
|
17882
17884
|
}
|
|
17883
17885
|
|
|
17884
17886
|
export interface ModelTmdbSearchResponse {
|
|
17887
|
+
"has_next_page"?: boolean;
|
|
17888
|
+
"page"?: number;
|
|
17885
17889
|
"query"?: string;
|
|
17886
17890
|
"results"?: Array<ModelTmdbSearchResult>;
|
|
17887
17891
|
"source_url"?: string;
|
|
@@ -17899,6 +17903,8 @@ export interface ModelTmdbSearchResult {
|
|
|
17899
17903
|
|
|
17900
17904
|
export interface ModelTmdbTvlistResponse {
|
|
17901
17905
|
"category"?: string;
|
|
17906
|
+
"has_next_page"?: boolean;
|
|
17907
|
+
"page"?: number;
|
|
17902
17908
|
"shows"?: Array<ModelTmdbMediaRef>;
|
|
17903
17909
|
"source_url"?: string;
|
|
17904
17910
|
}
|
|
@@ -20613,6 +20619,27 @@ export interface ModelZillowSearchResponse {
|
|
|
20613
20619
|
"results"?: Array<ModelZillowPropertyItem>;
|
|
20614
20620
|
}
|
|
20615
20621
|
|
|
20622
|
+
export interface ModelTmdbPersonListResponse {
|
|
20623
|
+
"has_next_page"?: boolean;
|
|
20624
|
+
"page"?: number;
|
|
20625
|
+
"people"?: Array<ModelTmdbPersonRef>;
|
|
20626
|
+
"source_url"?: string;
|
|
20627
|
+
}
|
|
20628
|
+
|
|
20629
|
+
export interface ModelTmdbPersonRef {
|
|
20630
|
+
"id"?: string;
|
|
20631
|
+
"known_for"?: string;
|
|
20632
|
+
"name"?: string;
|
|
20633
|
+
"profile_url"?: string;
|
|
20634
|
+
"uri"?: string;
|
|
20635
|
+
}
|
|
20636
|
+
|
|
20637
|
+
export interface ModelTmdbPersonListResponseDoc {
|
|
20638
|
+
"code"?: number;
|
|
20639
|
+
"data"?: ModelTmdbPersonListResponse;
|
|
20640
|
+
"msg"?: string;
|
|
20641
|
+
}
|
|
20642
|
+
|
|
20616
20643
|
export type AirbnbHostResponse = CrawloraResponse<ModelAirbnbHostResponse>;
|
|
20617
20644
|
export interface AirbnbHostParams {
|
|
20618
20645
|
"id": string;
|
|
@@ -26707,6 +26734,18 @@ export interface TiktokTrendingParams {
|
|
|
26707
26734
|
export type TmdbMovieListResponse = CrawloraResponse<ModelTmdbMovieListResponseDoc>;
|
|
26708
26735
|
export interface TmdbMovieListParams {
|
|
26709
26736
|
"category"?: "popular" | "top_rated" | "now_playing" | "upcoming";
|
|
26737
|
+
"page"?: number;
|
|
26738
|
+
"sort_by"?: "popularity.desc" | "popularity.asc" | "vote_average.desc" | "vote_average.asc" | "primary_release_date.desc" | "primary_release_date.asc" | "title.asc" | "title.desc";
|
|
26739
|
+
"with_genres"?: string;
|
|
26740
|
+
"original_language"?: string;
|
|
26741
|
+
"date_from"?: string;
|
|
26742
|
+
"date_to"?: string;
|
|
26743
|
+
"min_rating"?: number;
|
|
26744
|
+
"max_rating"?: number;
|
|
26745
|
+
"min_votes"?: number;
|
|
26746
|
+
"min_runtime"?: number;
|
|
26747
|
+
"max_runtime"?: number;
|
|
26748
|
+
"include_adult"?: boolean;
|
|
26710
26749
|
"limit"?: number;
|
|
26711
26750
|
}
|
|
26712
26751
|
|
|
@@ -26715,6 +26754,12 @@ export interface TmdbMovieParams {
|
|
|
26715
26754
|
"id": string;
|
|
26716
26755
|
}
|
|
26717
26756
|
|
|
26757
|
+
export type TmdbPersonListResponse = CrawloraResponse<ModelTmdbPersonListResponseDoc>;
|
|
26758
|
+
export interface TmdbPersonListParams {
|
|
26759
|
+
"page"?: number;
|
|
26760
|
+
"limit"?: number;
|
|
26761
|
+
}
|
|
26762
|
+
|
|
26718
26763
|
export type TmdbPersonResponse = CrawloraResponse<ModelTmdbPersonResponseDoc>;
|
|
26719
26764
|
export interface TmdbPersonParams {
|
|
26720
26765
|
"id": string;
|
|
@@ -26725,12 +26770,25 @@ export type TmdbSearchResponse = CrawloraResponse<ModelTmdbSearchResponseDoc>;
|
|
|
26725
26770
|
export interface TmdbSearchParams {
|
|
26726
26771
|
"query": string;
|
|
26727
26772
|
"type"?: "movie" | "tv" | "person";
|
|
26773
|
+
"page"?: number;
|
|
26728
26774
|
"limit"?: number;
|
|
26729
26775
|
}
|
|
26730
26776
|
|
|
26731
26777
|
export type TmdbTvListResponse = CrawloraResponse<ModelTmdbTvListResponseDoc>;
|
|
26732
26778
|
export interface TmdbTvListParams {
|
|
26733
26779
|
"category"?: "popular" | "top_rated" | "airing_today" | "on_the_air";
|
|
26780
|
+
"page"?: number;
|
|
26781
|
+
"sort_by"?: "popularity.desc" | "popularity.asc" | "vote_average.desc" | "vote_average.asc" | "first_air_date.desc" | "first_air_date.asc" | "name.asc" | "name.desc";
|
|
26782
|
+
"with_genres"?: string;
|
|
26783
|
+
"original_language"?: string;
|
|
26784
|
+
"date_from"?: string;
|
|
26785
|
+
"date_to"?: string;
|
|
26786
|
+
"min_rating"?: number;
|
|
26787
|
+
"max_rating"?: number;
|
|
26788
|
+
"min_votes"?: number;
|
|
26789
|
+
"min_runtime"?: number;
|
|
26790
|
+
"max_runtime"?: number;
|
|
26791
|
+
"include_adult"?: boolean;
|
|
26734
26792
|
"limit"?: number;
|
|
26735
26793
|
}
|
|
26736
26794
|
|
|
@@ -28330,6 +28388,7 @@ export interface TiktokService {
|
|
|
28330
28388
|
export interface TmdbService {
|
|
28331
28389
|
movieList<T = TmdbMovieListResponse>(params?: TmdbMovieListParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
28332
28390
|
movie<T = TmdbMovieResponse>(params: TmdbMovieParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
28391
|
+
personList<T = TmdbPersonListResponse>(params?: TmdbPersonListParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
28333
28392
|
person<T = TmdbPersonResponse>(params: TmdbPersonParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
28334
28393
|
search<T = TmdbSearchResponse>(params: TmdbSearchParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
28335
28394
|
tvList<T = TmdbTvListResponse>(params?: TmdbTvListParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
@@ -29323,6 +29382,7 @@ export interface OperationParamsMap {
|
|
|
29323
29382
|
"tiktok-trending": TiktokTrendingParams;
|
|
29324
29383
|
"tmdb-movie-list": TmdbMovieListParams;
|
|
29325
29384
|
"tmdb-movie": TmdbMovieParams;
|
|
29385
|
+
"tmdb-person-list": TmdbPersonListParams;
|
|
29326
29386
|
"tmdb-person": TmdbPersonParams;
|
|
29327
29387
|
"tmdb-search": TmdbSearchParams;
|
|
29328
29388
|
"tmdb-tv-list": TmdbTvListParams;
|
|
@@ -30207,6 +30267,7 @@ export interface OperationResponseMap {
|
|
|
30207
30267
|
"tiktok-trending": TiktokTrendingResponse;
|
|
30208
30268
|
"tmdb-movie-list": TmdbMovieListResponse;
|
|
30209
30269
|
"tmdb-movie": TmdbMovieResponse;
|
|
30270
|
+
"tmdb-person-list": TmdbPersonListResponse;
|
|
30210
30271
|
"tmdb-person": TmdbPersonResponse;
|
|
30211
30272
|
"tmdb-search": TmdbSearchResponse;
|
|
30212
30273
|
"tmdb-tv-list": TmdbTvListResponse;
|
|
@@ -31091,6 +31152,7 @@ export interface OperationRequiredParamsMap {
|
|
|
31091
31152
|
"tiktok-trending": false;
|
|
31092
31153
|
"tmdb-movie-list": false;
|
|
31093
31154
|
"tmdb-movie": true;
|
|
31155
|
+
"tmdb-person-list": false;
|
|
31094
31156
|
"tmdb-person": true;
|
|
31095
31157
|
"tmdb-search": true;
|
|
31096
31158
|
"tmdb-tv-list": false;
|
|
@@ -31982,6 +32044,7 @@ export type OperationIdLiteral =
|
|
|
31982
32044
|
| "tiktok-trending"
|
|
31983
32045
|
| "tmdb-movie-list"
|
|
31984
32046
|
| "tmdb-movie"
|
|
32047
|
+
| "tmdb-person-list"
|
|
31985
32048
|
| "tmdb-person"
|
|
31986
32049
|
| "tmdb-search"
|
|
31987
32050
|
| "tmdb-tv-list"
|
|
@@ -32863,6 +32926,7 @@ export declare const OperationIds: Readonly<{
|
|
|
32863
32926
|
TmdbMovie: "tmdb-movie";
|
|
32864
32927
|
TmdbMovieList: "tmdb-movie-list";
|
|
32865
32928
|
TmdbPerson: "tmdb-person";
|
|
32929
|
+
TmdbPersonList: "tmdb-person-list";
|
|
32866
32930
|
TmdbSearch: "tmdb-search";
|
|
32867
32931
|
TmdbTv: "tmdb-tv";
|
|
32868
32932
|
TmdbTvList: "tmdb-tv-list";
|