@51eat/sdk 0.0.57 → 0.0.58

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@51eat/sdk",
46
- "X-Fern-SDK-Version": "0.0.57",
47
- "User-Agent": "@51eat/sdk/0.0.57",
46
+ "X-Fern-SDK-Version": "0.0.58",
47
+ "User-Agent": "@51eat/sdk/0.0.58",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -22,7 +22,8 @@ export declare class ExploreClient {
22
22
  *
23
23
  * @example
24
24
  * await client.customer.explore.businesses({
25
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
25
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
26
+ * categories: "food-trucks,bakeries"
26
27
  * })
27
28
  */
28
29
  businesses(request: FiveOneEat.customer.BusinessesExploreRequest, requestOptions?: ExploreClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.BusinessesExploreResponse>;
@@ -67,7 +67,8 @@ class ExploreClient {
67
67
  *
68
68
  * @example
69
69
  * await client.customer.explore.businesses({
70
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
70
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
71
+ * categories: "food-trucks,bakeries"
71
72
  * })
72
73
  */
73
74
  businesses(request, requestOptions) {
@@ -76,10 +77,11 @@ class ExploreClient {
76
77
  __businesses(request, requestOptions) {
77
78
  return __awaiter(this, void 0, void 0, function* () {
78
79
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79
- const { bounds, zoom_level: zoomLevel } = request;
80
+ const { bounds, zoom_level: zoomLevel, categories } = request;
80
81
  const _queryParams = {
81
82
  bounds,
82
83
  zoom_level: zoomLevel,
84
+ categories,
83
85
  };
84
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
85
87
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
4
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
5
+ * categories: "food-trucks,bakeries"
5
6
  * }
6
7
  */
7
8
  export interface BusinessesExploreRequest {
@@ -9,4 +10,6 @@ export interface BusinessesExploreRequest {
9
10
  bounds: string;
10
11
  /** Map zoom level for optimization */
11
12
  zoom_level?: number;
13
+ /** Comma-separated category slugs to filter results */
14
+ categories?: string;
12
15
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.57";
1
+ export declare const SDK_VERSION = "0.0.58";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.57";
4
+ exports.SDK_VERSION = "0.0.58";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "0.0.57",
10
- "User-Agent": "@51eat/sdk/0.0.57",
9
+ "X-Fern-SDK-Version": "0.0.58",
10
+ "User-Agent": "@51eat/sdk/0.0.58",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -22,7 +22,8 @@ export declare class ExploreClient {
22
22
  *
23
23
  * @example
24
24
  * await client.customer.explore.businesses({
25
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
25
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
26
+ * categories: "food-trucks,bakeries"
26
27
  * })
27
28
  */
28
29
  businesses(request: FiveOneEat.customer.BusinessesExploreRequest, requestOptions?: ExploreClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.BusinessesExploreResponse>;
@@ -31,7 +31,8 @@ export class ExploreClient {
31
31
  *
32
32
  * @example
33
33
  * await client.customer.explore.businesses({
34
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
34
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
35
+ * categories: "food-trucks,bakeries"
35
36
  * })
36
37
  */
37
38
  businesses(request, requestOptions) {
@@ -40,10 +41,11 @@ export class ExploreClient {
40
41
  __businesses(request, requestOptions) {
41
42
  return __awaiter(this, void 0, void 0, function* () {
42
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
43
- const { bounds, zoom_level: zoomLevel } = request;
44
+ const { bounds, zoom_level: zoomLevel, categories } = request;
44
45
  const _queryParams = {
45
46
  bounds,
46
47
  zoom_level: zoomLevel,
48
+ categories,
47
49
  };
48
50
  const _authRequest = yield this._options.authProvider.getAuthRequest();
49
51
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * bounds: "43.5000,42.5000,-73.5000,-76.5000"
4
+ * bounds: "43.5000,42.5000,-73.5000,-76.5000",
5
+ * categories: "food-trucks,bakeries"
5
6
  * }
6
7
  */
7
8
  export interface BusinessesExploreRequest {
@@ -9,4 +10,6 @@ export interface BusinessesExploreRequest {
9
10
  bounds: string;
10
11
  /** Map zoom level for optimization */
11
12
  zoom_level?: number;
13
+ /** Comma-separated category slugs to filter results */
14
+ categories?: string;
12
15
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.57";
1
+ export declare const SDK_VERSION = "0.0.58";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.57";
1
+ export const SDK_VERSION = "0.0.58";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -10510,7 +10510,8 @@ Results are optimized for map display with essential business information.
10510
10510
 
10511
10511
  ```typescript
10512
10512
  await client.customer.explore.businesses({
10513
- bounds: "43.5000,42.5000,-73.5000,-76.5000"
10513
+ bounds: "43.5000,42.5000,-73.5000,-76.5000",
10514
+ categories: "food-trucks,bakeries"
10514
10515
  });
10515
10516
 
10516
10517
  ```