@51eat/sdk 0.0.28 → 0.0.30
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 +3 -0
- package/dist/cjs/api/resources/business/client/Client.js +31 -26
- package/dist/cjs/api/resources/business/resources/allergens/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/business/resources/allergens/client/Client.js +110 -0
- package/dist/cjs/api/resources/business/resources/allergens/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/allergens/client/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/allergens/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/allergens/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/allergens/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/allergens/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/allergens/types/ListAllergensResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/allergens/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/allergens/types/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/bulletins/exports.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/exports.js +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.js +208 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/index.js +42 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/index.js +6 -4
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.ts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts} +2 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.js +51 -0
- package/dist/cjs/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/discovery/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/discovery/types/index.js +1 -0
- package/dist/cjs/api/types/BusinessAllergen.d.ts +8 -0
- package/dist/cjs/api/types/BusinessAllergen.js +3 -0
- package/dist/cjs/api/types/BusinessBulletinComment.d.ts +15 -0
- package/dist/cjs/api/types/BusinessBulletinComment.js +3 -0
- package/dist/cjs/api/types/BusinessBulletinCommentReply.d.ts +13 -0
- package/dist/cjs/api/types/BusinessBulletinCommentReply.js +3 -0
- package/dist/cjs/api/types/BusinessBulletinCommentResponse.d.ts +5 -0
- package/dist/cjs/api/types/BusinessBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/types/CustomerBulletinCommentReply.d.ts +13 -0
- package/dist/cjs/api/types/CustomerBulletinCommentReply.js +3 -0
- package/dist/cjs/api/types/CustomerComment.d.ts +3 -0
- package/dist/cjs/api/types/CustomerDiscoveryAllergen.d.ts +8 -0
- package/dist/cjs/api/types/CustomerDiscoveryAllergen.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- 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 +3 -0
- package/dist/esm/api/resources/business/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/allergens/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/business/resources/allergens/client/Client.mjs +73 -0
- package/dist/esm/api/resources/business/resources/allergens/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/allergens/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/allergens/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/allergens/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/allergens/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/allergens/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/allergens/types/ListAllergensResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/allergens/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/allergens/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/bulletins/exports.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/exports.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.mjs +171 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.mts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts} +2 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.mjs +51 -0
- package/dist/esm/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/discovery/types/AllergensDiscoveryResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/discovery/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/discovery/types/index.mjs +1 -0
- package/dist/esm/api/types/BusinessAllergen.d.mts +8 -0
- package/dist/esm/api/types/BusinessAllergen.mjs +2 -0
- package/dist/esm/api/types/BusinessBulletinComment.d.mts +15 -0
- package/dist/esm/api/types/BusinessBulletinComment.mjs +2 -0
- package/dist/esm/api/types/BusinessBulletinCommentReply.d.mts +13 -0
- package/dist/esm/api/types/BusinessBulletinCommentReply.mjs +2 -0
- package/dist/esm/api/types/BusinessBulletinCommentResponse.d.mts +5 -0
- package/dist/esm/api/types/BusinessBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/types/CustomerBulletinCommentReply.d.mts +13 -0
- package/dist/esm/api/types/CustomerBulletinCommentReply.mjs +2 -0
- package/dist/esm/api/types/CustomerComment.d.mts +3 -0
- package/dist/esm/api/types/CustomerDiscoveryAllergen.d.mts +8 -0
- package/dist/esm/api/types/CustomerDiscoveryAllergen.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +233 -1
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js → business/resources/allergens/types/ListAllergensResponse.js} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs → business/resources/allergens/types/ListAllergensResponse.mjs} +0 -0
package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,7 +31,7 @@ export declare class CommentsClient {
|
|
|
31
31
|
/**
|
|
32
32
|
* Post a comment on a business bulletin. Requires authentication.
|
|
33
33
|
*
|
|
34
|
-
* @param {FiveOneEat.customer.businesses.bulletins.
|
|
34
|
+
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
35
35
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -45,6 +45,6 @@ export declare class CommentsClient {
|
|
|
45
45
|
* body: "body"
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
create(request: FiveOneEat.customer.businesses.bulletins.
|
|
48
|
+
create(request: FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businesses.bulletins.CreateCommentsResponse>;
|
|
49
49
|
private __create;
|
|
50
50
|
}
|
|
@@ -103,7 +103,7 @@ export class CommentsClient {
|
|
|
103
103
|
/**
|
|
104
104
|
* Post a comment on a business bulletin. Requires authentication.
|
|
105
105
|
*
|
|
106
|
-
* @param {FiveOneEat.customer.businesses.bulletins.
|
|
106
|
+
* @param {FiveOneEat.customer.businesses.bulletins.AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest} request
|
|
107
107
|
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
108
|
*
|
|
109
109
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* body: "body"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest {
|
|
10
10
|
/** The business handle */
|
|
11
11
|
handle: string;
|
|
12
12
|
/** The bulletin ID */
|
|
13
13
|
bulletin: string;
|
|
14
14
|
body: string;
|
|
15
|
+
parent_id?: string | null;
|
|
15
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
+
export type { AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest } from "./AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs";
|
|
1
2
|
export type { ListCommentsRequest } from "./ListCommentsRequest.mjs";
|
|
2
|
-
export type { StoreBulletinCommentRequest } from "./StoreBulletinCommentRequest.mjs";
|
|
@@ -81,6 +81,19 @@ export declare class DiscoveryClient {
|
|
|
81
81
|
*/
|
|
82
82
|
certifications(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CertificationsDiscoveryResponse>;
|
|
83
83
|
private __certifications;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieve a list of all allergens, ordered alphabetically, for use in
|
|
86
|
+
* filters, labels, and other customer-facing display.
|
|
87
|
+
*
|
|
88
|
+
* @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.customer.discovery.allergens()
|
|
94
|
+
*/
|
|
95
|
+
allergens(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.AllergensDiscoveryResponse>;
|
|
96
|
+
private __allergens;
|
|
84
97
|
/**
|
|
85
98
|
* Retrieve businesses for a specific category with pagination support.
|
|
86
99
|
* Results are optimized for list display.
|
|
@@ -289,6 +289,57 @@ export class DiscoveryClient {
|
|
|
289
289
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery/certifications");
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Retrieve a list of all allergens, ordered alphabetically, for use in
|
|
294
|
+
* filters, labels, and other customer-facing display.
|
|
295
|
+
*
|
|
296
|
+
* @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
297
|
+
*
|
|
298
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* await client.customer.discovery.allergens()
|
|
302
|
+
*/
|
|
303
|
+
allergens(requestOptions) {
|
|
304
|
+
return core.HttpResponsePromise.fromPromise(this.__allergens(requestOptions));
|
|
305
|
+
}
|
|
306
|
+
__allergens(requestOptions) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
309
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
310
|
+
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);
|
|
311
|
+
const _response = yield core.fetcher({
|
|
312
|
+
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, "customer/discovery/allergens"),
|
|
313
|
+
method: "GET",
|
|
314
|
+
headers: _headers,
|
|
315
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
316
|
+
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,
|
|
317
|
+
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,
|
|
318
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
320
|
+
logging: this._options.logging,
|
|
321
|
+
});
|
|
322
|
+
if (_response.ok) {
|
|
323
|
+
return {
|
|
324
|
+
data: _response.body,
|
|
325
|
+
rawResponse: _response.rawResponse,
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
if (_response.error.reason === "status-code") {
|
|
329
|
+
switch (_response.error.statusCode) {
|
|
330
|
+
case 401:
|
|
331
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
332
|
+
default:
|
|
333
|
+
throw new errors.FiveOneEatError({
|
|
334
|
+
statusCode: _response.error.statusCode,
|
|
335
|
+
body: _response.error.body,
|
|
336
|
+
rawResponse: _response.rawResponse,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/discovery/allergens");
|
|
341
|
+
});
|
|
342
|
+
}
|
|
292
343
|
/**
|
|
293
344
|
* Retrieve businesses for a specific category with pagination support.
|
|
294
345
|
* Results are optimized for list display.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.mjs";
|
|
2
|
+
export interface BusinessBulletinComment {
|
|
3
|
+
id: string;
|
|
4
|
+
parent_id: string;
|
|
5
|
+
body: string;
|
|
6
|
+
user: BusinessBulletinComment.User;
|
|
7
|
+
created_at: string;
|
|
8
|
+
replies?: FiveOneEat.BusinessBulletinCommentReply[] | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace BusinessBulletinComment {
|
|
11
|
+
interface User {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface BusinessBulletinCommentReply {
|
|
2
|
+
id: string;
|
|
3
|
+
parent_id: string;
|
|
4
|
+
body: string;
|
|
5
|
+
user: BusinessBulletinCommentReply.User;
|
|
6
|
+
created_at: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace BusinessBulletinCommentReply {
|
|
9
|
+
interface User {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CustomerBulletinCommentReply {
|
|
2
|
+
id: string;
|
|
3
|
+
parent_id: string;
|
|
4
|
+
body: string;
|
|
5
|
+
user: CustomerBulletinCommentReply.User;
|
|
6
|
+
created_at: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace CustomerBulletinCommentReply {
|
|
9
|
+
interface User {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.mjs";
|
|
1
2
|
export interface CustomerComment {
|
|
2
3
|
id: string;
|
|
4
|
+
parent_id: string | null;
|
|
3
5
|
body: string;
|
|
4
6
|
user: CustomerComment.User;
|
|
5
7
|
created_at: string | null;
|
|
8
|
+
replies?: FiveOneEat.CustomerBulletinCommentReply[] | undefined;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace CustomerComment {
|
|
8
11
|
interface User {
|
|
@@ -20,7 +20,11 @@ export * from "./BardProductSetValues.mjs";
|
|
|
20
20
|
export * from "./BardSetNode.mjs";
|
|
21
21
|
export * from "./BardSetValues.mjs";
|
|
22
22
|
export * from "./BardTextNode.mjs";
|
|
23
|
+
export * from "./BusinessAllergen.mjs";
|
|
23
24
|
export * from "./BusinessBulletin.mjs";
|
|
25
|
+
export * from "./BusinessBulletinComment.mjs";
|
|
26
|
+
export * from "./BusinessBulletinCommentReply.mjs";
|
|
27
|
+
export * from "./BusinessBulletinCommentResponse.mjs";
|
|
24
28
|
export * from "./BusinessCategory.mjs";
|
|
25
29
|
export * from "./BusinessCertification.mjs";
|
|
26
30
|
export * from "./BusinessConversation.mjs";
|
|
@@ -50,10 +54,12 @@ export * from "./ConflictErrorBody.mjs";
|
|
|
50
54
|
export * from "./Conversation.mjs";
|
|
51
55
|
export * from "./Cuisine.mjs";
|
|
52
56
|
export * from "./CustomerBulletin.mjs";
|
|
57
|
+
export * from "./CustomerBulletinCommentReply.mjs";
|
|
53
58
|
export * from "./CustomerBulletinResponse.mjs";
|
|
54
59
|
export * from "./CustomerBusinessProfile.mjs";
|
|
55
60
|
export * from "./CustomerComment.mjs";
|
|
56
61
|
export * from "./CustomerCommentResponse.mjs";
|
|
62
|
+
export * from "./CustomerDiscoveryAllergen.mjs";
|
|
57
63
|
export * from "./CustomerEvent.mjs";
|
|
58
64
|
export * from "./CustomerEventDetail.mjs";
|
|
59
65
|
export * from "./CustomerEventResponse.mjs";
|
|
@@ -20,7 +20,11 @@ export * from "./BardProductSetValues.mjs";
|
|
|
20
20
|
export * from "./BardSetNode.mjs";
|
|
21
21
|
export * from "./BardSetValues.mjs";
|
|
22
22
|
export * from "./BardTextNode.mjs";
|
|
23
|
+
export * from "./BusinessAllergen.mjs";
|
|
23
24
|
export * from "./BusinessBulletin.mjs";
|
|
25
|
+
export * from "./BusinessBulletinComment.mjs";
|
|
26
|
+
export * from "./BusinessBulletinCommentReply.mjs";
|
|
27
|
+
export * from "./BusinessBulletinCommentResponse.mjs";
|
|
24
28
|
export * from "./BusinessCategory.mjs";
|
|
25
29
|
export * from "./BusinessCertification.mjs";
|
|
26
30
|
export * from "./BusinessConversation.mjs";
|
|
@@ -50,10 +54,12 @@ export * from "./ConflictErrorBody.mjs";
|
|
|
50
54
|
export * from "./Conversation.mjs";
|
|
51
55
|
export * from "./Cuisine.mjs";
|
|
52
56
|
export * from "./CustomerBulletin.mjs";
|
|
57
|
+
export * from "./CustomerBulletinCommentReply.mjs";
|
|
53
58
|
export * from "./CustomerBulletinResponse.mjs";
|
|
54
59
|
export * from "./CustomerBusinessProfile.mjs";
|
|
55
60
|
export * from "./CustomerComment.mjs";
|
|
56
61
|
export * from "./CustomerCommentResponse.mjs";
|
|
62
|
+
export * from "./CustomerDiscoveryAllergen.mjs";
|
|
57
63
|
export * from "./CustomerEvent.mjs";
|
|
58
64
|
export * from "./CustomerEventDetail.mjs";
|
|
59
65
|
export * from "./CustomerEventResponse.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.30";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.30";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@51eat/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -231,6 +231,17 @@
|
|
|
231
231
|
},
|
|
232
232
|
"default": "./dist/cjs/api/resources/business/resources/categories/exports.js"
|
|
233
233
|
},
|
|
234
|
+
"./business/allergens": {
|
|
235
|
+
"import": {
|
|
236
|
+
"types": "./dist/esm/api/resources/business/resources/allergens/exports.d.mts",
|
|
237
|
+
"default": "./dist/esm/api/resources/business/resources/allergens/exports.mjs"
|
|
238
|
+
},
|
|
239
|
+
"require": {
|
|
240
|
+
"types": "./dist/cjs/api/resources/business/resources/allergens/exports.d.ts",
|
|
241
|
+
"default": "./dist/cjs/api/resources/business/resources/allergens/exports.js"
|
|
242
|
+
},
|
|
243
|
+
"default": "./dist/cjs/api/resources/business/resources/allergens/exports.js"
|
|
244
|
+
},
|
|
234
245
|
"./business/auth/tokens": {
|
|
235
246
|
"import": {
|
|
236
247
|
"types": "./dist/esm/api/resources/business/resources/auth/resources/tokens/exports.d.mts",
|
|
@@ -242,6 +253,17 @@
|
|
|
242
253
|
},
|
|
243
254
|
"default": "./dist/cjs/api/resources/business/resources/auth/resources/tokens/exports.js"
|
|
244
255
|
},
|
|
256
|
+
"./business/bulletins/comments": {
|
|
257
|
+
"import": {
|
|
258
|
+
"types": "./dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.d.mts",
|
|
259
|
+
"default": "./dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.mjs"
|
|
260
|
+
},
|
|
261
|
+
"require": {
|
|
262
|
+
"types": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.d.ts",
|
|
263
|
+
"default": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js"
|
|
264
|
+
},
|
|
265
|
+
"default": "./dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js"
|
|
266
|
+
},
|
|
245
267
|
"./business/events/ticketTypes": {
|
|
246
268
|
"import": {
|
|
247
269
|
"types": "./dist/esm/api/resources/business/resources/events/resources/ticketTypes/exports.d.mts",
|