@51eat/sdk 0.0.71 → 0.0.73

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.
Files changed (94) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/stands/client/requests/UpdateStandRequest.d.ts +7 -0
  3. package/dist/cjs/api/resources/customer/client/Client.d.ts +0 -1
  4. package/dist/cjs/api/resources/customer/client/Client.js +1 -5
  5. package/dist/cjs/api/resources/customer/resources/ads/client/Client.d.ts +2 -4
  6. package/dist/cjs/api/resources/customer/resources/ads/client/Client.js +3 -11
  7. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +27 -34
  8. package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +83 -111
  9. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.ts +0 -1
  10. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/client/Client.js +1 -5
  11. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +0 -2
  12. package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +2 -10
  13. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.d.ts +0 -3
  14. package/dist/cjs/api/resources/customer/resources/businesses/resources/events/client/Client.js +7 -19
  15. package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +4 -4
  16. package/dist/cjs/api/resources/customer/resources/discovery/client/Client.d.ts +2 -14
  17. package/dist/cjs/api/resources/customer/resources/discovery/client/Client.js +33 -81
  18. package/dist/cjs/api/resources/customer/resources/editorials/client/Client.d.ts +3 -7
  19. package/dist/cjs/api/resources/customer/resources/editorials/client/Client.js +13 -30
  20. package/dist/cjs/api/resources/customer/resources/events/client/Client.d.ts +0 -1
  21. package/dist/cjs/api/resources/customer/resources/events/client/Client.js +1 -5
  22. package/dist/cjs/api/resources/customer/resources/explore/client/Client.d.ts +2 -3
  23. package/dist/cjs/api/resources/customer/resources/explore/client/Client.js +2 -6
  24. package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +2 -5
  25. package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +4 -16
  26. package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +1 -2
  27. package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts +4 -4
  28. package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +1 -1
  29. package/dist/cjs/api/types/CartResource.d.ts +1 -1
  30. package/dist/cjs/api/types/InventoryLevelResource.d.ts +3 -3
  31. package/dist/cjs/api/types/OrderItemResource.d.ts +10 -0
  32. package/dist/cjs/api/types/OrderResource.d.ts +24 -9
  33. package/dist/cjs/api/types/PaginationResource.d.ts +4 -4
  34. package/dist/cjs/api/types/PriceListResource.d.ts +1 -1
  35. package/dist/cjs/api/types/PriceResource.d.ts +3 -3
  36. package/dist/cjs/api/types/ProductResource.d.ts +5 -6
  37. package/dist/cjs/api/types/Transaction.d.ts +6 -6
  38. package/dist/cjs/api/types/VariantResource.d.ts +3 -3
  39. package/dist/cjs/api/types/index.d.ts +1 -2
  40. package/dist/cjs/api/types/index.js +1 -2
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/BaseClient.mjs +2 -2
  44. package/dist/esm/api/resources/business/resources/stands/client/requests/UpdateStandRequest.d.mts +7 -0
  45. package/dist/esm/api/resources/customer/client/Client.d.mts +0 -1
  46. package/dist/esm/api/resources/customer/client/Client.mjs +1 -5
  47. package/dist/esm/api/resources/customer/resources/ads/client/Client.d.mts +2 -4
  48. package/dist/esm/api/resources/customer/resources/ads/client/Client.mjs +4 -12
  49. package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +27 -34
  50. package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +83 -111
  51. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.d.mts +0 -1
  52. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/client/Client.mjs +1 -5
  53. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +0 -2
  54. package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +2 -10
  55. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.d.mts +0 -3
  56. package/dist/esm/api/resources/customer/resources/businesses/resources/events/client/Client.mjs +7 -19
  57. package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +4 -4
  58. package/dist/esm/api/resources/customer/resources/discovery/client/Client.d.mts +2 -14
  59. package/dist/esm/api/resources/customer/resources/discovery/client/Client.mjs +34 -82
  60. package/dist/esm/api/resources/customer/resources/editorials/client/Client.d.mts +3 -7
  61. package/dist/esm/api/resources/customer/resources/editorials/client/Client.mjs +14 -31
  62. package/dist/esm/api/resources/customer/resources/events/client/Client.d.mts +0 -1
  63. package/dist/esm/api/resources/customer/resources/events/client/Client.mjs +1 -5
  64. package/dist/esm/api/resources/customer/resources/explore/client/Client.d.mts +2 -3
  65. package/dist/esm/api/resources/customer/resources/explore/client/Client.mjs +3 -7
  66. package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +2 -5
  67. package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +5 -17
  68. package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +1 -2
  69. package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts +4 -4
  70. package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +1 -1
  71. package/dist/esm/api/types/CartResource.d.mts +1 -1
  72. package/dist/esm/api/types/InventoryLevelResource.d.mts +3 -3
  73. package/dist/esm/api/types/OrderItemResource.d.mts +10 -0
  74. package/dist/esm/api/types/OrderResource.d.mts +24 -9
  75. package/dist/esm/api/types/PaginationResource.d.mts +4 -4
  76. package/dist/esm/api/types/PriceListResource.d.mts +1 -1
  77. package/dist/esm/api/types/PriceResource.d.mts +3 -3
  78. package/dist/esm/api/types/ProductResource.d.mts +5 -6
  79. package/dist/esm/api/types/Transaction.d.mts +6 -6
  80. package/dist/esm/api/types/VariantResource.d.mts +3 -3
  81. package/dist/esm/api/types/index.d.mts +1 -2
  82. package/dist/esm/api/types/index.mjs +1 -2
  83. package/dist/esm/version.d.mts +1 -1
  84. package/dist/esm/version.mjs +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +19 -19
  87. package/dist/cjs/api/types/ImageResource.d.ts +0 -6
  88. package/dist/cjs/api/types/ProductCategoryResource.d.ts +0 -8
  89. package/dist/cjs/api/types/ProductCategoryResource.js +0 -3
  90. package/dist/esm/api/types/ImageResource.d.mts +0 -6
  91. package/dist/esm/api/types/ProductCategoryResource.d.mts +0 -8
  92. package/dist/esm/api/types/ProductCategoryResource.mjs +0 -2
  93. /package/dist/cjs/api/types/{ImageResource.js → OrderItemResource.js} +0 -0
  94. /package/dist/esm/api/types/{ImageResource.mjs → OrderItemResource.mjs} +0 -0
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@51eat/sdk",
46
- "X-Fern-SDK-Version": "0.0.71",
47
- "User-Agent": "@51eat/sdk/0.0.71",
46
+ "X-Fern-SDK-Version": "0.0.73",
47
+ "User-Agent": "@51eat/sdk/0.0.73",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -17,4 +17,11 @@ export interface UpdateStandRequest {
17
17
  latitude?: number | null;
18
18
  longitude?: number | null;
19
19
  is_active?: boolean | null;
20
+ /**
21
+ * `UpdateStand` passes these straight to `$stand->products()->sync()`.
22
+ * Unvalidated, any id at all was accepted — including one from another
23
+ * business's catalogue, which then appeared on this stand's public
24
+ * self-checkout. Scoped to the caller's own products.
25
+ */
26
+ product_ids?: string[];
20
27
  }
@@ -62,7 +62,6 @@ export declare class CustomerClient {
62
62
  * @param {FiveOneEat.SearchCustomerRequest} request
63
63
  * @param {CustomerClient.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
- * @throws {@link FiveOneEat.UnauthorizedError}
66
65
  * @throws {@link FiveOneEat.UnprocessableEntityError}
67
66
  *
68
67
  * @example
@@ -138,7 +138,6 @@ class CustomerClient {
138
138
  * @param {FiveOneEat.SearchCustomerRequest} request
139
139
  * @param {CustomerClient.RequestOptions} requestOptions - Request-specific configuration.
140
140
  *
141
- * @throws {@link FiveOneEat.UnauthorizedError}
142
141
  * @throws {@link FiveOneEat.UnprocessableEntityError}
143
142
  *
144
143
  * @example
@@ -168,8 +167,7 @@ class CustomerClient {
168
167
  lat: lat != null ? (0, json_js_1.toJson)(lat) : undefined,
169
168
  lng: lng != null ? (0, json_js_1.toJson)(lng) : undefined,
170
169
  };
171
- const _authRequest = yield this._options.authProvider.getAuthRequest();
172
- 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);
170
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
173
171
  const _response = yield core.fetcher({
174
172
  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/search"),
175
173
  method: "GET",
@@ -191,8 +189,6 @@ class CustomerClient {
191
189
  }
192
190
  if (_response.error.reason === "status-code") {
193
191
  switch (_response.error.statusCode) {
194
- case 401:
195
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
196
192
  case 422:
197
193
  throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
198
194
  default:
@@ -1,5 +1,5 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptions } from "../../../../../../BaseClient.js";
3
3
  import * as core from "../../../../../../core/index.js";
4
4
  import * as FiveOneEat from "../../../../../index.js";
5
5
  export declare namespace AdsClient {
@@ -8,7 +8,7 @@ export declare namespace AdsClient {
8
8
  }
9
9
  }
10
10
  export declare class AdsClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<AdsClient.Options>;
11
+ protected readonly _options: NormalizedClientOptions<AdsClient.Options>;
12
12
  constructor(options?: AdsClient.Options);
13
13
  /**
14
14
  * Returns an active advertisement for the given placement, or no content if none is available.
@@ -16,7 +16,6 @@ export declare class AdsClient {
16
16
  * @param {FiveOneEat.customer.ServeAdsRequest} request
17
17
  * @param {AdsClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
- * @throws {@link FiveOneEat.UnauthorizedError}
20
19
  * @throws {@link FiveOneEat.NotFoundError}
21
20
  *
22
21
  * @example
@@ -32,7 +31,6 @@ export declare class AdsClient {
32
31
  * @param {FiveOneEat.customer.RecordClickAdsRequest} request
33
32
  * @param {AdsClient.RequestOptions} requestOptions - Request-specific configuration.
34
33
  *
35
- * @throws {@link FiveOneEat.UnauthorizedError}
36
34
  * @throws {@link FiveOneEat.NotFoundError}
37
35
  *
38
36
  * @example
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
53
53
  const FiveOneEat = __importStar(require("../../../../../index.js"));
54
54
  class AdsClient {
55
55
  constructor(options = {}) {
56
- this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
57
57
  }
58
58
  /**
59
59
  * Returns an active advertisement for the given placement, or no content if none is available.
@@ -61,7 +61,6 @@ class AdsClient {
61
61
  * @param {FiveOneEat.customer.ServeAdsRequest} request
62
62
  * @param {AdsClient.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
- * @throws {@link FiveOneEat.UnauthorizedError}
65
64
  * @throws {@link FiveOneEat.NotFoundError}
66
65
  *
67
66
  * @example
@@ -76,8 +75,7 @@ class AdsClient {
76
75
  return __awaiter(this, void 0, void 0, function* () {
77
76
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
78
77
  const { placement } = request;
79
- const _authRequest = yield this._options.authProvider.getAuthRequest();
80
- 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);
78
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
79
  const _response = yield core.fetcher({
82
80
  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/ads/${core.url.encodePathParam(placement)}`),
83
81
  method: "GET",
@@ -94,8 +92,6 @@ class AdsClient {
94
92
  }
95
93
  if (_response.error.reason === "status-code") {
96
94
  switch (_response.error.statusCode) {
97
- case 401:
98
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
99
95
  case 404:
100
96
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
101
97
  default:
@@ -115,7 +111,6 @@ class AdsClient {
115
111
  * @param {FiveOneEat.customer.RecordClickAdsRequest} request
116
112
  * @param {AdsClient.RequestOptions} requestOptions - Request-specific configuration.
117
113
  *
118
- * @throws {@link FiveOneEat.UnauthorizedError}
119
114
  * @throws {@link FiveOneEat.NotFoundError}
120
115
  *
121
116
  * @example
@@ -130,8 +125,7 @@ class AdsClient {
130
125
  return __awaiter(this, void 0, void 0, function* () {
131
126
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
132
127
  const { advertisement } = request;
133
- const _authRequest = yield this._options.authProvider.getAuthRequest();
134
- 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);
128
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
135
129
  const _response = yield core.fetcher({
136
130
  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/ads/${core.url.encodePathParam(advertisement)}/click`),
137
131
  method: "POST",
@@ -148,8 +142,6 @@ class AdsClient {
148
142
  }
149
143
  if (_response.error.reason === "status-code") {
150
144
  switch (_response.error.statusCode) {
151
- case 401:
152
- throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
153
145
  case 404:
154
146
  throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
155
147
  default:
@@ -22,8 +22,6 @@ export declare class BusinessesClient {
22
22
  * @param {FiveOneEat.customer.ProfileBusinessesRequest} request
23
23
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
24
24
  *
25
- * @throws {@link FiveOneEat.UnauthorizedError}
26
- *
27
25
  * @example
28
26
  * await client.customer.businesses.profile({
29
27
  * business: "katzs-deli"
@@ -37,7 +35,6 @@ export declare class BusinessesClient {
37
35
  * @param {FiveOneEat.customer.MenusBusinessesRequest} request
38
36
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
39
37
  *
40
- * @throws {@link FiveOneEat.UnauthorizedError}
41
38
  * @throws {@link FiveOneEat.UnprocessableEntityError}
42
39
  *
43
40
  * @example
@@ -53,7 +50,6 @@ export declare class BusinessesClient {
53
50
  * @param {FiveOneEat.customer.PhotosBusinessesRequest} request
54
51
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
55
52
  *
56
- * @throws {@link FiveOneEat.UnauthorizedError}
57
53
  * @throws {@link FiveOneEat.UnprocessableEntityError}
58
54
  *
59
55
  * @example
@@ -64,68 +60,65 @@ export declare class BusinessesClient {
64
60
  photos(request: FiveOneEat.customer.PhotosBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.PhotosBusinessesResponse>;
65
61
  private __photos;
66
62
  /**
67
- * Add a business to the authenticated user's favorites.
63
+ * Retrieve active and upcoming temporary locations for a business.
68
64
  *
69
- * @param {FiveOneEat.customer.FavoriteBusinessesRequest} request
65
+ * @param {FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest} request
70
66
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
71
67
  *
72
- * @throws {@link FiveOneEat.UnauthorizedError}
73
- * @throws {@link FiveOneEat.NotFoundError}
74
- * @throws {@link FiveOneEat.ConflictError}
75
- *
76
68
  * @example
77
- * await client.customer.businesses.favorite({
69
+ * await client.customer.businesses.listTemporaryLocations({
78
70
  * business: "katzs-deli"
79
71
  * })
80
72
  */
81
- favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteBusinessesResponse>;
82
- private __favorite;
73
+ listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;
74
+ private __listTemporaryLocations;
83
75
  /**
84
- * Remove a business from the authenticated user's favorites.
76
+ * Returns available pickup timeslots for a business on a given date.
85
77
  *
86
- * @param {FiveOneEat.customer.UnfavoriteBusinessesRequest} request
78
+ * @param {FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest} request
87
79
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
88
80
  *
89
- * @throws {@link FiveOneEat.UnauthorizedError}
90
- * @throws {@link FiveOneEat.NotFoundError}
81
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
91
82
  *
92
83
  * @example
93
- * await client.customer.businesses.unfavorite({
94
- * business: "katzs-deli"
84
+ * await client.customer.businesses.getPickupTimeslots({
85
+ * handle: "katzs-deli",
86
+ * date: "2023-01-15"
95
87
  * })
96
88
  */
97
- unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
98
- private __unfavorite;
89
+ getPickupTimeslots(request: FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetPickupTimeslotsBusinessesResponse>;
90
+ private __getPickupTimeslots;
99
91
  /**
100
- * Retrieve active and upcoming temporary locations for a business.
92
+ * Add a business to the authenticated user's favorites.
101
93
  *
102
- * @param {FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest} request
94
+ * @param {FiveOneEat.customer.FavoriteBusinessesRequest} request
103
95
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
104
96
  *
105
97
  * @throws {@link FiveOneEat.UnauthorizedError}
98
+ * @throws {@link FiveOneEat.NotFoundError}
99
+ * @throws {@link FiveOneEat.ConflictError}
106
100
  *
107
101
  * @example
108
- * await client.customer.businesses.listTemporaryLocations({
102
+ * await client.customer.businesses.favorite({
109
103
  * business: "katzs-deli"
110
104
  * })
111
105
  */
112
- listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;
113
- private __listTemporaryLocations;
106
+ favorite(request: FiveOneEat.customer.FavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.FavoriteBusinessesResponse>;
107
+ private __favorite;
114
108
  /**
115
- * Returns available pickup timeslots for a business on a given date.
109
+ * Remove a business from the authenticated user's favorites.
116
110
  *
117
- * @param {FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest} request
111
+ * @param {FiveOneEat.customer.UnfavoriteBusinessesRequest} request
118
112
  * @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
119
113
  *
120
114
  * @throws {@link FiveOneEat.UnauthorizedError}
121
- * @throws {@link FiveOneEat.UnprocessableEntityError}
115
+ * @throws {@link FiveOneEat.NotFoundError}
122
116
  *
123
117
  * @example
124
- * await client.customer.businesses.getPickupTimeslots({
125
- * handle: "katzs-deli",
126
- * date: "2023-01-15"
118
+ * await client.customer.businesses.unfavorite({
119
+ * business: "katzs-deli"
127
120
  * })
128
121
  */
129
- getPickupTimeslots(request: FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetPickupTimeslotsBusinessesResponse>;
130
- private __getPickupTimeslots;
122
+ unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
123
+ private __unfavorite;
131
124
  }