@51eat/sdk 0.0.8 → 0.0.9

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.8",
47
- "User-Agent": "@51eat/sdk/0.0.8",
46
+ "X-Fern-SDK-Version": "0.0.9",
47
+ "User-Agent": "@51eat/sdk/0.0.9",
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);
@@ -141,13 +141,13 @@ class DiscoveryClient {
141
141
  __getDiscoveryFeed() {
142
142
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
143
143
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
144
- const { page, per_page: perPage, search, "cuisine_ids[][]": cuisineIdsArrayArray, "certification_ids[][]": certificationIdsArrayArray, } = request;
144
+ const { page, per_page: perPage, search, "cuisine_ids[]": cuisineIdsArray, "certification_ids[]": certificationIdsArray, } = request;
145
145
  const _queryParams = {
146
146
  page,
147
147
  per_page: perPage,
148
148
  search,
149
- "cuisine_ids[][]": cuisineIdsArrayArray,
150
- "certification_ids[][]": certificationIdsArrayArray,
149
+ "cuisine_ids[]": cuisineIdsArray,
150
+ "certification_ids[]": certificationIdsArray,
151
151
  };
152
152
  const _authRequest = yield this._options.authProvider.getAuthRequest();
153
153
  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);
@@ -12,7 +12,7 @@ export interface GetDiscoveryFeedRequest {
12
12
  /** Search term to filter businesses within categories */
13
13
  search?: string;
14
14
  /** Filter businesses by cuisine IDs */
15
- "cuisine_ids[][]"?: string | string[];
15
+ "cuisine_ids[]"?: number | number[];
16
16
  /** Filter businesses by certification IDs */
17
- "certification_ids[][]"?: string | string[];
17
+ "certification_ids[]"?: number | number[];
18
18
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.8";
1
+ export declare const SDK_VERSION = "0.0.9";
@@ -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.8";
4
+ exports.SDK_VERSION = "0.0.9";
@@ -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.8",
10
- "User-Agent": "@51eat/sdk/0.0.8",
9
+ "X-Fern-SDK-Version": "0.0.9",
10
+ "User-Agent": "@51eat/sdk/0.0.9",
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);
@@ -105,13 +105,13 @@ export class DiscoveryClient {
105
105
  __getDiscoveryFeed() {
106
106
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
107
107
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
108
- const { page, per_page: perPage, search, "cuisine_ids[][]": cuisineIdsArrayArray, "certification_ids[][]": certificationIdsArrayArray, } = request;
108
+ const { page, per_page: perPage, search, "cuisine_ids[]": cuisineIdsArray, "certification_ids[]": certificationIdsArray, } = request;
109
109
  const _queryParams = {
110
110
  page,
111
111
  per_page: perPage,
112
112
  search,
113
- "cuisine_ids[][]": cuisineIdsArrayArray,
114
- "certification_ids[][]": certificationIdsArrayArray,
113
+ "cuisine_ids[]": cuisineIdsArray,
114
+ "certification_ids[]": certificationIdsArray,
115
115
  };
116
116
  const _authRequest = yield this._options.authProvider.getAuthRequest();
117
117
  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);
@@ -12,7 +12,7 @@ export interface GetDiscoveryFeedRequest {
12
12
  /** Search term to filter businesses within categories */
13
13
  search?: string;
14
14
  /** Filter businesses by cuisine IDs */
15
- "cuisine_ids[][]"?: string | string[];
15
+ "cuisine_ids[]"?: number | number[];
16
16
  /** Filter businesses by certification IDs */
17
- "certification_ids[][]"?: string | string[];
17
+ "certification_ids[]"?: number | number[];
18
18
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.8";
1
+ export declare const SDK_VERSION = "0.0.9";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.8";
1
+ export const SDK_VERSION = "0.0.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@51eat/sdk",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",