@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/discovery/client/Client.js +3 -3
- package/dist/cjs/api/resources/discovery/client/requests/GetDiscoveryFeedRequest.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/discovery/client/Client.mjs +3 -3
- package/dist/esm/api/resources/discovery/client/requests/GetDiscoveryFeedRequest.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
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[]
|
|
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[]
|
|
150
|
-
"certification_ids[]
|
|
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[]
|
|
15
|
+
"cuisine_ids[]"?: number | number[];
|
|
16
16
|
/** Filter businesses by certification IDs */
|
|
17
|
-
"certification_ids[]
|
|
17
|
+
"certification_ids[]"?: number | number[];
|
|
18
18
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.9";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
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[]
|
|
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[]
|
|
114
|
-
"certification_ids[]
|
|
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[]
|
|
15
|
+
"cuisine_ids[]"?: number | number[];
|
|
16
16
|
/** Filter businesses by certification IDs */
|
|
17
|
-
"certification_ids[]
|
|
17
|
+
"certification_ids[]"?: number | number[];
|
|
18
18
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.9";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.9";
|