@51eat/sdk 0.0.31 → 0.0.32
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/resources/auth/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/business/resources/auth/client/Client.js +115 -0
- package/dist/cjs/api/resources/business/resources/auth/client/requests/ForgotPasswordRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/auth/client/requests/ForgotPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/auth/client/requests/ResetPasswordRequest.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/auth/client/requests/ResetPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/auth/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/auth/types/ForgotPasswordAuthResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/auth/types/ForgotPasswordAuthResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/auth/types/ResetPasswordAuthResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/auth/types/ResetPasswordAuthResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/auth/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/auth/types/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/Client.js +286 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthResetPasswordRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthResetPasswordRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/UpdateUserRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/UpdateUserRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/UploadAvatarRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/UploadAvatarRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/DeleteAvatarAuthResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/DeleteAvatarAuthResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/ForgotPasswordAuthResponse.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/ForgotPasswordAuthResponse.js +10 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/ResetPasswordAuthResponse.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/ResetPasswordAuthResponse.js +10 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/UpdateProfileAuthResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/UpdateProfileAuthResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/UploadAvatarAuthResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/UploadAvatarAuthResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/customer/resources/auth/types/index.js +5 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +39 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +137 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.ts +20 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.ts +18 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.js +2 -0
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/customer/resources/discovery/client/Client.js +15 -5
- package/dist/cjs/api/resources/customer/resources/discovery/client/requests/CategoriesDiscoveryRequest.d.ts +8 -0
- package/dist/cjs/api/resources/customer/resources/discovery/client/requests/CategoriesDiscoveryRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/discovery/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/CustomerReplyResponse.d.ts +5 -0
- package/dist/cjs/api/types/CustomerReplyResponse.js +3 -0
- package/dist/cjs/api/types/CustomerUser.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/resources/auth/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/business/resources/auth/client/Client.mjs +115 -0
- package/dist/esm/api/resources/business/resources/auth/client/requests/ForgotPasswordRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/auth/client/requests/ForgotPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/auth/client/requests/ResetPasswordRequest.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/auth/client/requests/ResetPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/auth/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/auth/types/ForgotPasswordAuthResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/auth/types/ForgotPasswordAuthResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/auth/types/ResetPasswordAuthResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/auth/types/ResetPasswordAuthResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/auth/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/auth/types/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/customer/resources/auth/client/Client.mjs +287 -1
- package/dist/esm/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthForgotPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthResetPasswordRequest.d.mts +15 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/AppHttpRequestsApiV1CustomerAuthResetPasswordRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/UpdateUserRequest.d.mts +11 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/UpdateUserRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/UploadAvatarRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/UploadAvatarRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/auth/types/DeleteAvatarAuthResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/auth/types/DeleteAvatarAuthResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/types/ForgotPasswordAuthResponse.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/auth/types/ForgotPasswordAuthResponse.mjs +7 -0
- package/dist/esm/api/resources/customer/resources/auth/types/ResetPasswordAuthResponse.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/auth/types/ResetPasswordAuthResponse.mjs +7 -0
- package/dist/esm/api/resources/customer/resources/auth/types/UpdateProfileAuthResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/auth/types/UpdateProfileAuthResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/types/UploadAvatarAuthResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/auth/types/UploadAvatarAuthResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/auth/types/index.d.mts +5 -0
- package/dist/esm/api/resources/customer/resources/auth/types/index.mjs +5 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +39 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +137 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.d.mts +20 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/ListRepliesCommentsRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.d.mts +18 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentReplyRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ListRepliesCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/ReplyCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/types/index.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/customer/resources/discovery/client/Client.mjs +15 -5
- package/dist/esm/api/resources/customer/resources/discovery/client/requests/CategoriesDiscoveryRequest.d.mts +8 -0
- package/dist/esm/api/resources/customer/resources/discovery/client/requests/CategoriesDiscoveryRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/discovery/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/CustomerReplyResponse.d.mts +5 -0
- package/dist/esm/api/types/CustomerReplyResponse.mjs +2 -0
- package/dist/esm/api/types/CustomerUser.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +683 -86
|
@@ -201,5 +201,142 @@ class CommentsClient {
|
|
|
201
201
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/bulletins/{bulletin}/comments");
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Retrieve paginated replies for a top-level comment on a published bulletin.
|
|
206
|
+
*
|
|
207
|
+
* @param {FiveOneEat.customer.businesses.bulletins.ListRepliesCommentsRequest} request
|
|
208
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
|
+
*
|
|
210
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
211
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
212
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* await client.customer.businesses.bulletins.comments.listReplies({
|
|
216
|
+
* handle: "katzs-deli",
|
|
217
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
218
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
219
|
+
* })
|
|
220
|
+
*/
|
|
221
|
+
listReplies(request, requestOptions) {
|
|
222
|
+
return core.HttpResponsePromise.fromPromise(this.__listReplies(request, requestOptions));
|
|
223
|
+
}
|
|
224
|
+
__listReplies(request, requestOptions) {
|
|
225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
227
|
+
const { handle, bulletin, comment, page, per_page: perPage } = request;
|
|
228
|
+
const _queryParams = {
|
|
229
|
+
page,
|
|
230
|
+
per_page: perPage,
|
|
231
|
+
};
|
|
232
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
233
|
+
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);
|
|
234
|
+
const _response = yield core.fetcher({
|
|
235
|
+
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/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
236
|
+
method: "GET",
|
|
237
|
+
headers: _headers,
|
|
238
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
239
|
+
queryString: core.url
|
|
240
|
+
.queryBuilder()
|
|
241
|
+
.addMany(_queryParams)
|
|
242
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
243
|
+
.build(),
|
|
244
|
+
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,
|
|
245
|
+
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,
|
|
246
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
247
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
248
|
+
logging: this._options.logging,
|
|
249
|
+
});
|
|
250
|
+
if (_response.ok) {
|
|
251
|
+
return {
|
|
252
|
+
data: _response.body,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
if (_response.error.reason === "status-code") {
|
|
257
|
+
switch (_response.error.statusCode) {
|
|
258
|
+
case 401:
|
|
259
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 404:
|
|
261
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 422:
|
|
263
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.FiveOneEatError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{handle}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Post a reply to a top-level comment on a published bulletin. Requires authentication.
|
|
277
|
+
*
|
|
278
|
+
* @param {FiveOneEat.customer.businesses.bulletins.StoreBulletinCommentReplyRequest} request
|
|
279
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
280
|
+
*
|
|
281
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
282
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
283
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* await client.customer.businesses.bulletins.comments.reply({
|
|
287
|
+
* handle: "katzs-deli",
|
|
288
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
289
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
290
|
+
* body: "body"
|
|
291
|
+
* })
|
|
292
|
+
*/
|
|
293
|
+
reply(request, requestOptions) {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__reply(request, requestOptions));
|
|
295
|
+
}
|
|
296
|
+
__reply(request, requestOptions) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
299
|
+
const { handle, bulletin, comment } = request, _body = __rest(request, ["handle", "bulletin", "comment"]);
|
|
300
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
301
|
+
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);
|
|
302
|
+
const _response = yield core.fetcher({
|
|
303
|
+
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/businesses/${core.url.encodePathParam(handle)}/bulletins/${core.url.encodePathParam(bulletin)}/comments/${core.url.encodePathParam(comment)}/replies`),
|
|
304
|
+
method: "POST",
|
|
305
|
+
headers: _headers,
|
|
306
|
+
contentType: "application/json",
|
|
307
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
308
|
+
requestType: "json",
|
|
309
|
+
body: _body,
|
|
310
|
+
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,
|
|
311
|
+
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,
|
|
312
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
313
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
314
|
+
logging: this._options.logging,
|
|
315
|
+
});
|
|
316
|
+
if (_response.ok) {
|
|
317
|
+
return {
|
|
318
|
+
data: _response.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
if (_response.error.reason === "status-code") {
|
|
323
|
+
switch (_response.error.statusCode) {
|
|
324
|
+
case 401:
|
|
325
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
326
|
+
case 404:
|
|
327
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
328
|
+
case 422:
|
|
329
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
330
|
+
default:
|
|
331
|
+
throw new errors.FiveOneEatError({
|
|
332
|
+
statusCode: _response.error.statusCode,
|
|
333
|
+
body: _response.error.body,
|
|
334
|
+
rawResponse: _response.rawResponse,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/customer/businesses/{handle}/bulletins/{bulletin}/comments/{comment}/replies");
|
|
339
|
+
});
|
|
340
|
+
}
|
|
204
341
|
}
|
|
205
342
|
exports.CommentsClient = CommentsClient;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* handle: "katzs-deli",
|
|
5
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListRepliesCommentsRequest {
|
|
10
|
+
/** The business handle */
|
|
11
|
+
handle: string;
|
|
12
|
+
/** The bulletin ID */
|
|
13
|
+
bulletin: string;
|
|
14
|
+
/** The comment ID */
|
|
15
|
+
comment: string;
|
|
16
|
+
/** Page number for pagination */
|
|
17
|
+
page?: number;
|
|
18
|
+
/** Number of replies per page */
|
|
19
|
+
per_page?: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* handle: "katzs-deli",
|
|
5
|
+
* bulletin: "01950e7d-1234-7000-abcd-ef0123456789",
|
|
6
|
+
* comment: "01950e7d-5678-7000-abcd-ef0123456789",
|
|
7
|
+
* body: "body"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface StoreBulletinCommentReplyRequest {
|
|
11
|
+
/** The business handle */
|
|
12
|
+
handle: string;
|
|
13
|
+
/** The bulletin ID */
|
|
14
|
+
bulletin: string;
|
|
15
|
+
/** The comment ID */
|
|
16
|
+
comment: string;
|
|
17
|
+
body: string;
|
|
18
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export type { AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest } from "./AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js";
|
|
2
2
|
export type { ListCommentsRequest } from "./ListCommentsRequest.js";
|
|
3
|
+
export type { ListRepliesCommentsRequest } from "./ListRepliesCommentsRequest.js";
|
|
4
|
+
export type { StoreBulletinCommentReplyRequest } from "./StoreBulletinCommentReplyRequest.js";
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateCommentsResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./ListCommentsResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./ListRepliesCommentsResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ReplyCommentsResponse.js"), exports);
|
|
@@ -46,6 +46,7 @@ export declare class DiscoveryClient {
|
|
|
46
46
|
* Retrieve a list of all business categories with their business counts.
|
|
47
47
|
* This endpoint is used to populate category filters and navigation.
|
|
48
48
|
*
|
|
49
|
+
* @param {FiveOneEat.customer.CategoriesDiscoveryRequest} request
|
|
49
50
|
* @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
51
|
*
|
|
51
52
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -53,7 +54,7 @@ export declare class DiscoveryClient {
|
|
|
53
54
|
* @example
|
|
54
55
|
* await client.customer.discovery.categories()
|
|
55
56
|
*/
|
|
56
|
-
categories(requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CategoriesDiscoveryResponse>;
|
|
57
|
+
categories(request?: FiveOneEat.customer.CategoriesDiscoveryRequest, requestOptions?: DiscoveryClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.CategoriesDiscoveryResponse>;
|
|
57
58
|
private __categories;
|
|
58
59
|
/**
|
|
59
60
|
* Retrieve a list of all cuisines, ordered alphabetically.
|
|
@@ -176,6 +176,7 @@ class DiscoveryClient {
|
|
|
176
176
|
* Retrieve a list of all business categories with their business counts.
|
|
177
177
|
* This endpoint is used to populate category filters and navigation.
|
|
178
178
|
*
|
|
179
|
+
* @param {FiveOneEat.customer.CategoriesDiscoveryRequest} request
|
|
179
180
|
* @param {DiscoveryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
181
|
*
|
|
181
182
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -183,19 +184,28 @@ class DiscoveryClient {
|
|
|
183
184
|
* @example
|
|
184
185
|
* await client.customer.discovery.categories()
|
|
185
186
|
*/
|
|
186
|
-
categories(requestOptions) {
|
|
187
|
-
return core.HttpResponsePromise.fromPromise(this.__categories(requestOptions));
|
|
187
|
+
categories(request = {}, requestOptions) {
|
|
188
|
+
return core.HttpResponsePromise.fromPromise(this.__categories(request, requestOptions));
|
|
188
189
|
}
|
|
189
|
-
__categories(
|
|
190
|
-
return __awaiter(this,
|
|
190
|
+
__categories() {
|
|
191
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
191
192
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
193
|
+
const { with_businesses: withBusinesses } = request;
|
|
194
|
+
const _queryParams = {
|
|
195
|
+
with_businesses: withBusinesses,
|
|
196
|
+
};
|
|
192
197
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
193
198
|
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);
|
|
194
199
|
const _response = yield core.fetcher({
|
|
195
200
|
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/categories"),
|
|
196
201
|
method: "GET",
|
|
197
202
|
headers: _headers,
|
|
198
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
204
|
+
queryString: core.url
|
|
205
|
+
.queryBuilder()
|
|
206
|
+
.addMany(_queryParams)
|
|
207
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
208
|
+
.build(),
|
|
199
209
|
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,
|
|
200
210
|
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,
|
|
201
211
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -72,6 +72,7 @@ export * from "./CustomerMenuItem.js";
|
|
|
72
72
|
export * from "./CustomerMenuResponse.js";
|
|
73
73
|
export * from "./CustomerPhoto.js";
|
|
74
74
|
export * from "./CustomerPhotoResponse.js";
|
|
75
|
+
export * from "./CustomerReplyResponse.js";
|
|
75
76
|
export * from "./CustomerTemporaryLocation.js";
|
|
76
77
|
export * from "./CustomerToken.js";
|
|
77
78
|
export * from "./CustomerUser.js";
|
|
@@ -88,6 +88,7 @@ __exportStar(require("./CustomerMenuItem.js"), exports);
|
|
|
88
88
|
__exportStar(require("./CustomerMenuResponse.js"), exports);
|
|
89
89
|
__exportStar(require("./CustomerPhoto.js"), exports);
|
|
90
90
|
__exportStar(require("./CustomerPhotoResponse.js"), exports);
|
|
91
|
+
__exportStar(require("./CustomerReplyResponse.js"), exports);
|
|
91
92
|
__exportStar(require("./CustomerTemporaryLocation.js"), exports);
|
|
92
93
|
__exportStar(require("./CustomerToken.js"), exports);
|
|
93
94
|
__exportStar(require("./CustomerUser.js"), exports);
|
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.32";
|
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.32",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.32",
|
|
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);
|
|
@@ -49,6 +49,41 @@ export declare class AuthClient {
|
|
|
49
49
|
*/
|
|
50
50
|
login(request: FiveOneEat.business.LoginBusinessRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.LoginAuthResponse>;
|
|
51
51
|
private __login;
|
|
52
|
+
/**
|
|
53
|
+
* Sends a password reset link to the provided email address if an account exists.
|
|
54
|
+
* Always returns a 200 response to prevent email enumeration.
|
|
55
|
+
*
|
|
56
|
+
* @param {FiveOneEat.business.ForgotPasswordRequest} request
|
|
57
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.business.auth.forgotPassword({
|
|
63
|
+
* email: "email"
|
|
64
|
+
* })
|
|
65
|
+
*/
|
|
66
|
+
forgotPassword(request: FiveOneEat.business.ForgotPasswordRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ForgotPasswordAuthResponse>;
|
|
67
|
+
private __forgotPassword;
|
|
68
|
+
/**
|
|
69
|
+
* Validates the reset token and updates the user's password. All existing API tokens
|
|
70
|
+
* are revoked after a successful reset, requiring re-authentication on all devices.
|
|
71
|
+
*
|
|
72
|
+
* @param {FiveOneEat.business.ResetPasswordRequest} request
|
|
73
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.business.auth.resetPassword({
|
|
79
|
+
* token: "token",
|
|
80
|
+
* email: "email",
|
|
81
|
+
* password: "password",
|
|
82
|
+
* password_confirmation: "password_confirmation"
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
resetPassword(request: FiveOneEat.business.ResetPasswordRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ResetPasswordAuthResponse>;
|
|
86
|
+
private __resetPassword;
|
|
52
87
|
/**
|
|
53
88
|
* Retrieve the current authenticated business user with their active business and all owned businesses.
|
|
54
89
|
*
|
|
@@ -140,6 +140,121 @@ export class AuthClient {
|
|
|
140
140
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/login");
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Sends a password reset link to the provided email address if an account exists.
|
|
145
|
+
* Always returns a 200 response to prevent email enumeration.
|
|
146
|
+
*
|
|
147
|
+
* @param {FiveOneEat.business.ForgotPasswordRequest} request
|
|
148
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.business.auth.forgotPassword({
|
|
154
|
+
* email: "email"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
forgotPassword(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__forgotPassword(request, requestOptions));
|
|
159
|
+
}
|
|
160
|
+
__forgotPassword(request, requestOptions) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
163
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
164
|
+
const _response = yield core.fetcher({
|
|
165
|
+
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/forgot-password"),
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: _headers,
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
170
|
+
requestType: "json",
|
|
171
|
+
body: request,
|
|
172
|
+
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,
|
|
173
|
+
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,
|
|
174
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
176
|
+
logging: this._options.logging,
|
|
177
|
+
});
|
|
178
|
+
if (_response.ok) {
|
|
179
|
+
return {
|
|
180
|
+
data: _response.body,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch (_response.error.statusCode) {
|
|
186
|
+
case 422:
|
|
187
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
188
|
+
default:
|
|
189
|
+
throw new errors.FiveOneEatError({
|
|
190
|
+
statusCode: _response.error.statusCode,
|
|
191
|
+
body: _response.error.body,
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/forgot-password");
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Validates the reset token and updates the user's password. All existing API tokens
|
|
201
|
+
* are revoked after a successful reset, requiring re-authentication on all devices.
|
|
202
|
+
*
|
|
203
|
+
* @param {FiveOneEat.business.ResetPasswordRequest} request
|
|
204
|
+
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
|
+
*
|
|
206
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* await client.business.auth.resetPassword({
|
|
210
|
+
* token: "token",
|
|
211
|
+
* email: "email",
|
|
212
|
+
* password: "password",
|
|
213
|
+
* password_confirmation: "password_confirmation"
|
|
214
|
+
* })
|
|
215
|
+
*/
|
|
216
|
+
resetPassword(request, requestOptions) {
|
|
217
|
+
return core.HttpResponsePromise.fromPromise(this.__resetPassword(request, requestOptions));
|
|
218
|
+
}
|
|
219
|
+
__resetPassword(request, requestOptions) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
222
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
|
+
const _response = yield core.fetcher({
|
|
224
|
+
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/reset-password"),
|
|
225
|
+
method: "POST",
|
|
226
|
+
headers: _headers,
|
|
227
|
+
contentType: "application/json",
|
|
228
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
229
|
+
requestType: "json",
|
|
230
|
+
body: request,
|
|
231
|
+
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,
|
|
232
|
+
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,
|
|
233
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
234
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
235
|
+
logging: this._options.logging,
|
|
236
|
+
});
|
|
237
|
+
if (_response.ok) {
|
|
238
|
+
return {
|
|
239
|
+
data: _response.body,
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (_response.error.reason === "status-code") {
|
|
244
|
+
switch (_response.error.statusCode) {
|
|
245
|
+
case 422:
|
|
246
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
247
|
+
default:
|
|
248
|
+
throw new errors.FiveOneEatError({
|
|
249
|
+
statusCode: _response.error.statusCode,
|
|
250
|
+
body: _response.error.body,
|
|
251
|
+
rawResponse: _response.rawResponse,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/reset-password");
|
|
256
|
+
});
|
|
257
|
+
}
|
|
143
258
|
/**
|
|
144
259
|
* Retrieve the current authenticated business user with their active business and all owned businesses.
|
|
145
260
|
*
|
package/dist/esm/api/resources/business/resources/auth/client/requests/ResetPasswordRequest.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* token: "token",
|
|
5
|
+
* email: "email",
|
|
6
|
+
* password: "password",
|
|
7
|
+
* password_confirmation: "password_confirmation"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ResetPasswordRequest {
|
|
11
|
+
token: string;
|
|
12
|
+
email: string;
|
|
13
|
+
password: string;
|
|
14
|
+
password_confirmation: string;
|
|
15
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export type { ForgotPasswordRequest } from "./ForgotPasswordRequest.mjs";
|
|
1
2
|
export type { LoginBusinessRequest } from "./LoginBusinessRequest.mjs";
|
|
2
3
|
export type { LogoutAuthRequest } from "./LogoutAuthRequest.mjs";
|
|
3
4
|
export type { RegisterBusinessRequest } from "./RegisterBusinessRequest.mjs";
|
|
5
|
+
export type { ResetPasswordRequest } from "./ResetPasswordRequest.mjs";
|
|
4
6
|
export type { SwitchBusinessAuthRequest } from "./SwitchBusinessAuthRequest.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ForgotPasswordAuthResponse {
|
|
2
|
+
message: ForgotPasswordAuthResponse.Message;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ForgotPasswordAuthResponse {
|
|
5
|
+
const Message: {
|
|
6
|
+
readonly AResetLinkWillBeSentIfTheAccountExists: "A reset link will be sent if the account exists.";
|
|
7
|
+
};
|
|
8
|
+
type Message = (typeof Message)[keyof typeof Message];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ForgotPasswordAuthResponse;
|
|
3
|
+
(function (ForgotPasswordAuthResponse) {
|
|
4
|
+
ForgotPasswordAuthResponse.Message = {
|
|
5
|
+
AResetLinkWillBeSentIfTheAccountExists: "A reset link will be sent if the account exists.",
|
|
6
|
+
};
|
|
7
|
+
})(ForgotPasswordAuthResponse || (ForgotPasswordAuthResponse = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ResetPasswordAuthResponse {
|
|
2
|
+
message: ResetPasswordAuthResponse.Message;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ResetPasswordAuthResponse {
|
|
5
|
+
const Message: {
|
|
6
|
+
readonly YourPasswordHasBeenReset: "Your password has been reset.";
|
|
7
|
+
};
|
|
8
|
+
type Message = (typeof Message)[keyof typeof Message];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ResetPasswordAuthResponse;
|
|
3
|
+
(function (ResetPasswordAuthResponse) {
|
|
4
|
+
ResetPasswordAuthResponse.Message = {
|
|
5
|
+
YourPasswordHasBeenReset: "Your password has been reset.",
|
|
6
|
+
};
|
|
7
|
+
})(ResetPasswordAuthResponse || (ResetPasswordAuthResponse = {}));
|