@51eat/sdk 0.0.19 → 0.0.21

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 (281) hide show
  1. package/README.md +15 -18
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +20 -10
  5. package/dist/cjs/api/resources/business/client/Client.d.ts +6 -0
  6. package/dist/cjs/api/resources/business/client/Client.js +14 -4
  7. package/dist/cjs/api/resources/business/resources/gallery/client/Client.d.ts +86 -0
  8. package/dist/cjs/api/resources/business/resources/gallery/client/Client.js +364 -0
  9. package/dist/cjs/api/resources/business/resources/gallery/client/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/business/resources/gallery/client/index.js +17 -0
  11. package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.ts +10 -0
  12. package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.js +3 -0
  13. package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.ts +21 -0
  14. package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.js +3 -0
  15. package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.ts +11 -0
  16. package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.js +3 -0
  17. package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.ts +11 -0
  18. package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.js +3 -0
  19. package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.d.ts +4 -0
  20. package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/business/resources/gallery/exports.d.ts +2 -0
  22. package/dist/cjs/api/resources/business/resources/gallery/exports.js +21 -0
  23. package/dist/cjs/api/resources/business/resources/gallery/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/business/resources/gallery/index.js +18 -0
  25. package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.ts +9 -0
  26. package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.js +10 -0
  27. package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.d.ts +4 -0
  28. package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.js +3 -0
  29. package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.ts +9 -0
  30. package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.js +10 -0
  31. package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.ts +4 -0
  32. package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.js +3 -0
  33. package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.ts +4 -0
  34. package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.js +3 -0
  35. package/dist/cjs/api/resources/business/resources/gallery/types/index.d.ts +5 -0
  36. package/dist/cjs/api/resources/business/resources/gallery/types/index.js +21 -0
  37. package/dist/cjs/api/resources/business/resources/index.d.ts +4 -0
  38. package/dist/cjs/api/resources/business/resources/index.js +5 -1
  39. package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +15 -0
  40. package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +21 -0
  41. package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/business/resources/messaging/client/index.js +2 -0
  43. package/dist/cjs/api/resources/business/resources/messaging/exports.d.ts +3 -0
  44. package/dist/cjs/api/resources/business/resources/messaging/exports.js +22 -0
  45. package/dist/cjs/api/resources/business/resources/messaging/index.d.ts +2 -0
  46. package/dist/cjs/api/resources/business/resources/messaging/index.js +18 -0
  47. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.d.ts +45 -0
  48. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.js +182 -0
  49. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.js +17 -0
  51. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.ts +10 -0
  52. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.js +3 -0
  53. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.ts +10 -0
  54. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.js +3 -0
  55. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.ts +2 -0
  56. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.js +2 -0
  57. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.d.ts +2 -0
  58. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.js +21 -0
  59. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.d.ts +2 -0
  60. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.js +18 -0
  61. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.ts +4 -0
  62. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.js +3 -0
  63. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.ts +4 -0
  64. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.js +3 -0
  65. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.d.ts +2 -0
  66. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.js +18 -0
  67. package/dist/cjs/api/resources/business/resources/messaging/resources/index.d.ts +6 -0
  68. package/dist/cjs/api/resources/business/resources/messaging/resources/index.js +45 -0
  69. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.d.ts +81 -0
  70. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.js +312 -0
  71. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.js +17 -0
  73. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.ts +14 -0
  74. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.js +3 -0
  75. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.ts +10 -0
  76. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.js +3 -0
  77. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.ts +22 -0
  78. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.js +12 -0
  79. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.ts +10 -0
  80. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.js +3 -0
  81. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.ts +4 -0
  82. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.js +5 -0
  83. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.d.ts +2 -0
  84. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.js +21 -0
  85. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.d.ts +2 -0
  86. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.js +18 -0
  87. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.ts +4 -0
  88. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.js +3 -0
  89. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.ts +4 -0
  90. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.js +3 -0
  91. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.d.ts +2 -0
  92. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.js +18 -0
  93. package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +32 -0
  94. package/dist/cjs/api/resources/businessMessaging/client/Client.js +118 -0
  95. package/dist/cjs/api/resources/businessMessaging/client/index.d.ts +1 -0
  96. package/dist/cjs/api/resources/businessMessaging/client/index.js +17 -0
  97. package/dist/cjs/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.ts +13 -0
  98. package/dist/cjs/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.js +3 -0
  99. package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/businessMessaging/client/requests/index.js +2 -0
  101. package/dist/cjs/api/resources/businessMessaging/exports.d.ts +2 -0
  102. package/dist/cjs/api/resources/businessMessaging/exports.js +21 -0
  103. package/dist/cjs/api/resources/businessMessaging/index.d.ts +1 -0
  104. package/dist/cjs/api/resources/businessMessaging/index.js +17 -0
  105. package/dist/cjs/api/resources/businessPushNotifications/client/Client.d.ts +47 -0
  106. package/dist/cjs/api/resources/businessPushNotifications/client/Client.js +182 -0
  107. package/dist/cjs/api/resources/businessPushNotifications/client/index.d.ts +1 -0
  108. package/dist/cjs/api/resources/businessPushNotifications/client/index.js +17 -0
  109. package/dist/cjs/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.ts +9 -0
  110. package/dist/cjs/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.js +3 -0
  111. package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.d.ts +2 -0
  112. package/dist/cjs/api/resources/businessPushNotifications/client/requests/index.js +5 -0
  113. package/dist/cjs/api/resources/businessPushNotifications/exports.d.ts +2 -0
  114. package/dist/cjs/api/resources/businessPushNotifications/exports.js +21 -0
  115. package/dist/cjs/api/resources/businessPushNotifications/index.d.ts +2 -0
  116. package/dist/cjs/api/resources/businessPushNotifications/index.js +18 -0
  117. package/dist/cjs/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.ts +7 -0
  118. package/dist/cjs/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.js +3 -0
  119. package/dist/cjs/api/resources/businessPushNotifications/types/index.d.ts +1 -0
  120. package/dist/cjs/api/resources/businessPushNotifications/types/index.js +17 -0
  121. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/Client.d.ts +2 -2
  122. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/Client.js +1 -1
  123. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.d.ts +19 -0
  124. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.js +11 -0
  125. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.d.ts +1 -1
  126. package/dist/cjs/api/resources/customer/resources/pushNotifications/client/requests/index.js +3 -3
  127. package/dist/cjs/api/resources/index.d.ts +5 -0
  128. package/dist/cjs/api/resources/index.js +6 -1
  129. package/dist/cjs/api/types/BusinessConversation.d.ts +20 -0
  130. package/dist/cjs/api/types/BusinessConversation.js +3 -0
  131. package/dist/cjs/api/types/BusinessMessage.d.ts +20 -0
  132. package/dist/cjs/api/types/BusinessMessage.js +3 -0
  133. package/dist/cjs/api/types/BusinessPhoto.d.ts +9 -0
  134. package/dist/cjs/api/types/BusinessPhoto.js +3 -0
  135. package/dist/cjs/api/types/index.d.ts +3 -0
  136. package/dist/cjs/api/types/index.js +3 -0
  137. package/dist/cjs/version.d.ts +1 -1
  138. package/dist/cjs/version.js +1 -1
  139. package/dist/esm/BaseClient.mjs +2 -2
  140. package/dist/esm/Client.d.mts +6 -0
  141. package/dist/esm/Client.mjs +10 -0
  142. package/dist/esm/api/resources/business/client/Client.d.mts +6 -0
  143. package/dist/esm/api/resources/business/client/Client.mjs +10 -0
  144. package/dist/esm/api/resources/business/resources/gallery/client/Client.d.mts +86 -0
  145. package/dist/esm/api/resources/business/resources/gallery/client/Client.mjs +327 -0
  146. package/dist/esm/api/resources/business/resources/gallery/client/index.d.mts +1 -0
  147. package/dist/esm/api/resources/business/resources/gallery/client/index.mjs +1 -0
  148. package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.mts +10 -0
  149. package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.mjs +2 -0
  150. package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.mts +21 -0
  151. package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.mjs +2 -0
  152. package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.mts +11 -0
  153. package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.mjs +2 -0
  154. package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.mts +11 -0
  155. package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.mjs +2 -0
  156. package/dist/esm/api/resources/business/resources/gallery/client/requests/index.d.mts +4 -0
  157. package/dist/esm/api/resources/business/resources/gallery/client/requests/index.mjs +1 -0
  158. package/dist/esm/api/resources/business/resources/gallery/exports.d.mts +2 -0
  159. package/dist/esm/api/resources/business/resources/gallery/exports.mjs +3 -0
  160. package/dist/esm/api/resources/business/resources/gallery/index.d.mts +2 -0
  161. package/dist/esm/api/resources/business/resources/gallery/index.mjs +2 -0
  162. package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.mts +9 -0
  163. package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.mjs +7 -0
  164. package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.d.mts +4 -0
  165. package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.mjs +2 -0
  166. package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.mts +9 -0
  167. package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.mjs +7 -0
  168. package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.mts +4 -0
  169. package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.mjs +2 -0
  170. package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.mts +4 -0
  171. package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.mjs +2 -0
  172. package/dist/esm/api/resources/business/resources/gallery/types/index.d.mts +5 -0
  173. package/dist/esm/api/resources/business/resources/gallery/types/index.mjs +5 -0
  174. package/dist/esm/api/resources/business/resources/index.d.mts +4 -0
  175. package/dist/esm/api/resources/business/resources/index.mjs +4 -0
  176. package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +15 -0
  177. package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +17 -0
  178. package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -0
  179. package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -0
  180. package/dist/esm/api/resources/business/resources/messaging/exports.d.mts +3 -0
  181. package/dist/esm/api/resources/business/resources/messaging/exports.mjs +4 -0
  182. package/dist/esm/api/resources/business/resources/messaging/index.d.mts +2 -0
  183. package/dist/esm/api/resources/business/resources/messaging/index.mjs +2 -0
  184. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.d.mts +45 -0
  185. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.mjs +145 -0
  186. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.d.mts +1 -0
  187. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.mjs +1 -0
  188. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.mts +10 -0
  189. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.mjs +2 -0
  190. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.mts +10 -0
  191. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.mjs +2 -0
  192. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.mts +2 -0
  193. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.mjs +1 -0
  194. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.d.mts +2 -0
  195. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.mjs +3 -0
  196. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.d.mts +2 -0
  197. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.mjs +2 -0
  198. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.mts +4 -0
  199. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.mjs +2 -0
  200. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.mts +4 -0
  201. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.mjs +2 -0
  202. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.d.mts +2 -0
  203. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.mjs +2 -0
  204. package/dist/esm/api/resources/business/resources/messaging/resources/index.d.mts +6 -0
  205. package/dist/esm/api/resources/business/resources/messaging/resources/index.mjs +6 -0
  206. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.d.mts +81 -0
  207. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.mjs +275 -0
  208. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.d.mts +1 -0
  209. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.mjs +1 -0
  210. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.mts +14 -0
  211. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.mjs +2 -0
  212. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.mts +10 -0
  213. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.mjs +2 -0
  214. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.mts +22 -0
  215. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.mjs +9 -0
  216. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.mts +10 -0
  217. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.mjs +2 -0
  218. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.mts +4 -0
  219. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.mjs +1 -0
  220. package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.d.mts +2 -0
  221. package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.mjs +3 -0
  222. package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.d.mts +2 -0
  223. package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.mjs +2 -0
  224. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.mts +4 -0
  225. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.mjs +2 -0
  226. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.mts +4 -0
  227. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.mjs +2 -0
  228. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.d.mts +2 -0
  229. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.mjs +2 -0
  230. package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +32 -0
  231. package/dist/esm/api/resources/businessMessaging/client/Client.mjs +81 -0
  232. package/dist/esm/api/resources/businessMessaging/client/index.d.mts +1 -0
  233. package/dist/esm/api/resources/businessMessaging/client/index.mjs +1 -0
  234. package/dist/esm/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.d.mts +13 -0
  235. package/dist/esm/api/resources/businessMessaging/client/requests/BusinessChannelAuthAuthenticateRequest.mjs +2 -0
  236. package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +1 -0
  237. package/dist/esm/api/resources/businessMessaging/client/requests/index.mjs +1 -0
  238. package/dist/esm/api/resources/businessMessaging/exports.d.mts +2 -0
  239. package/dist/esm/api/resources/businessMessaging/exports.mjs +3 -0
  240. package/dist/esm/api/resources/businessMessaging/index.d.mts +1 -0
  241. package/dist/esm/api/resources/businessMessaging/index.mjs +1 -0
  242. package/dist/esm/api/resources/businessPushNotifications/client/Client.d.mts +47 -0
  243. package/dist/esm/api/resources/businessPushNotifications/client/Client.mjs +145 -0
  244. package/dist/esm/api/resources/businessPushNotifications/client/index.d.mts +1 -0
  245. package/dist/esm/api/resources/businessPushNotifications/client/index.mjs +1 -0
  246. package/dist/esm/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.d.mts +9 -0
  247. package/dist/esm/api/resources/businessPushNotifications/client/requests/UnregisterBusinessPushTokenRequest.mjs +2 -0
  248. package/dist/esm/api/resources/businessPushNotifications/client/requests/index.d.mts +2 -0
  249. package/dist/esm/api/resources/businessPushNotifications/client/requests/index.mjs +1 -0
  250. package/dist/esm/api/resources/businessPushNotifications/exports.d.mts +2 -0
  251. package/dist/esm/api/resources/businessPushNotifications/exports.mjs +3 -0
  252. package/dist/esm/api/resources/businessPushNotifications/index.d.mts +2 -0
  253. package/dist/esm/api/resources/businessPushNotifications/index.mjs +2 -0
  254. package/dist/esm/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.d.mts +7 -0
  255. package/dist/esm/api/resources/businessPushNotifications/types/RegisterBusinessPushTokenResponse.mjs +2 -0
  256. package/dist/esm/api/resources/businessPushNotifications/types/index.d.mts +1 -0
  257. package/dist/esm/api/resources/businessPushNotifications/types/index.mjs +1 -0
  258. package/dist/esm/api/resources/customer/resources/pushNotifications/client/Client.d.mts +2 -2
  259. package/dist/esm/api/resources/customer/resources/pushNotifications/client/Client.mjs +1 -1
  260. package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.d.mts +19 -0
  261. package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/AppHttpRequestsApiV1CustomerPushTokensStorePushTokenRequest.mjs +8 -0
  262. package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/index.d.mts +1 -1
  263. package/dist/esm/api/resources/customer/resources/pushNotifications/client/requests/index.mjs +1 -1
  264. package/dist/esm/api/resources/index.d.mts +5 -0
  265. package/dist/esm/api/resources/index.mjs +5 -0
  266. package/dist/esm/api/types/BusinessConversation.d.mts +20 -0
  267. package/dist/esm/api/types/BusinessConversation.mjs +2 -0
  268. package/dist/esm/api/types/BusinessMessage.d.mts +20 -0
  269. package/dist/esm/api/types/BusinessMessage.mjs +2 -0
  270. package/dist/esm/api/types/BusinessPhoto.d.mts +9 -0
  271. package/dist/esm/api/types/BusinessPhoto.mjs +2 -0
  272. package/dist/esm/api/types/index.d.mts +3 -0
  273. package/dist/esm/api/types/index.mjs +3 -0
  274. package/dist/esm/version.d.mts +1 -1
  275. package/dist/esm/version.mjs +1 -1
  276. package/package.json +67 -1
  277. package/reference.md +1116 -271
  278. /package/dist/cjs/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.d.ts +0 -0
  279. /package/dist/cjs/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.js +0 -0
  280. /package/dist/esm/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.d.mts +0 -0
  281. /package/dist/esm/api/resources/{customer/resources/pushNotifications → businessPushNotifications}/client/requests/StorePushTokenRequest.mjs +0 -0
@@ -0,0 +1,327 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
23
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
24
+ import * as core from "../../../../../../core/index.mjs";
25
+ import * as environments from "../../../../../../environments.mjs";
26
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
27
+ import * as errors from "../../../../../../errors/index.mjs";
28
+ import * as FiveOneEat from "../../../../../index.mjs";
29
+ export class GalleryClient {
30
+ constructor(options = {}) {
31
+ this._options = normalizeClientOptionsWithAuth(options);
32
+ }
33
+ /**
34
+ * @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link FiveOneEat.UnauthorizedError}
37
+ *
38
+ * @example
39
+ * await client.business.gallery.list()
40
+ */
41
+ list(requestOptions) {
42
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
43
+ }
44
+ __list(requestOptions) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
47
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
48
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
49
+ const _response = yield core.fetcher({
50
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/gallery"),
51
+ method: "GET",
52
+ headers: _headers,
53
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
54
+ 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,
55
+ 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,
56
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
57
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
58
+ logging: this._options.logging,
59
+ });
60
+ if (_response.ok) {
61
+ return {
62
+ data: _response.body,
63
+ rawResponse: _response.rawResponse,
64
+ };
65
+ }
66
+ if (_response.error.reason === "status-code") {
67
+ switch (_response.error.statusCode) {
68
+ case 401:
69
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
70
+ default:
71
+ throw new errors.FiveOneEatError({
72
+ statusCode: _response.error.statusCode,
73
+ body: _response.error.body,
74
+ rawResponse: _response.rawResponse,
75
+ });
76
+ }
77
+ }
78
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/gallery");
79
+ });
80
+ }
81
+ /**
82
+ * @param {FiveOneEat.business.StoreGalleryPhotoRequest} request
83
+ * @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
84
+ *
85
+ * @throws {@link FiveOneEat.UnauthorizedError}
86
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
87
+ *
88
+ * @example
89
+ * import { createReadStream } from "fs";
90
+ * await client.business.gallery.upload({
91
+ * photo: fs.createReadStream("/path/to/your/file")
92
+ * })
93
+ */
94
+ upload(request, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
96
+ }
97
+ __upload(request, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
100
+ const _body = yield core.newFormData();
101
+ yield _body.appendFile("photo", request.photo);
102
+ if (request.alt_text != null) {
103
+ _body.append("alt_text", request.alt_text);
104
+ }
105
+ const _maybeEncodedRequest = yield _body.getRequest();
106
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
107
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
108
+ const _response = yield core.fetcher({
109
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/gallery"),
110
+ method: "POST",
111
+ headers: _headers,
112
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
113
+ requestType: "file",
114
+ duplex: _maybeEncodedRequest.duplex,
115
+ body: _maybeEncodedRequest.body,
116
+ 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,
117
+ 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,
118
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
119
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
120
+ logging: this._options.logging,
121
+ });
122
+ if (_response.ok) {
123
+ return {
124
+ data: _response.body,
125
+ rawResponse: _response.rawResponse,
126
+ };
127
+ }
128
+ if (_response.error.reason === "status-code") {
129
+ switch (_response.error.statusCode) {
130
+ case 401:
131
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
132
+ case 422:
133
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
134
+ default:
135
+ throw new errors.FiveOneEatError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.body,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ }
141
+ }
142
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/gallery");
143
+ });
144
+ }
145
+ /**
146
+ * @param {FiveOneEat.business.ReorderGalleryRequest} request
147
+ * @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
148
+ *
149
+ * @throws {@link FiveOneEat.UnauthorizedError}
150
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
151
+ *
152
+ * @example
153
+ * await client.business.gallery.reorder({
154
+ * photos: [{
155
+ * id: "id",
156
+ * sort_order: 1
157
+ * }]
158
+ * })
159
+ */
160
+ reorder(request, requestOptions) {
161
+ return core.HttpResponsePromise.fromPromise(this.__reorder(request, requestOptions));
162
+ }
163
+ __reorder(request, requestOptions) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
166
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
167
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
168
+ const _response = yield core.fetcher({
169
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/gallery/reorder"),
170
+ method: "PUT",
171
+ headers: _headers,
172
+ contentType: "application/json",
173
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
174
+ requestType: "json",
175
+ body: request,
176
+ 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,
177
+ 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,
178
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
179
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
180
+ logging: this._options.logging,
181
+ });
182
+ if (_response.ok) {
183
+ return {
184
+ data: _response.body,
185
+ rawResponse: _response.rawResponse,
186
+ };
187
+ }
188
+ if (_response.error.reason === "status-code") {
189
+ switch (_response.error.statusCode) {
190
+ case 401:
191
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
192
+ case 422:
193
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
194
+ default:
195
+ throw new errors.FiveOneEatError({
196
+ statusCode: _response.error.statusCode,
197
+ body: _response.error.body,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ }
201
+ }
202
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/gallery/reorder");
203
+ });
204
+ }
205
+ /**
206
+ * @param {FiveOneEat.business.UpdateGalleryPhotoRequest} request
207
+ * @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
208
+ *
209
+ * @throws {@link FiveOneEat.UnauthorizedError}
210
+ * @throws {@link FiveOneEat.ForbiddenError}
211
+ * @throws {@link FiveOneEat.NotFoundError}
212
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
213
+ *
214
+ * @example
215
+ * await client.business.gallery.update({
216
+ * photo: "photo"
217
+ * })
218
+ */
219
+ update(request, requestOptions) {
220
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
221
+ }
222
+ __update(request, requestOptions) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
225
+ const { photo } = request, _body = __rest(request, ["photo"]);
226
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
227
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
228
+ const _response = yield core.fetcher({
229
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/gallery/${core.url.encodePathParam(photo)}`),
230
+ method: "PUT",
231
+ headers: _headers,
232
+ contentType: "application/json",
233
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
234
+ requestType: "json",
235
+ body: _body,
236
+ 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,
237
+ 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,
238
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
239
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
240
+ logging: this._options.logging,
241
+ });
242
+ if (_response.ok) {
243
+ return {
244
+ data: _response.body,
245
+ rawResponse: _response.rawResponse,
246
+ };
247
+ }
248
+ if (_response.error.reason === "status-code") {
249
+ switch (_response.error.statusCode) {
250
+ case 401:
251
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
252
+ case 403:
253
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
254
+ case 404:
255
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
256
+ case 422:
257
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
258
+ default:
259
+ throw new errors.FiveOneEatError({
260
+ statusCode: _response.error.statusCode,
261
+ body: _response.error.body,
262
+ rawResponse: _response.rawResponse,
263
+ });
264
+ }
265
+ }
266
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/gallery/{photo}");
267
+ });
268
+ }
269
+ /**
270
+ * @param {FiveOneEat.business.DeleteGalleryRequest} request
271
+ * @param {GalleryClient.RequestOptions} requestOptions - Request-specific configuration.
272
+ *
273
+ * @throws {@link FiveOneEat.UnauthorizedError}
274
+ * @throws {@link FiveOneEat.ForbiddenError}
275
+ * @throws {@link FiveOneEat.NotFoundError}
276
+ *
277
+ * @example
278
+ * await client.business.gallery.delete({
279
+ * photo: "photo"
280
+ * })
281
+ */
282
+ delete(request, requestOptions) {
283
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
284
+ }
285
+ __delete(request, requestOptions) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
288
+ const { photo } = request;
289
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
290
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
291
+ const _response = yield core.fetcher({
292
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/gallery/${core.url.encodePathParam(photo)}`),
293
+ method: "DELETE",
294
+ headers: _headers,
295
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
296
+ 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,
297
+ 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,
298
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
299
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
300
+ logging: this._options.logging,
301
+ });
302
+ if (_response.ok) {
303
+ return {
304
+ data: _response.body,
305
+ rawResponse: _response.rawResponse,
306
+ };
307
+ }
308
+ if (_response.error.reason === "status-code") {
309
+ switch (_response.error.statusCode) {
310
+ case 401:
311
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
312
+ case 403:
313
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
314
+ case 404:
315
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
316
+ default:
317
+ throw new errors.FiveOneEatError({
318
+ statusCode: _response.error.statusCode,
319
+ body: _response.error.body,
320
+ rawResponse: _response.rawResponse,
321
+ });
322
+ }
323
+ }
324
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/gallery/{photo}");
325
+ });
326
+ }
327
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * photo: "photo"
5
+ * }
6
+ */
7
+ export interface DeleteGalleryRequest {
8
+ /** The photo ID */
9
+ photo: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * photos: [{
5
+ * id: "id",
6
+ * sort_order: 1
7
+ * }]
8
+ * }
9
+ */
10
+ export interface ReorderGalleryRequest {
11
+ photos: ReorderGalleryRequest.Photos.Item[];
12
+ }
13
+ export declare namespace ReorderGalleryRequest {
14
+ type Photos = Photos.Item[];
15
+ namespace Photos {
16
+ interface Item {
17
+ id: string;
18
+ sort_order: number;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ import type * as core from "../../../../../../../core/index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * photo: fs.createReadStream("/path/to/your/file")
6
+ * }
7
+ */
8
+ export interface StoreGalleryPhotoRequest {
9
+ photo: core.file.Uploadable;
10
+ alt_text?: string | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * photo: "photo"
5
+ * }
6
+ */
7
+ export interface UpdateGalleryPhotoRequest {
8
+ /** The photo ID */
9
+ photo: string;
10
+ alt_text?: string | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type { DeleteGalleryRequest } from "./DeleteGalleryRequest.mjs";
2
+ export type { ReorderGalleryRequest } from "./ReorderGalleryRequest.mjs";
3
+ export type { StoreGalleryPhotoRequest } from "./StoreGalleryPhotoRequest.mjs";
4
+ export type { UpdateGalleryPhotoRequest } from "./UpdateGalleryPhotoRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { GalleryClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { GalleryClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,9 @@
1
+ export interface DeleteGalleryResponse {
2
+ message: DeleteGalleryResponse.Message;
3
+ }
4
+ export declare namespace DeleteGalleryResponse {
5
+ const Message: {
6
+ readonly PhotoDeletedSuccessfully: "Photo deleted successfully.";
7
+ };
8
+ type Message = (typeof Message)[keyof typeof Message];
9
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var DeleteGalleryResponse;
3
+ (function (DeleteGalleryResponse) {
4
+ DeleteGalleryResponse.Message = {
5
+ PhotoDeletedSuccessfully: "Photo deleted successfully.",
6
+ };
7
+ })(DeleteGalleryResponse || (DeleteGalleryResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface ListGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto[];
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface ReorderGalleryResponse {
2
+ message: ReorderGalleryResponse.Message;
3
+ }
4
+ export declare namespace ReorderGalleryResponse {
5
+ const Message: {
6
+ readonly PhotoOrderUpdatedSuccessfully: "Photo order updated successfully.";
7
+ };
8
+ type Message = (typeof Message)[keyof typeof Message];
9
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ReorderGalleryResponse;
3
+ (function (ReorderGalleryResponse) {
4
+ ReorderGalleryResponse.Message = {
5
+ PhotoOrderUpdatedSuccessfully: "Photo order updated successfully.",
6
+ };
7
+ })(ReorderGalleryResponse || (ReorderGalleryResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface UpdateGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface UploadGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./DeleteGalleryResponse.mjs";
2
+ export * from "./ListGalleryResponse.mjs";
3
+ export * from "./ReorderGalleryResponse.mjs";
4
+ export * from "./UpdateGalleryResponse.mjs";
5
+ export * from "./UploadGalleryResponse.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./DeleteGalleryResponse.mjs";
2
+ export * from "./ListGalleryResponse.mjs";
3
+ export * from "./ReorderGalleryResponse.mjs";
4
+ export * from "./UpdateGalleryResponse.mjs";
5
+ export * from "./UploadGalleryResponse.mjs";
@@ -4,9 +4,13 @@ export * from "./auth/types/index.mjs";
4
4
  export * from "./bulletins/client/requests/index.mjs";
5
5
  export * as bulletins from "./bulletins/index.mjs";
6
6
  export * from "./bulletins/types/index.mjs";
7
+ export * from "./gallery/client/requests/index.mjs";
8
+ export * as gallery from "./gallery/index.mjs";
9
+ export * from "./gallery/types/index.mjs";
7
10
  export * from "./menus/client/requests/index.mjs";
8
11
  export * as menus from "./menus/index.mjs";
9
12
  export * from "./menus/types/index.mjs";
13
+ export * as messaging from "./messaging/index.mjs";
10
14
  export * from "./profile/client/requests/index.mjs";
11
15
  export * as profile from "./profile/index.mjs";
12
16
  export * from "./profile/types/index.mjs";
@@ -4,9 +4,13 @@ export * from "./auth/types/index.mjs";
4
4
  export * from "./bulletins/client/requests/index.mjs";
5
5
  export * as bulletins from "./bulletins/index.mjs";
6
6
  export * from "./bulletins/types/index.mjs";
7
+ export * from "./gallery/client/requests/index.mjs";
8
+ export * as gallery from "./gallery/index.mjs";
9
+ export * from "./gallery/types/index.mjs";
7
10
  export * from "./menus/client/requests/index.mjs";
8
11
  export * as menus from "./menus/index.mjs";
9
12
  export * from "./menus/types/index.mjs";
13
+ export * as messaging from "./messaging/index.mjs";
10
14
  export * from "./profile/client/requests/index.mjs";
11
15
  export * as profile from "./profile/index.mjs";
12
16
  export * from "./profile/types/index.mjs";
@@ -0,0 +1,15 @@
1
+ import type { BaseClientOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import { ConversationsClient } from "../resources/conversations/client/Client.mjs";
4
+ import { MessagesClient } from "../resources/messages/client/Client.mjs";
5
+ export declare namespace MessagingClient {
6
+ type Options = BaseClientOptions;
7
+ }
8
+ export declare class MessagingClient {
9
+ protected readonly _options: NormalizedClientOptionsWithAuth<MessagingClient.Options>;
10
+ protected _conversations: ConversationsClient | undefined;
11
+ protected _messages: MessagesClient | undefined;
12
+ constructor(options?: MessagingClient.Options);
13
+ get conversations(): ConversationsClient;
14
+ get messages(): MessagesClient;
15
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import { ConversationsClient } from "../resources/conversations/client/Client.mjs";
4
+ import { MessagesClient } from "../resources/messages/client/Client.mjs";
5
+ export class MessagingClient {
6
+ constructor(options = {}) {
7
+ this._options = normalizeClientOptionsWithAuth(options);
8
+ }
9
+ get conversations() {
10
+ var _a;
11
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new ConversationsClient(this._options)));
12
+ }
13
+ get messages() {
14
+ var _a;
15
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new MessagesClient(this._options)));
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ export { MessagingClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { MessagingClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";