@crawlora-org/sdk 1.5.0-sdk.3 → 1.6.0-sdk.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlora-org/sdk",
3
- "version": "1.5.0-sdk.3",
3
+ "version": "1.6.0-sdk.3",
4
4
  "description": "JavaScript and TypeScript SDK for the public Crawlora API.",
5
5
  "keywords": [
6
6
  "crawlora",
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.5.0-sdk.3";
4
+ export const VERSION = "1.6.0-sdk.3";
5
5
  const DEFAULT_USER_AGENT = `crawlora-js-sdk/${VERSION}`;
6
6
 
7
7
  export class CrawloraError extends Error {
package/src/operations.js CHANGED
@@ -1297,6 +1297,52 @@ export const operations = {
1297
1297
  "ApiKeyAuth"
1298
1298
  ]
1299
1299
  },
1300
+ "brand-retrieve": {
1301
+ "bodyParam": null,
1302
+ "bodyRequired": false,
1303
+ "consumes": [
1304
+ "application/json"
1305
+ ],
1306
+ "formParams": [],
1307
+ "id": "brand-retrieve",
1308
+ "method": "GET",
1309
+ "path": "/brand/retrieve",
1310
+ "pathParams": [],
1311
+ "produces": [
1312
+ "application/json"
1313
+ ],
1314
+ "queryParams": [
1315
+ {
1316
+ "in": "query",
1317
+ "name": "domain",
1318
+ "required": true,
1319
+ "type": "string"
1320
+ },
1321
+ {
1322
+ "in": "query",
1323
+ "name": "force_language",
1324
+ "type": "string"
1325
+ },
1326
+ {
1327
+ "in": "query",
1328
+ "name": "maxSpeed",
1329
+ "type": "boolean"
1330
+ },
1331
+ {
1332
+ "in": "query",
1333
+ "name": "maxAgeMs",
1334
+ "type": "integer"
1335
+ },
1336
+ {
1337
+ "in": "query",
1338
+ "name": "timeoutMS",
1339
+ "type": "integer"
1340
+ }
1341
+ ],
1342
+ "security": [
1343
+ "ApiKeyAuth"
1344
+ ]
1345
+ },
1300
1346
  "brave-images": {
1301
1347
  "bodyParam": null,
1302
1348
  "bodyRequired": false,
@@ -4761,6 +4807,53 @@ export const operations = {
4761
4807
  "ApiKeyAuth"
4762
4808
  ]
4763
4809
  },
4810
+ "google-news": {
4811
+ "bodyParam": null,
4812
+ "bodyRequired": false,
4813
+ "consumes": [
4814
+ "application/json"
4815
+ ],
4816
+ "formParams": [],
4817
+ "id": "google-news",
4818
+ "method": "GET",
4819
+ "paginatable": true,
4820
+ "path": "/google/news",
4821
+ "pathParams": [],
4822
+ "produces": [
4823
+ "application/json"
4824
+ ],
4825
+ "queryParams": [
4826
+ {
4827
+ "in": "query",
4828
+ "name": "q",
4829
+ "required": true,
4830
+ "type": "string"
4831
+ },
4832
+ {
4833
+ "in": "query",
4834
+ "name": "page",
4835
+ "type": "integer"
4836
+ },
4837
+ {
4838
+ "in": "query",
4839
+ "name": "count",
4840
+ "type": "integer"
4841
+ },
4842
+ {
4843
+ "in": "query",
4844
+ "name": "country",
4845
+ "type": "string"
4846
+ },
4847
+ {
4848
+ "in": "query",
4849
+ "name": "lang",
4850
+ "type": "string"
4851
+ }
4852
+ ],
4853
+ "security": [
4854
+ "ApiKeyAuth"
4855
+ ]
4856
+ },
4764
4857
  "google-search": {
4765
4858
  "bodyParam": "searchOption",
4766
4859
  "bodyRequired": true,
@@ -5373,6 +5466,53 @@ export const operations = {
5373
5466
  "ApiKeyAuth"
5374
5467
  ]
5375
5468
  },
5469
+ "google-videos": {
5470
+ "bodyParam": null,
5471
+ "bodyRequired": false,
5472
+ "consumes": [
5473
+ "application/json"
5474
+ ],
5475
+ "formParams": [],
5476
+ "id": "google-videos",
5477
+ "method": "GET",
5478
+ "paginatable": true,
5479
+ "path": "/google/videos",
5480
+ "pathParams": [],
5481
+ "produces": [
5482
+ "application/json"
5483
+ ],
5484
+ "queryParams": [
5485
+ {
5486
+ "in": "query",
5487
+ "name": "q",
5488
+ "required": true,
5489
+ "type": "string"
5490
+ },
5491
+ {
5492
+ "in": "query",
5493
+ "name": "page",
5494
+ "type": "integer"
5495
+ },
5496
+ {
5497
+ "in": "query",
5498
+ "name": "count",
5499
+ "type": "integer"
5500
+ },
5501
+ {
5502
+ "in": "query",
5503
+ "name": "country",
5504
+ "type": "string"
5505
+ },
5506
+ {
5507
+ "in": "query",
5508
+ "name": "lang",
5509
+ "type": "string"
5510
+ }
5511
+ ],
5512
+ "security": [
5513
+ "ApiKeyAuth"
5514
+ ]
5515
+ },
5376
5516
  "googleplay-app": {
5377
5517
  "bodyParam": null,
5378
5518
  "bodyRequired": false,
@@ -7206,6 +7346,194 @@ export const operations = {
7206
7346
  "queryParams": [],
7207
7347
  "security": []
7208
7348
  },
7349
+ "reddit-comments": {
7350
+ "bodyParam": null,
7351
+ "bodyRequired": false,
7352
+ "consumes": [
7353
+ "application/json"
7354
+ ],
7355
+ "formParams": [],
7356
+ "id": "reddit-comments",
7357
+ "method": "GET",
7358
+ "path": "/reddit/comments/{id}",
7359
+ "pathParams": [
7360
+ "id"
7361
+ ],
7362
+ "produces": [
7363
+ "application/json"
7364
+ ],
7365
+ "queryParams": [
7366
+ {
7367
+ "enum": [
7368
+ "confidence",
7369
+ "top",
7370
+ "new",
7371
+ "controversial",
7372
+ "old",
7373
+ "qa"
7374
+ ],
7375
+ "in": "query",
7376
+ "name": "sort",
7377
+ "type": "string"
7378
+ },
7379
+ {
7380
+ "in": "query",
7381
+ "name": "limit",
7382
+ "type": "integer"
7383
+ },
7384
+ {
7385
+ "in": "query",
7386
+ "name": "depth",
7387
+ "type": "integer"
7388
+ }
7389
+ ],
7390
+ "security": [
7391
+ "ApiKeyAuth"
7392
+ ]
7393
+ },
7394
+ "reddit-post": {
7395
+ "bodyParam": null,
7396
+ "bodyRequired": false,
7397
+ "consumes": [
7398
+ "application/json"
7399
+ ],
7400
+ "formParams": [],
7401
+ "id": "reddit-post",
7402
+ "method": "GET",
7403
+ "path": "/reddit/post/{id}",
7404
+ "pathParams": [
7405
+ "id"
7406
+ ],
7407
+ "produces": [
7408
+ "application/json"
7409
+ ],
7410
+ "queryParams": [],
7411
+ "security": [
7412
+ "ApiKeyAuth"
7413
+ ]
7414
+ },
7415
+ "reddit-search": {
7416
+ "bodyParam": null,
7417
+ "bodyRequired": false,
7418
+ "consumes": [
7419
+ "application/json"
7420
+ ],
7421
+ "formParams": [],
7422
+ "id": "reddit-search",
7423
+ "method": "GET",
7424
+ "path": "/reddit/search",
7425
+ "pathParams": [],
7426
+ "produces": [
7427
+ "application/json"
7428
+ ],
7429
+ "queryParams": [
7430
+ {
7431
+ "in": "query",
7432
+ "name": "q",
7433
+ "required": true,
7434
+ "type": "string"
7435
+ },
7436
+ {
7437
+ "in": "query",
7438
+ "name": "subreddit",
7439
+ "type": "string"
7440
+ },
7441
+ {
7442
+ "enum": [
7443
+ "relevance",
7444
+ "hot",
7445
+ "new",
7446
+ "top",
7447
+ "comments"
7448
+ ],
7449
+ "in": "query",
7450
+ "name": "sort",
7451
+ "type": "string"
7452
+ },
7453
+ {
7454
+ "enum": [
7455
+ "hour",
7456
+ "day",
7457
+ "week",
7458
+ "month",
7459
+ "year",
7460
+ "all"
7461
+ ],
7462
+ "in": "query",
7463
+ "name": "time",
7464
+ "type": "string"
7465
+ },
7466
+ {
7467
+ "in": "query",
7468
+ "name": "limit",
7469
+ "type": "integer"
7470
+ },
7471
+ {
7472
+ "in": "query",
7473
+ "name": "after",
7474
+ "type": "string"
7475
+ }
7476
+ ],
7477
+ "security": [
7478
+ "ApiKeyAuth"
7479
+ ]
7480
+ },
7481
+ "reddit-subreddit-posts": {
7482
+ "bodyParam": null,
7483
+ "bodyRequired": false,
7484
+ "consumes": [
7485
+ "application/json"
7486
+ ],
7487
+ "formParams": [],
7488
+ "id": "reddit-subreddit-posts",
7489
+ "method": "GET",
7490
+ "path": "/reddit/subreddit/{subreddit}/posts",
7491
+ "pathParams": [
7492
+ "subreddit"
7493
+ ],
7494
+ "produces": [
7495
+ "application/json"
7496
+ ],
7497
+ "queryParams": [
7498
+ {
7499
+ "enum": [
7500
+ "hot",
7501
+ "new",
7502
+ "top",
7503
+ "rising"
7504
+ ],
7505
+ "in": "query",
7506
+ "name": "sort",
7507
+ "type": "string"
7508
+ },
7509
+ {
7510
+ "enum": [
7511
+ "hour",
7512
+ "day",
7513
+ "week",
7514
+ "month",
7515
+ "year",
7516
+ "all"
7517
+ ],
7518
+ "in": "query",
7519
+ "name": "time",
7520
+ "type": "string"
7521
+ },
7522
+ {
7523
+ "in": "query",
7524
+ "name": "limit",
7525
+ "type": "integer"
7526
+ },
7527
+ {
7528
+ "in": "query",
7529
+ "name": "after",
7530
+ "type": "string"
7531
+ }
7532
+ ],
7533
+ "security": [
7534
+ "ApiKeyAuth"
7535
+ ]
7536
+ },
7209
7537
  "referrals-click": {
7210
7538
  "bodyParam": "request",
7211
7539
  "bodyRequired": true,
@@ -11342,7 +11670,7 @@ export const operations = {
11342
11670
  }
11343
11671
  ],
11344
11672
  "security": [
11345
- "JWTAuth"
11673
+ "ApiKeyAuth"
11346
11674
  ]
11347
11675
  },
11348
11676
  "usage-me-overview": {
@@ -11384,7 +11712,7 @@ export const operations = {
11384
11712
  }
11385
11713
  ],
11386
11714
  "security": [
11387
- "JWTAuth"
11715
+ "ApiKeyAuth"
11388
11716
  ]
11389
11717
  },
11390
11718
  "usage-me-recent-ips": {
@@ -11431,7 +11759,7 @@ export const operations = {
11431
11759
  }
11432
11760
  ],
11433
11761
  "security": [
11434
- "JWTAuth"
11762
+ "ApiKeyAuth"
11435
11763
  ]
11436
11764
  },
11437
11765
  "usage-me-timeseries": {
@@ -11487,7 +11815,7 @@ export const operations = {
11487
11815
  }
11488
11816
  ],
11489
11817
  "security": [
11490
- "JWTAuth"
11818
+ "ApiKeyAuth"
11491
11819
  ]
11492
11820
  },
11493
11821
  "user-me": {
@@ -11702,6 +12030,61 @@ export const operations = {
11702
12030
  "ApiKeyAuth"
11703
12031
  ]
11704
12032
  },
12033
+ "yahoo-finance-lookup": {
12034
+ "bodyParam": null,
12035
+ "bodyRequired": false,
12036
+ "consumes": [
12037
+ "application/json"
12038
+ ],
12039
+ "cursorParams": [
12040
+ "start"
12041
+ ],
12042
+ "formParams": [],
12043
+ "id": "yahoo-finance-lookup",
12044
+ "method": "GET",
12045
+ "paginatable": true,
12046
+ "path": "/yahoo-finance/lookup",
12047
+ "pathParams": [],
12048
+ "produces": [
12049
+ "application/json"
12050
+ ],
12051
+ "queryParams": [
12052
+ {
12053
+ "in": "query",
12054
+ "name": "query",
12055
+ "required": true,
12056
+ "type": "string"
12057
+ },
12058
+ {
12059
+ "enum": [
12060
+ "all",
12061
+ "equity",
12062
+ "etf",
12063
+ "mutualfund",
12064
+ "index",
12065
+ "future",
12066
+ "currency",
12067
+ "cryptocurrency"
12068
+ ],
12069
+ "in": "query",
12070
+ "name": "type",
12071
+ "type": "string"
12072
+ },
12073
+ {
12074
+ "in": "query",
12075
+ "name": "count",
12076
+ "type": "integer"
12077
+ },
12078
+ {
12079
+ "in": "query",
12080
+ "name": "start",
12081
+ "type": "integer"
12082
+ }
12083
+ ],
12084
+ "security": [
12085
+ "ApiKeyAuth"
12086
+ ]
12087
+ },
11705
12088
  "yahoo-finance-market-status": {
11706
12089
  "bodyParam": null,
11707
12090
  "bodyRequired": false,
@@ -13152,6 +13535,9 @@ export const groups = {
13152
13535
  "suggest": "bing-suggest",
13153
13536
  "videos": "bing-videos"
13154
13537
  },
13538
+ "brand": {
13539
+ "retrieve": "brand-retrieve"
13540
+ },
13155
13541
  "brave": {
13156
13542
  "images": "brave-images",
13157
13543
  "news": "brave-news",
@@ -13226,6 +13612,7 @@ export const groups = {
13226
13612
  "jobs": "google-jobs",
13227
13613
  "mapPlace": "google-map-place",
13228
13614
  "mapSearch": "google-map-search",
13615
+ "news": "google-news",
13229
13616
  "search": "google-search",
13230
13617
  "suggest": "google-suggest",
13231
13618
  "trendsCategories": "google-trends-categories",
@@ -13238,7 +13625,8 @@ export const groups = {
13238
13625
  "trendsExploreTopQueries": "google-trends-explore-top-queries",
13239
13626
  "trendsLocations": "google-trends-locations",
13240
13627
  "trendsTrending": "google-trends-trending",
13241
- "trendsTrendingDetail": "google-trends-trending-detail"
13628
+ "trendsTrendingDetail": "google-trends-trending-detail",
13629
+ "videos": "google-videos"
13242
13630
  },
13243
13631
  "googlePlay": {
13244
13632
  "app": "googleplay-app",
@@ -13302,6 +13690,12 @@ export const groups = {
13302
13690
  "reviews": "producthunt-reviews",
13303
13691
  "search": "producthunt-search"
13304
13692
  },
13693
+ "reddit": {
13694
+ "comments": "reddit-comments",
13695
+ "post": "reddit-post",
13696
+ "search": "reddit-search",
13697
+ "subredditPosts": "reddit-subreddit-posts"
13698
+ },
13305
13699
  "referrals": {
13306
13700
  "click": "referrals-click",
13307
13701
  "me": "referrals-me",
@@ -13445,6 +13839,7 @@ export const groups = {
13445
13839
  "download": "yahoo-finance-download",
13446
13840
  "industries": "yahoo-finance-industries",
13447
13841
  "industry": "yahoo-finance-industry",
13842
+ "lookup": "yahoo-finance-lookup",
13448
13843
  "marketStatus": "yahoo-finance-market-status",
13449
13844
  "marketSummary": "yahoo-finance-market-summary",
13450
13845
  "screener": "yahoo-finance-screener",
@@ -13501,7 +13896,7 @@ export const groups = {
13501
13896
  }
13502
13897
  };
13503
13898
 
13504
- export const operationCount = 330;
13899
+ export const operationCount = 338;
13505
13900
 
13506
13901
  // PascalCase aliases for every operation id, for discoverable, typo-safe
13507
13902
  // dynamic calls: client.request(OperationIds.BingSearch, { q: "coffee" }).
@@ -13541,6 +13936,7 @@ export const OperationIds = Object.freeze({
13541
13936
  "BingSearch": "bing-search",
13542
13937
  "BingSuggest": "bing-suggest",
13543
13938
  "BingVideos": "bing-videos",
13939
+ "BrandRetrieve": "brand-retrieve",
13544
13940
  "BraveImages": "brave-images",
13545
13941
  "BraveNews": "brave-news",
13546
13942
  "BraveSearch": "brave-search",
@@ -13604,6 +14000,7 @@ export const OperationIds = Object.freeze({
13604
14000
  "GoogleJobs": "google-jobs",
13605
14001
  "GoogleMapPlace": "google-map-place",
13606
14002
  "GoogleMapSearch": "google-map-search",
14003
+ "GoogleNews": "google-news",
13607
14004
  "GooglePlayApp": "googleplay-app",
13608
14005
  "GooglePlayCategories": "googleplay-categories",
13609
14006
  "GooglePlayDatasafety": "googleplay-datasafety",
@@ -13627,6 +14024,7 @@ export const OperationIds = Object.freeze({
13627
14024
  "GoogleTrendsLocations": "google-trends-locations",
13628
14025
  "GoogleTrendsTrending": "google-trends-trending",
13629
14026
  "GoogleTrendsTrendingDetail": "google-trends-trending-detail",
14027
+ "GoogleVideos": "google-videos",
13630
14028
  "InstagramPost": "instagram-post",
13631
14029
  "InstagramProfile": "instagram-profile",
13632
14030
  "InstagramReels": "instagram-reels",
@@ -13667,6 +14065,10 @@ export const OperationIds = Object.freeze({
13667
14065
  "ProductHuntProduct": "producthunt-product",
13668
14066
  "ProductHuntReviews": "producthunt-reviews",
13669
14067
  "ProductHuntSearch": "producthunt-search",
14068
+ "RedditComments": "reddit-comments",
14069
+ "RedditPost": "reddit-post",
14070
+ "RedditSearch": "reddit-search",
14071
+ "RedditSubredditPosts": "reddit-subreddit-posts",
13670
14072
  "ReferralsClick": "referrals-click",
13671
14073
  "ReferralsMe": "referrals-me",
13672
14074
  "ReferralsMeEvents": "referrals-me-events",
@@ -13787,6 +14189,7 @@ export const OperationIds = Object.freeze({
13787
14189
  "YahooFinanceDownload": "yahoo-finance-download",
13788
14190
  "YahooFinanceIndustries": "yahoo-finance-industries",
13789
14191
  "YahooFinanceIndustry": "yahoo-finance-industry",
14192
+ "YahooFinanceLookup": "yahoo-finance-lookup",
13790
14193
  "YahooFinanceMarketStatus": "yahoo-finance-market-status",
13791
14194
  "YahooFinanceMarketSummary": "yahoo-finance-market-summary",
13792
14195
  "YahooFinanceScreener": "yahoo-finance-screener",