@crawlora-org/sdk 1.47.0-sdk.1 → 1.47.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlora-org/sdk",
3
- "version": "1.47.0-sdk.1",
3
+ "version": "1.47.1-sdk.1",
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.47.0-sdk.1";
4
+ export const VERSION = "1.47.1-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
@@ -23769,6 +23769,7 @@ export const operations = {
23769
23769
  "formParams": [],
23770
23770
  "id": "datasets-bbb-businesses-facets",
23771
23771
  "method": "GET",
23772
+ "paginatable": true,
23772
23773
  "path": "/datasets/bbb-businesses/facets",
23773
23774
  "pathParams": [],
23774
23775
  "produces": [
@@ -23777,6 +23778,7 @@ export const operations = {
23777
23778
  "queryParams": [
23778
23779
  {
23779
23780
  "enum": [
23781
+ "country",
23780
23782
  "category",
23781
23783
  "state",
23782
23784
  "city",
@@ -23792,6 +23794,16 @@ export const operations = {
23792
23794
  "required": true,
23793
23795
  "type": "string"
23794
23796
  },
23797
+ {
23798
+ "in": "query",
23799
+ "name": "limit",
23800
+ "type": "integer"
23801
+ },
23802
+ {
23803
+ "in": "query",
23804
+ "name": "offset",
23805
+ "type": "integer"
23806
+ },
23795
23807
  {
23796
23808
  "in": "query",
23797
23809
  "name": "q",
@@ -23802,6 +23814,15 @@ export const operations = {
23802
23814
  "name": "category",
23803
23815
  "type": "string"
23804
23816
  },
23817
+ {
23818
+ "enum": [
23819
+ "us",
23820
+ "ca"
23821
+ ],
23822
+ "in": "query",
23823
+ "name": "country",
23824
+ "type": "string"
23825
+ },
23805
23826
  {
23806
23827
  "in": "query",
23807
23828
  "name": "state",
@@ -23832,6 +23853,11 @@ export const operations = {
23832
23853
  "name": "rating",
23833
23854
  "type": "string"
23834
23855
  },
23856
+ {
23857
+ "in": "query",
23858
+ "name": "min_rating_rank",
23859
+ "type": "integer"
23860
+ },
23835
23861
  {
23836
23862
  "in": "query",
23837
23863
  "name": "accredited",
@@ -23914,6 +23940,15 @@ export const operations = {
23914
23940
  "name": "category",
23915
23941
  "type": "string"
23916
23942
  },
23943
+ {
23944
+ "enum": [
23945
+ "us",
23946
+ "ca"
23947
+ ],
23948
+ "in": "query",
23949
+ "name": "country",
23950
+ "type": "string"
23951
+ },
23917
23952
  {
23918
23953
  "in": "query",
23919
23954
  "name": "state",
package/src/types.d.ts CHANGED
@@ -4723,8 +4723,10 @@ export interface ModelBbbBusinessResponse {
4723
4723
  "local_bbb_url"?: string;
4724
4724
  "more_info_url"?: string;
4725
4725
  "name"?: string;
4726
+ "notice"?: string;
4726
4727
  "phone"?: string;
4727
4728
  "products_and_services"?: Array<string>;
4729
+ "profile_under_review"?: boolean;
4728
4730
  "rating"?: string;
4729
4731
  "rating_reasons"?: Array<string>;
4730
4732
  "social_media"?: Array<string>;
@@ -4783,8 +4785,10 @@ export interface ModelBbbComplaintsResponse {
4783
4785
  "filed_last_12_months"?: number;
4784
4786
  "has_more"?: boolean;
4785
4787
  "hidden_complaints"?: number;
4788
+ "notice"?: string;
4786
4789
  "page"?: number;
4787
4790
  "period_text"?: string;
4791
+ "profile_under_review"?: boolean;
4788
4792
  "published_complaints"?: number;
4789
4793
  "source_url"?: string;
4790
4794
  "submit_complaint_url"?: string;
@@ -4930,6 +4934,7 @@ export interface ModelBbbdirectoryCountryRegions {
4930
4934
  export interface ModelBbbdirectoryLocalBbbchapter {
4931
4935
  "id"?: string;
4932
4936
  "name"?: string;
4937
+ "news_url"?: string;
4933
4938
  "offices"?: Array<ModelBbbdirectoryOffice>;
4934
4939
  "open_to_public"?: boolean;
4935
4940
  "url"?: string;
@@ -4941,6 +4946,7 @@ export interface ModelBbbdirectoryLocalBbbresponse {
4941
4946
  "id"?: string;
4942
4947
  "languages"?: Array<string>;
4943
4948
  "name"?: string;
4949
+ "news_url"?: string;
4944
4950
  "offices"?: Array<ModelBbbdirectoryOffice>;
4945
4951
  "open_to_public"?: boolean;
4946
4952
  "service_territory"?: Array<string>;
@@ -5055,11 +5061,15 @@ export interface ModelBbbnewsNewsItem {
5055
5061
  }
5056
5062
 
5057
5063
  export interface ModelBbbnewsNewsResponse {
5058
- "country"?: string;
5064
+ "city"?: string;
5065
+ "country"?: "us" | "ca";
5059
5066
  "items"?: Array<ModelBbbnewsNewsItem>;
5067
+ "local_bbb_id"?: string;
5068
+ "local_bbb_name"?: string;
5060
5069
  "page"?: number;
5061
5070
  "page_size"?: number;
5062
5071
  "source_url"?: string;
5072
+ "state"?: string;
5063
5073
  "topic"?: string;
5064
5074
  "total"?: number;
5065
5075
  }
@@ -5071,8 +5081,12 @@ export interface ModelBbbnewsTopic {
5071
5081
  }
5072
5082
 
5073
5083
  export interface ModelBbbnewsTopicsResponse {
5074
- "country"?: string;
5084
+ "city"?: string;
5085
+ "country"?: "us" | "ca";
5086
+ "local_bbb_id"?: string;
5087
+ "local_bbb_name"?: string;
5075
5088
  "source_url"?: string;
5089
+ "state"?: string;
5076
5090
  "topics"?: Array<ModelBbbnewsTopic>;
5077
5091
  }
5078
5092
 
@@ -13318,7 +13332,14 @@ export interface ModelDatasetsAppsSearchResponse {
13318
13332
  export interface ModelDatasetsBbbbusinessesFacetResponse {
13319
13333
  "dataset"?: string;
13320
13334
  "facet"?: string;
13335
+ "has_more"?: boolean;
13321
13336
  "items"?: Array<ModelEsBbbbusinessesFacetItem>;
13337
+ "limit"?: number;
13338
+ "missing"?: number;
13339
+ "offset"?: number;
13340
+ "total"?: number;
13341
+ "total_values"?: number;
13342
+ "values_truncated"?: boolean;
13322
13343
  }
13323
13344
 
13324
13345
  export interface ModelDatasetsBbbbusinessesSearchResponse {
@@ -77135,12 +77156,16 @@ export interface DatasetsAppsSearchParams {
77135
77156
 
77136
77157
  export type DatasetsBbbBusinessesFacetsResponse = CrawloraResponse<ModelDatasetsBbbBusinessesFacetResponseDoc>;
77137
77158
  export interface DatasetsBbbBusinessesFacetsParams {
77138
- "facet": "category" | "state" | "city" | "rating" | "accredited" | "entity_type" | "run_id" | "alert_title" | "has_alerts";
77159
+ "facet": "country" | "category" | "state" | "city" | "rating" | "accredited" | "entity_type" | "run_id" | "alert_title" | "has_alerts";
77160
+ "limit"?: number;
77161
+ "offset"?: number;
77139
77162
  "q"?: string;
77140
77163
  "category"?: string;
77164
+ "country"?: "us" | "ca";
77141
77165
  "state"?: string;
77142
77166
  "city"?: string;
77143
77167
  "rating"?: "A+" | "A" | "A-" | "B+" | "B" | "B-" | "C+" | "C" | "C-" | "D+" | "D" | "D-" | "F";
77168
+ "min_rating_rank"?: number;
77144
77169
  "accredited"?: boolean;
77145
77170
  "has_alerts"?: boolean;
77146
77171
  "alert_title"?: string;
@@ -77158,6 +77183,7 @@ export type DatasetsBbbBusinessesSearchResponse = CrawloraResponse<ModelDatasets
77158
77183
  export interface DatasetsBbbBusinessesSearchParams {
77159
77184
  "q"?: string;
77160
77185
  "category"?: string;
77186
+ "country"?: "us" | "ca";
77161
77187
  "state"?: string;
77162
77188
  "city"?: string;
77163
77189
  "rating"?: "A+" | "A" | "A-" | "B+" | "B" | "B-" | "C+" | "C" | "C-" | "D+" | "D" | "D-" | "F";