@51eat/sdk 0.0.19 → 0.0.20

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 (201) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/business/client/Client.d.ts +6 -0
  4. package/dist/cjs/api/resources/business/client/Client.js +14 -4
  5. package/dist/cjs/api/resources/business/resources/gallery/client/Client.d.ts +86 -0
  6. package/dist/cjs/api/resources/business/resources/gallery/client/Client.js +364 -0
  7. package/dist/cjs/api/resources/business/resources/gallery/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/business/resources/gallery/client/index.js +17 -0
  9. package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.ts +10 -0
  10. package/dist/cjs/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.js +3 -0
  11. package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.ts +21 -0
  12. package/dist/cjs/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.js +3 -0
  13. package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.ts +11 -0
  14. package/dist/cjs/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.js +3 -0
  15. package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.ts +11 -0
  16. package/dist/cjs/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.js +3 -0
  17. package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.d.ts +4 -0
  18. package/dist/cjs/api/resources/business/resources/gallery/client/requests/index.js +2 -0
  19. package/dist/cjs/api/resources/business/resources/gallery/exports.d.ts +2 -0
  20. package/dist/cjs/api/resources/business/resources/gallery/exports.js +21 -0
  21. package/dist/cjs/api/resources/business/resources/gallery/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/business/resources/gallery/index.js +18 -0
  23. package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.ts +9 -0
  24. package/dist/cjs/api/resources/business/resources/gallery/types/DeleteGalleryResponse.js +10 -0
  25. package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.d.ts +4 -0
  26. package/dist/cjs/api/resources/business/resources/gallery/types/ListGalleryResponse.js +3 -0
  27. package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.ts +9 -0
  28. package/dist/cjs/api/resources/business/resources/gallery/types/ReorderGalleryResponse.js +10 -0
  29. package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.ts +4 -0
  30. package/dist/cjs/api/resources/business/resources/gallery/types/UpdateGalleryResponse.js +3 -0
  31. package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.ts +4 -0
  32. package/dist/cjs/api/resources/business/resources/gallery/types/UploadGalleryResponse.js +3 -0
  33. package/dist/cjs/api/resources/business/resources/gallery/types/index.d.ts +5 -0
  34. package/dist/cjs/api/resources/business/resources/gallery/types/index.js +21 -0
  35. package/dist/cjs/api/resources/business/resources/index.d.ts +4 -0
  36. package/dist/cjs/api/resources/business/resources/index.js +5 -1
  37. package/dist/cjs/api/resources/business/resources/messaging/client/Client.d.ts +15 -0
  38. package/dist/cjs/api/resources/business/resources/messaging/client/Client.js +21 -0
  39. package/dist/cjs/api/resources/business/resources/messaging/client/index.d.ts +1 -0
  40. package/dist/cjs/api/resources/business/resources/messaging/client/index.js +2 -0
  41. package/dist/cjs/api/resources/business/resources/messaging/exports.d.ts +3 -0
  42. package/dist/cjs/api/resources/business/resources/messaging/exports.js +22 -0
  43. package/dist/cjs/api/resources/business/resources/messaging/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/business/resources/messaging/index.js +18 -0
  45. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.d.ts +45 -0
  46. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.js +182 -0
  47. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/index.js +17 -0
  49. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.ts +10 -0
  50. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.js +3 -0
  51. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.ts +10 -0
  52. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.js +3 -0
  53. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.js +2 -0
  55. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.d.ts +2 -0
  56. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/exports.js +21 -0
  57. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/index.js +18 -0
  59. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.ts +4 -0
  60. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.js +3 -0
  61. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.ts +4 -0
  62. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.js +3 -0
  63. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.js +18 -0
  65. package/dist/cjs/api/resources/business/resources/messaging/resources/index.d.ts +6 -0
  66. package/dist/cjs/api/resources/business/resources/messaging/resources/index.js +45 -0
  67. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.d.ts +81 -0
  68. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/Client.js +312 -0
  69. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/index.js +17 -0
  71. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.ts +14 -0
  72. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.js +3 -0
  73. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.ts +10 -0
  74. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.js +3 -0
  75. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.ts +22 -0
  76. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.js +12 -0
  77. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.ts +10 -0
  78. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.js +3 -0
  79. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.ts +4 -0
  80. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/client/requests/index.js +5 -0
  81. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.d.ts +2 -0
  82. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/exports.js +21 -0
  83. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.d.ts +2 -0
  84. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/index.js +18 -0
  85. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.ts +4 -0
  86. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.js +3 -0
  87. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.ts +4 -0
  88. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.js +3 -0
  89. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.d.ts +2 -0
  90. package/dist/cjs/api/resources/business/resources/messaging/resources/messages/types/index.js +18 -0
  91. package/dist/cjs/api/types/BusinessConversation.d.ts +20 -0
  92. package/dist/cjs/api/types/BusinessConversation.js +3 -0
  93. package/dist/cjs/api/types/BusinessMessage.d.ts +20 -0
  94. package/dist/cjs/api/types/BusinessMessage.js +3 -0
  95. package/dist/cjs/api/types/BusinessPhoto.d.ts +9 -0
  96. package/dist/cjs/api/types/BusinessPhoto.js +3 -0
  97. package/dist/cjs/api/types/index.d.ts +3 -0
  98. package/dist/cjs/api/types/index.js +3 -0
  99. package/dist/cjs/version.d.ts +1 -1
  100. package/dist/cjs/version.js +1 -1
  101. package/dist/esm/BaseClient.mjs +2 -2
  102. package/dist/esm/api/resources/business/client/Client.d.mts +6 -0
  103. package/dist/esm/api/resources/business/client/Client.mjs +10 -0
  104. package/dist/esm/api/resources/business/resources/gallery/client/Client.d.mts +86 -0
  105. package/dist/esm/api/resources/business/resources/gallery/client/Client.mjs +327 -0
  106. package/dist/esm/api/resources/business/resources/gallery/client/index.d.mts +1 -0
  107. package/dist/esm/api/resources/business/resources/gallery/client/index.mjs +1 -0
  108. package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.d.mts +10 -0
  109. package/dist/esm/api/resources/business/resources/gallery/client/requests/DeleteGalleryRequest.mjs +2 -0
  110. package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.d.mts +21 -0
  111. package/dist/esm/api/resources/business/resources/gallery/client/requests/ReorderGalleryRequest.mjs +2 -0
  112. package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.d.mts +11 -0
  113. package/dist/esm/api/resources/business/resources/gallery/client/requests/StoreGalleryPhotoRequest.mjs +2 -0
  114. package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.d.mts +11 -0
  115. package/dist/esm/api/resources/business/resources/gallery/client/requests/UpdateGalleryPhotoRequest.mjs +2 -0
  116. package/dist/esm/api/resources/business/resources/gallery/client/requests/index.d.mts +4 -0
  117. package/dist/esm/api/resources/business/resources/gallery/client/requests/index.mjs +1 -0
  118. package/dist/esm/api/resources/business/resources/gallery/exports.d.mts +2 -0
  119. package/dist/esm/api/resources/business/resources/gallery/exports.mjs +3 -0
  120. package/dist/esm/api/resources/business/resources/gallery/index.d.mts +2 -0
  121. package/dist/esm/api/resources/business/resources/gallery/index.mjs +2 -0
  122. package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.d.mts +9 -0
  123. package/dist/esm/api/resources/business/resources/gallery/types/DeleteGalleryResponse.mjs +7 -0
  124. package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.d.mts +4 -0
  125. package/dist/esm/api/resources/business/resources/gallery/types/ListGalleryResponse.mjs +2 -0
  126. package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.d.mts +9 -0
  127. package/dist/esm/api/resources/business/resources/gallery/types/ReorderGalleryResponse.mjs +7 -0
  128. package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.d.mts +4 -0
  129. package/dist/esm/api/resources/business/resources/gallery/types/UpdateGalleryResponse.mjs +2 -0
  130. package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.d.mts +4 -0
  131. package/dist/esm/api/resources/business/resources/gallery/types/UploadGalleryResponse.mjs +2 -0
  132. package/dist/esm/api/resources/business/resources/gallery/types/index.d.mts +5 -0
  133. package/dist/esm/api/resources/business/resources/gallery/types/index.mjs +5 -0
  134. package/dist/esm/api/resources/business/resources/index.d.mts +4 -0
  135. package/dist/esm/api/resources/business/resources/index.mjs +4 -0
  136. package/dist/esm/api/resources/business/resources/messaging/client/Client.d.mts +15 -0
  137. package/dist/esm/api/resources/business/resources/messaging/client/Client.mjs +17 -0
  138. package/dist/esm/api/resources/business/resources/messaging/client/index.d.mts +1 -0
  139. package/dist/esm/api/resources/business/resources/messaging/client/index.mjs +1 -0
  140. package/dist/esm/api/resources/business/resources/messaging/exports.d.mts +3 -0
  141. package/dist/esm/api/resources/business/resources/messaging/exports.mjs +4 -0
  142. package/dist/esm/api/resources/business/resources/messaging/index.d.mts +2 -0
  143. package/dist/esm/api/resources/business/resources/messaging/index.mjs +2 -0
  144. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.d.mts +45 -0
  145. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.mjs +145 -0
  146. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.d.mts +1 -0
  147. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/index.mjs +1 -0
  148. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.d.mts +10 -0
  149. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/GetConversationsRequest.mjs +2 -0
  150. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.d.mts +10 -0
  151. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/ListConversationsRequest.mjs +2 -0
  152. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.mts +2 -0
  153. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.mjs +1 -0
  154. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.d.mts +2 -0
  155. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/exports.mjs +3 -0
  156. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.d.mts +2 -0
  157. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/index.mjs +2 -0
  158. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.d.mts +4 -0
  159. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/GetConversationsResponse.mjs +2 -0
  160. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.d.mts +4 -0
  161. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/ListConversationsResponse.mjs +2 -0
  162. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.d.mts +2 -0
  163. package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.mjs +2 -0
  164. package/dist/esm/api/resources/business/resources/messaging/resources/index.d.mts +6 -0
  165. package/dist/esm/api/resources/business/resources/messaging/resources/index.mjs +6 -0
  166. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.d.mts +81 -0
  167. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/Client.mjs +275 -0
  168. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.d.mts +1 -0
  169. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/index.mjs +1 -0
  170. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.d.mts +14 -0
  171. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/ListMessagesRequest.mjs +2 -0
  172. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.d.mts +10 -0
  173. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/MarkAsReadMessagesRequest.mjs +2 -0
  174. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.d.mts +22 -0
  175. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/StoreMessageRequest.mjs +9 -0
  176. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.d.mts +10 -0
  177. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/UnreadCountMessagesRequest.mjs +2 -0
  178. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.d.mts +4 -0
  179. package/dist/esm/api/resources/business/resources/messaging/resources/messages/client/requests/index.mjs +1 -0
  180. package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.d.mts +2 -0
  181. package/dist/esm/api/resources/business/resources/messaging/resources/messages/exports.mjs +3 -0
  182. package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.d.mts +2 -0
  183. package/dist/esm/api/resources/business/resources/messaging/resources/messages/index.mjs +2 -0
  184. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.d.mts +4 -0
  185. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/ListMessagesResponse.mjs +2 -0
  186. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.d.mts +4 -0
  187. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/SendMessagesResponse.mjs +2 -0
  188. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.d.mts +2 -0
  189. package/dist/esm/api/resources/business/resources/messaging/resources/messages/types/index.mjs +2 -0
  190. package/dist/esm/api/types/BusinessConversation.d.mts +20 -0
  191. package/dist/esm/api/types/BusinessConversation.mjs +2 -0
  192. package/dist/esm/api/types/BusinessMessage.d.mts +20 -0
  193. package/dist/esm/api/types/BusinessMessage.mjs +2 -0
  194. package/dist/esm/api/types/BusinessPhoto.d.mts +9 -0
  195. package/dist/esm/api/types/BusinessPhoto.mjs +2 -0
  196. package/dist/esm/api/types/index.d.mts +3 -0
  197. package/dist/esm/api/types/index.mjs +3 -0
  198. package/dist/esm/version.d.mts +1 -1
  199. package/dist/esm/version.mjs +1 -1
  200. package/package.json +45 -1
  201. package/reference.md +643 -0
@@ -0,0 +1,2 @@
1
+ export { GalleryClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GalleryClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "GalleryClient", { enumerable: true, get: function () { return Client_js_1.GalleryClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -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,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DeleteGalleryResponse = void 0;
5
+ var DeleteGalleryResponse;
6
+ (function (DeleteGalleryResponse) {
7
+ DeleteGalleryResponse.Message = {
8
+ PhotoDeletedSuccessfully: "Photo deleted successfully.",
9
+ };
10
+ })(DeleteGalleryResponse || (exports.DeleteGalleryResponse = DeleteGalleryResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface ListGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ReorderGalleryResponse = void 0;
5
+ var ReorderGalleryResponse;
6
+ (function (ReorderGalleryResponse) {
7
+ ReorderGalleryResponse.Message = {
8
+ PhotoOrderUpdatedSuccessfully: "Photo order updated successfully.",
9
+ };
10
+ })(ReorderGalleryResponse || (exports.ReorderGalleryResponse = ReorderGalleryResponse = {}));
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface UpdateGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.js";
2
+ export interface UploadGalleryResponse {
3
+ data: FiveOneEat.BusinessPhoto;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from "./DeleteGalleryResponse.js";
2
+ export * from "./ListGalleryResponse.js";
3
+ export * from "./ReorderGalleryResponse.js";
4
+ export * from "./UpdateGalleryResponse.js";
5
+ export * from "./UploadGalleryResponse.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./DeleteGalleryResponse.js"), exports);
18
+ __exportStar(require("./ListGalleryResponse.js"), exports);
19
+ __exportStar(require("./ReorderGalleryResponse.js"), exports);
20
+ __exportStar(require("./UpdateGalleryResponse.js"), exports);
21
+ __exportStar(require("./UploadGalleryResponse.js"), exports);
@@ -4,9 +4,13 @@ export * from "./auth/types/index.js";
4
4
  export * from "./bulletins/client/requests/index.js";
5
5
  export * as bulletins from "./bulletins/index.js";
6
6
  export * from "./bulletins/types/index.js";
7
+ export * from "./gallery/client/requests/index.js";
8
+ export * as gallery from "./gallery/index.js";
9
+ export * from "./gallery/types/index.js";
7
10
  export * from "./menus/client/requests/index.js";
8
11
  export * as menus from "./menus/index.js";
9
12
  export * from "./menus/types/index.js";
13
+ export * as messaging from "./messaging/index.js";
10
14
  export * from "./profile/client/requests/index.js";
11
15
  export * as profile from "./profile/index.js";
12
16
  export * from "./profile/types/index.js";
@@ -36,16 +36,20 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.profile = exports.menus = exports.bulletins = exports.auth = void 0;
39
+ exports.profile = exports.messaging = exports.menus = exports.gallery = exports.bulletins = exports.auth = void 0;
40
40
  __exportStar(require("./auth/client/requests/index.js"), exports);
41
41
  exports.auth = __importStar(require("./auth/index.js"));
42
42
  __exportStar(require("./auth/types/index.js"), exports);
43
43
  __exportStar(require("./bulletins/client/requests/index.js"), exports);
44
44
  exports.bulletins = __importStar(require("./bulletins/index.js"));
45
45
  __exportStar(require("./bulletins/types/index.js"), exports);
46
+ __exportStar(require("./gallery/client/requests/index.js"), exports);
47
+ exports.gallery = __importStar(require("./gallery/index.js"));
48
+ __exportStar(require("./gallery/types/index.js"), exports);
46
49
  __exportStar(require("./menus/client/requests/index.js"), exports);
47
50
  exports.menus = __importStar(require("./menus/index.js"));
48
51
  __exportStar(require("./menus/types/index.js"), exports);
52
+ exports.messaging = __importStar(require("./messaging/index.js"));
49
53
  __exportStar(require("./profile/client/requests/index.js"), exports);
50
54
  exports.profile = __importStar(require("./profile/index.js"));
51
55
  __exportStar(require("./profile/types/index.js"), exports);
@@ -0,0 +1,15 @@
1
+ import type { BaseClientOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import { ConversationsClient } from "../resources/conversations/client/Client.js";
4
+ import { MessagesClient } from "../resources/messages/client/Client.js";
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,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessagingClient = void 0;
5
+ const BaseClient_js_1 = require("../../../../../../BaseClient.js");
6
+ const Client_js_1 = require("../resources/conversations/client/Client.js");
7
+ const Client_js_2 = require("../resources/messages/client/Client.js");
8
+ class MessagingClient {
9
+ constructor(options = {}) {
10
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
11
+ }
12
+ get conversations() {
13
+ var _a;
14
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_1.ConversationsClient(this._options)));
15
+ }
16
+ get messages() {
17
+ var _a;
18
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_2.MessagesClient(this._options)));
19
+ }
20
+ }
21
+ exports.MessagingClient = MessagingClient;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { MessagingClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
3
+ export * from "./resources/index.js";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MessagingClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "MessagingClient", { enumerable: true, get: function () { return Client_js_1.MessagingClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
22
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,45 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../../../core/index.js";
4
+ import * as FiveOneEat from "../../../../../../../index.js";
5
+ export declare namespace ConversationsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ConversationsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ConversationsClient.Options>;
12
+ constructor(options?: ConversationsClient.Options);
13
+ /**
14
+ * Retrieve a paginated list of all conversations for the authenticated business,
15
+ * ordered by the most recent message first.
16
+ *
17
+ * @param {FiveOneEat.business.messaging.ListConversationsRequest} request
18
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link FiveOneEat.UnauthorizedError}
21
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
22
+ *
23
+ * @example
24
+ * await client.business.messaging.conversations.list()
25
+ */
26
+ list(request?: FiveOneEat.business.messaging.ListConversationsRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.messaging.ListConversationsResponse>;
27
+ private __list;
28
+ /**
29
+ * Retrieve details of a specific conversation including the customer information
30
+ * and the latest message.
31
+ *
32
+ * @param {FiveOneEat.business.messaging.GetConversationsRequest} request
33
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link FiveOneEat.UnauthorizedError}
36
+ * @throws {@link FiveOneEat.ForbiddenError}
37
+ *
38
+ * @example
39
+ * await client.business.messaging.conversations.get({
40
+ * conversation: "550e8400-e29b-41d4-a716-446655440000"
41
+ * })
42
+ */
43
+ get(request: FiveOneEat.business.messaging.GetConversationsRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.messaging.GetConversationsResponse>;
44
+ private __get;
45
+ }
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ConversationsClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../../../errors/index.js"));
53
+ const FiveOneEat = __importStar(require("../../../../../../../index.js"));
54
+ class ConversationsClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * Retrieve a paginated list of all conversations for the authenticated business,
60
+ * ordered by the most recent message first.
61
+ *
62
+ * @param {FiveOneEat.business.messaging.ListConversationsRequest} request
63
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link FiveOneEat.UnauthorizedError}
66
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
67
+ *
68
+ * @example
69
+ * await client.business.messaging.conversations.list()
70
+ */
71
+ list(request = {}, requestOptions) {
72
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
73
+ }
74
+ __list() {
75
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
77
+ const { page, per_page: perPage } = request;
78
+ const _queryParams = {
79
+ page,
80
+ per_page: perPage,
81
+ };
82
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
83
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
+ const _response = yield core.fetcher({
85
+ 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/messaging/conversations"),
86
+ method: "GET",
87
+ headers: _headers,
88
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
89
+ queryString: core.url
90
+ .queryBuilder()
91
+ .addMany(_queryParams)
92
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
93
+ .build(),
94
+ 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,
95
+ 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,
96
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
98
+ logging: this._options.logging,
99
+ });
100
+ if (_response.ok) {
101
+ return {
102
+ data: _response.body,
103
+ rawResponse: _response.rawResponse,
104
+ };
105
+ }
106
+ if (_response.error.reason === "status-code") {
107
+ switch (_response.error.statusCode) {
108
+ case 401:
109
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
110
+ case 422:
111
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
112
+ default:
113
+ throw new errors.FiveOneEatError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.body,
116
+ rawResponse: _response.rawResponse,
117
+ });
118
+ }
119
+ }
120
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/messaging/conversations");
121
+ });
122
+ }
123
+ /**
124
+ * Retrieve details of a specific conversation including the customer information
125
+ * and the latest message.
126
+ *
127
+ * @param {FiveOneEat.business.messaging.GetConversationsRequest} request
128
+ * @param {ConversationsClient.RequestOptions} requestOptions - Request-specific configuration.
129
+ *
130
+ * @throws {@link FiveOneEat.UnauthorizedError}
131
+ * @throws {@link FiveOneEat.ForbiddenError}
132
+ *
133
+ * @example
134
+ * await client.business.messaging.conversations.get({
135
+ * conversation: "550e8400-e29b-41d4-a716-446655440000"
136
+ * })
137
+ */
138
+ get(request, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
140
+ }
141
+ __get(request, requestOptions) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
144
+ const { conversation } = request;
145
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
146
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
+ const _response = yield core.fetcher({
148
+ 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/messaging/conversations/${core.url.encodePathParam(conversation)}`),
149
+ method: "GET",
150
+ headers: _headers,
151
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
152
+ 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,
153
+ 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,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
156
+ logging: this._options.logging,
157
+ });
158
+ if (_response.ok) {
159
+ return {
160
+ data: _response.body,
161
+ rawResponse: _response.rawResponse,
162
+ };
163
+ }
164
+ if (_response.error.reason === "status-code") {
165
+ switch (_response.error.statusCode) {
166
+ case 401:
167
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
168
+ case 403:
169
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
170
+ default:
171
+ throw new errors.FiveOneEatError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ rawResponse: _response.rawResponse,
175
+ });
176
+ }
177
+ }
178
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/messaging/conversations/{conversation}");
179
+ });
180
+ }
181
+ }
182
+ exports.ConversationsClient = ConversationsClient;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * conversation: "550e8400-e29b-41d4-a716-446655440000"
5
+ * }
6
+ */
7
+ export interface GetConversationsRequest {
8
+ /** The conversation ID */
9
+ conversation: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListConversationsRequest {
6
+ /** Page number for pagination */
7
+ page?: number;
8
+ /** Number of conversations per page */
9
+ per_page?: number;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export type { GetConversationsRequest } from "./GetConversationsRequest.js";
2
+ export type { ListConversationsRequest } from "./ListConversationsRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ConversationsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ConversationsClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ConversationsClient", { enumerable: true, get: function () { return Client_js_1.ConversationsClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";