@51eat/sdk 0.0.58 → 0.0.60

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 (200) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/errors/ConflictError.d.ts +1 -2
  3. package/dist/cjs/api/errors/InternalServerError.d.ts +1 -2
  4. package/dist/cjs/api/resources/business/client/Client.d.ts +3 -0
  5. package/dist/cjs/api/resources/business/client/Client.js +31 -26
  6. package/dist/cjs/api/resources/business/resources/claims/client/Client.d.ts +63 -0
  7. package/dist/cjs/api/resources/business/resources/claims/client/Client.js +281 -0
  8. package/dist/cjs/api/resources/business/resources/claims/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/business/resources/claims/client/index.js +17 -0
  10. package/dist/cjs/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.d.ts +9 -0
  11. package/dist/cjs/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.js +3 -0
  12. package/dist/cjs/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.d.ts +14 -0
  13. package/dist/cjs/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.js +3 -0
  14. package/dist/cjs/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.d.ts +11 -0
  15. package/dist/cjs/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.js +3 -0
  16. package/dist/cjs/api/resources/business/resources/claims/client/requests/index.d.ts +3 -0
  17. package/dist/cjs/api/resources/business/resources/claims/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/business/resources/claims/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/claims/exports.js +21 -0
  20. package/dist/cjs/api/resources/business/resources/claims/index.d.ts +2 -0
  21. package/dist/cjs/api/resources/business/resources/claims/index.js +18 -0
  22. package/dist/cjs/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.d.ts +4 -0
  23. package/dist/cjs/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.js +3 -0
  24. package/dist/cjs/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.d.ts +39 -0
  25. package/dist/cjs/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.js +3 -0
  26. package/dist/cjs/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.d.ts +39 -0
  27. package/dist/cjs/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.js +3 -0
  28. package/dist/cjs/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.d.ts +4 -0
  29. package/dist/cjs/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.js +3 -0
  30. package/dist/cjs/api/resources/business/resources/claims/types/index.d.ts +4 -0
  31. package/dist/cjs/api/resources/business/resources/claims/types/index.js +20 -0
  32. package/dist/cjs/api/resources/business/resources/index.d.ts +3 -0
  33. package/dist/cjs/api/resources/business/resources/index.js +4 -1
  34. package/dist/cjs/api/resources/customer/client/Client.d.ts +5 -2
  35. package/dist/cjs/api/resources/customer/client/Client.js +27 -22
  36. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/Client.d.ts +62 -0
  37. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/Client.js +234 -0
  38. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/index.js +17 -0
  40. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.d.ts +10 -0
  41. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.js +3 -0
  42. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.ts +37 -0
  43. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.js +3 -0
  44. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.d.ts +2 -0
  45. package/dist/cjs/api/resources/customer/resources/businessSubmissions/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/customer/resources/businessSubmissions/exports.d.ts +3 -0
  47. package/dist/cjs/api/resources/customer/resources/businessSubmissions/exports.js +22 -0
  48. package/dist/cjs/api/resources/customer/resources/businessSubmissions/index.d.ts +3 -0
  49. package/dist/cjs/api/resources/customer/resources/businessSubmissions/index.js +19 -0
  50. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/index.d.ts +3 -0
  51. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/index.js +42 -0
  52. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.d.ts +48 -0
  53. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.js +189 -0
  54. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.js +17 -0
  56. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.d.ts +13 -0
  57. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.js +3 -0
  58. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.ts +14 -0
  59. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.js +3 -0
  60. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.d.ts +2 -0
  61. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.js +2 -0
  62. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/exports.d.ts +2 -0
  63. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/exports.js +21 -0
  64. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/index.d.ts +2 -0
  65. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/index.js +18 -0
  66. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.ts +4 -0
  67. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.js +3 -0
  68. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.d.ts +1 -0
  69. package/dist/cjs/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.js +17 -0
  70. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.ts +4 -0
  71. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.js +3 -0
  72. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.ts +4 -0
  73. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.js +3 -0
  74. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.ts +39 -0
  75. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.js +3 -0
  76. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/index.d.ts +3 -0
  77. package/dist/cjs/api/resources/customer/resources/businessSubmissions/types/index.js +19 -0
  78. package/dist/cjs/api/resources/customer/resources/index.d.ts +3 -0
  79. package/dist/cjs/api/resources/customer/resources/index.js +4 -1
  80. package/dist/cjs/api/types/BardIngredientSetValues.d.ts +15 -0
  81. package/dist/cjs/api/types/BardIngredientSetValues.js +3 -0
  82. package/dist/cjs/api/types/BardMenuItemSetValues.d.ts +2 -0
  83. package/dist/cjs/api/types/BardPhotoSpreadSetValues.d.ts +18 -0
  84. package/dist/cjs/api/types/BardPhotoSpreadSetValues.js +11 -0
  85. package/dist/cjs/api/types/BardPullQuoteSetValues.d.ts +4 -0
  86. package/dist/cjs/api/types/BardPullQuoteSetValues.js +3 -0
  87. package/dist/cjs/api/types/BardSetValues.d.ts +13 -1
  88. package/dist/cjs/api/types/BardTastingNotesSetValues.d.ts +15 -0
  89. package/dist/cjs/api/types/BardTastingNotesSetValues.js +3 -0
  90. package/dist/cjs/api/types/BusinessClaimRequest.d.ts +9 -0
  91. package/dist/cjs/api/types/BusinessClaimRequest.js +3 -0
  92. package/dist/cjs/api/types/ClaimableBusiness.d.ts +11 -0
  93. package/dist/cjs/api/types/ClaimableBusiness.js +3 -0
  94. package/dist/cjs/api/types/CustomerBusinessSubmission.d.ts +19 -0
  95. package/dist/cjs/api/types/CustomerBusinessSubmission.js +3 -0
  96. package/dist/cjs/api/types/index.d.ts +7 -0
  97. package/dist/cjs/api/types/index.js +7 -0
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/BaseClient.mjs +2 -2
  101. package/dist/esm/api/errors/ConflictError.d.mts +1 -2
  102. package/dist/esm/api/errors/InternalServerError.d.mts +1 -2
  103. package/dist/esm/api/resources/business/client/Client.d.mts +3 -0
  104. package/dist/esm/api/resources/business/client/Client.mjs +5 -0
  105. package/dist/esm/api/resources/business/resources/claims/client/Client.d.mts +63 -0
  106. package/dist/esm/api/resources/business/resources/claims/client/Client.mjs +244 -0
  107. package/dist/esm/api/resources/business/resources/claims/client/index.d.mts +1 -0
  108. package/dist/esm/api/resources/business/resources/claims/client/index.mjs +1 -0
  109. package/dist/esm/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.d.mts +9 -0
  110. package/dist/esm/api/resources/business/resources/claims/client/requests/ClaimViaTokenClaimsRequest.mjs +2 -0
  111. package/dist/esm/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.d.mts +14 -0
  112. package/dist/esm/api/resources/business/resources/claims/client/requests/ListClaimableBusinessesClaimsRequest.mjs +2 -0
  113. package/dist/esm/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.d.mts +11 -0
  114. package/dist/esm/api/resources/business/resources/claims/client/requests/StoreClaimRequestRequest.mjs +2 -0
  115. package/dist/esm/api/resources/business/resources/claims/client/requests/index.d.mts +3 -0
  116. package/dist/esm/api/resources/business/resources/claims/client/requests/index.mjs +1 -0
  117. package/dist/esm/api/resources/business/resources/claims/exports.d.mts +2 -0
  118. package/dist/esm/api/resources/business/resources/claims/exports.mjs +3 -0
  119. package/dist/esm/api/resources/business/resources/claims/index.d.mts +2 -0
  120. package/dist/esm/api/resources/business/resources/claims/index.mjs +2 -0
  121. package/dist/esm/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.d.mts +4 -0
  122. package/dist/esm/api/resources/business/resources/claims/types/ClaimViaTokenClaimsResponse.mjs +2 -0
  123. package/dist/esm/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.d.mts +39 -0
  124. package/dist/esm/api/resources/business/resources/claims/types/ListClaimRequestsClaimsResponse.mjs +2 -0
  125. package/dist/esm/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.d.mts +39 -0
  126. package/dist/esm/api/resources/business/resources/claims/types/ListClaimableBusinessesClaimsResponse.mjs +2 -0
  127. package/dist/esm/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.d.mts +4 -0
  128. package/dist/esm/api/resources/business/resources/claims/types/RequestClaimClaimsResponse.mjs +2 -0
  129. package/dist/esm/api/resources/business/resources/claims/types/index.d.mts +4 -0
  130. package/dist/esm/api/resources/business/resources/claims/types/index.mjs +4 -0
  131. package/dist/esm/api/resources/business/resources/index.d.mts +3 -0
  132. package/dist/esm/api/resources/business/resources/index.mjs +3 -0
  133. package/dist/esm/api/resources/customer/client/Client.d.mts +5 -2
  134. package/dist/esm/api/resources/customer/client/Client.mjs +9 -4
  135. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/Client.d.mts +62 -0
  136. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/Client.mjs +197 -0
  137. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/index.d.mts +1 -0
  138. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/index.mjs +1 -0
  139. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.d.mts +10 -0
  140. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/GetBusinessSubmissionsRequest.mjs +2 -0
  141. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.d.mts +37 -0
  142. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/StoreBusinessSubmissionRequest.mjs +2 -0
  143. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.d.mts +2 -0
  144. package/dist/esm/api/resources/customer/resources/businessSubmissions/client/requests/index.mjs +1 -0
  145. package/dist/esm/api/resources/customer/resources/businessSubmissions/exports.d.mts +3 -0
  146. package/dist/esm/api/resources/customer/resources/businessSubmissions/exports.mjs +4 -0
  147. package/dist/esm/api/resources/customer/resources/businessSubmissions/index.d.mts +3 -0
  148. package/dist/esm/api/resources/customer/resources/businessSubmissions/index.mjs +3 -0
  149. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/index.d.mts +3 -0
  150. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/index.mjs +3 -0
  151. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.d.mts +48 -0
  152. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/Client.mjs +152 -0
  153. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.d.mts +1 -0
  154. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/index.mjs +1 -0
  155. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.d.mts +13 -0
  156. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/DeletePhotosRequest.mjs +2 -0
  157. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.d.mts +14 -0
  158. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/UploadSubmissionPhotoRequest.mjs +2 -0
  159. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.d.mts +2 -0
  160. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/client/requests/index.mjs +1 -0
  161. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/exports.d.mts +2 -0
  162. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/exports.mjs +3 -0
  163. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/index.d.mts +2 -0
  164. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/index.mjs +2 -0
  165. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.d.mts +4 -0
  166. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/UploadPhotosResponse.mjs +2 -0
  167. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.d.mts +1 -0
  168. package/dist/esm/api/resources/customer/resources/businessSubmissions/resources/photos/types/index.mjs +1 -0
  169. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.d.mts +4 -0
  170. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/CreateBusinessSubmissionsResponse.mjs +2 -0
  171. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.d.mts +4 -0
  172. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/GetBusinessSubmissionsResponse.mjs +2 -0
  173. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.d.mts +39 -0
  174. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/ListBusinessSubmissionsResponse.mjs +2 -0
  175. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/index.d.mts +3 -0
  176. package/dist/esm/api/resources/customer/resources/businessSubmissions/types/index.mjs +3 -0
  177. package/dist/esm/api/resources/customer/resources/index.d.mts +3 -0
  178. package/dist/esm/api/resources/customer/resources/index.mjs +3 -0
  179. package/dist/esm/api/types/BardIngredientSetValues.d.mts +15 -0
  180. package/dist/esm/api/types/BardIngredientSetValues.mjs +2 -0
  181. package/dist/esm/api/types/BardMenuItemSetValues.d.mts +2 -0
  182. package/dist/esm/api/types/BardPhotoSpreadSetValues.d.mts +18 -0
  183. package/dist/esm/api/types/BardPhotoSpreadSetValues.mjs +8 -0
  184. package/dist/esm/api/types/BardPullQuoteSetValues.d.mts +4 -0
  185. package/dist/esm/api/types/BardPullQuoteSetValues.mjs +2 -0
  186. package/dist/esm/api/types/BardSetValues.d.mts +13 -1
  187. package/dist/esm/api/types/BardTastingNotesSetValues.d.mts +15 -0
  188. package/dist/esm/api/types/BardTastingNotesSetValues.mjs +2 -0
  189. package/dist/esm/api/types/BusinessClaimRequest.d.mts +9 -0
  190. package/dist/esm/api/types/BusinessClaimRequest.mjs +2 -0
  191. package/dist/esm/api/types/ClaimableBusiness.d.mts +11 -0
  192. package/dist/esm/api/types/ClaimableBusiness.mjs +2 -0
  193. package/dist/esm/api/types/CustomerBusinessSubmission.d.mts +19 -0
  194. package/dist/esm/api/types/CustomerBusinessSubmission.mjs +2 -0
  195. package/dist/esm/api/types/index.d.mts +7 -0
  196. package/dist/esm/api/types/index.mjs +7 -0
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +45 -12
  200. package/reference.md +550 -100
@@ -0,0 +1,19 @@
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("./CreateBusinessSubmissionsResponse.js"), exports);
18
+ __exportStar(require("./GetBusinessSubmissionsResponse.js"), exports);
19
+ __exportStar(require("./ListBusinessSubmissionsResponse.js"), exports);
@@ -4,6 +4,9 @@ export * from "./auth/types/index.js";
4
4
  export * from "./businesses/client/requests/index.js";
5
5
  export * as businesses from "./businesses/index.js";
6
6
  export * from "./businesses/types/index.js";
7
+ export * from "./businessSubmissions/client/requests/index.js";
8
+ export * as businessSubmissions from "./businessSubmissions/index.js";
9
+ export * from "./businessSubmissions/types/index.js";
7
10
  export * from "./cart/client/requests/index.js";
8
11
  export * as cart from "./cart/index.js";
9
12
  export * from "./cart/types/index.js";
@@ -36,13 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.shop = exports.pushNotifications = exports.productOrders = exports.messaging = exports.me = exports.explore = exports.events = exports.editorials = exports.discovery = exports.cart = exports.businesses = exports.auth = void 0;
39
+ exports.shop = exports.pushNotifications = exports.productOrders = exports.messaging = exports.me = exports.explore = exports.events = exports.editorials = exports.discovery = exports.cart = exports.businessSubmissions = exports.businesses = 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("./businesses/client/requests/index.js"), exports);
44
44
  exports.businesses = __importStar(require("./businesses/index.js"));
45
45
  __exportStar(require("./businesses/types/index.js"), exports);
46
+ __exportStar(require("./businessSubmissions/client/requests/index.js"), exports);
47
+ exports.businessSubmissions = __importStar(require("./businessSubmissions/index.js"));
48
+ __exportStar(require("./businessSubmissions/types/index.js"), exports);
46
49
  __exportStar(require("./cart/client/requests/index.js"), exports);
47
50
  exports.cart = __importStar(require("./cart/index.js"));
48
51
  __exportStar(require("./cart/types/index.js"), exports);
@@ -0,0 +1,15 @@
1
+ export interface BardIngredientSetValues {
2
+ icon?: (string | null) | undefined;
3
+ name: string;
4
+ subtitle?: (string | null) | undefined;
5
+ facts: BardIngredientSetValues.Facts.Item[];
6
+ }
7
+ export declare namespace BardIngredientSetValues {
8
+ type Facts = Facts.Item[];
9
+ namespace Facts {
10
+ interface Item {
11
+ key?: string | undefined;
12
+ value?: string | undefined;
13
+ }
14
+ }
15
+ }
@@ -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 });
@@ -9,5 +9,7 @@ export declare namespace BardMenuItemSetValues {
9
9
  description?: (string | null) | undefined;
10
10
  price?: (string | null) | undefined;
11
11
  image?: (string | null) | undefined;
12
+ /** Dietary/attribute tag names. */
13
+ tags: string[];
12
14
  }
13
15
  }
@@ -0,0 +1,18 @@
1
+ export interface BardPhotoSpreadSetValues {
2
+ layout: BardPhotoSpreadSetValues.Layout;
3
+ photos: BardPhotoSpreadSetValues.Photos.Item[];
4
+ }
5
+ export declare namespace BardPhotoSpreadSetValues {
6
+ const Layout: {
7
+ readonly Two: "two";
8
+ readonly Three: "three";
9
+ };
10
+ type Layout = (typeof Layout)[keyof typeof Layout];
11
+ type Photos = Photos.Item[];
12
+ namespace Photos {
13
+ interface Item {
14
+ image?: (string | null) | undefined;
15
+ caption?: (string | null) | undefined;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BardPhotoSpreadSetValues = void 0;
5
+ var BardPhotoSpreadSetValues;
6
+ (function (BardPhotoSpreadSetValues) {
7
+ BardPhotoSpreadSetValues.Layout = {
8
+ Two: "two",
9
+ Three: "three",
10
+ };
11
+ })(BardPhotoSpreadSetValues || (exports.BardPhotoSpreadSetValues = BardPhotoSpreadSetValues = {}));
@@ -0,0 +1,4 @@
1
+ export interface BardPullQuoteSetValues {
2
+ quote: string;
3
+ citation?: (string | null) | undefined;
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 });
@@ -1,5 +1,5 @@
1
1
  import type * as FiveOneEat from "../index.js";
2
- export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event;
2
+ export type BardSetValues = FiveOneEat.BardSetValues.MenuItem | FiveOneEat.BardSetValues.Product | FiveOneEat.BardSetValues.Event | FiveOneEat.BardSetValues.PullQuote | FiveOneEat.BardSetValues.PhotoSpread | FiveOneEat.BardSetValues.Ingredient | FiveOneEat.BardSetValues.TastingNotes;
3
3
  export declare namespace BardSetValues {
4
4
  interface MenuItem extends FiveOneEat.BardMenuItemSetValues {
5
5
  type: "menu_item";
@@ -10,4 +10,16 @@ export declare namespace BardSetValues {
10
10
  interface Event extends FiveOneEat.BardEventSetValues {
11
11
  type: "event";
12
12
  }
13
+ interface PullQuote extends FiveOneEat.BardPullQuoteSetValues {
14
+ type: "pull_quote";
15
+ }
16
+ interface PhotoSpread extends FiveOneEat.BardPhotoSpreadSetValues {
17
+ type: "photo_spread";
18
+ }
19
+ interface Ingredient extends FiveOneEat.BardIngredientSetValues {
20
+ type: "ingredient";
21
+ }
22
+ interface TastingNotes extends FiveOneEat.BardTastingNotesSetValues {
23
+ type: "tasting_notes";
24
+ }
13
25
  }
@@ -0,0 +1,15 @@
1
+ export interface BardTastingNotesSetValues {
2
+ subject: string;
3
+ by?: (string | null) | undefined;
4
+ date?: (string | null) | undefined;
5
+ notes: BardTastingNotesSetValues.Notes.Item[];
6
+ }
7
+ export declare namespace BardTastingNotesSetValues {
8
+ type Notes = Notes.Item[];
9
+ namespace Notes {
10
+ interface Item {
11
+ label?: string | undefined;
12
+ score?: number | undefined;
13
+ }
14
+ }
15
+ }
@@ -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 BusinessClaimRequest {
2
+ id: string;
3
+ business_id: string;
4
+ message: string;
5
+ status: string;
6
+ rejected_reason: string;
7
+ created_at: string;
8
+ reviewed_at: string;
9
+ }
@@ -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,11 @@
1
+ export interface ClaimableBusiness {
2
+ id: string;
3
+ name: string;
4
+ address: string;
5
+ city: string;
6
+ state: string;
7
+ zipcode: string;
8
+ latitude: string;
9
+ longitude: string;
10
+ logo: string;
11
+ }
@@ -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,19 @@
1
+ export interface CustomerBusinessSubmission {
2
+ id: string;
3
+ name: string;
4
+ address: string;
5
+ city: string;
6
+ state: string;
7
+ zipcode: string;
8
+ country: string;
9
+ latitude: string;
10
+ longitude: string;
11
+ phone: string;
12
+ website: string;
13
+ description: string;
14
+ status: string;
15
+ source: string;
16
+ rejected_reason: string;
17
+ submitted_at: string;
18
+ photos?: string | undefined;
19
+ }
@@ -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 });
@@ -11,6 +11,7 @@ export * from "./BardHeadingNode.js";
11
11
  export * from "./BardHeadingNodeContentItem.js";
12
12
  export * from "./BardHorizontalRuleNode.js";
13
13
  export * from "./BardImageNode.js";
14
+ export * from "./BardIngredientSetValues.js";
14
15
  export * from "./BardListItemNode.js";
15
16
  export * from "./BardMark.js";
16
17
  export * from "./BardMenuItemSetValues.js";
@@ -18,9 +19,12 @@ export * from "./BardNode.js";
18
19
  export * from "./BardOrderedListNode.js";
19
20
  export * from "./BardParagraphNode.js";
20
21
  export * from "./BardParagraphNodeContentItem.js";
22
+ export * from "./BardPhotoSpreadSetValues.js";
21
23
  export * from "./BardProductSetValues.js";
24
+ export * from "./BardPullQuoteSetValues.js";
22
25
  export * from "./BardSetNode.js";
23
26
  export * from "./BardSetValues.js";
27
+ export * from "./BardTastingNotesSetValues.js";
24
28
  export * from "./BardTextNode.js";
25
29
  export * from "./BusinessAllergen.js";
26
30
  export * from "./BusinessBulletin.js";
@@ -29,6 +33,7 @@ export * from "./BusinessBulletinCommentReply.js";
29
33
  export * from "./BusinessBulletinCommentResponse.js";
30
34
  export * from "./BusinessCategory.js";
31
35
  export * from "./BusinessCertification.js";
36
+ export * from "./BusinessClaimRequest.js";
32
37
  export * from "./BusinessConversation.js";
33
38
  export * from "./BusinessCuisine.js";
34
39
  export * from "./BusinessDiscount.js";
@@ -64,6 +69,7 @@ export * from "./BusinessStripeConnection.js";
64
69
  export * from "./BusinessSummary.js";
65
70
  export * from "./BusinessTemporaryLocation.js";
66
71
  export * from "./BusinessToken.js";
72
+ export * from "./ClaimableBusiness.js";
67
73
  export * from "./ConflictErrorBody.js";
68
74
  export * from "./Conversation.js";
69
75
  export * from "./Cuisine.js";
@@ -71,6 +77,7 @@ export * from "./CustomerBulletin.js";
71
77
  export * from "./CustomerBulletinCommentReply.js";
72
78
  export * from "./CustomerBulletinResponse.js";
73
79
  export * from "./CustomerBusinessProfile.js";
80
+ export * from "./CustomerBusinessSubmission.js";
74
81
  export * from "./CustomerCart.js";
75
82
  export * from "./CustomerCartItem.js";
76
83
  export * from "./CustomerComment.js";
@@ -27,6 +27,7 @@ __exportStar(require("./BardHeadingNode.js"), exports);
27
27
  __exportStar(require("./BardHeadingNodeContentItem.js"), exports);
28
28
  __exportStar(require("./BardHorizontalRuleNode.js"), exports);
29
29
  __exportStar(require("./BardImageNode.js"), exports);
30
+ __exportStar(require("./BardIngredientSetValues.js"), exports);
30
31
  __exportStar(require("./BardListItemNode.js"), exports);
31
32
  __exportStar(require("./BardMark.js"), exports);
32
33
  __exportStar(require("./BardMenuItemSetValues.js"), exports);
@@ -34,9 +35,12 @@ __exportStar(require("./BardNode.js"), exports);
34
35
  __exportStar(require("./BardOrderedListNode.js"), exports);
35
36
  __exportStar(require("./BardParagraphNode.js"), exports);
36
37
  __exportStar(require("./BardParagraphNodeContentItem.js"), exports);
38
+ __exportStar(require("./BardPhotoSpreadSetValues.js"), exports);
37
39
  __exportStar(require("./BardProductSetValues.js"), exports);
40
+ __exportStar(require("./BardPullQuoteSetValues.js"), exports);
38
41
  __exportStar(require("./BardSetNode.js"), exports);
39
42
  __exportStar(require("./BardSetValues.js"), exports);
43
+ __exportStar(require("./BardTastingNotesSetValues.js"), exports);
40
44
  __exportStar(require("./BardTextNode.js"), exports);
41
45
  __exportStar(require("./BusinessAllergen.js"), exports);
42
46
  __exportStar(require("./BusinessBulletin.js"), exports);
@@ -45,6 +49,7 @@ __exportStar(require("./BusinessBulletinCommentReply.js"), exports);
45
49
  __exportStar(require("./BusinessBulletinCommentResponse.js"), exports);
46
50
  __exportStar(require("./BusinessCategory.js"), exports);
47
51
  __exportStar(require("./BusinessCertification.js"), exports);
52
+ __exportStar(require("./BusinessClaimRequest.js"), exports);
48
53
  __exportStar(require("./BusinessConversation.js"), exports);
49
54
  __exportStar(require("./BusinessCuisine.js"), exports);
50
55
  __exportStar(require("./BusinessDiscount.js"), exports);
@@ -80,6 +85,7 @@ __exportStar(require("./BusinessStripeConnection.js"), exports);
80
85
  __exportStar(require("./BusinessSummary.js"), exports);
81
86
  __exportStar(require("./BusinessTemporaryLocation.js"), exports);
82
87
  __exportStar(require("./BusinessToken.js"), exports);
88
+ __exportStar(require("./ClaimableBusiness.js"), exports);
83
89
  __exportStar(require("./ConflictErrorBody.js"), exports);
84
90
  __exportStar(require("./Conversation.js"), exports);
85
91
  __exportStar(require("./Cuisine.js"), exports);
@@ -87,6 +93,7 @@ __exportStar(require("./CustomerBulletin.js"), exports);
87
93
  __exportStar(require("./CustomerBulletinCommentReply.js"), exports);
88
94
  __exportStar(require("./CustomerBulletinResponse.js"), exports);
89
95
  __exportStar(require("./CustomerBusinessProfile.js"), exports);
96
+ __exportStar(require("./CustomerBusinessSubmission.js"), exports);
90
97
  __exportStar(require("./CustomerCart.js"), exports);
91
98
  __exportStar(require("./CustomerCartItem.js"), exports);
92
99
  __exportStar(require("./CustomerComment.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.58";
1
+ export declare const SDK_VERSION = "0.0.60";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.58";
4
+ exports.SDK_VERSION = "0.0.60";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "0.0.58",
10
- "User-Agent": "@51eat/sdk/0.0.58",
9
+ "X-Fern-SDK-Version": "0.0.60",
10
+ "User-Agent": "@51eat/sdk/0.0.60",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.mjs";
2
2
  import * as errors from "../../errors/index.mjs";
3
- import type * as FiveOneEat from "../index.mjs";
4
3
  export declare class ConflictError extends errors.FiveOneEatError {
5
- constructor(body: FiveOneEat.ConflictErrorBody, rawResponse?: core.RawResponse);
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.mjs";
2
2
  import * as errors from "../../errors/index.mjs";
3
- import type * as FiveOneEat from "../index.mjs";
4
3
  export declare class InternalServerError extends errors.FiveOneEatError {
5
- constructor(body: FiveOneEat.InternalServerErrorBody, rawResponse?: core.RawResponse);
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
6
5
  }
@@ -6,6 +6,7 @@ import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
6
6
  import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
7
7
  import { CategoriesClient } from "../resources/categories/client/Client.mjs";
8
8
  import { CertificationsClient } from "../resources/certifications/client/Client.mjs";
9
+ import { ClaimsClient } from "../resources/claims/client/Client.mjs";
9
10
  import { CuisinesClient } from "../resources/cuisines/client/Client.mjs";
10
11
  import { DiscountsClient } from "../resources/discounts/client/Client.mjs";
11
12
  import { EventsClient } from "../resources/events/client/Client.mjs";
@@ -27,6 +28,7 @@ export declare class BusinessClient {
27
28
  protected _auth: AuthClient | undefined;
28
29
  protected _bulletins: BulletinsClient | undefined;
29
30
  protected _businesses: BusinessesClient | undefined;
31
+ protected _claims: ClaimsClient | undefined;
30
32
  protected _discounts: DiscountsClient | undefined;
31
33
  protected _events: EventsClient | undefined;
32
34
  protected _gallery: GalleryClient | undefined;
@@ -47,6 +49,7 @@ export declare class BusinessClient {
47
49
  get auth(): AuthClient;
48
50
  get bulletins(): BulletinsClient;
49
51
  get businesses(): BusinessesClient;
52
+ get claims(): ClaimsClient;
50
53
  get discounts(): DiscountsClient;
51
54
  get events(): EventsClient;
52
55
  get gallery(): GalleryClient;
@@ -6,6 +6,7 @@ import { BulletinsClient } from "../resources/bulletins/client/Client.mjs";
6
6
  import { BusinessesClient } from "../resources/businesses/client/Client.mjs";
7
7
  import { CategoriesClient } from "../resources/categories/client/Client.mjs";
8
8
  import { CertificationsClient } from "../resources/certifications/client/Client.mjs";
9
+ import { ClaimsClient } from "../resources/claims/client/Client.mjs";
9
10
  import { CuisinesClient } from "../resources/cuisines/client/Client.mjs";
10
11
  import { DiscountsClient } from "../resources/discounts/client/Client.mjs";
11
12
  import { EventsClient } from "../resources/events/client/Client.mjs";
@@ -35,6 +36,10 @@ export class BusinessClient {
35
36
  var _a;
36
37
  return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new BusinessesClient(this._options)));
37
38
  }
39
+ get claims() {
40
+ var _a;
41
+ return ((_a = this._claims) !== null && _a !== void 0 ? _a : (this._claims = new ClaimsClient(this._options)));
42
+ }
38
43
  get discounts() {
39
44
  var _a;
40
45
  return ((_a = this._discounts) !== null && _a !== void 0 ? _a : (this._discounts = new DiscountsClient(this._options)));
@@ -0,0 +1,63 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as FiveOneEat from "../../../../../index.mjs";
5
+ export declare namespace ClaimsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ClaimsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ClaimsClient.Options>;
12
+ constructor(options?: ClaimsClient.Options);
13
+ /**
14
+ * @param {FiveOneEat.business.ListClaimableBusinessesClaimsRequest} request
15
+ * @param {ClaimsClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link FiveOneEat.UnauthorizedError}
18
+ *
19
+ * @example
20
+ * await client.business.claims.listClaimableBusinesses()
21
+ */
22
+ listClaimableBusinesses(request?: FiveOneEat.business.ListClaimableBusinessesClaimsRequest, requestOptions?: ClaimsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListClaimableBusinessesClaimsResponse>;
23
+ private __listClaimableBusinesses;
24
+ /**
25
+ * @param {ClaimsClient.RequestOptions} requestOptions - Request-specific configuration.
26
+ *
27
+ * @throws {@link FiveOneEat.UnauthorizedError}
28
+ *
29
+ * @example
30
+ * await client.business.claims.listClaimRequests()
31
+ */
32
+ listClaimRequests(requestOptions?: ClaimsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListClaimRequestsClaimsResponse>;
33
+ private __listClaimRequests;
34
+ /**
35
+ * @param {FiveOneEat.business.StoreClaimRequestRequest} request
36
+ * @param {ClaimsClient.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link FiveOneEat.UnauthorizedError}
39
+ * @throws {@link FiveOneEat.ConflictError}
40
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.business.claims.requestClaim({
44
+ * business_id: "business_id",
45
+ * message: "message"
46
+ * })
47
+ */
48
+ requestClaim(request: FiveOneEat.business.StoreClaimRequestRequest, requestOptions?: ClaimsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.RequestClaimClaimsResponse>;
49
+ private __requestClaim;
50
+ /**
51
+ * @param {FiveOneEat.business.ClaimViaTokenClaimsRequest} request
52
+ * @param {ClaimsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link FiveOneEat.UnauthorizedError}
55
+ *
56
+ * @example
57
+ * await client.business.claims.claimViaToken({
58
+ * token: "token"
59
+ * })
60
+ */
61
+ claimViaToken(request: FiveOneEat.business.ClaimViaTokenClaimsRequest, requestOptions?: ClaimsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ClaimViaTokenClaimsResponse>;
62
+ private __claimViaToken;
63
+ }