@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,197 @@
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
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as FiveOneEat from "../../../../../index.mjs";
18
+ import { PhotosClient } from "../resources/photos/client/Client.mjs";
19
+ export class BusinessSubmissionsClient {
20
+ constructor(options = {}) {
21
+ this._options = normalizeClientOptionsWithAuth(options);
22
+ }
23
+ get photos() {
24
+ var _a;
25
+ return ((_a = this._photos) !== null && _a !== void 0 ? _a : (this._photos = new PhotosClient(this._options)));
26
+ }
27
+ /**
28
+ * @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link FiveOneEat.UnauthorizedError}
31
+ *
32
+ * @example
33
+ * await client.customer.businessSubmissions.list()
34
+ */
35
+ list(requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
37
+ }
38
+ __list(requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
41
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
42
+ 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);
43
+ const _response = yield core.fetcher({
44
+ 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, "customer/business-submissions"),
45
+ method: "GET",
46
+ headers: _headers,
47
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
48
+ 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,
49
+ 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,
50
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
52
+ logging: this._options.logging,
53
+ });
54
+ if (_response.ok) {
55
+ return {
56
+ data: _response.body,
57
+ rawResponse: _response.rawResponse,
58
+ };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 401:
63
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
64
+ default:
65
+ throw new errors.FiveOneEatError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ }
72
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/business-submissions");
73
+ });
74
+ }
75
+ /**
76
+ * @param {FiveOneEat.customer.StoreBusinessSubmissionRequest} request
77
+ * @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @throws {@link FiveOneEat.UnauthorizedError}
80
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
81
+ *
82
+ * @example
83
+ * await client.customer.businessSubmissions.create({
84
+ * name: "name",
85
+ * address: "address",
86
+ * city: "city",
87
+ * state: "state",
88
+ * zipcode: "zipcode",
89
+ * country: "country",
90
+ * latitude: 1.1,
91
+ * longitude: 1.1
92
+ * })
93
+ */
94
+ create(request, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
96
+ }
97
+ __create(request, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
100
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
101
+ 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);
102
+ const _response = yield core.fetcher({
103
+ 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, "customer/business-submissions"),
104
+ method: "POST",
105
+ headers: _headers,
106
+ contentType: "application/json",
107
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
108
+ requestType: "json",
109
+ body: request,
110
+ 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,
111
+ 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,
112
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
113
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
114
+ logging: this._options.logging,
115
+ });
116
+ if (_response.ok) {
117
+ return {
118
+ data: _response.body,
119
+ rawResponse: _response.rawResponse,
120
+ };
121
+ }
122
+ if (_response.error.reason === "status-code") {
123
+ switch (_response.error.statusCode) {
124
+ case 401:
125
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
126
+ case 422:
127
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
128
+ default:
129
+ throw new errors.FiveOneEatError({
130
+ statusCode: _response.error.statusCode,
131
+ body: _response.error.body,
132
+ rawResponse: _response.rawResponse,
133
+ });
134
+ }
135
+ }
136
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/business-submissions");
137
+ });
138
+ }
139
+ /**
140
+ * @param {FiveOneEat.customer.GetBusinessSubmissionsRequest} request
141
+ * @param {BusinessSubmissionsClient.RequestOptions} requestOptions - Request-specific configuration.
142
+ *
143
+ * @throws {@link FiveOneEat.UnauthorizedError}
144
+ * @throws {@link FiveOneEat.ForbiddenError}
145
+ * @throws {@link FiveOneEat.NotFoundError}
146
+ *
147
+ * @example
148
+ * await client.customer.businessSubmissions.get({
149
+ * business: "business"
150
+ * })
151
+ */
152
+ get(request, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
154
+ }
155
+ __get(request, requestOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
158
+ const { business } = request;
159
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
160
+ 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);
161
+ const _response = yield core.fetcher({
162
+ 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, `customer/business-submissions/${core.url.encodePathParam(business)}`),
163
+ method: "GET",
164
+ headers: _headers,
165
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
166
+ 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,
167
+ 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,
168
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
170
+ logging: this._options.logging,
171
+ });
172
+ if (_response.ok) {
173
+ return {
174
+ data: _response.body,
175
+ rawResponse: _response.rawResponse,
176
+ };
177
+ }
178
+ if (_response.error.reason === "status-code") {
179
+ switch (_response.error.statusCode) {
180
+ case 401:
181
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
182
+ case 403:
183
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
184
+ case 404:
185
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
186
+ default:
187
+ throw new errors.FiveOneEatError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.body,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ }
193
+ }
194
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer/business-submissions/{business}");
195
+ });
196
+ }
197
+ }
@@ -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
+ * business: "business"
5
+ * }
6
+ */
7
+ export interface GetBusinessSubmissionsRequest {
8
+ /** The business ID */
9
+ business: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name",
5
+ * address: "address",
6
+ * city: "city",
7
+ * state: "state",
8
+ * zipcode: "zipcode",
9
+ * country: "country",
10
+ * latitude: 1.1,
11
+ * longitude: 1.1
12
+ * }
13
+ */
14
+ export interface StoreBusinessSubmissionRequest {
15
+ name: string;
16
+ address: string;
17
+ city: string;
18
+ state: string;
19
+ zipcode: string;
20
+ country: string;
21
+ latitude: number;
22
+ longitude: number;
23
+ phone?: string | null;
24
+ website?: string | null;
25
+ description?: string | null;
26
+ hours?: string[] | null;
27
+ seasonal?: boolean | null;
28
+ has_location?: boolean | null;
29
+ facebook_url?: string | null;
30
+ instagram_url?: string | null;
31
+ twitter_url?: string | null;
32
+ tiktok_url?: string | null;
33
+ youtube_url?: string | null;
34
+ linkedin_url?: string | null;
35
+ category_slugs?: string[] | null;
36
+ operating_months?: number[] | null;
37
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { GetBusinessSubmissionsRequest } from "./GetBusinessSubmissionsRequest.mjs";
2
+ export type { StoreBusinessSubmissionRequest } from "./StoreBusinessSubmissionRequest.mjs";
@@ -0,0 +1,3 @@
1
+ export { BusinessSubmissionsClient } 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 { BusinessSubmissionsClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
3
+ export * from "./types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
3
+ export * from "./types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./photos/client/requests/index.mjs";
2
+ export * as photos from "./photos/index.mjs";
3
+ export * from "./photos/types/index.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./photos/client/requests/index.mjs";
2
+ export * as photos from "./photos/index.mjs";
3
+ export * from "./photos/types/index.mjs";
@@ -0,0 +1,48 @@
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 PhotosClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class PhotosClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<PhotosClient.Options>;
12
+ constructor(options?: PhotosClient.Options);
13
+ /**
14
+ * @param {FiveOneEat.customer.businessSubmissions.UploadSubmissionPhotoRequest} request
15
+ * @param {PhotosClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link FiveOneEat.UnauthorizedError}
18
+ * @throws {@link FiveOneEat.ForbiddenError}
19
+ * @throws {@link FiveOneEat.NotFoundError}
20
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
21
+ * @throws {@link FiveOneEat.InternalServerError}
22
+ *
23
+ * @example
24
+ * import { createReadStream } from "fs";
25
+ * await client.customer.businessSubmissions.photos.upload({
26
+ * image: fs.createReadStream("/path/to/your/file"),
27
+ * business: "business"
28
+ * })
29
+ */
30
+ upload(request: FiveOneEat.customer.businessSubmissions.UploadSubmissionPhotoRequest, requestOptions?: PhotosClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.businessSubmissions.UploadPhotosResponse>;
31
+ private __upload;
32
+ /**
33
+ * @param {FiveOneEat.customer.businessSubmissions.DeletePhotosRequest} request
34
+ * @param {PhotosClient.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link FiveOneEat.UnauthorizedError}
37
+ * @throws {@link FiveOneEat.ForbiddenError}
38
+ * @throws {@link FiveOneEat.NotFoundError}
39
+ *
40
+ * @example
41
+ * await client.customer.businessSubmissions.photos.delete({
42
+ * business: "business",
43
+ * photo: "photo"
44
+ * })
45
+ */
46
+ delete(request: FiveOneEat.customer.businessSubmissions.DeletePhotosRequest, requestOptions?: PhotosClient.RequestOptions): core.HttpResponsePromise<void>;
47
+ private __delete;
48
+ }
@@ -0,0 +1,152 @@
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
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../../../errors/index.mjs";
17
+ import * as FiveOneEat from "../../../../../../../index.mjs";
18
+ export class PhotosClient {
19
+ constructor(options = {}) {
20
+ this._options = normalizeClientOptionsWithAuth(options);
21
+ }
22
+ /**
23
+ * @param {FiveOneEat.customer.businessSubmissions.UploadSubmissionPhotoRequest} request
24
+ * @param {PhotosClient.RequestOptions} requestOptions - Request-specific configuration.
25
+ *
26
+ * @throws {@link FiveOneEat.UnauthorizedError}
27
+ * @throws {@link FiveOneEat.ForbiddenError}
28
+ * @throws {@link FiveOneEat.NotFoundError}
29
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
30
+ * @throws {@link FiveOneEat.InternalServerError}
31
+ *
32
+ * @example
33
+ * import { createReadStream } from "fs";
34
+ * await client.customer.businessSubmissions.photos.upload({
35
+ * image: fs.createReadStream("/path/to/your/file"),
36
+ * business: "business"
37
+ * })
38
+ */
39
+ upload(request, requestOptions) {
40
+ return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
41
+ }
42
+ __upload(request, requestOptions) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
45
+ const _body = yield core.newFormData();
46
+ yield _body.appendFile("image", request.image);
47
+ if (request.alt_text != null) {
48
+ _body.append("alt_text", request.alt_text);
49
+ }
50
+ const _maybeEncodedRequest = yield _body.getRequest();
51
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
52
+ 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);
53
+ const _response = yield core.fetcher({
54
+ 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, `customer/business-submissions/${core.url.encodePathParam(request.business)}/photos`),
55
+ method: "POST",
56
+ headers: _headers,
57
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
58
+ requestType: "file",
59
+ duplex: _maybeEncodedRequest.duplex,
60
+ body: _maybeEncodedRequest.body,
61
+ 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,
62
+ 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,
63
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
64
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
65
+ logging: this._options.logging,
66
+ });
67
+ if (_response.ok) {
68
+ return {
69
+ data: _response.body,
70
+ rawResponse: _response.rawResponse,
71
+ };
72
+ }
73
+ if (_response.error.reason === "status-code") {
74
+ switch (_response.error.statusCode) {
75
+ case 401:
76
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
77
+ case 403:
78
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 404:
80
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
81
+ case 422:
82
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
83
+ case 500:
84
+ throw new FiveOneEat.InternalServerError(_response.error.body, _response.rawResponse);
85
+ default:
86
+ throw new errors.FiveOneEatError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ rawResponse: _response.rawResponse,
90
+ });
91
+ }
92
+ }
93
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/customer/business-submissions/{business}/photos");
94
+ });
95
+ }
96
+ /**
97
+ * @param {FiveOneEat.customer.businessSubmissions.DeletePhotosRequest} request
98
+ * @param {PhotosClient.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link FiveOneEat.UnauthorizedError}
101
+ * @throws {@link FiveOneEat.ForbiddenError}
102
+ * @throws {@link FiveOneEat.NotFoundError}
103
+ *
104
+ * @example
105
+ * await client.customer.businessSubmissions.photos.delete({
106
+ * business: "business",
107
+ * photo: "photo"
108
+ * })
109
+ */
110
+ delete(request, requestOptions) {
111
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
112
+ }
113
+ __delete(request, requestOptions) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
116
+ const { business, photo } = request;
117
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
118
+ 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);
119
+ const _response = yield core.fetcher({
120
+ 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, `customer/business-submissions/${core.url.encodePathParam(business)}/photos/${core.url.encodePathParam(photo)}`),
121
+ method: "DELETE",
122
+ headers: _headers,
123
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
124
+ 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,
125
+ 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,
126
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
127
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
128
+ logging: this._options.logging,
129
+ });
130
+ if (_response.ok) {
131
+ return { data: undefined, rawResponse: _response.rawResponse };
132
+ }
133
+ if (_response.error.reason === "status-code") {
134
+ switch (_response.error.statusCode) {
135
+ case 401:
136
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
137
+ case 403:
138
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
139
+ case 404:
140
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
141
+ default:
142
+ throw new errors.FiveOneEatError({
143
+ statusCode: _response.error.statusCode,
144
+ body: _response.error.body,
145
+ rawResponse: _response.rawResponse,
146
+ });
147
+ }
148
+ }
149
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/business-submissions/{business}/photos/{photo}");
150
+ });
151
+ }
152
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * business: "business",
5
+ * photo: "photo"
6
+ * }
7
+ */
8
+ export interface DeletePhotosRequest {
9
+ /** The business ID */
10
+ business: string;
11
+ /** The photo ID */
12
+ photo: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as core from "../../../../../../../../../core/index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * image: fs.createReadStream("/path/to/your/file"),
6
+ * business: "business"
7
+ * }
8
+ */
9
+ export interface UploadSubmissionPhotoRequest {
10
+ /** The business ID */
11
+ business: string;
12
+ image: core.file.Uploadable;
13
+ alt_text?: string | null;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { DeletePhotosRequest } from "./DeletePhotosRequest.mjs";
2
+ export type { UploadSubmissionPhotoRequest } from "./UploadSubmissionPhotoRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { PhotosClient } 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 { PhotosClient } 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,4 @@
1
+ import type * as FiveOneEat from "../../../../../../../index.mjs";
2
+ export interface UploadPhotosResponse {
3
+ data: FiveOneEat.CustomerBusinessSubmission;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./UploadPhotosResponse.mjs";
@@ -0,0 +1 @@
1
+ export * from "./UploadPhotosResponse.mjs";
@@ -0,0 +1,4 @@
1
+ import type * as FiveOneEat from "../../../../../index.mjs";
2
+ export interface CreateBusinessSubmissionsResponse {
3
+ data: FiveOneEat.CustomerBusinessSubmission;
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 GetBusinessSubmissionsResponse {
3
+ data: FiveOneEat.CustomerBusinessSubmission;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};