@crawlora-org/sdk 1.7.0-sdk.1 → 1.8.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 +10 -0
- package/README.md +1 -1
- package/docs/operations.md +9 -1
- package/openapi/public.json +1882 -523
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/operations.js +262 -1
- package/src/types.d.ts +362 -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.8.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
|
@@ -243,6 +243,25 @@ export const operations = {
|
|
|
243
243
|
"ApiKeyAuth"
|
|
244
244
|
]
|
|
245
245
|
},
|
|
246
|
+
"antibot-check": {
|
|
247
|
+
"bodyParam": "request",
|
|
248
|
+
"bodyRequired": true,
|
|
249
|
+
"consumes": [
|
|
250
|
+
"application/json"
|
|
251
|
+
],
|
|
252
|
+
"formParams": [],
|
|
253
|
+
"id": "antibot-check",
|
|
254
|
+
"method": "POST",
|
|
255
|
+
"path": "/diagnostics/antibot-check",
|
|
256
|
+
"pathParams": [],
|
|
257
|
+
"produces": [
|
|
258
|
+
"application/json"
|
|
259
|
+
],
|
|
260
|
+
"queryParams": [],
|
|
261
|
+
"security": [
|
|
262
|
+
"ApiKeyAuth"
|
|
263
|
+
]
|
|
264
|
+
},
|
|
246
265
|
"apple-podcasts-charts": {
|
|
247
266
|
"bodyParam": null,
|
|
248
267
|
"bodyRequired": false,
|
|
@@ -4232,6 +4251,25 @@ export const operations = {
|
|
|
4232
4251
|
"ApiKeyAuth"
|
|
4233
4252
|
]
|
|
4234
4253
|
},
|
|
4254
|
+
"contact": {
|
|
4255
|
+
"bodyParam": "option",
|
|
4256
|
+
"bodyRequired": true,
|
|
4257
|
+
"consumes": [
|
|
4258
|
+
"application/json"
|
|
4259
|
+
],
|
|
4260
|
+
"formParams": [],
|
|
4261
|
+
"id": "contact",
|
|
4262
|
+
"method": "POST",
|
|
4263
|
+
"path": "/contact",
|
|
4264
|
+
"pathParams": [],
|
|
4265
|
+
"produces": [
|
|
4266
|
+
"application/json"
|
|
4267
|
+
],
|
|
4268
|
+
"queryParams": [],
|
|
4269
|
+
"security": [
|
|
4270
|
+
"ApiKeyAuth"
|
|
4271
|
+
]
|
|
4272
|
+
},
|
|
4235
4273
|
"datasets-google-map-businesses-facets": {
|
|
4236
4274
|
"bodyParam": null,
|
|
4237
4275
|
"bodyRequired": false,
|
|
@@ -12368,6 +12406,190 @@ export const operations = {
|
|
|
12368
12406
|
"ApiKeyAuth"
|
|
12369
12407
|
]
|
|
12370
12408
|
},
|
|
12409
|
+
"redfin-estimate": {
|
|
12410
|
+
"bodyParam": null,
|
|
12411
|
+
"bodyRequired": false,
|
|
12412
|
+
"consumes": [
|
|
12413
|
+
"application/json"
|
|
12414
|
+
],
|
|
12415
|
+
"formParams": [],
|
|
12416
|
+
"id": "redfin-estimate",
|
|
12417
|
+
"method": "GET",
|
|
12418
|
+
"path": "/redfin/estimate",
|
|
12419
|
+
"pathParams": [],
|
|
12420
|
+
"produces": [
|
|
12421
|
+
"application/json"
|
|
12422
|
+
],
|
|
12423
|
+
"queryParams": [
|
|
12424
|
+
{
|
|
12425
|
+
"in": "query",
|
|
12426
|
+
"name": "property_id",
|
|
12427
|
+
"required": true,
|
|
12428
|
+
"type": "string"
|
|
12429
|
+
}
|
|
12430
|
+
],
|
|
12431
|
+
"security": [
|
|
12432
|
+
"ApiKeyAuth"
|
|
12433
|
+
]
|
|
12434
|
+
},
|
|
12435
|
+
"redfin-property": {
|
|
12436
|
+
"bodyParam": null,
|
|
12437
|
+
"bodyRequired": false,
|
|
12438
|
+
"consumes": [
|
|
12439
|
+
"application/json"
|
|
12440
|
+
],
|
|
12441
|
+
"formParams": [],
|
|
12442
|
+
"id": "redfin-property",
|
|
12443
|
+
"method": "GET",
|
|
12444
|
+
"path": "/redfin/property",
|
|
12445
|
+
"pathParams": [],
|
|
12446
|
+
"produces": [
|
|
12447
|
+
"application/json"
|
|
12448
|
+
],
|
|
12449
|
+
"queryParams": [
|
|
12450
|
+
{
|
|
12451
|
+
"in": "query",
|
|
12452
|
+
"name": "url",
|
|
12453
|
+
"type": "string"
|
|
12454
|
+
},
|
|
12455
|
+
{
|
|
12456
|
+
"in": "query",
|
|
12457
|
+
"name": "property_id",
|
|
12458
|
+
"type": "string"
|
|
12459
|
+
},
|
|
12460
|
+
{
|
|
12461
|
+
"in": "query",
|
|
12462
|
+
"name": "listing_id",
|
|
12463
|
+
"type": "string"
|
|
12464
|
+
}
|
|
12465
|
+
],
|
|
12466
|
+
"security": [
|
|
12467
|
+
"ApiKeyAuth"
|
|
12468
|
+
]
|
|
12469
|
+
},
|
|
12470
|
+
"redfin-region-trends": {
|
|
12471
|
+
"bodyParam": null,
|
|
12472
|
+
"bodyRequired": false,
|
|
12473
|
+
"consumes": [
|
|
12474
|
+
"application/json"
|
|
12475
|
+
],
|
|
12476
|
+
"formParams": [],
|
|
12477
|
+
"id": "redfin-region-trends",
|
|
12478
|
+
"method": "GET",
|
|
12479
|
+
"path": "/redfin/region-trends",
|
|
12480
|
+
"pathParams": [],
|
|
12481
|
+
"produces": [
|
|
12482
|
+
"application/json"
|
|
12483
|
+
],
|
|
12484
|
+
"queryParams": [
|
|
12485
|
+
{
|
|
12486
|
+
"in": "query",
|
|
12487
|
+
"name": "region_id",
|
|
12488
|
+
"required": true,
|
|
12489
|
+
"type": "integer"
|
|
12490
|
+
},
|
|
12491
|
+
{
|
|
12492
|
+
"in": "query",
|
|
12493
|
+
"name": "region_type",
|
|
12494
|
+
"type": "integer"
|
|
12495
|
+
}
|
|
12496
|
+
],
|
|
12497
|
+
"security": [
|
|
12498
|
+
"ApiKeyAuth"
|
|
12499
|
+
]
|
|
12500
|
+
},
|
|
12501
|
+
"redfin-search": {
|
|
12502
|
+
"bodyParam": null,
|
|
12503
|
+
"bodyRequired": false,
|
|
12504
|
+
"consumes": [
|
|
12505
|
+
"application/json"
|
|
12506
|
+
],
|
|
12507
|
+
"formParams": [],
|
|
12508
|
+
"id": "redfin-search",
|
|
12509
|
+
"method": "GET",
|
|
12510
|
+
"paginatable": true,
|
|
12511
|
+
"path": "/redfin/search",
|
|
12512
|
+
"pathParams": [],
|
|
12513
|
+
"produces": [
|
|
12514
|
+
"application/json"
|
|
12515
|
+
],
|
|
12516
|
+
"queryParams": [
|
|
12517
|
+
{
|
|
12518
|
+
"in": "query",
|
|
12519
|
+
"name": "location",
|
|
12520
|
+
"type": "string"
|
|
12521
|
+
},
|
|
12522
|
+
{
|
|
12523
|
+
"in": "query",
|
|
12524
|
+
"name": "page",
|
|
12525
|
+
"type": "integer"
|
|
12526
|
+
},
|
|
12527
|
+
{
|
|
12528
|
+
"in": "query",
|
|
12529
|
+
"name": "region_id",
|
|
12530
|
+
"type": "integer"
|
|
12531
|
+
},
|
|
12532
|
+
{
|
|
12533
|
+
"in": "query",
|
|
12534
|
+
"name": "region_type",
|
|
12535
|
+
"type": "integer"
|
|
12536
|
+
},
|
|
12537
|
+
{
|
|
12538
|
+
"in": "query",
|
|
12539
|
+
"name": "status",
|
|
12540
|
+
"type": "string"
|
|
12541
|
+
},
|
|
12542
|
+
{
|
|
12543
|
+
"in": "query",
|
|
12544
|
+
"name": "min_price",
|
|
12545
|
+
"type": "integer"
|
|
12546
|
+
},
|
|
12547
|
+
{
|
|
12548
|
+
"in": "query",
|
|
12549
|
+
"name": "max_price",
|
|
12550
|
+
"type": "integer"
|
|
12551
|
+
},
|
|
12552
|
+
{
|
|
12553
|
+
"in": "query",
|
|
12554
|
+
"name": "min_beds",
|
|
12555
|
+
"type": "integer"
|
|
12556
|
+
},
|
|
12557
|
+
{
|
|
12558
|
+
"in": "query",
|
|
12559
|
+
"name": "min_baths",
|
|
12560
|
+
"type": "number"
|
|
12561
|
+
}
|
|
12562
|
+
],
|
|
12563
|
+
"security": [
|
|
12564
|
+
"ApiKeyAuth"
|
|
12565
|
+
]
|
|
12566
|
+
},
|
|
12567
|
+
"redfin-similar": {
|
|
12568
|
+
"bodyParam": null,
|
|
12569
|
+
"bodyRequired": false,
|
|
12570
|
+
"consumes": [
|
|
12571
|
+
"application/json"
|
|
12572
|
+
],
|
|
12573
|
+
"formParams": [],
|
|
12574
|
+
"id": "redfin-similar",
|
|
12575
|
+
"method": "GET",
|
|
12576
|
+
"path": "/redfin/similar",
|
|
12577
|
+
"pathParams": [],
|
|
12578
|
+
"produces": [
|
|
12579
|
+
"application/json"
|
|
12580
|
+
],
|
|
12581
|
+
"queryParams": [
|
|
12582
|
+
{
|
|
12583
|
+
"in": "query",
|
|
12584
|
+
"name": "property_id",
|
|
12585
|
+
"required": true,
|
|
12586
|
+
"type": "string"
|
|
12587
|
+
}
|
|
12588
|
+
],
|
|
12589
|
+
"security": [
|
|
12590
|
+
"ApiKeyAuth"
|
|
12591
|
+
]
|
|
12592
|
+
},
|
|
12371
12593
|
"referrals-click": {
|
|
12372
12594
|
"bodyParam": "request",
|
|
12373
12595
|
"bodyRequired": true,
|
|
@@ -17049,6 +17271,25 @@ export const operations = {
|
|
|
17049
17271
|
"JWTAuth"
|
|
17050
17272
|
]
|
|
17051
17273
|
},
|
|
17274
|
+
"web-scrape": {
|
|
17275
|
+
"bodyParam": "scrapeOption",
|
|
17276
|
+
"bodyRequired": true,
|
|
17277
|
+
"consumes": [
|
|
17278
|
+
"application/json"
|
|
17279
|
+
],
|
|
17280
|
+
"formParams": [],
|
|
17281
|
+
"id": "web-scrape",
|
|
17282
|
+
"method": "POST",
|
|
17283
|
+
"path": "/web/scrape",
|
|
17284
|
+
"pathParams": [],
|
|
17285
|
+
"produces": [
|
|
17286
|
+
"application/json"
|
|
17287
|
+
],
|
|
17288
|
+
"queryParams": [],
|
|
17289
|
+
"security": [
|
|
17290
|
+
"ApiKeyAuth"
|
|
17291
|
+
]
|
|
17292
|
+
},
|
|
17052
17293
|
"yahoo-finance-calendar": {
|
|
17053
17294
|
"bodyParam": null,
|
|
17054
17295
|
"bodyRequired": false,
|
|
@@ -19003,6 +19244,13 @@ export const groups = {
|
|
|
19003
19244
|
"userComments": "reddit-user-comments",
|
|
19004
19245
|
"userPosts": "reddit-user-posts"
|
|
19005
19246
|
},
|
|
19247
|
+
"redfin": {
|
|
19248
|
+
"estimate": "redfin-estimate",
|
|
19249
|
+
"property": "redfin-property",
|
|
19250
|
+
"regionTrends": "redfin-region-trends",
|
|
19251
|
+
"search": "redfin-search",
|
|
19252
|
+
"similar": "redfin-similar"
|
|
19253
|
+
},
|
|
19006
19254
|
"referrals": {
|
|
19007
19255
|
"click": "referrals-click",
|
|
19008
19256
|
"me": "referrals-me",
|
|
@@ -19151,6 +19399,11 @@ export const groups = {
|
|
|
19151
19399
|
"meApiKeysReveal": "user-me-api-keys-reveal",
|
|
19152
19400
|
"meApiKeysRotate": "user-me-api-keys-rotate"
|
|
19153
19401
|
},
|
|
19402
|
+
"web": {
|
|
19403
|
+
"antibotCheck": "antibot-check",
|
|
19404
|
+
"contact": "contact",
|
|
19405
|
+
"scrape": "web-scrape"
|
|
19406
|
+
},
|
|
19154
19407
|
"yahooFinance": {
|
|
19155
19408
|
"calendar": "yahoo-finance-calendar",
|
|
19156
19409
|
"calendars": "yahoo-finance-calendars",
|
|
@@ -19214,7 +19467,7 @@ export const groups = {
|
|
|
19214
19467
|
}
|
|
19215
19468
|
};
|
|
19216
19469
|
|
|
19217
|
-
export const operationCount =
|
|
19470
|
+
export const operationCount = 499;
|
|
19218
19471
|
|
|
19219
19472
|
// PascalCase aliases for every operation id, for discoverable, typo-safe
|
|
19220
19473
|
// dynamic calls: client.request(OperationIds.BingSearch, { q: "coffee" }).
|
|
@@ -19531,6 +19784,11 @@ export const OperationIds = Object.freeze({
|
|
|
19531
19784
|
"RedditTrends": "reddit-trends",
|
|
19532
19785
|
"RedditUserComments": "reddit-user-comments",
|
|
19533
19786
|
"RedditUserPosts": "reddit-user-posts",
|
|
19787
|
+
"RedfinEstimate": "redfin-estimate",
|
|
19788
|
+
"RedfinProperty": "redfin-property",
|
|
19789
|
+
"RedfinRegionTrends": "redfin-region-trends",
|
|
19790
|
+
"RedfinSearch": "redfin-search",
|
|
19791
|
+
"RedfinSimilar": "redfin-similar",
|
|
19534
19792
|
"ReferralsClick": "referrals-click",
|
|
19535
19793
|
"ReferralsMe": "referrals-me",
|
|
19536
19794
|
"ReferralsMeEvents": "referrals-me-events",
|
|
@@ -19655,6 +19913,9 @@ export const OperationIds = Object.freeze({
|
|
|
19655
19913
|
"UserMeApiKeys": "user-me-api-keys",
|
|
19656
19914
|
"UserMeApiKeysReveal": "user-me-api-keys-reveal",
|
|
19657
19915
|
"UserMeApiKeysRotate": "user-me-api-keys-rotate",
|
|
19916
|
+
"WebAntibotCheck": "antibot-check",
|
|
19917
|
+
"WebContact": "contact",
|
|
19918
|
+
"WebScrape": "web-scrape",
|
|
19658
19919
|
"YahooFinanceCalendar": "yahoo-finance-calendar",
|
|
19659
19920
|
"YahooFinanceCalendars": "yahoo-finance-calendars",
|
|
19660
19921
|
"YahooFinanceDownload": "yahoo-finance-download",
|