@51eat/sdk 0.0.54 → 0.0.56
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +15 -10
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +4 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/productOrders/types/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.d.ts +1 -1
- package/dist/cjs/api/resources/businessProducts/client/requests/AdjustInventoryRequest.d.ts +2 -10
- package/dist/cjs/api/resources/businessProducts/client/requests/AdjustInventoryRequest.js +0 -8
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +13 -1
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +46 -1
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +5 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +3 -3
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.ts +19 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.js +3 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +2 -7
- package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.ts +13 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.ts +3 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts +13 -2
- package/dist/cjs/api/resources/customer/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.ts +3 -3
- package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +30 -0
- package/dist/cjs/api/resources/customerBusinesses/client/Client.js +125 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerBusinesses/client/index.js +17 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/exports.js +21 -0
- package/dist/cjs/api/resources/customerBusinesses/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerBusinesses/index.js +18 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPickupTimeslotsResponse.d.ts +7 -0
- package/dist/cjs/api/resources/customerBusinesses/types/GetBusinessPickupTimeslotsResponse.js +3 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerBusinesses/types/index.js +17 -0
- package/dist/cjs/api/resources/customerMyAccount/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/customerMyAccount/client/Client.js +54 -0
- package/dist/cjs/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.js +3 -0
- package/dist/cjs/api/resources/customerMyAccount/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/serveAd/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/serveAd/client/Client.js +4 -1
- package/dist/cjs/api/resources/serveAd/types/AdsServeAdResponse.d.ts +2 -2
- package/dist/cjs/api/types/Ad.d.ts +1 -4
- package/dist/cjs/api/types/BusinessConversation.d.ts +1 -1
- package/dist/cjs/api/types/BusinessEventCheckInStats.d.ts +1 -1
- package/dist/cjs/api/types/BusinessEventSalesSummary.d.ts +1 -1
- package/dist/cjs/api/types/BusinessMenuItem.d.ts +22 -2
- package/dist/cjs/api/types/Conversation.d.ts +1 -1
- package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +10 -1
- package/dist/cjs/api/types/InventoryChangeType.d.ts +9 -0
- package/dist/cjs/api/types/InventoryChangeType.js +12 -0
- package/dist/cjs/api/types/Ticket.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -1
- package/dist/cjs/api/types/index.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +4 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/productOrders/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.mts +3 -3
- package/dist/esm/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.d.mts +1 -1
- package/dist/esm/api/resources/businessProducts/client/requests/AdjustInventoryRequest.d.mts +2 -10
- package/dist/esm/api/resources/businessProducts/client/requests/AdjustInventoryRequest.mjs +0 -8
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +13 -1
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +46 -1
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +5 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +3 -3
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.mts +19 -0
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +2 -7
- package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.mts +13 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.mts +3 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts +13 -2
- package/dist/esm/api/resources/customer/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.mts +3 -3
- package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +30 -0
- package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +88 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.d.mts +12 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerBusinesses/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/exports.mjs +3 -0
- package/dist/esm/api/resources/customerBusinesses/index.d.mts +2 -0
- package/dist/esm/api/resources/customerBusinesses/index.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPickupTimeslotsResponse.d.mts +7 -0
- package/dist/esm/api/resources/customerBusinesses/types/GetBusinessPickupTimeslotsResponse.mjs +2 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customerBusinesses/types/index.mjs +1 -0
- package/dist/esm/api/resources/customerMyAccount/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/customerMyAccount/client/Client.mjs +54 -0
- package/dist/esm/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.d.mts +9 -0
- package/dist/esm/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.mjs +2 -0
- package/dist/esm/api/resources/customerMyAccount/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/serveAd/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/serveAd/client/Client.mjs +4 -1
- package/dist/esm/api/resources/serveAd/types/AdsServeAdResponse.d.mts +2 -2
- package/dist/esm/api/types/Ad.d.mts +1 -4
- package/dist/esm/api/types/BusinessConversation.d.mts +1 -1
- package/dist/esm/api/types/BusinessEventCheckInStats.d.mts +1 -1
- package/dist/esm/api/types/BusinessEventSalesSummary.d.mts +1 -1
- package/dist/esm/api/types/BusinessMenuItem.d.mts +22 -2
- package/dist/esm/api/types/Conversation.d.mts +1 -1
- package/dist/esm/api/types/CustomerProductOrderItem.d.mts +10 -1
- package/dist/esm/api/types/InventoryChangeType.d.mts +9 -0
- package/dist/esm/api/types/InventoryChangeType.mjs +9 -0
- package/dist/esm/api/types/Ticket.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -1
- package/dist/esm/api/types/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +188 -5
- package/dist/cjs/api/types/JsonResource.d.ts +0 -1
- package/dist/esm/api/types/JsonResource.d.mts +0 -1
- /package/dist/cjs/api/{types/JsonResource.js → resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.js} +0 -0
- /package/dist/esm/api/{types/JsonResource.mjs → resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.mjs} +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.56",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.56",
|
|
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);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BusinessMessagingClient } from "./api/resources/businessMessaging/clien
|
|
|
3
3
|
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.js";
|
|
4
4
|
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.js";
|
|
5
5
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
6
|
+
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
|
|
6
7
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
|
|
7
8
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
|
|
8
9
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
|
|
@@ -21,6 +22,7 @@ export declare class FiveOneEatClient {
|
|
|
21
22
|
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
22
23
|
protected _businessProducts: BusinessProductsClient | undefined;
|
|
23
24
|
protected _businessShipping: BusinessShippingClient | undefined;
|
|
25
|
+
protected _customerBusinesses: CustomerBusinessesClient | undefined;
|
|
24
26
|
protected _customerEvents: CustomerEventsClient | undefined;
|
|
25
27
|
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
26
28
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
@@ -32,6 +34,7 @@ export declare class FiveOneEatClient {
|
|
|
32
34
|
get businessMessaging(): BusinessMessagingClient;
|
|
33
35
|
get businessProducts(): BusinessProductsClient;
|
|
34
36
|
get businessShipping(): BusinessShippingClient;
|
|
37
|
+
get customerBusinesses(): CustomerBusinessesClient;
|
|
35
38
|
get customerEvents(): CustomerEventsClient;
|
|
36
39
|
get customerMessaging(): CustomerMessagingClient;
|
|
37
40
|
get customerMyAccount(): CustomerMyAccountClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -49,11 +49,12 @@ const Client_js_2 = require("./api/resources/businessMessaging/client/Client.js"
|
|
|
49
49
|
const Client_js_3 = require("./api/resources/businessProducts/client/Client.js");
|
|
50
50
|
const Client_js_4 = require("./api/resources/businessShipping/client/Client.js");
|
|
51
51
|
const Client_js_5 = require("./api/resources/customer/client/Client.js");
|
|
52
|
-
const Client_js_6 = require("./api/resources/
|
|
53
|
-
const Client_js_7 = require("./api/resources/
|
|
54
|
-
const Client_js_8 = require("./api/resources/
|
|
55
|
-
const Client_js_9 = require("./api/resources/
|
|
56
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
+
const Client_js_6 = require("./api/resources/customerBusinesses/client/Client.js");
|
|
53
|
+
const Client_js_7 = require("./api/resources/customerEvents/client/Client.js");
|
|
54
|
+
const Client_js_8 = require("./api/resources/customerMessaging/client/Client.js");
|
|
55
|
+
const Client_js_9 = require("./api/resources/customerMyAccount/client/Client.js");
|
|
56
|
+
const Client_js_10 = require("./api/resources/recordClick/client/Client.js");
|
|
57
|
+
const Client_js_11 = require("./api/resources/serveAd/client/Client.js");
|
|
57
58
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
58
59
|
const core = __importStar(require("./core/index.js"));
|
|
59
60
|
class FiveOneEatClient {
|
|
@@ -72,17 +73,21 @@ class FiveOneEatClient {
|
|
|
72
73
|
var _a;
|
|
73
74
|
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_4.BusinessShippingClient(this._options)));
|
|
74
75
|
}
|
|
76
|
+
get customerBusinesses() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_6.CustomerBusinessesClient(this._options)));
|
|
79
|
+
}
|
|
75
80
|
get customerEvents() {
|
|
76
81
|
var _a;
|
|
77
|
-
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new
|
|
82
|
+
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_7.CustomerEventsClient(this._options)));
|
|
78
83
|
}
|
|
79
84
|
get customerMessaging() {
|
|
80
85
|
var _a;
|
|
81
|
-
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new
|
|
86
|
+
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_8.CustomerMessagingClient(this._options)));
|
|
82
87
|
}
|
|
83
88
|
get customerMyAccount() {
|
|
84
89
|
var _a;
|
|
85
|
-
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new
|
|
90
|
+
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_9.CustomerMyAccountClient(this._options)));
|
|
86
91
|
}
|
|
87
92
|
get customer() {
|
|
88
93
|
var _a;
|
|
@@ -90,11 +95,11 @@ class FiveOneEatClient {
|
|
|
90
95
|
}
|
|
91
96
|
get recordClick() {
|
|
92
97
|
var _a;
|
|
93
|
-
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new
|
|
98
|
+
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_10.RecordClickClient(this._options)));
|
|
94
99
|
}
|
|
95
100
|
get serveAd() {
|
|
96
101
|
var _a;
|
|
97
|
-
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new
|
|
102
|
+
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_11.ServeAdClient(this._options)));
|
|
98
103
|
}
|
|
99
104
|
get business() {
|
|
100
105
|
var _a;
|
|
@@ -19,8 +19,8 @@ export interface StoreDiscountRequest {
|
|
|
19
19
|
starts_at?: string | null;
|
|
20
20
|
ends_at?: string | null;
|
|
21
21
|
is_active?: boolean;
|
|
22
|
-
product_ids?:
|
|
23
|
-
category_ids?:
|
|
22
|
+
product_ids?: string[] | null;
|
|
23
|
+
category_ids?: string[] | null;
|
|
24
24
|
}
|
|
25
25
|
export declare namespace StoreDiscountRequest {
|
|
26
26
|
const Type: {
|
|
@@ -18,8 +18,8 @@ export interface UpdateDiscountRequest {
|
|
|
18
18
|
starts_at?: string | null;
|
|
19
19
|
ends_at?: string | null;
|
|
20
20
|
is_active?: boolean;
|
|
21
|
-
product_ids?:
|
|
22
|
-
category_ids?:
|
|
21
|
+
product_ids?: string[] | null;
|
|
22
|
+
category_ids?: string[] | null;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace UpdateDiscountRequest {
|
|
25
25
|
const Type: {
|
|
@@ -120,7 +120,7 @@ export declare class ProductOrdersClient {
|
|
|
120
120
|
* productOrder: "productOrder"
|
|
121
121
|
* })
|
|
122
122
|
*/
|
|
123
|
-
getLabelRates(request: FiveOneEat.business.GetLabelRatesProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<
|
|
123
|
+
getLabelRates(request: FiveOneEat.business.GetLabelRatesProductOrdersRequest, requestOptions?: ProductOrdersClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetLabelRatesProductOrdersResponseItem[]>;
|
|
124
124
|
private __getLabelRates;
|
|
125
125
|
/**
|
|
126
126
|
* @param {FiveOneEat.business.PurchaseLabelRequest} request
|
|
@@ -460,7 +460,10 @@ class ProductOrdersClient {
|
|
|
460
460
|
logging: this._options.logging,
|
|
461
461
|
});
|
|
462
462
|
if (_response.ok) {
|
|
463
|
-
return {
|
|
463
|
+
return {
|
|
464
|
+
data: _response.body,
|
|
465
|
+
rawResponse: _response.rawResponse,
|
|
466
|
+
};
|
|
464
467
|
}
|
|
465
468
|
if (_response.error.reason === "status-code") {
|
|
466
469
|
switch (_response.error.statusCode) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface GetLabelRatesProductOrdersResponseItem {
|
|
2
|
+
provider_rate_id: string;
|
|
3
|
+
carrier: string;
|
|
4
|
+
service: string;
|
|
5
|
+
amount_cents: number;
|
|
6
|
+
amount: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
carrier_delivery_days: number | null;
|
|
9
|
+
estimated_delivery_date: string | null;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./AddTrackingProductOrdersResponse.js";
|
|
2
2
|
export * from "./FulfillProductOrdersResponse.js";
|
|
3
|
+
export * from "./GetLabelRatesProductOrdersResponseItem.js";
|
|
3
4
|
export * from "./GetProductOrdersResponse.js";
|
|
4
5
|
export * from "./ListProductOrdersResponse.js";
|
|
5
6
|
export * from "./MarkPickedUpProductOrdersResponse.js";
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AddTrackingProductOrdersResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./FulfillProductOrdersResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./GetLabelRatesProductOrdersResponseItem.js"), exports);
|
|
19
20
|
__exportStar(require("./GetProductOrdersResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./ListProductOrdersResponse.js"), exports);
|
|
21
22
|
__exportStar(require("./MarkPickedUpProductOrdersResponse.js"), exports);
|
package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface StoreProductRequest {
|
|
|
31
31
|
tax_code?: string | null;
|
|
32
32
|
is_active?: boolean;
|
|
33
33
|
is_featured?: boolean;
|
|
34
|
-
category_ids?:
|
|
34
|
+
category_ids?: string[] | null;
|
|
35
35
|
}
|
|
36
36
|
export declare namespace StoreProductRequest {
|
|
37
37
|
const ProductType: {
|
package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface UpdateProductRequest {
|
|
|
32
32
|
is_active?: boolean;
|
|
33
33
|
published_at?: string | null;
|
|
34
34
|
is_featured?: boolean;
|
|
35
|
-
category_ids?:
|
|
35
|
+
category_ids?: string[] | null;
|
|
36
36
|
}
|
|
37
37
|
export declare namespace UpdateProductRequest {
|
|
38
38
|
const ProductType: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../../../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -12,7 +13,7 @@ export interface AdjustInventoryRequest {
|
|
|
12
13
|
variant: string;
|
|
13
14
|
type: AdjustInventoryRequest.Type;
|
|
14
15
|
quantity: number;
|
|
15
|
-
reason:
|
|
16
|
+
reason: FiveOneEat.InventoryChangeType;
|
|
16
17
|
notes?: string | null;
|
|
17
18
|
}
|
|
18
19
|
export declare namespace AdjustInventoryRequest {
|
|
@@ -22,13 +23,4 @@ export declare namespace AdjustInventoryRequest {
|
|
|
22
23
|
readonly Set: "set";
|
|
23
24
|
};
|
|
24
25
|
type Type = (typeof Type)[keyof typeof Type];
|
|
25
|
-
const Reason: {
|
|
26
|
-
readonly Restock: "restock";
|
|
27
|
-
readonly Damaged: "damaged";
|
|
28
|
-
readonly Shrinkage: "shrinkage";
|
|
29
|
-
readonly Returned: "returned";
|
|
30
|
-
readonly Correction: "correction";
|
|
31
|
-
readonly Other: "other";
|
|
32
|
-
};
|
|
33
|
-
type Reason = (typeof Reason)[keyof typeof Reason];
|
|
34
26
|
}
|
|
@@ -9,12 +9,4 @@ var AdjustInventoryRequest;
|
|
|
9
9
|
Subtract: "subtract",
|
|
10
10
|
Set: "set",
|
|
11
11
|
};
|
|
12
|
-
AdjustInventoryRequest.Reason = {
|
|
13
|
-
Restock: "restock",
|
|
14
|
-
Damaged: "damaged",
|
|
15
|
-
Shrinkage: "shrinkage",
|
|
16
|
-
Returned: "returned",
|
|
17
|
-
Correction: "correction",
|
|
18
|
-
Other: "other",
|
|
19
|
-
};
|
|
20
12
|
})(AdjustInventoryRequest || (exports.AdjustInventoryRequest = AdjustInventoryRequest = {}));
|
|
@@ -87,13 +87,14 @@ export declare class BusinessesClient {
|
|
|
87
87
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
88
|
*
|
|
89
89
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
90
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
90
91
|
*
|
|
91
92
|
* @example
|
|
92
93
|
* await client.customer.businesses.unfavorite({
|
|
93
94
|
* business: "katzs-deli"
|
|
94
95
|
* })
|
|
95
96
|
*/
|
|
96
|
-
unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<
|
|
97
|
+
unfavorite(request: FiveOneEat.customer.UnfavoriteBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
97
98
|
private __unfavorite;
|
|
98
99
|
/**
|
|
99
100
|
* Retrieve active and upcoming temporary locations for a business.
|
|
@@ -110,4 +111,15 @@ export declare class BusinessesClient {
|
|
|
110
111
|
*/
|
|
111
112
|
listTemporaryLocations(request: FiveOneEat.customer.ListTemporaryLocationsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.ListTemporaryLocationsBusinessesResponse>;
|
|
112
113
|
private __listTemporaryLocations;
|
|
114
|
+
/**
|
|
115
|
+
* @param {FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest} request
|
|
116
|
+
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.customer.businesses.getPickupTimeslots({
|
|
120
|
+
* business: "business"
|
|
121
|
+
* })
|
|
122
|
+
*/
|
|
123
|
+
getPickupTimeslots(request: FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest, requestOptions?: BusinessesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
124
|
+
private __getPickupTimeslots;
|
|
113
125
|
}
|
|
@@ -318,6 +318,7 @@ class BusinessesClient {
|
|
|
318
318
|
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
319
319
|
*
|
|
320
320
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
321
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
321
322
|
*
|
|
322
323
|
* @example
|
|
323
324
|
* await client.customer.businesses.unfavorite({
|
|
@@ -345,12 +346,14 @@ class BusinessesClient {
|
|
|
345
346
|
logging: this._options.logging,
|
|
346
347
|
});
|
|
347
348
|
if (_response.ok) {
|
|
348
|
-
return { data:
|
|
349
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
349
350
|
}
|
|
350
351
|
if (_response.error.reason === "status-code") {
|
|
351
352
|
switch (_response.error.statusCode) {
|
|
352
353
|
case 401:
|
|
353
354
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
355
|
+
case 404:
|
|
356
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
354
357
|
default:
|
|
355
358
|
throw new errors.FiveOneEatError({
|
|
356
359
|
statusCode: _response.error.statusCode,
|
|
@@ -416,5 +419,47 @@ class BusinessesClient {
|
|
|
416
419
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/temporary-locations");
|
|
417
420
|
});
|
|
418
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* @param {FiveOneEat.customer.GetPickupTimeslotsBusinessesRequest} request
|
|
424
|
+
* @param {BusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
425
|
+
*
|
|
426
|
+
* @example
|
|
427
|
+
* await client.customer.businesses.getPickupTimeslots({
|
|
428
|
+
* business: "business"
|
|
429
|
+
* })
|
|
430
|
+
*/
|
|
431
|
+
getPickupTimeslots(request, requestOptions) {
|
|
432
|
+
return core.HttpResponsePromise.fromPromise(this.__getPickupTimeslots(request, requestOptions));
|
|
433
|
+
}
|
|
434
|
+
__getPickupTimeslots(request, requestOptions) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
437
|
+
const { business } = request;
|
|
438
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
439
|
+
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);
|
|
440
|
+
const _response = yield core.fetcher({
|
|
441
|
+
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(business)}/pickup-timeslots`),
|
|
442
|
+
method: "GET",
|
|
443
|
+
headers: _headers,
|
|
444
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
445
|
+
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,
|
|
446
|
+
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,
|
|
447
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
448
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
449
|
+
logging: this._options.logging,
|
|
450
|
+
});
|
|
451
|
+
if (_response.ok) {
|
|
452
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
453
|
+
}
|
|
454
|
+
if (_response.error.reason === "status-code") {
|
|
455
|
+
throw new errors.FiveOneEatError({
|
|
456
|
+
statusCode: _response.error.statusCode,
|
|
457
|
+
body: _response.error.body,
|
|
458
|
+
rawResponse: _response.rawResponse,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/customer/businesses/{business}/pickup-timeslots");
|
|
462
|
+
});
|
|
463
|
+
}
|
|
419
464
|
}
|
|
420
465
|
exports.BusinessesClient = BusinessesClient;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { FavoriteBusinessesRequest } from "./FavoriteBusinessesRequest.js";
|
|
2
|
+
export type { GetPickupTimeslotsBusinessesRequest } from "./GetPickupTimeslotsBusinessesRequest.js";
|
|
2
3
|
export type { ListTemporaryLocationsBusinessesRequest } from "./ListTemporaryLocationsBusinessesRequest.js";
|
|
3
4
|
export type { MenusBusinessesRequest } from "./MenusBusinessesRequest.js";
|
|
4
5
|
export type { PhotosBusinessesRequest } from "./PhotosBusinessesRequest.js";
|
|
@@ -33,7 +33,7 @@ export declare class CartClient {
|
|
|
33
33
|
* @example
|
|
34
34
|
* await client.customer.cart.addItem({
|
|
35
35
|
* business: "katzs-deli",
|
|
36
|
-
* product_id:
|
|
36
|
+
* product_id: "product_id",
|
|
37
37
|
* quantity: 1
|
|
38
38
|
* })
|
|
39
39
|
*/
|
|
@@ -155,7 +155,7 @@ export declare class CartClient {
|
|
|
155
155
|
* }
|
|
156
156
|
* })
|
|
157
157
|
*/
|
|
158
|
-
getShippingOptions(request: FiveOneEat.customer.GetShippingOptionsRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<
|
|
158
|
+
getShippingOptions(request: FiveOneEat.customer.GetShippingOptionsRequest, requestOptions?: CartClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.GetShippingOptionsCartResponseItem[]>;
|
|
159
159
|
private __getShippingOptions;
|
|
160
160
|
/**
|
|
161
161
|
* Pass either `shipping_rate_id` (for flat/free rates) or `provider_rate_id`
|
|
@@ -125,7 +125,7 @@ class CartClient {
|
|
|
125
125
|
* @example
|
|
126
126
|
* await client.customer.cart.addItem({
|
|
127
127
|
* business: "katzs-deli",
|
|
128
|
-
* product_id:
|
|
128
|
+
* product_id: "product_id",
|
|
129
129
|
* quantity: 1
|
|
130
130
|
* })
|
|
131
131
|
*/
|
|
@@ -533,7 +533,10 @@ class CartClient {
|
|
|
533
533
|
logging: this._options.logging,
|
|
534
534
|
});
|
|
535
535
|
if (_response.ok) {
|
|
536
|
-
return {
|
|
536
|
+
return {
|
|
537
|
+
data: _response.body,
|
|
538
|
+
rawResponse: _response.rawResponse,
|
|
539
|
+
};
|
|
537
540
|
}
|
|
538
541
|
if (_response.error.reason === "status-code") {
|
|
539
542
|
switch (_response.error.statusCode) {
|
package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* business: "katzs-deli",
|
|
5
|
-
* product_id:
|
|
5
|
+
* product_id: "product_id",
|
|
6
6
|
* quantity: 1
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface AddToCartRequest {
|
|
10
10
|
/** The business handle */
|
|
11
11
|
business: string;
|
|
12
|
-
product_id:
|
|
13
|
-
variant_id?:
|
|
12
|
+
product_id: string;
|
|
13
|
+
variant_id?: string | null;
|
|
14
14
|
quantity: number;
|
|
15
15
|
}
|
package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type GetShippingOptionsCartResponseItem = {
|
|
2
|
+
shipping_rate_id: string;
|
|
3
|
+
provider_rate_id: unknown | null;
|
|
4
|
+
name: string;
|
|
5
|
+
amount_cents: number;
|
|
6
|
+
amount: string;
|
|
7
|
+
carrier: unknown | null;
|
|
8
|
+
service: unknown | null;
|
|
9
|
+
estimated_days: unknown | null;
|
|
10
|
+
} | {
|
|
11
|
+
shipping_rate_id: unknown | null;
|
|
12
|
+
provider_rate_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
amount_cents: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
carrier: string;
|
|
17
|
+
service: string;
|
|
18
|
+
estimated_days: string;
|
|
19
|
+
};
|
package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface SelectShippingOptionCartResponse {
|
|
2
2
|
shipping_amount: string;
|
|
3
3
|
shipping_amount_cents: number;
|
|
4
4
|
shipping_method: string;
|
|
5
5
|
total_amount: string;
|
|
6
|
-
}
|
|
7
|
-
shipping_amount: string;
|
|
8
|
-
shipping_amount_cents: number;
|
|
9
|
-
shipping_method: string;
|
|
10
|
-
total_amount: string;
|
|
11
|
-
};
|
|
6
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CheckoutCartResponse.js";
|
|
|
3
3
|
export * from "./ClearCartResponse.js";
|
|
4
4
|
export * from "./CreatePaymentIntentCartResponse.js";
|
|
5
5
|
export * from "./GetCartResponse.js";
|
|
6
|
+
export * from "./GetShippingOptionsCartResponseItem.js";
|
|
6
7
|
export * from "./RemoveItemCartResponse.js";
|
|
7
8
|
export * from "./SelectShippingOptionCartResponse.js";
|
|
8
9
|
export * from "./UpdateItemCartResponse.js";
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./CheckoutCartResponse.js"), exports);
|
|
|
19
19
|
__exportStar(require("./ClearCartResponse.js"), exports);
|
|
20
20
|
__exportStar(require("./CreatePaymentIntentCartResponse.js"), exports);
|
|
21
21
|
__exportStar(require("./GetCartResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./GetShippingOptionsCartResponseItem.js"), exports);
|
|
22
23
|
__exportStar(require("./RemoveItemCartResponse.js"), exports);
|
|
23
24
|
__exportStar(require("./SelectShippingOptionCartResponse.js"), exports);
|
|
24
25
|
__exportStar(require("./UpdateItemCartResponse.js"), exports);
|
|
@@ -6,6 +6,18 @@ export declare namespace CalculatePriceTicketingResponse {
|
|
|
6
6
|
subtotal: string;
|
|
7
7
|
platform_fee: string;
|
|
8
8
|
total: string;
|
|
9
|
-
line_items:
|
|
9
|
+
line_items: Data.LineItems.Item[];
|
|
10
|
+
}
|
|
11
|
+
namespace Data {
|
|
12
|
+
type LineItems = LineItems.Item[];
|
|
13
|
+
namespace LineItems {
|
|
14
|
+
interface Item {
|
|
15
|
+
ticket_type_id: string;
|
|
16
|
+
ticket_type_name: string;
|
|
17
|
+
unit_price: string;
|
|
18
|
+
quantity: string;
|
|
19
|
+
line_total: string;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
10
22
|
}
|
|
11
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as FiveOneEat from "../../../../../../../index.js";
|
|
2
|
-
export
|
|
3
|
-
data: FiveOneEat.
|
|
4
|
-
}
|
|
2
|
+
export interface ConfirmOrderTicketingResponse {
|
|
3
|
+
data: FiveOneEat.TicketOrder;
|
|
4
|
+
}
|
|
@@ -5,7 +5,18 @@ export declare namespace HoldTicketsTicketingResponse {
|
|
|
5
5
|
interface Data {
|
|
6
6
|
ticket_cart_id: string;
|
|
7
7
|
expires_at: string;
|
|
8
|
-
time_remaining_seconds:
|
|
9
|
-
holds:
|
|
8
|
+
time_remaining_seconds: number;
|
|
9
|
+
holds: Data.Holds.Item[];
|
|
10
|
+
}
|
|
11
|
+
namespace Data {
|
|
12
|
+
type Holds = Holds.Item[];
|
|
13
|
+
namespace Holds {
|
|
14
|
+
interface Item {
|
|
15
|
+
id: number;
|
|
16
|
+
ticket_type_id: string;
|
|
17
|
+
quantity: number;
|
|
18
|
+
expires_at: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
10
21
|
}
|
|
11
22
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../index.js";
|
|
5
|
+
export declare namespace CustomerBusinessesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CustomerBusinessesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerBusinessesClient.Options>;
|
|
12
|
+
constructor(options?: CustomerBusinessesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Returns available pickup timeslots for a business on a given date.
|
|
15
|
+
*
|
|
16
|
+
* @param {FiveOneEat.GetBusinessPickupTimeslotsRequest} request
|
|
17
|
+
* @param {CustomerBusinessesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.customerBusinesses.getBusinessPickupTimeslots({
|
|
24
|
+
* handle: "katzs-deli",
|
|
25
|
+
* date: "2023-01-15"
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
getBusinessPickupTimeslots(request: FiveOneEat.GetBusinessPickupTimeslotsRequest, requestOptions?: CustomerBusinessesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessPickupTimeslotsResponse>;
|
|
29
|
+
private __getBusinessPickupTimeslots;
|
|
30
|
+
}
|