@51eat/sdk 0.0.21 → 0.0.23

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 (172) hide show
  1. package/README.md +16 -13
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -6
  4. package/dist/cjs/Client.js +10 -20
  5. package/dist/cjs/api/resources/business/client/Client.d.ts +17 -2
  6. package/dist/cjs/api/resources/business/client/Client.js +34 -9
  7. package/dist/cjs/api/resources/business/resources/businesses/client/Client.d.ts +62 -0
  8. package/dist/cjs/api/resources/business/resources/businesses/client/Client.js +260 -0
  9. package/dist/cjs/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.ts +9 -0
  10. package/dist/cjs/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.ts +9 -0
  11. package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.ts +9 -0
  12. package/dist/cjs/api/resources/business/resources/businesses/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/business/resources/businesses/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/exports.js +2 -2
  15. package/dist/cjs/api/resources/business/resources/categories/client/Client.d.ts +20 -0
  16. package/dist/cjs/api/resources/{businessMessaging → business/resources/categories}/client/Client.js +23 -45
  17. package/dist/cjs/api/resources/business/resources/categories/client/index.js +2 -0
  18. package/dist/cjs/api/resources/business/resources/categories/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/categories}/exports.js +2 -2
  20. package/dist/cjs/api/resources/business/resources/categories/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/business/resources/categories/index.js +17 -0
  22. package/dist/cjs/api/resources/business/resources/certifications/client/Client.d.ts +20 -0
  23. package/dist/cjs/api/resources/business/resources/certifications/client/Client.js +96 -0
  24. package/dist/cjs/api/resources/business/resources/certifications/client/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/business/resources/certifications/client/index.js +2 -0
  26. package/dist/cjs/api/resources/business/resources/certifications/exports.d.ts +2 -0
  27. package/dist/cjs/api/resources/business/resources/certifications/exports.js +21 -0
  28. package/dist/cjs/api/resources/business/resources/certifications/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/business/resources/certifications/index.js +17 -0
  30. package/dist/cjs/api/resources/business/resources/cuisines/client/Client.d.ts +20 -0
  31. package/dist/cjs/api/resources/business/resources/cuisines/client/Client.js +96 -0
  32. package/dist/cjs/api/resources/business/resources/cuisines/client/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/business/resources/cuisines/client/index.js +2 -0
  34. package/dist/cjs/api/resources/business/resources/cuisines/exports.d.ts +2 -0
  35. package/dist/cjs/api/resources/business/resources/cuisines/exports.js +21 -0
  36. package/dist/cjs/api/resources/business/resources/cuisines/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/business/resources/cuisines/index.js +17 -0
  38. package/dist/cjs/api/resources/business/resources/index.d.ts +9 -0
  39. package/dist/cjs/api/resources/business/resources/index.js +10 -1
  40. package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +24 -1
  41. package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +107 -0
  42. package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -1
  43. package/dist/cjs/api/resources/business/resources/messaging/client/index.js +15 -0
  44. package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.ts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.ts} +1 -1
  45. package/dist/cjs/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.js +3 -0
  46. package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/business/resources/messaging/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/business/resources/pushNotifications/client/Client.d.ts +47 -0
  49. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.js +22 -22
  50. package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.ts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.ts} +1 -1
  51. package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.js +3 -0
  52. package/dist/cjs/api/resources/business/resources/pushNotifications/client/requests/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/business/resources/pushNotifications/exports.d.ts +2 -0
  54. package/dist/cjs/api/resources/business/resources/pushNotifications/exports.js +21 -0
  55. package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.ts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.ts} +1 -1
  56. package/dist/cjs/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.js +3 -0
  57. package/dist/cjs/api/resources/business/resources/pushNotifications/types/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/types/index.js +1 -1
  59. package/dist/cjs/api/resources/index.d.ts +0 -5
  60. package/dist/cjs/api/resources/index.js +1 -6
  61. package/dist/cjs/version.d.ts +1 -1
  62. package/dist/cjs/version.js +1 -1
  63. package/dist/esm/BaseClient.mjs +2 -2
  64. package/dist/esm/Client.d.mts +0 -6
  65. package/dist/esm/Client.mjs +0 -10
  66. package/dist/esm/api/resources/business/client/Client.d.mts +17 -2
  67. package/dist/esm/api/resources/business/client/Client.mjs +27 -2
  68. package/dist/esm/api/resources/business/resources/businesses/client/Client.d.mts +62 -0
  69. package/dist/esm/api/resources/business/resources/businesses/client/Client.mjs +223 -0
  70. package/dist/esm/api/resources/business/resources/businesses/client/requests/DeleteBusinessesRequest.d.mts +9 -0
  71. package/dist/esm/api/resources/business/resources/businesses/client/requests/GetBusinessesRequest.d.mts +9 -0
  72. package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessesRequest.d.mts +9 -0
  73. package/dist/esm/api/resources/business/resources/businesses/client/requests/index.d.mts +3 -0
  74. package/dist/esm/api/resources/business/resources/businesses/client/requests/index.mjs +1 -0
  75. package/dist/esm/api/resources/business/resources/businesses/exports.d.mts +2 -0
  76. package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/exports.mjs +1 -1
  77. package/dist/esm/api/resources/business/resources/categories/client/Client.d.mts +20 -0
  78. package/dist/esm/api/resources/{businessMessaging → business/resources/categories}/client/Client.mjs +21 -43
  79. package/dist/esm/api/resources/business/resources/categories/client/index.d.mts +1 -0
  80. package/dist/esm/api/resources/business/resources/categories/client/index.mjs +1 -0
  81. package/dist/esm/api/resources/business/resources/categories/exports.d.mts +2 -0
  82. package/dist/esm/api/resources/{businessPushNotifications → business/resources/categories}/exports.mjs +1 -1
  83. package/dist/esm/api/resources/business/resources/categories/index.d.mts +1 -0
  84. package/dist/esm/api/resources/business/resources/categories/index.mjs +1 -0
  85. package/dist/esm/api/resources/business/resources/certifications/client/Client.d.mts +20 -0
  86. package/dist/esm/api/resources/business/resources/certifications/client/Client.mjs +59 -0
  87. package/dist/esm/api/resources/business/resources/certifications/client/index.d.mts +1 -0
  88. package/dist/esm/api/resources/business/resources/certifications/client/index.mjs +1 -0
  89. package/dist/esm/api/resources/business/resources/certifications/exports.d.mts +2 -0
  90. package/dist/esm/api/resources/business/resources/certifications/exports.mjs +3 -0
  91. package/dist/esm/api/resources/business/resources/certifications/index.d.mts +1 -0
  92. package/dist/esm/api/resources/business/resources/certifications/index.mjs +1 -0
  93. package/dist/esm/api/resources/business/resources/cuisines/client/Client.d.mts +20 -0
  94. package/dist/esm/api/resources/business/resources/cuisines/client/Client.mjs +59 -0
  95. package/dist/esm/api/resources/business/resources/cuisines/client/index.d.mts +1 -0
  96. package/dist/esm/api/resources/business/resources/cuisines/client/index.mjs +1 -0
  97. package/dist/esm/api/resources/business/resources/cuisines/exports.d.mts +2 -0
  98. package/dist/esm/api/resources/business/resources/cuisines/exports.mjs +3 -0
  99. package/dist/esm/api/resources/business/resources/cuisines/index.d.mts +1 -0
  100. package/dist/esm/api/resources/business/resources/cuisines/index.mjs +1 -0
  101. package/dist/esm/api/resources/business/resources/index.d.mts +9 -0
  102. package/dist/esm/api/resources/business/resources/index.mjs +9 -0
  103. package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +24 -1
  104. package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +74 -0
  105. package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -1
  106. package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -1
  107. package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.mts → business/resources/messaging/client/requests/ChannelAuthMessagingRequest.d.mts} +1 -1
  108. package/dist/esm/api/resources/business/resources/messaging/client/requests/ChannelAuthMessagingRequest.mjs +2 -0
  109. package/dist/esm/api/resources/business/resources/messaging/client/requests/index.d.mts +1 -0
  110. package/dist/esm/api/resources/business/resources/messaging/client/requests/index.mjs +1 -0
  111. package/dist/esm/api/resources/business/resources/pushNotifications/client/Client.d.mts +47 -0
  112. package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/Client.mjs +20 -20
  113. package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.mts → business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.d.mts} +1 -1
  114. package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/UnregisterPushNotificationsRequest.mjs +2 -0
  115. package/dist/esm/api/resources/business/resources/pushNotifications/client/requests/index.d.mts +2 -0
  116. package/dist/esm/api/resources/business/resources/pushNotifications/exports.d.mts +2 -0
  117. package/dist/esm/api/resources/business/resources/pushNotifications/exports.mjs +3 -0
  118. package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.mts → business/resources/pushNotifications/types/RegisterPushNotificationsResponse.d.mts} +1 -1
  119. package/dist/esm/api/resources/business/resources/pushNotifications/types/RegisterPushNotificationsResponse.mjs +2 -0
  120. package/dist/esm/api/resources/business/resources/pushNotifications/types/index.d.mts +1 -0
  121. package/dist/esm/api/resources/business/resources/pushNotifications/types/index.mjs +1 -0
  122. package/dist/esm/api/resources/index.d.mts +0 -5
  123. package/dist/esm/api/resources/index.mjs +0 -5
  124. package/dist/esm/version.d.mts +1 -1
  125. package/dist/esm/version.mjs +1 -1
  126. package/package.json +67 -34
  127. package/reference.md +564 -202
  128. package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +0 -32
  129. package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +0 -1
  130. package/dist/cjs/api/resources/businessMessaging/exports.d.ts +0 -2
  131. package/dist/cjs/api/resources/businessPushNotifications/client/Client.d.ts +0 -47
  132. package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.d.ts +0 -2
  133. package/dist/cjs/api/resources/businessPushNotifications/exports.d.ts +0 -2
  134. package/dist/cjs/api/resources/businessPushNotifications/types/index.d.ts +0 -1
  135. package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +0 -32
  136. package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +0 -1
  137. package/dist/esm/api/resources/businessMessaging/exports.d.mts +0 -2
  138. package/dist/esm/api/resources/businessPushNotifications/client/Client.d.mts +0 -47
  139. package/dist/esm/api/resources/businessPushNotifications/client/requests/index.d.mts +0 -2
  140. package/dist/esm/api/resources/businessPushNotifications/exports.d.mts +0 -2
  141. package/dist/esm/api/resources/businessPushNotifications/types/index.d.mts +0 -1
  142. package/dist/esm/api/resources/businessPushNotifications/types/index.mjs +0 -1
  143. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.ts +0 -0
  144. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/index.js +0 -0
  145. /package/dist/cjs/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.js → business/resources/businesses/client/requests/DeleteBusinessesRequest.js} +0 -0
  146. /package/dist/cjs/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.js → business/resources/businesses/client/requests/GetBusinessesRequest.js} +0 -0
  147. /package/dist/cjs/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.js → business/resources/businesses/client/requests/UpdateBusinessesRequest.js} +0 -0
  148. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/client/requests/index.js +0 -0
  149. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.d.ts +0 -0
  150. /package/dist/cjs/api/resources/{businessMessaging → business/resources/businesses}/index.js +0 -0
  151. /package/dist/{esm/api/resources/businessMessaging/client/requests/index.mjs → cjs/api/resources/business/resources/categories/client/index.d.ts} +0 -0
  152. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.ts +0 -0
  153. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.js +0 -0
  154. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.ts +0 -0
  155. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.js +0 -0
  156. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.js +0 -0
  157. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.ts +0 -0
  158. /package/dist/cjs/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.js +0 -0
  159. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.d.mts +0 -0
  160. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/client/index.mjs +0 -0
  161. /package/dist/esm/api/resources/{businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.mjs → business/resources/businesses/client/requests/DeleteBusinessesRequest.mjs} +0 -0
  162. /package/dist/esm/api/resources/{businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.mjs → business/resources/businesses/client/requests/GetBusinessesRequest.mjs} +0 -0
  163. /package/dist/esm/api/resources/{businessPushNotifications/types/RegisterBusinessPushTokenResponse.mjs → business/resources/businesses/client/requests/UpdateBusinessesRequest.mjs} +0 -0
  164. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.d.mts +0 -0
  165. /package/dist/esm/api/resources/{businessMessaging → business/resources/businesses}/index.mjs +0 -0
  166. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.d.mts +0 -0
  167. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/index.mjs +0 -0
  168. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.d.mts +0 -0
  169. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/StorePushTokenRequest.mjs +0 -0
  170. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/client/requests/index.mjs +0 -0
  171. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.d.mts +0 -0
  172. /package/dist/esm/api/resources/{businessPushNotifications → business/resources/pushNotifications}/index.mjs +0 -0
package/reference.md CHANGED
@@ -1,206 +1,4 @@
1
1
  # Reference
2
- ## Business: Messaging
3
- <details><summary><code>client.businessMessaging.<a href="/src/api/resources/businessMessaging/client/Client.ts">businessChannelAuthAuthenticate</a>({ ...params }) -> number</code></summary>
4
- <dl>
5
- <dd>
6
-
7
- #### 📝 Description
8
-
9
- <dl>
10
- <dd>
11
-
12
- <dl>
13
- <dd>
14
-
15
- This endpoint is used by the business companion mobile app to authenticate with
16
- Pusher channels. It validates that the authenticated business user has
17
- permission to access the requested channel, scoped to their active business.
18
- </dd>
19
- </dl>
20
- </dd>
21
- </dl>
22
-
23
- #### 🔌 Usage
24
-
25
- <dl>
26
- <dd>
27
-
28
- <dl>
29
- <dd>
30
-
31
- ```typescript
32
- await client.businessMessaging.businessChannelAuthAuthenticate({
33
- channel_name: "channel_name",
34
- socket_id: "socket_id"
35
- });
36
-
37
- ```
38
- </dd>
39
- </dl>
40
- </dd>
41
- </dl>
42
-
43
- #### ⚙️ Parameters
44
-
45
- <dl>
46
- <dd>
47
-
48
- <dl>
49
- <dd>
50
-
51
- **request:** `FiveOneEat.BusinessChannelAuthAuthenticateRequest`
52
-
53
- </dd>
54
- </dl>
55
-
56
- <dl>
57
- <dd>
58
-
59
- **requestOptions:** `BusinessMessagingClient.RequestOptions`
60
-
61
- </dd>
62
- </dl>
63
- </dd>
64
- </dl>
65
-
66
-
67
- </dd>
68
- </dl>
69
- </details>
70
-
71
- ## Business: Push Notifications
72
- <details><summary><code>client.businessPushNotifications.<a href="/src/api/resources/businessPushNotifications/client/Client.ts">registerBusinessPushToken</a>({ ...params }) -> FiveOneEat.RegisterBusinessPushTokenResponse</code></summary>
73
- <dl>
74
- <dd>
75
-
76
- #### 📝 Description
77
-
78
- <dl>
79
- <dd>
80
-
81
- <dl>
82
- <dd>
83
-
84
- Register (or update) the authenticated business user's Expo push token for a
85
- device. If a `device_id` is provided, an existing registration for that device
86
- is updated.
87
- </dd>
88
- </dl>
89
- </dd>
90
- </dl>
91
-
92
- #### 🔌 Usage
93
-
94
- <dl>
95
- <dd>
96
-
97
- <dl>
98
- <dd>
99
-
100
- ```typescript
101
- await client.businessPushNotifications.registerBusinessPushToken({
102
- token: "token"
103
- });
104
-
105
- ```
106
- </dd>
107
- </dl>
108
- </dd>
109
- </dl>
110
-
111
- #### ⚙️ Parameters
112
-
113
- <dl>
114
- <dd>
115
-
116
- <dl>
117
- <dd>
118
-
119
- **request:** `FiveOneEat.StorePushTokenRequest`
120
-
121
- </dd>
122
- </dl>
123
-
124
- <dl>
125
- <dd>
126
-
127
- **requestOptions:** `BusinessPushNotificationsClient.RequestOptions`
128
-
129
- </dd>
130
- </dl>
131
- </dd>
132
- </dl>
133
-
134
-
135
- </dd>
136
- </dl>
137
- </details>
138
-
139
- <details><summary><code>client.businessPushNotifications.<a href="/src/api/resources/businessPushNotifications/client/Client.ts">unregisterBusinessPushToken</a>({ ...params }) -> void</code></summary>
140
- <dl>
141
- <dd>
142
-
143
- #### 📝 Description
144
-
145
- <dl>
146
- <dd>
147
-
148
- <dl>
149
- <dd>
150
-
151
- Delete the authenticated business user's Expo push token registration.
152
- </dd>
153
- </dl>
154
- </dd>
155
- </dl>
156
-
157
- #### 🔌 Usage
158
-
159
- <dl>
160
- <dd>
161
-
162
- <dl>
163
- <dd>
164
-
165
- ```typescript
166
- await client.businessPushNotifications.unregisterBusinessPushToken({
167
- token: "token"
168
- });
169
-
170
- ```
171
- </dd>
172
- </dl>
173
- </dd>
174
- </dl>
175
-
176
- #### ⚙️ Parameters
177
-
178
- <dl>
179
- <dd>
180
-
181
- <dl>
182
- <dd>
183
-
184
- **request:** `FiveOneEat.UnregisterBusinessPushTokenRequest`
185
-
186
- </dd>
187
- </dl>
188
-
189
- <dl>
190
- <dd>
191
-
192
- **requestOptions:** `BusinessPushNotificationsClient.RequestOptions`
193
-
194
- </dd>
195
- </dl>
196
- </dd>
197
- </dl>
198
-
199
-
200
- </dd>
201
- </dl>
202
- </details>
203
-
204
2
  ## Customer: Events
205
3
  <details><summary><code>client.customerEvents.<a href="/src/api/resources/customerEvents/client/Client.ts">holdTickets</a>({ ...params }) -> FiveOneEat.HoldTicketsResponse</code></summary>
206
4
  <dl>
@@ -2081,6 +1879,75 @@ await client.business.menus.delete({
2081
1879
  </dl>
2082
1880
 
2083
1881
 
1882
+ </dd>
1883
+ </dl>
1884
+ </details>
1885
+
1886
+ ## Business Messaging
1887
+ <details><summary><code>client.business.messaging.<a href="/src/api/resources/business/resources/messaging/client/Client.ts">channelAuth</a>({ ...params }) -> number</code></summary>
1888
+ <dl>
1889
+ <dd>
1890
+
1891
+ #### 📝 Description
1892
+
1893
+ <dl>
1894
+ <dd>
1895
+
1896
+ <dl>
1897
+ <dd>
1898
+
1899
+ This endpoint is used by the business companion mobile app to authenticate with
1900
+ Pusher channels. It validates that the authenticated business user has
1901
+ permission to access the requested channel, scoped to their active business.
1902
+ </dd>
1903
+ </dl>
1904
+ </dd>
1905
+ </dl>
1906
+
1907
+ #### 🔌 Usage
1908
+
1909
+ <dl>
1910
+ <dd>
1911
+
1912
+ <dl>
1913
+ <dd>
1914
+
1915
+ ```typescript
1916
+ await client.business.messaging.channelAuth({
1917
+ channel_name: "channel_name",
1918
+ socket_id: "socket_id"
1919
+ });
1920
+
1921
+ ```
1922
+ </dd>
1923
+ </dl>
1924
+ </dd>
1925
+ </dl>
1926
+
1927
+ #### ⚙️ Parameters
1928
+
1929
+ <dl>
1930
+ <dd>
1931
+
1932
+ <dl>
1933
+ <dd>
1934
+
1935
+ **request:** `FiveOneEat.business.ChannelAuthMessagingRequest`
1936
+
1937
+ </dd>
1938
+ </dl>
1939
+
1940
+ <dl>
1941
+ <dd>
1942
+
1943
+ **requestOptions:** `MessagingClient.RequestOptions`
1944
+
1945
+ </dd>
1946
+ </dl>
1947
+ </dd>
1948
+ </dl>
1949
+
1950
+
2084
1951
  </dd>
2085
1952
  </dl>
2086
1953
  </details>
@@ -2330,6 +2197,501 @@ await client.business.profile.syncCertifications({
2330
2197
  </dl>
2331
2198
 
2332
2199
 
2200
+ </dd>
2201
+ </dl>
2202
+ </details>
2203
+
2204
+ ## Business PushNotifications
2205
+ <details><summary><code>client.business.pushNotifications.<a href="/src/api/resources/business/resources/pushNotifications/client/Client.ts">register</a>({ ...params }) -> FiveOneEat.RegisterPushNotificationsResponse</code></summary>
2206
+ <dl>
2207
+ <dd>
2208
+
2209
+ #### 📝 Description
2210
+
2211
+ <dl>
2212
+ <dd>
2213
+
2214
+ <dl>
2215
+ <dd>
2216
+
2217
+ Register (or update) the authenticated business user's Expo push token for a
2218
+ device. If a `device_id` is provided, an existing registration for that device
2219
+ is updated.
2220
+ </dd>
2221
+ </dl>
2222
+ </dd>
2223
+ </dl>
2224
+
2225
+ #### 🔌 Usage
2226
+
2227
+ <dl>
2228
+ <dd>
2229
+
2230
+ <dl>
2231
+ <dd>
2232
+
2233
+ ```typescript
2234
+ await client.business.pushNotifications.register({
2235
+ token: "token"
2236
+ });
2237
+
2238
+ ```
2239
+ </dd>
2240
+ </dl>
2241
+ </dd>
2242
+ </dl>
2243
+
2244
+ #### ⚙️ Parameters
2245
+
2246
+ <dl>
2247
+ <dd>
2248
+
2249
+ <dl>
2250
+ <dd>
2251
+
2252
+ **request:** `FiveOneEat.business.StorePushTokenRequest`
2253
+
2254
+ </dd>
2255
+ </dl>
2256
+
2257
+ <dl>
2258
+ <dd>
2259
+
2260
+ **requestOptions:** `PushNotificationsClient.RequestOptions`
2261
+
2262
+ </dd>
2263
+ </dl>
2264
+ </dd>
2265
+ </dl>
2266
+
2267
+
2268
+ </dd>
2269
+ </dl>
2270
+ </details>
2271
+
2272
+ <details><summary><code>client.business.pushNotifications.<a href="/src/api/resources/business/resources/pushNotifications/client/Client.ts">unregister</a>({ ...params }) -> void</code></summary>
2273
+ <dl>
2274
+ <dd>
2275
+
2276
+ #### 📝 Description
2277
+
2278
+ <dl>
2279
+ <dd>
2280
+
2281
+ <dl>
2282
+ <dd>
2283
+
2284
+ Delete the authenticated business user's Expo push token registration.
2285
+ </dd>
2286
+ </dl>
2287
+ </dd>
2288
+ </dl>
2289
+
2290
+ #### 🔌 Usage
2291
+
2292
+ <dl>
2293
+ <dd>
2294
+
2295
+ <dl>
2296
+ <dd>
2297
+
2298
+ ```typescript
2299
+ await client.business.pushNotifications.unregister({
2300
+ token: "token"
2301
+ });
2302
+
2303
+ ```
2304
+ </dd>
2305
+ </dl>
2306
+ </dd>
2307
+ </dl>
2308
+
2309
+ #### ⚙️ Parameters
2310
+
2311
+ <dl>
2312
+ <dd>
2313
+
2314
+ <dl>
2315
+ <dd>
2316
+
2317
+ **request:** `FiveOneEat.business.UnregisterPushNotificationsRequest`
2318
+
2319
+ </dd>
2320
+ </dl>
2321
+
2322
+ <dl>
2323
+ <dd>
2324
+
2325
+ **requestOptions:** `PushNotificationsClient.RequestOptions`
2326
+
2327
+ </dd>
2328
+ </dl>
2329
+ </dd>
2330
+ </dl>
2331
+
2332
+
2333
+ </dd>
2334
+ </dl>
2335
+ </details>
2336
+
2337
+ ## Business Businesses
2338
+ <details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">list</a>() -> void</code></summary>
2339
+ <dl>
2340
+ <dd>
2341
+
2342
+ #### 🔌 Usage
2343
+
2344
+ <dl>
2345
+ <dd>
2346
+
2347
+ <dl>
2348
+ <dd>
2349
+
2350
+ ```typescript
2351
+ await client.business.businesses.list();
2352
+
2353
+ ```
2354
+ </dd>
2355
+ </dl>
2356
+ </dd>
2357
+ </dl>
2358
+
2359
+ #### ⚙️ Parameters
2360
+
2361
+ <dl>
2362
+ <dd>
2363
+
2364
+ <dl>
2365
+ <dd>
2366
+
2367
+ **requestOptions:** `BusinessesClient.RequestOptions`
2368
+
2369
+ </dd>
2370
+ </dl>
2371
+ </dd>
2372
+ </dl>
2373
+
2374
+
2375
+ </dd>
2376
+ </dl>
2377
+ </details>
2378
+
2379
+ <details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">create</a>() -> void</code></summary>
2380
+ <dl>
2381
+ <dd>
2382
+
2383
+ #### 🔌 Usage
2384
+
2385
+ <dl>
2386
+ <dd>
2387
+
2388
+ <dl>
2389
+ <dd>
2390
+
2391
+ ```typescript
2392
+ await client.business.businesses.create();
2393
+
2394
+ ```
2395
+ </dd>
2396
+ </dl>
2397
+ </dd>
2398
+ </dl>
2399
+
2400
+ #### ⚙️ Parameters
2401
+
2402
+ <dl>
2403
+ <dd>
2404
+
2405
+ <dl>
2406
+ <dd>
2407
+
2408
+ **requestOptions:** `BusinessesClient.RequestOptions`
2409
+
2410
+ </dd>
2411
+ </dl>
2412
+ </dd>
2413
+ </dl>
2414
+
2415
+
2416
+ </dd>
2417
+ </dl>
2418
+ </details>
2419
+
2420
+ <details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">get</a>({ ...params }) -> void</code></summary>
2421
+ <dl>
2422
+ <dd>
2423
+
2424
+ #### 🔌 Usage
2425
+
2426
+ <dl>
2427
+ <dd>
2428
+
2429
+ <dl>
2430
+ <dd>
2431
+
2432
+ ```typescript
2433
+ await client.business.businesses.get({
2434
+ business: "business"
2435
+ });
2436
+
2437
+ ```
2438
+ </dd>
2439
+ </dl>
2440
+ </dd>
2441
+ </dl>
2442
+
2443
+ #### ⚙️ Parameters
2444
+
2445
+ <dl>
2446
+ <dd>
2447
+
2448
+ <dl>
2449
+ <dd>
2450
+
2451
+ **request:** `FiveOneEat.business.GetBusinessesRequest`
2452
+
2453
+ </dd>
2454
+ </dl>
2455
+
2456
+ <dl>
2457
+ <dd>
2458
+
2459
+ **requestOptions:** `BusinessesClient.RequestOptions`
2460
+
2461
+ </dd>
2462
+ </dl>
2463
+ </dd>
2464
+ </dl>
2465
+
2466
+
2467
+ </dd>
2468
+ </dl>
2469
+ </details>
2470
+
2471
+ <details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">update</a>({ ...params }) -> void</code></summary>
2472
+ <dl>
2473
+ <dd>
2474
+
2475
+ #### 🔌 Usage
2476
+
2477
+ <dl>
2478
+ <dd>
2479
+
2480
+ <dl>
2481
+ <dd>
2482
+
2483
+ ```typescript
2484
+ await client.business.businesses.update({
2485
+ business: "business"
2486
+ });
2487
+
2488
+ ```
2489
+ </dd>
2490
+ </dl>
2491
+ </dd>
2492
+ </dl>
2493
+
2494
+ #### ⚙️ Parameters
2495
+
2496
+ <dl>
2497
+ <dd>
2498
+
2499
+ <dl>
2500
+ <dd>
2501
+
2502
+ **request:** `FiveOneEat.business.UpdateBusinessesRequest`
2503
+
2504
+ </dd>
2505
+ </dl>
2506
+
2507
+ <dl>
2508
+ <dd>
2509
+
2510
+ **requestOptions:** `BusinessesClient.RequestOptions`
2511
+
2512
+ </dd>
2513
+ </dl>
2514
+ </dd>
2515
+ </dl>
2516
+
2517
+
2518
+ </dd>
2519
+ </dl>
2520
+ </details>
2521
+
2522
+ <details><summary><code>client.business.businesses.<a href="/src/api/resources/business/resources/businesses/client/Client.ts">delete</a>({ ...params }) -> void</code></summary>
2523
+ <dl>
2524
+ <dd>
2525
+
2526
+ #### 🔌 Usage
2527
+
2528
+ <dl>
2529
+ <dd>
2530
+
2531
+ <dl>
2532
+ <dd>
2533
+
2534
+ ```typescript
2535
+ await client.business.businesses.delete({
2536
+ business: "business"
2537
+ });
2538
+
2539
+ ```
2540
+ </dd>
2541
+ </dl>
2542
+ </dd>
2543
+ </dl>
2544
+
2545
+ #### ⚙️ Parameters
2546
+
2547
+ <dl>
2548
+ <dd>
2549
+
2550
+ <dl>
2551
+ <dd>
2552
+
2553
+ **request:** `FiveOneEat.business.DeleteBusinessesRequest`
2554
+
2555
+ </dd>
2556
+ </dl>
2557
+
2558
+ <dl>
2559
+ <dd>
2560
+
2561
+ **requestOptions:** `BusinessesClient.RequestOptions`
2562
+
2563
+ </dd>
2564
+ </dl>
2565
+ </dd>
2566
+ </dl>
2567
+
2568
+
2569
+ </dd>
2570
+ </dl>
2571
+ </details>
2572
+
2573
+ ## Business Cuisines
2574
+ <details><summary><code>client.business.cuisines.<a href="/src/api/resources/business/resources/cuisines/client/Client.ts">list</a>() -> void</code></summary>
2575
+ <dl>
2576
+ <dd>
2577
+
2578
+ #### 🔌 Usage
2579
+
2580
+ <dl>
2581
+ <dd>
2582
+
2583
+ <dl>
2584
+ <dd>
2585
+
2586
+ ```typescript
2587
+ await client.business.cuisines.list();
2588
+
2589
+ ```
2590
+ </dd>
2591
+ </dl>
2592
+ </dd>
2593
+ </dl>
2594
+
2595
+ #### ⚙️ Parameters
2596
+
2597
+ <dl>
2598
+ <dd>
2599
+
2600
+ <dl>
2601
+ <dd>
2602
+
2603
+ **requestOptions:** `CuisinesClient.RequestOptions`
2604
+
2605
+ </dd>
2606
+ </dl>
2607
+ </dd>
2608
+ </dl>
2609
+
2610
+
2611
+ </dd>
2612
+ </dl>
2613
+ </details>
2614
+
2615
+ ## Business Certifications
2616
+ <details><summary><code>client.business.certifications.<a href="/src/api/resources/business/resources/certifications/client/Client.ts">list</a>() -> void</code></summary>
2617
+ <dl>
2618
+ <dd>
2619
+
2620
+ #### 🔌 Usage
2621
+
2622
+ <dl>
2623
+ <dd>
2624
+
2625
+ <dl>
2626
+ <dd>
2627
+
2628
+ ```typescript
2629
+ await client.business.certifications.list();
2630
+
2631
+ ```
2632
+ </dd>
2633
+ </dl>
2634
+ </dd>
2635
+ </dl>
2636
+
2637
+ #### ⚙️ Parameters
2638
+
2639
+ <dl>
2640
+ <dd>
2641
+
2642
+ <dl>
2643
+ <dd>
2644
+
2645
+ **requestOptions:** `CertificationsClient.RequestOptions`
2646
+
2647
+ </dd>
2648
+ </dl>
2649
+ </dd>
2650
+ </dl>
2651
+
2652
+
2653
+ </dd>
2654
+ </dl>
2655
+ </details>
2656
+
2657
+ ## Business Categories
2658
+ <details><summary><code>client.business.categories.<a href="/src/api/resources/business/resources/categories/client/Client.ts">list</a>() -> void</code></summary>
2659
+ <dl>
2660
+ <dd>
2661
+
2662
+ #### 🔌 Usage
2663
+
2664
+ <dl>
2665
+ <dd>
2666
+
2667
+ <dl>
2668
+ <dd>
2669
+
2670
+ ```typescript
2671
+ await client.business.categories.list();
2672
+
2673
+ ```
2674
+ </dd>
2675
+ </dl>
2676
+ </dd>
2677
+ </dl>
2678
+
2679
+ #### ⚙️ Parameters
2680
+
2681
+ <dl>
2682
+ <dd>
2683
+
2684
+ <dl>
2685
+ <dd>
2686
+
2687
+ **requestOptions:** `CategoriesClient.RequestOptions`
2688
+
2689
+ </dd>
2690
+ </dl>
2691
+ </dd>
2692
+ </dl>
2693
+
2694
+
2333
2695
  </dd>
2334
2696
  </dl>
2335
2697
  </details>