eat518 1.4.0 → 1.5.0
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/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/resources/customer/businesses/businesses.d.mts +19 -167
- package/resources/customer/businesses/businesses.d.mts.map +1 -1
- package/resources/customer/businesses/businesses.d.ts +19 -167
- package/resources/customer/businesses/businesses.d.ts.map +1 -1
- package/resources/customer/businesses/businesses.js +16 -43
- package/resources/customer/businesses/businesses.js.map +1 -1
- package/resources/customer/businesses/businesses.mjs +16 -43
- package/resources/customer/businesses/businesses.mjs.map +1 -1
- package/resources/customer/businesses/events/events.d.mts +54 -0
- package/resources/customer/businesses/events/events.d.mts.map +1 -0
- package/resources/customer/businesses/events/events.d.ts +54 -0
- package/resources/customer/businesses/events/events.d.ts.map +1 -0
- package/resources/customer/businesses/events/events.js +31 -0
- package/resources/customer/businesses/events/events.js.map +1 -0
- package/resources/customer/businesses/events/events.mjs +26 -0
- package/resources/customer/businesses/events/events.mjs.map +1 -0
- package/resources/customer/businesses/events/index.d.mts +3 -0
- package/resources/customer/businesses/events/index.d.mts.map +1 -0
- package/resources/customer/businesses/events/index.d.ts +3 -0
- package/resources/customer/businesses/events/index.d.ts.map +1 -0
- package/resources/customer/businesses/events/index.js +9 -0
- package/resources/customer/businesses/events/index.js.map +1 -0
- package/resources/customer/businesses/events/index.mjs +4 -0
- package/resources/customer/businesses/events/index.mjs.map +1 -0
- package/resources/customer/businesses/{rsvp.d.mts → events/rsvp.d.mts} +9 -8
- package/resources/customer/businesses/events/rsvp.d.mts.map +1 -0
- package/resources/customer/businesses/{rsvp.d.ts → events/rsvp.d.ts} +9 -8
- package/resources/customer/businesses/events/rsvp.d.ts.map +1 -0
- package/resources/customer/businesses/{rsvp.js → events/rsvp.js} +8 -7
- package/resources/customer/businesses/events/rsvp.js.map +1 -0
- package/resources/customer/businesses/{rsvp.mjs → events/rsvp.mjs} +8 -7
- package/resources/customer/businesses/events/rsvp.mjs.map +1 -0
- package/resources/customer/businesses/events.d.mts +2 -0
- package/resources/customer/businesses/events.d.mts.map +1 -0
- package/resources/customer/businesses/events.d.ts +2 -0
- package/resources/customer/businesses/events.d.ts.map +1 -0
- package/resources/customer/businesses/events.js +6 -0
- package/resources/customer/businesses/events.js.map +1 -0
- package/resources/customer/businesses/events.mjs +3 -0
- package/resources/customer/businesses/events.mjs.map +1 -0
- package/resources/customer/businesses/favorite.d.mts +37 -0
- package/resources/customer/businesses/favorite.d.mts.map +1 -0
- package/resources/customer/businesses/favorite.d.ts +37 -0
- package/resources/customer/businesses/favorite.d.ts.map +1 -0
- package/resources/customer/businesses/favorite.js +38 -0
- package/resources/customer/businesses/favorite.js.map +1 -0
- package/resources/customer/businesses/favorite.mjs +34 -0
- package/resources/customer/businesses/favorite.mjs.map +1 -0
- package/resources/customer/businesses/index.d.mts +5 -2
- package/resources/customer/businesses/index.d.mts.map +1 -1
- package/resources/customer/businesses/index.d.ts +5 -2
- package/resources/customer/businesses/index.d.ts.map +1 -1
- package/resources/customer/businesses/index.js +9 -3
- package/resources/customer/businesses/index.js.map +1 -1
- package/resources/customer/businesses/index.mjs +5 -2
- package/resources/customer/businesses/index.mjs.map +1 -1
- package/resources/customer/businesses/menus.d.mts +95 -0
- package/resources/customer/businesses/menus.d.mts.map +1 -0
- package/resources/customer/businesses/menus.d.ts +95 -0
- package/resources/customer/businesses/menus.d.ts.map +1 -0
- package/resources/customer/businesses/menus.js +24 -0
- package/resources/customer/businesses/menus.js.map +1 -0
- package/resources/customer/businesses/menus.mjs +20 -0
- package/resources/customer/businesses/menus.mjs.map +1 -0
- package/resources/customer/businesses/photos.d.mts +47 -0
- package/resources/customer/businesses/photos.d.mts.map +1 -0
- package/resources/customer/businesses/photos.d.ts +47 -0
- package/resources/customer/businesses/photos.d.ts.map +1 -0
- package/resources/customer/businesses/photos.js +23 -0
- package/resources/customer/businesses/photos.js.map +1 -0
- package/resources/customer/businesses/photos.mjs +19 -0
- package/resources/customer/businesses/photos.mjs.map +1 -0
- package/resources/customer/customer.d.mts +15 -7
- package/resources/customer/customer.d.mts.map +1 -1
- package/resources/customer/customer.d.ts +15 -7
- package/resources/customer/customer.d.ts.map +1 -1
- package/resources/customer/customer.js +10 -2
- package/resources/customer/customer.js.map +1 -1
- package/resources/customer/customer.mjs +11 -3
- package/resources/customer/customer.mjs.map +1 -1
- package/resources/customer/discovery/{category.d.mts → categories/businesses.d.mts} +15 -15
- package/resources/customer/discovery/categories/businesses.d.mts.map +1 -0
- package/resources/customer/discovery/{category.d.ts → categories/businesses.d.ts} +15 -15
- package/resources/customer/discovery/categories/businesses.d.ts.map +1 -0
- package/resources/customer/discovery/{category.js → categories/businesses.js} +9 -9
- package/resources/customer/discovery/categories/businesses.js.map +1 -0
- package/resources/customer/discovery/{category.mjs → categories/businesses.mjs} +7 -7
- package/resources/customer/discovery/categories/businesses.mjs.map +1 -0
- package/resources/customer/discovery/categories/categories.d.mts +34 -0
- package/resources/customer/discovery/categories/categories.d.mts.map +1 -0
- package/resources/customer/discovery/categories/categories.d.ts +34 -0
- package/resources/customer/discovery/categories/categories.d.ts.map +1 -0
- package/resources/customer/discovery/categories/categories.js +30 -0
- package/resources/customer/discovery/categories/categories.js.map +1 -0
- package/resources/customer/discovery/categories/categories.mjs +25 -0
- package/resources/customer/discovery/categories/categories.mjs.map +1 -0
- package/resources/customer/discovery/categories/index.d.mts +3 -0
- package/resources/customer/discovery/categories/index.d.mts.map +1 -0
- package/resources/customer/discovery/categories/index.d.ts +3 -0
- package/resources/customer/discovery/categories/index.d.ts.map +1 -0
- package/resources/customer/discovery/categories/index.js +9 -0
- package/resources/customer/discovery/categories/index.js.map +1 -0
- package/resources/customer/discovery/categories/index.mjs +4 -0
- package/resources/customer/discovery/categories/index.mjs.map +1 -0
- package/resources/customer/discovery/categories.d.mts +2 -0
- package/resources/customer/discovery/categories.d.mts.map +1 -0
- package/resources/customer/discovery/categories.d.ts +2 -0
- package/resources/customer/discovery/categories.d.ts.map +1 -0
- package/resources/customer/discovery/categories.js +6 -0
- package/resources/customer/discovery/categories.js.map +1 -0
- package/resources/customer/discovery/categories.mjs +3 -0
- package/resources/customer/discovery/categories.mjs.map +1 -0
- package/resources/customer/discovery/discovery.d.mts +4 -28
- package/resources/customer/discovery/discovery.d.mts.map +1 -1
- package/resources/customer/discovery/discovery.d.ts +4 -28
- package/resources/customer/discovery/discovery.d.ts.map +1 -1
- package/resources/customer/discovery/discovery.js +4 -17
- package/resources/customer/discovery/discovery.js.map +1 -1
- package/resources/customer/discovery/discovery.mjs +4 -17
- package/resources/customer/discovery/discovery.mjs.map +1 -1
- package/resources/customer/discovery/index.d.mts +2 -2
- package/resources/customer/discovery/index.d.mts.map +1 -1
- package/resources/customer/discovery/index.d.ts +2 -2
- package/resources/customer/discovery/index.d.ts.map +1 -1
- package/resources/customer/discovery/index.js +3 -3
- package/resources/customer/discovery/index.js.map +1 -1
- package/resources/customer/discovery/index.mjs +1 -1
- package/resources/customer/discovery/index.mjs.map +1 -1
- package/resources/customer/explore/businesses.d.mts +59 -0
- package/resources/customer/explore/businesses.d.mts.map +1 -0
- package/resources/customer/explore/businesses.d.ts +59 -0
- package/resources/customer/explore/businesses.d.ts.map +1 -0
- package/resources/customer/explore/businesses.js +24 -0
- package/resources/customer/explore/businesses.js.map +1 -0
- package/resources/customer/explore/businesses.mjs +20 -0
- package/resources/customer/explore/businesses.mjs.map +1 -0
- package/resources/customer/explore/explore.d.mts +10 -0
- package/resources/customer/explore/explore.d.mts.map +1 -0
- package/resources/customer/explore/explore.d.ts +10 -0
- package/resources/customer/explore/explore.d.ts.map +1 -0
- package/resources/customer/explore/explore.js +17 -0
- package/resources/customer/explore/explore.js.map +1 -0
- package/resources/customer/explore/explore.mjs +12 -0
- package/resources/customer/explore/explore.mjs.map +1 -0
- package/resources/customer/explore/index.d.mts +3 -0
- package/resources/customer/explore/index.d.mts.map +1 -0
- package/resources/customer/explore/index.d.ts +3 -0
- package/resources/customer/explore/index.d.ts.map +1 -0
- package/resources/customer/explore/index.js +9 -0
- package/resources/customer/explore/index.js.map +1 -0
- package/resources/customer/explore/index.mjs +4 -0
- package/resources/customer/explore/index.mjs.map +1 -0
- package/resources/customer/explore.d.mts +1 -58
- package/resources/customer/explore.d.mts.map +1 -1
- package/resources/customer/explore.d.ts +1 -58
- package/resources/customer/explore.d.ts.map +1 -1
- package/resources/customer/explore.js +2 -20
- package/resources/customer/explore.js.map +1 -1
- package/resources/customer/explore.mjs +1 -18
- package/resources/customer/explore.mjs.map +1 -1
- package/resources/customer/favorites.d.mts +69 -0
- package/resources/customer/favorites.d.mts.map +1 -0
- package/resources/customer/favorites.d.ts +69 -0
- package/resources/customer/favorites.d.ts.map +1 -0
- package/resources/customer/favorites.js +20 -0
- package/resources/customer/favorites.js.map +1 -0
- package/resources/customer/favorites.mjs +16 -0
- package/resources/customer/favorites.mjs.map +1 -0
- package/resources/customer/index.d.mts +5 -3
- package/resources/customer/index.d.mts.map +1 -1
- package/resources/customer/index.d.ts +5 -3
- package/resources/customer/index.d.ts.map +1 -1
- package/resources/customer/index.js +9 -5
- package/resources/customer/index.js.map +1 -1
- package/resources/customer/index.mjs +4 -2
- package/resources/customer/index.mjs.map +1 -1
- package/resources/customer/rsvps.d.mts +96 -0
- package/resources/customer/rsvps.d.mts.map +1 -0
- package/resources/customer/rsvps.d.ts +96 -0
- package/resources/customer/rsvps.d.ts.map +1 -0
- package/resources/customer/rsvps.js +20 -0
- package/resources/customer/rsvps.js.map +1 -0
- package/resources/customer/rsvps.mjs +16 -0
- package/resources/customer/rsvps.mjs.map +1 -0
- package/src/resources/customer/businesses/businesses.ts +41 -261
- package/src/resources/customer/businesses/events/events.ts +85 -0
- package/src/resources/customer/businesses/events/index.ts +10 -0
- package/src/resources/customer/businesses/{rsvp.ts → events/rsvp.ts} +10 -9
- package/src/resources/customer/businesses/events.ts +3 -0
- package/src/resources/customer/businesses/favorite.ts +51 -0
- package/src/resources/customer/businesses/index.ts +5 -18
- package/src/resources/customer/businesses/menus.ts +146 -0
- package/src/resources/customer/businesses/photos.ts +65 -0
- package/src/resources/customer/customer.ts +22 -26
- package/src/resources/customer/discovery/{category.ts → categories/businesses.ts} +17 -20
- package/src/resources/customer/discovery/categories/categories.ts +51 -0
- package/src/resources/customer/discovery/categories/index.ts +4 -0
- package/src/resources/customer/discovery/categories.ts +3 -0
- package/src/resources/customer/discovery/discovery.ts +5 -41
- package/src/resources/customer/discovery/index.ts +2 -2
- package/src/resources/customer/explore/businesses.ts +81 -0
- package/src/resources/customer/explore/explore.ts +19 -0
- package/src/resources/customer/explore/index.ts +4 -0
- package/src/resources/customer/explore.ts +1 -85
- package/src/resources/customer/favorites.ts +101 -0
- package/src/resources/customer/index.ts +5 -13
- package/src/resources/customer/rsvps.ts +144 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer/businesses/rsvp.d.mts.map +0 -1
- package/resources/customer/businesses/rsvp.d.ts.map +0 -1
- package/resources/customer/businesses/rsvp.js.map +0 -1
- package/resources/customer/businesses/rsvp.mjs.map +0 -1
- package/resources/customer/discovery/category.d.mts.map +0 -1
- package/resources/customer/discovery/category.d.ts.map +0 -1
- package/resources/customer/discovery/category.js.map +0 -1
- package/resources/customer/discovery/category.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.0 (2026-04-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.4.0...v1.5.0](https://github.com/NexuForma/51eat-sdk-ts/compare/v1.4.0...v1.5.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add favorites_count and is_favorited to businesses retrieve response ([113d9ab](https://github.com/NexuForma/51eat-sdk-ts/commit/113d9ab7c4d497942fb949117d044b43afe3fec4))
|
|
10
|
+
* **api:** manual updates ([1cd8e88](https://github.com/NexuForma/51eat-sdk-ts/commit/1cd8e8885b94f521cb459e6ff5055748b5ecf19a))
|
|
11
|
+
|
|
3
12
|
## 1.4.0 (2026-04-13)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v1.3.0...v1.4.0](https://github.com/NexuForma/51eat-sdk-ts/compare/v1.3.0...v1.4.0)
|
package/package.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import * as FavoriteAPI from "./favorite.mjs";
|
|
3
|
+
import { Favorite, FavoriteAddResponse, FavoriteRemoveResponse } from "./favorite.mjs";
|
|
4
|
+
import * as MenusAPI from "./menus.mjs";
|
|
5
|
+
import { MenuRetrieveParams, MenuRetrieveResponse, Menus } from "./menus.mjs";
|
|
6
|
+
import * as PhotosAPI from "./photos.mjs";
|
|
7
|
+
import { PhotoListParams, PhotoListResponse, Photos } from "./photos.mjs";
|
|
5
8
|
import * as BulletinsAPI from "./bulletins/bulletins.mjs";
|
|
6
9
|
import { BulletinListParams, BulletinListResponse, Bulletins } from "./bulletins/bulletins.mjs";
|
|
10
|
+
import * as EventsAPI from "./events/events.mjs";
|
|
11
|
+
import { EventListParams, EventListResponse, Events } from "./events/events.mjs";
|
|
7
12
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
8
13
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
9
14
|
export declare class Businesses extends APIResource {
|
|
15
|
+
menus: MenusAPI.Menus;
|
|
16
|
+
photos: PhotosAPI.Photos;
|
|
17
|
+
favorite: FavoriteAPI.Favorite;
|
|
18
|
+
events: EventsAPI.Events;
|
|
10
19
|
bulletins: BulletinsAPI.Bulletins;
|
|
11
|
-
rsvp: RsvpAPI.Rsvp;
|
|
12
20
|
/**
|
|
13
21
|
* Retrieve core business information for the profile page.
|
|
14
22
|
*
|
|
@@ -20,39 +28,6 @@ export declare class Businesses extends APIResource {
|
|
|
20
28
|
* ```
|
|
21
29
|
*/
|
|
22
30
|
retrieve(handle: string, options?: RequestOptions): APIPromise<BusinessRetrieveResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieve upcoming events for the business with pagination.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const response = await client.customer.businesses.getEvents(
|
|
29
|
-
* 'katzs-deli',
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
getEvents(handle: string, query?: BusinessGetEventsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetEventsResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve all menus organized by groups for the business.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const response = await client.customer.businesses.getMenus(
|
|
40
|
-
* 'katzs-deli',
|
|
41
|
-
* );
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
getMenus(handle: string, query?: BusinessGetMenusParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetMenusResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieve photo gallery for the business with pagination.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response = await client.customer.businesses.getPhotos(
|
|
51
|
-
* 'katzs-deli',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
getPhotos(handle: string, query?: BusinessGetPhotosParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetPhotosResponse>;
|
|
56
31
|
}
|
|
57
32
|
export interface Pagination {
|
|
58
33
|
current_page: string;
|
|
@@ -71,10 +46,12 @@ export declare namespace BusinessRetrieveResponse {
|
|
|
71
46
|
city: string;
|
|
72
47
|
cover_photo: string;
|
|
73
48
|
description: string;
|
|
49
|
+
favorites_count: string;
|
|
74
50
|
handle: string;
|
|
75
51
|
hours: {
|
|
76
52
|
[key: string]: Data.Hours;
|
|
77
53
|
};
|
|
54
|
+
is_favorited: string;
|
|
78
55
|
latitude: number;
|
|
79
56
|
logo: string;
|
|
80
57
|
longitude: number;
|
|
@@ -92,137 +69,12 @@ export declare namespace BusinessRetrieveResponse {
|
|
|
92
69
|
}
|
|
93
70
|
}
|
|
94
71
|
}
|
|
95
|
-
export interface BusinessGetEventsResponse {
|
|
96
|
-
data: BusinessGetEventsResponse.Data;
|
|
97
|
-
}
|
|
98
|
-
export declare namespace BusinessGetEventsResponse {
|
|
99
|
-
interface Data {
|
|
100
|
-
events: Array<Data.Event>;
|
|
101
|
-
pagination: BusinessesAPI.Pagination;
|
|
102
|
-
}
|
|
103
|
-
namespace Data {
|
|
104
|
-
interface Event {
|
|
105
|
-
id: string;
|
|
106
|
-
description: string | null;
|
|
107
|
-
ends_at: string;
|
|
108
|
-
image: string;
|
|
109
|
-
starts_at: string;
|
|
110
|
-
title: string;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export interface BusinessGetMenusResponse {
|
|
115
|
-
data: BusinessGetMenusResponse.Data;
|
|
116
|
-
}
|
|
117
|
-
export declare namespace BusinessGetMenusResponse {
|
|
118
|
-
interface Data {
|
|
119
|
-
menus: Array<Data.Menu>;
|
|
120
|
-
pagination: BusinessesAPI.Pagination;
|
|
121
|
-
}
|
|
122
|
-
namespace Data {
|
|
123
|
-
interface Menu {
|
|
124
|
-
id: string;
|
|
125
|
-
description: string | null;
|
|
126
|
-
groups: Array<Menu.Group>;
|
|
127
|
-
name: string;
|
|
128
|
-
}
|
|
129
|
-
namespace Menu {
|
|
130
|
-
interface Group {
|
|
131
|
-
id: string;
|
|
132
|
-
description: string | null;
|
|
133
|
-
items: Array<Group.Item>;
|
|
134
|
-
name: string;
|
|
135
|
-
}
|
|
136
|
-
namespace Group {
|
|
137
|
-
interface Item {
|
|
138
|
-
id: string;
|
|
139
|
-
allergens: Array<Item.Allergen>;
|
|
140
|
-
description: string | null;
|
|
141
|
-
image: Item.Image;
|
|
142
|
-
name: string;
|
|
143
|
-
price: number | null;
|
|
144
|
-
}
|
|
145
|
-
namespace Item {
|
|
146
|
-
interface Allergen {
|
|
147
|
-
id: string;
|
|
148
|
-
color: string;
|
|
149
|
-
created_at: string | null;
|
|
150
|
-
description: string | null;
|
|
151
|
-
icon: string | null;
|
|
152
|
-
name: string;
|
|
153
|
-
slug: string;
|
|
154
|
-
updated_at: string | null;
|
|
155
|
-
}
|
|
156
|
-
interface Image {
|
|
157
|
-
id: string;
|
|
158
|
-
alt_text: string | null;
|
|
159
|
-
created_at: string | null;
|
|
160
|
-
disk: string;
|
|
161
|
-
filename: string;
|
|
162
|
-
imageable_id: string;
|
|
163
|
-
imageable_type: string;
|
|
164
|
-
mime_type: string | null;
|
|
165
|
-
original_filename: string;
|
|
166
|
-
path: string;
|
|
167
|
-
size: number | null;
|
|
168
|
-
sort_order: number;
|
|
169
|
-
updated_at: string | null;
|
|
170
|
-
url: string;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
export interface BusinessGetPhotosResponse {
|
|
178
|
-
data: BusinessGetPhotosResponse.Data;
|
|
179
|
-
}
|
|
180
|
-
export declare namespace BusinessGetPhotosResponse {
|
|
181
|
-
interface Data {
|
|
182
|
-
pagination: BusinessesAPI.Pagination;
|
|
183
|
-
photos: Array<Data.Photo>;
|
|
184
|
-
}
|
|
185
|
-
namespace Data {
|
|
186
|
-
interface Photo {
|
|
187
|
-
id: string;
|
|
188
|
-
alt_text: string;
|
|
189
|
-
url: string;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
export interface BusinessGetEventsParams {
|
|
194
|
-
/**
|
|
195
|
-
* Page number for pagination
|
|
196
|
-
*/
|
|
197
|
-
page?: number;
|
|
198
|
-
/**
|
|
199
|
-
* Number of events per page
|
|
200
|
-
*/
|
|
201
|
-
per_page?: number;
|
|
202
|
-
}
|
|
203
|
-
export interface BusinessGetMenusParams {
|
|
204
|
-
/**
|
|
205
|
-
* Page number for pagination
|
|
206
|
-
*/
|
|
207
|
-
page?: number;
|
|
208
|
-
/**
|
|
209
|
-
* Number of items per page
|
|
210
|
-
*/
|
|
211
|
-
per_page?: number;
|
|
212
|
-
}
|
|
213
|
-
export interface BusinessGetPhotosParams {
|
|
214
|
-
/**
|
|
215
|
-
* Page number for pagination
|
|
216
|
-
*/
|
|
217
|
-
page?: number;
|
|
218
|
-
/**
|
|
219
|
-
* Number of photos per page
|
|
220
|
-
*/
|
|
221
|
-
per_page?: number;
|
|
222
|
-
}
|
|
223
72
|
export declare namespace Businesses {
|
|
224
|
-
export { type Pagination as Pagination, type BusinessRetrieveResponse as BusinessRetrieveResponse
|
|
73
|
+
export { type Pagination as Pagination, type BusinessRetrieveResponse as BusinessRetrieveResponse };
|
|
74
|
+
export { Menus as Menus, type MenuRetrieveResponse as MenuRetrieveResponse, type MenuRetrieveParams as MenuRetrieveParams, };
|
|
75
|
+
export { Photos as Photos, type PhotoListResponse as PhotoListResponse, type PhotoListParams as PhotoListParams, };
|
|
76
|
+
export { Favorite as Favorite, type FavoriteAddResponse as FavoriteAddResponse, type FavoriteRemoveResponse as FavoriteRemoveResponse, };
|
|
77
|
+
export { Events as Events, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
225
78
|
export { Bulletins as Bulletins, type BulletinListResponse as BulletinListResponse, type BulletinListParams as BulletinListParams, };
|
|
226
|
-
export { Rsvp as Rsvp, type RsvpCreateResponse as RsvpCreateResponse, type RsvpCancelResponse as RsvpCancelResponse, type RsvpCreateParams as RsvpCreateParams, type RsvpCancelParams as RsvpCancelParams, };
|
|
227
79
|
}
|
|
228
80
|
//# sourceMappingURL=businesses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businesses.d.mts","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"businesses.d.mts","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import * as FavoriteAPI from "./favorite.js";
|
|
3
|
+
import { Favorite, FavoriteAddResponse, FavoriteRemoveResponse } from "./favorite.js";
|
|
4
|
+
import * as MenusAPI from "./menus.js";
|
|
5
|
+
import { MenuRetrieveParams, MenuRetrieveResponse, Menus } from "./menus.js";
|
|
6
|
+
import * as PhotosAPI from "./photos.js";
|
|
7
|
+
import { PhotoListParams, PhotoListResponse, Photos } from "./photos.js";
|
|
5
8
|
import * as BulletinsAPI from "./bulletins/bulletins.js";
|
|
6
9
|
import { BulletinListParams, BulletinListResponse, Bulletins } from "./bulletins/bulletins.js";
|
|
10
|
+
import * as EventsAPI from "./events/events.js";
|
|
11
|
+
import { EventListParams, EventListResponse, Events } from "./events/events.js";
|
|
7
12
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
8
13
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
9
14
|
export declare class Businesses extends APIResource {
|
|
15
|
+
menus: MenusAPI.Menus;
|
|
16
|
+
photos: PhotosAPI.Photos;
|
|
17
|
+
favorite: FavoriteAPI.Favorite;
|
|
18
|
+
events: EventsAPI.Events;
|
|
10
19
|
bulletins: BulletinsAPI.Bulletins;
|
|
11
|
-
rsvp: RsvpAPI.Rsvp;
|
|
12
20
|
/**
|
|
13
21
|
* Retrieve core business information for the profile page.
|
|
14
22
|
*
|
|
@@ -20,39 +28,6 @@ export declare class Businesses extends APIResource {
|
|
|
20
28
|
* ```
|
|
21
29
|
*/
|
|
22
30
|
retrieve(handle: string, options?: RequestOptions): APIPromise<BusinessRetrieveResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieve upcoming events for the business with pagination.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const response = await client.customer.businesses.getEvents(
|
|
29
|
-
* 'katzs-deli',
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
getEvents(handle: string, query?: BusinessGetEventsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetEventsResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve all menus organized by groups for the business.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const response = await client.customer.businesses.getMenus(
|
|
40
|
-
* 'katzs-deli',
|
|
41
|
-
* );
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
getMenus(handle: string, query?: BusinessGetMenusParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetMenusResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieve photo gallery for the business with pagination.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response = await client.customer.businesses.getPhotos(
|
|
51
|
-
* 'katzs-deli',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
getPhotos(handle: string, query?: BusinessGetPhotosParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetPhotosResponse>;
|
|
56
31
|
}
|
|
57
32
|
export interface Pagination {
|
|
58
33
|
current_page: string;
|
|
@@ -71,10 +46,12 @@ export declare namespace BusinessRetrieveResponse {
|
|
|
71
46
|
city: string;
|
|
72
47
|
cover_photo: string;
|
|
73
48
|
description: string;
|
|
49
|
+
favorites_count: string;
|
|
74
50
|
handle: string;
|
|
75
51
|
hours: {
|
|
76
52
|
[key: string]: Data.Hours;
|
|
77
53
|
};
|
|
54
|
+
is_favorited: string;
|
|
78
55
|
latitude: number;
|
|
79
56
|
logo: string;
|
|
80
57
|
longitude: number;
|
|
@@ -92,137 +69,12 @@ export declare namespace BusinessRetrieveResponse {
|
|
|
92
69
|
}
|
|
93
70
|
}
|
|
94
71
|
}
|
|
95
|
-
export interface BusinessGetEventsResponse {
|
|
96
|
-
data: BusinessGetEventsResponse.Data;
|
|
97
|
-
}
|
|
98
|
-
export declare namespace BusinessGetEventsResponse {
|
|
99
|
-
interface Data {
|
|
100
|
-
events: Array<Data.Event>;
|
|
101
|
-
pagination: BusinessesAPI.Pagination;
|
|
102
|
-
}
|
|
103
|
-
namespace Data {
|
|
104
|
-
interface Event {
|
|
105
|
-
id: string;
|
|
106
|
-
description: string | null;
|
|
107
|
-
ends_at: string;
|
|
108
|
-
image: string;
|
|
109
|
-
starts_at: string;
|
|
110
|
-
title: string;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export interface BusinessGetMenusResponse {
|
|
115
|
-
data: BusinessGetMenusResponse.Data;
|
|
116
|
-
}
|
|
117
|
-
export declare namespace BusinessGetMenusResponse {
|
|
118
|
-
interface Data {
|
|
119
|
-
menus: Array<Data.Menu>;
|
|
120
|
-
pagination: BusinessesAPI.Pagination;
|
|
121
|
-
}
|
|
122
|
-
namespace Data {
|
|
123
|
-
interface Menu {
|
|
124
|
-
id: string;
|
|
125
|
-
description: string | null;
|
|
126
|
-
groups: Array<Menu.Group>;
|
|
127
|
-
name: string;
|
|
128
|
-
}
|
|
129
|
-
namespace Menu {
|
|
130
|
-
interface Group {
|
|
131
|
-
id: string;
|
|
132
|
-
description: string | null;
|
|
133
|
-
items: Array<Group.Item>;
|
|
134
|
-
name: string;
|
|
135
|
-
}
|
|
136
|
-
namespace Group {
|
|
137
|
-
interface Item {
|
|
138
|
-
id: string;
|
|
139
|
-
allergens: Array<Item.Allergen>;
|
|
140
|
-
description: string | null;
|
|
141
|
-
image: Item.Image;
|
|
142
|
-
name: string;
|
|
143
|
-
price: number | null;
|
|
144
|
-
}
|
|
145
|
-
namespace Item {
|
|
146
|
-
interface Allergen {
|
|
147
|
-
id: string;
|
|
148
|
-
color: string;
|
|
149
|
-
created_at: string | null;
|
|
150
|
-
description: string | null;
|
|
151
|
-
icon: string | null;
|
|
152
|
-
name: string;
|
|
153
|
-
slug: string;
|
|
154
|
-
updated_at: string | null;
|
|
155
|
-
}
|
|
156
|
-
interface Image {
|
|
157
|
-
id: string;
|
|
158
|
-
alt_text: string | null;
|
|
159
|
-
created_at: string | null;
|
|
160
|
-
disk: string;
|
|
161
|
-
filename: string;
|
|
162
|
-
imageable_id: string;
|
|
163
|
-
imageable_type: string;
|
|
164
|
-
mime_type: string | null;
|
|
165
|
-
original_filename: string;
|
|
166
|
-
path: string;
|
|
167
|
-
size: number | null;
|
|
168
|
-
sort_order: number;
|
|
169
|
-
updated_at: string | null;
|
|
170
|
-
url: string;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
export interface BusinessGetPhotosResponse {
|
|
178
|
-
data: BusinessGetPhotosResponse.Data;
|
|
179
|
-
}
|
|
180
|
-
export declare namespace BusinessGetPhotosResponse {
|
|
181
|
-
interface Data {
|
|
182
|
-
pagination: BusinessesAPI.Pagination;
|
|
183
|
-
photos: Array<Data.Photo>;
|
|
184
|
-
}
|
|
185
|
-
namespace Data {
|
|
186
|
-
interface Photo {
|
|
187
|
-
id: string;
|
|
188
|
-
alt_text: string;
|
|
189
|
-
url: string;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
export interface BusinessGetEventsParams {
|
|
194
|
-
/**
|
|
195
|
-
* Page number for pagination
|
|
196
|
-
*/
|
|
197
|
-
page?: number;
|
|
198
|
-
/**
|
|
199
|
-
* Number of events per page
|
|
200
|
-
*/
|
|
201
|
-
per_page?: number;
|
|
202
|
-
}
|
|
203
|
-
export interface BusinessGetMenusParams {
|
|
204
|
-
/**
|
|
205
|
-
* Page number for pagination
|
|
206
|
-
*/
|
|
207
|
-
page?: number;
|
|
208
|
-
/**
|
|
209
|
-
* Number of items per page
|
|
210
|
-
*/
|
|
211
|
-
per_page?: number;
|
|
212
|
-
}
|
|
213
|
-
export interface BusinessGetPhotosParams {
|
|
214
|
-
/**
|
|
215
|
-
* Page number for pagination
|
|
216
|
-
*/
|
|
217
|
-
page?: number;
|
|
218
|
-
/**
|
|
219
|
-
* Number of photos per page
|
|
220
|
-
*/
|
|
221
|
-
per_page?: number;
|
|
222
|
-
}
|
|
223
72
|
export declare namespace Businesses {
|
|
224
|
-
export { type Pagination as Pagination, type BusinessRetrieveResponse as BusinessRetrieveResponse
|
|
73
|
+
export { type Pagination as Pagination, type BusinessRetrieveResponse as BusinessRetrieveResponse };
|
|
74
|
+
export { Menus as Menus, type MenuRetrieveResponse as MenuRetrieveResponse, type MenuRetrieveParams as MenuRetrieveParams, };
|
|
75
|
+
export { Photos as Photos, type PhotoListResponse as PhotoListResponse, type PhotoListParams as PhotoListParams, };
|
|
76
|
+
export { Favorite as Favorite, type FavoriteAddResponse as FavoriteAddResponse, type FavoriteRemoveResponse as FavoriteRemoveResponse, };
|
|
77
|
+
export { Events as Events, type EventListResponse as EventListResponse, type EventListParams as EventListParams, };
|
|
225
78
|
export { Bulletins as Bulletins, type BulletinListResponse as BulletinListResponse, type BulletinListParams as BulletinListParams, };
|
|
226
|
-
export { Rsvp as Rsvp, type RsvpCreateResponse as RsvpCreateResponse, type RsvpCancelResponse as RsvpCancelResponse, type RsvpCreateParams as RsvpCreateParams, type RsvpCancelParams as RsvpCancelParams, };
|
|
227
79
|
}
|
|
228
80
|
//# sourceMappingURL=businesses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businesses.d.ts","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"businesses.d.ts","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,16 +4,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Businesses = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const FavoriteAPI = tslib_1.__importStar(require("./favorite.js"));
|
|
8
|
+
const favorite_1 = require("./favorite.js");
|
|
9
|
+
const MenusAPI = tslib_1.__importStar(require("./menus.js"));
|
|
10
|
+
const menus_1 = require("./menus.js");
|
|
11
|
+
const PhotosAPI = tslib_1.__importStar(require("./photos.js"));
|
|
12
|
+
const photos_1 = require("./photos.js");
|
|
9
13
|
const BulletinsAPI = tslib_1.__importStar(require("./bulletins/bulletins.js"));
|
|
10
14
|
const bulletins_1 = require("./bulletins/bulletins.js");
|
|
15
|
+
const EventsAPI = tslib_1.__importStar(require("./events/events.js"));
|
|
16
|
+
const events_1 = require("./events/events.js");
|
|
11
17
|
const path_1 = require("../../../internal/utils/path.js");
|
|
12
18
|
class Businesses extends resource_1.APIResource {
|
|
13
19
|
constructor() {
|
|
14
20
|
super(...arguments);
|
|
21
|
+
this.menus = new MenusAPI.Menus(this._client);
|
|
22
|
+
this.photos = new PhotosAPI.Photos(this._client);
|
|
23
|
+
this.favorite = new FavoriteAPI.Favorite(this._client);
|
|
24
|
+
this.events = new EventsAPI.Events(this._client);
|
|
15
25
|
this.bulletins = new BulletinsAPI.Bulletins(this._client);
|
|
16
|
-
this.rsvp = new RsvpAPI.Rsvp(this._client);
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* Retrieve core business information for the profile page.
|
|
@@ -28,47 +37,11 @@ class Businesses extends resource_1.APIResource {
|
|
|
28
37
|
retrieve(handle, options) {
|
|
29
38
|
return this._client.get((0, path_1.path) `/customer/businesses/${handle}`, options);
|
|
30
39
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Retrieve upcoming events for the business with pagination.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const response = await client.customer.businesses.getEvents(
|
|
37
|
-
* 'katzs-deli',
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
getEvents(handle, query = {}, options) {
|
|
42
|
-
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/events`, { query, ...options });
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Retrieve all menus organized by groups for the business.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* const response = await client.customer.businesses.getMenus(
|
|
50
|
-
* 'katzs-deli',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
getMenus(handle, query = {}, options) {
|
|
55
|
-
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/menus`, { query, ...options });
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Retrieve photo gallery for the business with pagination.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const response = await client.customer.businesses.getPhotos(
|
|
63
|
-
* 'katzs-deli',
|
|
64
|
-
* );
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
getPhotos(handle, query = {}, options) {
|
|
68
|
-
return this._client.get((0, path_1.path) `/customer/businesses/${handle}/photos`, { query, ...options });
|
|
69
|
-
}
|
|
70
40
|
}
|
|
71
41
|
exports.Businesses = Businesses;
|
|
42
|
+
Businesses.Menus = menus_1.Menus;
|
|
43
|
+
Businesses.Photos = photos_1.Photos;
|
|
44
|
+
Businesses.Favorite = favorite_1.Favorite;
|
|
45
|
+
Businesses.Events = events_1.Events;
|
|
72
46
|
Businesses.Bulletins = bulletins_1.Bulletins;
|
|
73
|
-
Businesses.Rsvp = rsvp_1.Rsvp;
|
|
74
47
|
//# sourceMappingURL=businesses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../../src/resources/customer/businesses/businesses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAAmF;AACnF,6DAAoC;AACpC,sCAA0E;AAC1E,+DAAsC;AACtC,wCAAsE;AACtE,+EAAsD;AACtD,wDAA4F;AAC5F,sEAA6C;AAC7C,+CAA6E;AAG7E,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAe/E,CAAC;IAbC;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AApBD,gCAoBC;AAkED,UAAU,CAAC,KAAK,GAAG,aAAK,CAAC;AACzB,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC;AAC3B,UAAU,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC/B,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC;AAC3B,UAAU,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|