@51eat/sdk 0.0.22 → 0.0.23
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/business/client/Client.d.ts +12 -0
- package/dist/cjs/api/resources/business/client/Client.js +30 -10
- package/dist/cjs/api/resources/business/resources/businesses/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/Client.js +260 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/businesses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/businesses/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/businesses/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/businesses/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/categories/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/categories/client/Client.js +96 -0
- package/dist/cjs/api/resources/business/resources/categories/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/categories/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/categories/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/categories/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/categories/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/categories/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/Client.js +96 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/certifications/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/certifications/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/certifications/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/certifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/certifications/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/Client.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/Client.js +96 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/cuisines/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/cuisines/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/cuisines/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/cuisines/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/cuisines/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/index.js +6 -1
- 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/business/client/Client.d.mts +12 -0
- package/dist/esm/api/resources/business/client/Client.mjs +20 -0
- package/dist/esm/api/resources/business/resources/businesses/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/business/resources/businesses/client/Client.mjs +223 -0
- package/dist/esm/api/resources/business/resources/businesses/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/businesses/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/businesses/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/businesses/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/businesses/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/businesses/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/categories/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/categories/client/Client.mjs +59 -0
- package/dist/esm/api/resources/business/resources/categories/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/categories/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/categories/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/categories/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/categories/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/categories/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/certifications/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/certifications/client/Client.mjs +59 -0
- package/dist/esm/api/resources/business/resources/certifications/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/certifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/certifications/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/certifications/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/certifications/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/certifications/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/Client.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/Client.mjs +59 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/cuisines/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/cuisines/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/cuisines/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +45 -1
- package/reference.md +362 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
|
+
export class CuisinesClient {
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @param {CuisinesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.business.cuisines.list()
|
|
26
|
+
*/
|
|
27
|
+
list(requestOptions) {
|
|
28
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
29
|
+
}
|
|
30
|
+
__list(requestOptions) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
33
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
34
|
+
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);
|
|
35
|
+
const _response = yield core.fetcher({
|
|
36
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/cuisines"),
|
|
37
|
+
method: "GET",
|
|
38
|
+
headers: _headers,
|
|
39
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
41
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
42
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
43
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
44
|
+
logging: this._options.logging,
|
|
45
|
+
});
|
|
46
|
+
if (_response.ok) {
|
|
47
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
48
|
+
}
|
|
49
|
+
if (_response.error.reason === "status-code") {
|
|
50
|
+
throw new errors.FiveOneEatError({
|
|
51
|
+
statusCode: _response.error.statusCode,
|
|
52
|
+
body: _response.error.body,
|
|
53
|
+
rawResponse: _response.rawResponse,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/cuisines");
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -4,6 +4,11 @@ export * from "./auth/types/index.mjs";
|
|
|
4
4
|
export * from "./bulletins/client/requests/index.mjs";
|
|
5
5
|
export * as bulletins from "./bulletins/index.mjs";
|
|
6
6
|
export * from "./bulletins/types/index.mjs";
|
|
7
|
+
export * from "./businesses/client/requests/index.mjs";
|
|
8
|
+
export * as businesses from "./businesses/index.mjs";
|
|
9
|
+
export * as categories from "./categories/index.mjs";
|
|
10
|
+
export * as certifications from "./certifications/index.mjs";
|
|
11
|
+
export * as cuisines from "./cuisines/index.mjs";
|
|
7
12
|
export * from "./gallery/client/requests/index.mjs";
|
|
8
13
|
export * as gallery from "./gallery/index.mjs";
|
|
9
14
|
export * from "./gallery/types/index.mjs";
|
|
@@ -4,6 +4,11 @@ export * from "./auth/types/index.mjs";
|
|
|
4
4
|
export * from "./bulletins/client/requests/index.mjs";
|
|
5
5
|
export * as bulletins from "./bulletins/index.mjs";
|
|
6
6
|
export * from "./bulletins/types/index.mjs";
|
|
7
|
+
export * from "./businesses/client/requests/index.mjs";
|
|
8
|
+
export * as businesses from "./businesses/index.mjs";
|
|
9
|
+
export * as categories from "./categories/index.mjs";
|
|
10
|
+
export * as certifications from "./certifications/index.mjs";
|
|
11
|
+
export * as cuisines from "./cuisines/index.mjs";
|
|
7
12
|
export * from "./gallery/client/requests/index.mjs";
|
|
8
13
|
export * as gallery from "./gallery/index.mjs";
|
|
9
14
|
export * from "./gallery/types/index.mjs";
|
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.23";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.23";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@51eat/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -165,6 +165,50 @@
|
|
|
165
165
|
},
|
|
166
166
|
"default": "./dist/cjs/api/resources/business/resources/pushNotifications/exports.js"
|
|
167
167
|
},
|
|
168
|
+
"./business/businesses": {
|
|
169
|
+
"import": {
|
|
170
|
+
"types": "./dist/esm/api/resources/business/resources/businesses/exports.d.mts",
|
|
171
|
+
"default": "./dist/esm/api/resources/business/resources/businesses/exports.mjs"
|
|
172
|
+
},
|
|
173
|
+
"require": {
|
|
174
|
+
"types": "./dist/cjs/api/resources/business/resources/businesses/exports.d.ts",
|
|
175
|
+
"default": "./dist/cjs/api/resources/business/resources/businesses/exports.js"
|
|
176
|
+
},
|
|
177
|
+
"default": "./dist/cjs/api/resources/business/resources/businesses/exports.js"
|
|
178
|
+
},
|
|
179
|
+
"./business/cuisines": {
|
|
180
|
+
"import": {
|
|
181
|
+
"types": "./dist/esm/api/resources/business/resources/cuisines/exports.d.mts",
|
|
182
|
+
"default": "./dist/esm/api/resources/business/resources/cuisines/exports.mjs"
|
|
183
|
+
},
|
|
184
|
+
"require": {
|
|
185
|
+
"types": "./dist/cjs/api/resources/business/resources/cuisines/exports.d.ts",
|
|
186
|
+
"default": "./dist/cjs/api/resources/business/resources/cuisines/exports.js"
|
|
187
|
+
},
|
|
188
|
+
"default": "./dist/cjs/api/resources/business/resources/cuisines/exports.js"
|
|
189
|
+
},
|
|
190
|
+
"./business/certifications": {
|
|
191
|
+
"import": {
|
|
192
|
+
"types": "./dist/esm/api/resources/business/resources/certifications/exports.d.mts",
|
|
193
|
+
"default": "./dist/esm/api/resources/business/resources/certifications/exports.mjs"
|
|
194
|
+
},
|
|
195
|
+
"require": {
|
|
196
|
+
"types": "./dist/cjs/api/resources/business/resources/certifications/exports.d.ts",
|
|
197
|
+
"default": "./dist/cjs/api/resources/business/resources/certifications/exports.js"
|
|
198
|
+
},
|
|
199
|
+
"default": "./dist/cjs/api/resources/business/resources/certifications/exports.js"
|
|
200
|
+
},
|
|
201
|
+
"./business/categories": {
|
|
202
|
+
"import": {
|
|
203
|
+
"types": "./dist/esm/api/resources/business/resources/categories/exports.d.mts",
|
|
204
|
+
"default": "./dist/esm/api/resources/business/resources/categories/exports.mjs"
|
|
205
|
+
},
|
|
206
|
+
"require": {
|
|
207
|
+
"types": "./dist/cjs/api/resources/business/resources/categories/exports.d.ts",
|
|
208
|
+
"default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
|
|
209
|
+
},
|
|
210
|
+
"default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
|
|
211
|
+
},
|
|
168
212
|
"./business/auth/tokens": {
|
|
169
213
|
"import": {
|
|
170
214
|
"types": "./dist/esm/api/resources/business/resources/auth/resources/tokens/exports.d.mts",
|
package/reference.md
CHANGED
|
@@ -2330,6 +2330,368 @@ await client.business.pushNotifications.unregister({
|
|
|
2330
2330
|
</dl>
|
|
2331
2331
|
|
|
2332
2332
|
|
|
2333
|
+
</dd>
|
|
2334
|
+
</dl>
|
|
2335
|
+
</details>
|
|
2336
|
+
|
|
2337
|
+
## Business Businesses
|
|
2338
|
+
<details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">list</a>() -> void</code></summary>
|
|
2339
|
+
<dl>
|
|
2340
|
+
<dd>
|
|
2341
|
+
|
|
2342
|
+
#### 🔌 Usage
|
|
2343
|
+
|
|
2344
|
+
<dl>
|
|
2345
|
+
<dd>
|
|
2346
|
+
|
|
2347
|
+
<dl>
|
|
2348
|
+
<dd>
|
|
2349
|
+
|
|
2350
|
+
```typescript
|
|
2351
|
+
await client.business.businesses.list();
|
|
2352
|
+
|
|
2353
|
+
```
|
|
2354
|
+
</dd>
|
|
2355
|
+
</dl>
|
|
2356
|
+
</dd>
|
|
2357
|
+
</dl>
|
|
2358
|
+
|
|
2359
|
+
#### ⚙️ Parameters
|
|
2360
|
+
|
|
2361
|
+
<dl>
|
|
2362
|
+
<dd>
|
|
2363
|
+
|
|
2364
|
+
<dl>
|
|
2365
|
+
<dd>
|
|
2366
|
+
|
|
2367
|
+
**requestOptions:** `BusinessesClient.RequestOptions`
|
|
2368
|
+
|
|
2369
|
+
</dd>
|
|
2370
|
+
</dl>
|
|
2371
|
+
</dd>
|
|
2372
|
+
</dl>
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
</dd>
|
|
2376
|
+
</dl>
|
|
2377
|
+
</details>
|
|
2378
|
+
|
|
2379
|
+
<details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">create</a>() -> void</code></summary>
|
|
2380
|
+
<dl>
|
|
2381
|
+
<dd>
|
|
2382
|
+
|
|
2383
|
+
#### 🔌 Usage
|
|
2384
|
+
|
|
2385
|
+
<dl>
|
|
2386
|
+
<dd>
|
|
2387
|
+
|
|
2388
|
+
<dl>
|
|
2389
|
+
<dd>
|
|
2390
|
+
|
|
2391
|
+
```typescript
|
|
2392
|
+
await client.business.businesses.create();
|
|
2393
|
+
|
|
2394
|
+
```
|
|
2395
|
+
</dd>
|
|
2396
|
+
</dl>
|
|
2397
|
+
</dd>
|
|
2398
|
+
</dl>
|
|
2399
|
+
|
|
2400
|
+
#### ⚙️ Parameters
|
|
2401
|
+
|
|
2402
|
+
<dl>
|
|
2403
|
+
<dd>
|
|
2404
|
+
|
|
2405
|
+
<dl>
|
|
2406
|
+
<dd>
|
|
2407
|
+
|
|
2408
|
+
**requestOptions:** `BusinessesClient.RequestOptions`
|
|
2409
|
+
|
|
2410
|
+
</dd>
|
|
2411
|
+
</dl>
|
|
2412
|
+
</dd>
|
|
2413
|
+
</dl>
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
</dd>
|
|
2417
|
+
</dl>
|
|
2418
|
+
</details>
|
|
2419
|
+
|
|
2420
|
+
<details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">get</a>({ ...params }) -> void</code></summary>
|
|
2421
|
+
<dl>
|
|
2422
|
+
<dd>
|
|
2423
|
+
|
|
2424
|
+
#### 🔌 Usage
|
|
2425
|
+
|
|
2426
|
+
<dl>
|
|
2427
|
+
<dd>
|
|
2428
|
+
|
|
2429
|
+
<dl>
|
|
2430
|
+
<dd>
|
|
2431
|
+
|
|
2432
|
+
```typescript
|
|
2433
|
+
await client.business.businesses.get({
|
|
2434
|
+
business: "business"
|
|
2435
|
+
});
|
|
2436
|
+
|
|
2437
|
+
```
|
|
2438
|
+
</dd>
|
|
2439
|
+
</dl>
|
|
2440
|
+
</dd>
|
|
2441
|
+
</dl>
|
|
2442
|
+
|
|
2443
|
+
#### ⚙️ Parameters
|
|
2444
|
+
|
|
2445
|
+
<dl>
|
|
2446
|
+
<dd>
|
|
2447
|
+
|
|
2448
|
+
<dl>
|
|
2449
|
+
<dd>
|
|
2450
|
+
|
|
2451
|
+
**request:** `FiveOneEat.business.GetBusinessesRequest`
|
|
2452
|
+
|
|
2453
|
+
</dd>
|
|
2454
|
+
</dl>
|
|
2455
|
+
|
|
2456
|
+
<dl>
|
|
2457
|
+
<dd>
|
|
2458
|
+
|
|
2459
|
+
**requestOptions:** `BusinessesClient.RequestOptions`
|
|
2460
|
+
|
|
2461
|
+
</dd>
|
|
2462
|
+
</dl>
|
|
2463
|
+
</dd>
|
|
2464
|
+
</dl>
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
</dd>
|
|
2468
|
+
</dl>
|
|
2469
|
+
</details>
|
|
2470
|
+
|
|
2471
|
+
<details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">update</a>({ ...params }) -> void</code></summary>
|
|
2472
|
+
<dl>
|
|
2473
|
+
<dd>
|
|
2474
|
+
|
|
2475
|
+
#### 🔌 Usage
|
|
2476
|
+
|
|
2477
|
+
<dl>
|
|
2478
|
+
<dd>
|
|
2479
|
+
|
|
2480
|
+
<dl>
|
|
2481
|
+
<dd>
|
|
2482
|
+
|
|
2483
|
+
```typescript
|
|
2484
|
+
await client.business.businesses.update({
|
|
2485
|
+
business: "business"
|
|
2486
|
+
});
|
|
2487
|
+
|
|
2488
|
+
```
|
|
2489
|
+
</dd>
|
|
2490
|
+
</dl>
|
|
2491
|
+
</dd>
|
|
2492
|
+
</dl>
|
|
2493
|
+
|
|
2494
|
+
#### ⚙️ Parameters
|
|
2495
|
+
|
|
2496
|
+
<dl>
|
|
2497
|
+
<dd>
|
|
2498
|
+
|
|
2499
|
+
<dl>
|
|
2500
|
+
<dd>
|
|
2501
|
+
|
|
2502
|
+
**request:** `FiveOneEat.business.UpdateBusinessesRequest`
|
|
2503
|
+
|
|
2504
|
+
</dd>
|
|
2505
|
+
</dl>
|
|
2506
|
+
|
|
2507
|
+
<dl>
|
|
2508
|
+
<dd>
|
|
2509
|
+
|
|
2510
|
+
**requestOptions:** `BusinessesClient.RequestOptions`
|
|
2511
|
+
|
|
2512
|
+
</dd>
|
|
2513
|
+
</dl>
|
|
2514
|
+
</dd>
|
|
2515
|
+
</dl>
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
</dd>
|
|
2519
|
+
</dl>
|
|
2520
|
+
</details>
|
|
2521
|
+
|
|
2522
|
+
<details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
|
|
2523
|
+
<dl>
|
|
2524
|
+
<dd>
|
|
2525
|
+
|
|
2526
|
+
#### 🔌 Usage
|
|
2527
|
+
|
|
2528
|
+
<dl>
|
|
2529
|
+
<dd>
|
|
2530
|
+
|
|
2531
|
+
<dl>
|
|
2532
|
+
<dd>
|
|
2533
|
+
|
|
2534
|
+
```typescript
|
|
2535
|
+
await client.business.businesses.delete({
|
|
2536
|
+
business: "business"
|
|
2537
|
+
});
|
|
2538
|
+
|
|
2539
|
+
```
|
|
2540
|
+
</dd>
|
|
2541
|
+
</dl>
|
|
2542
|
+
</dd>
|
|
2543
|
+
</dl>
|
|
2544
|
+
|
|
2545
|
+
#### ⚙️ Parameters
|
|
2546
|
+
|
|
2547
|
+
<dl>
|
|
2548
|
+
<dd>
|
|
2549
|
+
|
|
2550
|
+
<dl>
|
|
2551
|
+
<dd>
|
|
2552
|
+
|
|
2553
|
+
**request:** `FiveOneEat.business.DeleteBusinessesRequest`
|
|
2554
|
+
|
|
2555
|
+
</dd>
|
|
2556
|
+
</dl>
|
|
2557
|
+
|
|
2558
|
+
<dl>
|
|
2559
|
+
<dd>
|
|
2560
|
+
|
|
2561
|
+
**requestOptions:** `BusinessesClient.RequestOptions`
|
|
2562
|
+
|
|
2563
|
+
</dd>
|
|
2564
|
+
</dl>
|
|
2565
|
+
</dd>
|
|
2566
|
+
</dl>
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
</dd>
|
|
2570
|
+
</dl>
|
|
2571
|
+
</details>
|
|
2572
|
+
|
|
2573
|
+
## Business Cuisines
|
|
2574
|
+
<details><summary><code>client.business.cuisines.<a href="/src/api/resources/business/resources/cuisines/client/Client.ts">list</a>() -> void</code></summary>
|
|
2575
|
+
<dl>
|
|
2576
|
+
<dd>
|
|
2577
|
+
|
|
2578
|
+
#### 🔌 Usage
|
|
2579
|
+
|
|
2580
|
+
<dl>
|
|
2581
|
+
<dd>
|
|
2582
|
+
|
|
2583
|
+
<dl>
|
|
2584
|
+
<dd>
|
|
2585
|
+
|
|
2586
|
+
```typescript
|
|
2587
|
+
await client.business.cuisines.list();
|
|
2588
|
+
|
|
2589
|
+
```
|
|
2590
|
+
</dd>
|
|
2591
|
+
</dl>
|
|
2592
|
+
</dd>
|
|
2593
|
+
</dl>
|
|
2594
|
+
|
|
2595
|
+
#### ⚙️ Parameters
|
|
2596
|
+
|
|
2597
|
+
<dl>
|
|
2598
|
+
<dd>
|
|
2599
|
+
|
|
2600
|
+
<dl>
|
|
2601
|
+
<dd>
|
|
2602
|
+
|
|
2603
|
+
**requestOptions:** `CuisinesClient.RequestOptions`
|
|
2604
|
+
|
|
2605
|
+
</dd>
|
|
2606
|
+
</dl>
|
|
2607
|
+
</dd>
|
|
2608
|
+
</dl>
|
|
2609
|
+
|
|
2610
|
+
|
|
2611
|
+
</dd>
|
|
2612
|
+
</dl>
|
|
2613
|
+
</details>
|
|
2614
|
+
|
|
2615
|
+
## Business Certifications
|
|
2616
|
+
<details><summary><code>client.business.certifications.<a href="/src/api/resources/business/resources/certifications/client/Client.ts">list</a>() -> void</code></summary>
|
|
2617
|
+
<dl>
|
|
2618
|
+
<dd>
|
|
2619
|
+
|
|
2620
|
+
#### 🔌 Usage
|
|
2621
|
+
|
|
2622
|
+
<dl>
|
|
2623
|
+
<dd>
|
|
2624
|
+
|
|
2625
|
+
<dl>
|
|
2626
|
+
<dd>
|
|
2627
|
+
|
|
2628
|
+
```typescript
|
|
2629
|
+
await client.business.certifications.list();
|
|
2630
|
+
|
|
2631
|
+
```
|
|
2632
|
+
</dd>
|
|
2633
|
+
</dl>
|
|
2634
|
+
</dd>
|
|
2635
|
+
</dl>
|
|
2636
|
+
|
|
2637
|
+
#### ⚙️ Parameters
|
|
2638
|
+
|
|
2639
|
+
<dl>
|
|
2640
|
+
<dd>
|
|
2641
|
+
|
|
2642
|
+
<dl>
|
|
2643
|
+
<dd>
|
|
2644
|
+
|
|
2645
|
+
**requestOptions:** `CertificationsClient.RequestOptions`
|
|
2646
|
+
|
|
2647
|
+
</dd>
|
|
2648
|
+
</dl>
|
|
2649
|
+
</dd>
|
|
2650
|
+
</dl>
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
</dd>
|
|
2654
|
+
</dl>
|
|
2655
|
+
</details>
|
|
2656
|
+
|
|
2657
|
+
## Business Categories
|
|
2658
|
+
<details><summary><code>client.business.categories.<a href="/src/api/resources/business/resources/categories/client/Client.ts">list</a>() -> void</code></summary>
|
|
2659
|
+
<dl>
|
|
2660
|
+
<dd>
|
|
2661
|
+
|
|
2662
|
+
#### 🔌 Usage
|
|
2663
|
+
|
|
2664
|
+
<dl>
|
|
2665
|
+
<dd>
|
|
2666
|
+
|
|
2667
|
+
<dl>
|
|
2668
|
+
<dd>
|
|
2669
|
+
|
|
2670
|
+
```typescript
|
|
2671
|
+
await client.business.categories.list();
|
|
2672
|
+
|
|
2673
|
+
```
|
|
2674
|
+
</dd>
|
|
2675
|
+
</dl>
|
|
2676
|
+
</dd>
|
|
2677
|
+
</dl>
|
|
2678
|
+
|
|
2679
|
+
#### ⚙️ Parameters
|
|
2680
|
+
|
|
2681
|
+
<dl>
|
|
2682
|
+
<dd>
|
|
2683
|
+
|
|
2684
|
+
<dl>
|
|
2685
|
+
<dd>
|
|
2686
|
+
|
|
2687
|
+
**requestOptions:** `CategoriesClient.RequestOptions`
|
|
2688
|
+
|
|
2689
|
+
</dd>
|
|
2690
|
+
</dl>
|
|
2691
|
+
</dd>
|
|
2692
|
+
</dl>
|
|
2693
|
+
|
|
2694
|
+
|
|
2333
2695
|
</dd>
|
|
2334
2696
|
</dl>
|
|
2335
2697
|
</details>
|