@51eat/sdk 2.1.0 → 2.2.0

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 (194) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/client/Client.d.ts +0 -3
  3. package/dist/cjs/api/resources/business/client/Client.js +14 -19
  4. package/dist/cjs/api/resources/business/resources/commerce/client/Client.d.ts +9 -0
  5. package/dist/cjs/api/resources/business/resources/commerce/client/Client.js +27 -12
  6. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/client/Client.d.ts +30 -0
  7. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/client/Client.js +116 -0
  8. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/exports.d.ts +2 -0
  9. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/exports.js +21 -0
  10. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.js +1 -0
  12. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/GetOptionsCatalogResponse.d.ts +4 -0
  13. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/business/resources/commerce/resources/catalog/types/index.js +17 -0
  15. package/dist/cjs/api/resources/business/resources/commerce/resources/index.d.ts +8 -0
  16. package/dist/cjs/api/resources/business/resources/commerce/resources/index.js +12 -4
  17. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.d.ts +46 -0
  18. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/Client.js +137 -0
  19. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.d.ts +10 -0
  20. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.d.ts +15 -0
  21. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.js +3 -0
  22. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.d.ts +4 -0
  24. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.js +3 -0
  25. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.d.ts +4 -0
  26. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.js +3 -0
  27. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.d.ts +2 -0
  28. package/dist/cjs/api/resources/business/resources/commerce/resources/locations/types/index.js +2 -0
  29. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/Client.d.ts +80 -0
  30. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/Client.js +142 -49
  31. package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/requests/DeleteProductCategoriesRequest.d.ts +1 -0
  32. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/DeleteProductCategoriesRequest.js +3 -0
  33. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +14 -0
  34. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.js +3 -0
  35. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +14 -0
  36. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.js +3 -0
  37. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.d.ts +3 -0
  38. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.js +2 -0
  39. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/index.d.ts +2 -0
  40. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/index.js +18 -0
  41. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +4 -0
  42. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.js +3 -0
  43. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.d.ts +4 -0
  44. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.js +3 -0
  45. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +4 -0
  46. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.js +3 -0
  47. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/index.d.ts +3 -0
  48. package/dist/cjs/api/resources/business/resources/commerce/resources/productCategories/types/index.js +19 -0
  49. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/Client.d.ts +92 -0
  50. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/Client.js +338 -0
  51. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/index.js +17 -0
  53. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.d.ts +13 -0
  54. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.js +3 -0
  55. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.d.ts +24 -0
  56. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.js +3 -0
  57. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.d.ts +18 -0
  58. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.js +3 -0
  59. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.d.ts +14 -0
  60. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.js +3 -0
  61. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/index.d.ts +4 -0
  62. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/client/requests/index.js +2 -0
  63. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/exports.d.ts +2 -0
  64. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/exports.js +21 -0
  65. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/index.d.ts +2 -0
  66. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/index.js +18 -0
  67. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.d.ts +4 -0
  68. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.js +3 -0
  69. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.d.ts +4 -0
  70. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.js +3 -0
  71. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.d.ts +4 -0
  72. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.js +3 -0
  73. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/index.d.ts +3 -0
  74. package/dist/cjs/api/resources/business/resources/commerce/resources/productImages/types/index.js +19 -0
  75. package/dist/cjs/api/resources/business/resources/index.d.ts +0 -2
  76. package/dist/cjs/api/resources/business/resources/index.js +1 -3
  77. package/dist/cjs/api/types/CatalogFormOptionsResource.d.ts +87 -0
  78. package/dist/cjs/api/types/CatalogFormOptionsResource.js +17 -0
  79. package/dist/cjs/api/types/LocationProductsResource.d.ts +42 -0
  80. package/dist/cjs/api/types/LocationProductsResource.js +19 -0
  81. package/dist/cjs/api/types/ProductCategoryResource.d.ts +4 -0
  82. package/dist/cjs/api/types/index.d.ts +2 -0
  83. package/dist/cjs/api/types/index.js +2 -0
  84. package/dist/cjs/version.d.ts +1 -1
  85. package/dist/cjs/version.js +1 -1
  86. package/dist/esm/BaseClient.mjs +2 -2
  87. package/dist/esm/api/resources/business/client/Client.d.mts +0 -3
  88. package/dist/esm/api/resources/business/client/Client.mjs +0 -5
  89. package/dist/esm/api/resources/business/resources/commerce/client/Client.d.mts +9 -0
  90. package/dist/esm/api/resources/business/resources/commerce/client/Client.mjs +15 -0
  91. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/Client.d.mts +30 -0
  92. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/Client.mjs +79 -0
  93. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/index.d.mts +1 -0
  94. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/client/index.mjs +1 -0
  95. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/exports.d.mts +2 -0
  96. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/exports.mjs +3 -0
  97. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.d.mts +1 -0
  98. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/catalog}/index.mjs +1 -0
  99. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/GetOptionsCatalogResponse.d.mts +4 -0
  100. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/index.d.mts +1 -0
  101. package/dist/esm/api/resources/business/resources/commerce/resources/catalog/types/index.mjs +1 -0
  102. package/dist/esm/api/resources/business/resources/commerce/resources/index.d.mts +8 -0
  103. package/dist/esm/api/resources/business/resources/commerce/resources/index.mjs +8 -0
  104. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.d.mts +46 -0
  105. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/Client.mjs +137 -0
  106. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/GetProductsLocationsRequest.d.mts +10 -0
  107. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.d.mts +15 -0
  108. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/SetLocationProductsRequest.mjs +2 -0
  109. package/dist/esm/api/resources/business/resources/commerce/resources/locations/client/requests/index.d.mts +2 -0
  110. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.d.mts +4 -0
  111. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/GetProductsLocationsResponse.mjs +2 -0
  112. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.d.mts +4 -0
  113. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/SetProductsLocationsResponse.mjs +2 -0
  114. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.d.mts +2 -0
  115. package/dist/esm/api/resources/business/resources/commerce/resources/locations/types/index.mjs +2 -0
  116. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/Client.d.mts +80 -0
  117. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/Client.mjs +142 -49
  118. package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/requests/DeleteProductCategoriesRequest.d.mts +1 -0
  119. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/DeleteProductCategoriesRequest.mjs +2 -0
  120. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +14 -0
  121. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/StoreProductCategoryRequest.mjs +2 -0
  122. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +14 -0
  123. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/UpdateProductCategoryRequest.mjs +2 -0
  124. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.d.mts +3 -0
  125. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/client/requests/index.mjs +1 -0
  126. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/index.d.mts +2 -0
  127. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/index.mjs +2 -0
  128. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +4 -0
  129. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/CreateProductCategoriesResponse.mjs +2 -0
  130. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.d.mts +4 -0
  131. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/ListProductCategoriesResponse.mjs +2 -0
  132. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +4 -0
  133. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/UpdateProductCategoriesResponse.mjs +2 -0
  134. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/index.d.mts +3 -0
  135. package/dist/esm/api/resources/business/resources/commerce/resources/productCategories/types/index.mjs +3 -0
  136. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/Client.d.mts +92 -0
  137. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/Client.mjs +301 -0
  138. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/index.d.mts +1 -0
  139. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/index.mjs +1 -0
  140. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.d.mts +13 -0
  141. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/DeleteProductImagesRequest.mjs +2 -0
  142. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.d.mts +24 -0
  143. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/ReorderProductImagesRequest.mjs +2 -0
  144. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.d.mts +18 -0
  145. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/StoreProductImageRequest.mjs +2 -0
  146. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.d.mts +14 -0
  147. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/UpdateProductImageRequest.mjs +2 -0
  148. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/index.d.mts +4 -0
  149. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/client/requests/index.mjs +1 -0
  150. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/exports.d.mts +2 -0
  151. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/exports.mjs +3 -0
  152. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/index.d.mts +2 -0
  153. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/index.mjs +2 -0
  154. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.d.mts +4 -0
  155. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/ReorderProductImagesResponse.mjs +2 -0
  156. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.d.mts +4 -0
  157. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UpdateProductImagesResponse.mjs +2 -0
  158. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.d.mts +4 -0
  159. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/UploadProductImagesResponse.mjs +2 -0
  160. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/index.d.mts +3 -0
  161. package/dist/esm/api/resources/business/resources/commerce/resources/productImages/types/index.mjs +3 -0
  162. package/dist/esm/api/resources/business/resources/index.d.mts +0 -2
  163. package/dist/esm/api/resources/business/resources/index.mjs +0 -2
  164. package/dist/esm/api/types/CatalogFormOptionsResource.d.mts +87 -0
  165. package/dist/esm/api/types/CatalogFormOptionsResource.mjs +14 -0
  166. package/dist/esm/api/types/LocationProductsResource.d.mts +42 -0
  167. package/dist/esm/api/types/LocationProductsResource.mjs +16 -0
  168. package/dist/esm/api/types/ProductCategoryResource.d.mts +4 -0
  169. package/dist/esm/api/types/index.d.mts +2 -0
  170. package/dist/esm/api/types/index.mjs +2 -0
  171. package/dist/esm/version.d.mts +1 -1
  172. package/dist/esm/version.mjs +1 -1
  173. package/package.json +34 -12
  174. package/reference.md +543 -42
  175. package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +0 -51
  176. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.ts +0 -9
  177. package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +0 -2
  178. package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +0 -51
  179. package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.mts +0 -9
  180. package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +0 -2
  181. /package/dist/{esm/api/resources/business/resources/productCategories/client/requests/index.mjs → cjs/api/resources/business/resources/commerce/resources/catalog/client/index.d.ts} +0 -0
  182. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests → commerce/resources/catalog/client}/index.js +0 -0
  183. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/DeleteProductCategoriesRequest.js → commerce/resources/catalog/types/GetOptionsCatalogResponse.js} +0 -0
  184. /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoriesRequest.js → commerce/resources/locations/client/requests/GetProductsLocationsRequest.js} +0 -0
  185. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.d.ts +0 -0
  186. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.js +0 -0
  187. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.d.ts +0 -0
  188. /package/dist/cjs/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.js +0 -0
  189. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/DeleteProductCategoriesRequest.mjs → commerce/resources/catalog/types/GetOptionsCatalogResponse.mjs} +0 -0
  190. /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoriesRequest.mjs → commerce/resources/locations/client/requests/GetProductsLocationsRequest.mjs} +0 -0
  191. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.d.mts +0 -0
  192. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/client/index.mjs +0 -0
  193. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.d.mts +0 -0
  194. /package/dist/esm/api/resources/business/resources/{productCategories → commerce/resources/productCategories}/exports.mjs +0 -0
@@ -8,21 +8,39 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
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";
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
23
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
24
+ import * as core from "../../../../../../../../core/index.mjs";
25
+ import * as environments from "../../../../../../../../environments.mjs";
26
+ import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
27
+ import * as errors from "../../../../../../../../errors/index.mjs";
28
+ import * as FiveOneEat from "../../../../../../../index.mjs";
17
29
  export class ProductCategoriesClient {
18
30
  constructor(options = {}) {
19
31
  this._options = normalizeClientOptionsWithAuth(options);
20
32
  }
21
33
  /**
34
+ * In their order, flat (a child names its parent in `parent_id`), each
35
+ * with `products_count`, the products filed directly under it.
36
+ *
22
37
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
23
38
  *
39
+ * @throws {@link FiveOneEat.UnauthorizedError}
40
+ * @throws {@link FiveOneEat.ForbiddenError}
41
+ *
24
42
  * @example
25
- * await client.business.productCategories.list()
43
+ * await client.business.commerce.productCategories.list()
26
44
  */
27
45
  list(requestOptions) {
28
46
  return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
@@ -33,7 +51,7 @@ export class ProductCategoriesClient {
33
51
  const _authRequest = yield this._options.authProvider.getAuthRequest();
34
52
  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);
35
53
  const _response = yield core.fetcher({
36
- 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/product-categories"),
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, "business/commerce/product-categories"),
37
55
  method: "GET",
38
56
  headers: _headers,
39
57
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -44,37 +62,61 @@ export class ProductCategoriesClient {
44
62
  logging: this._options.logging,
45
63
  });
46
64
  if (_response.ok) {
47
- return { data: undefined, rawResponse: _response.rawResponse };
65
+ return {
66
+ data: _response.body,
67
+ rawResponse: _response.rawResponse,
68
+ };
48
69
  }
49
70
  if (_response.error.reason === "status-code") {
50
- throw new errors.FiveOneEatError({
51
- statusCode: _response.error.statusCode,
52
- body: _response.error.body,
53
- rawResponse: _response.rawResponse,
54
- });
71
+ switch (_response.error.statusCode) {
72
+ case 401:
73
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
74
+ case 403:
75
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
76
+ default:
77
+ throw new errors.FiveOneEatError({
78
+ statusCode: _response.error.statusCode,
79
+ body: _response.error.body,
80
+ rawResponse: _response.rawResponse,
81
+ });
82
+ }
55
83
  }
56
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/product-categories");
84
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/commerce/product-categories");
57
85
  });
58
86
  }
59
87
  /**
88
+ * Answers 201.
89
+ *
90
+ * @param {FiveOneEat.business.commerce.StoreProductCategoryRequest} request
60
91
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
61
92
  *
93
+ * @throws {@link FiveOneEat.UnauthorizedError}
94
+ * @throws {@link FiveOneEat.ForbiddenError}
95
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
96
+ *
62
97
  * @example
63
- * await client.business.productCategories.create()
98
+ * await client.business.commerce.productCategories.create({
99
+ * "Idempotency-Key": "Idempotency-Key",
100
+ * name: "name"
101
+ * })
64
102
  */
65
- create(requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__create(requestOptions));
103
+ create(request, requestOptions) {
104
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
67
105
  }
68
- __create(requestOptions) {
106
+ __create(request, requestOptions) {
69
107
  return __awaiter(this, void 0, void 0, function* () {
70
108
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
109
+ const { "Idempotency-Key": idempotencyKey } = request, _body = __rest(request, ["Idempotency-Key"]);
71
110
  const _authRequest = yield this._options.authProvider.getAuthRequest();
72
- 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);
111
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": idempotencyKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
112
  const _response = yield core.fetcher({
74
- 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/product-categories"),
113
+ 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/commerce/product-categories"),
75
114
  method: "POST",
76
115
  headers: _headers,
116
+ contentType: "application/json",
77
117
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
118
+ requestType: "json",
119
+ body: _body,
78
120
  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,
79
121
  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,
80
122
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -82,25 +124,43 @@ export class ProductCategoriesClient {
82
124
  logging: this._options.logging,
83
125
  });
84
126
  if (_response.ok) {
85
- return { data: undefined, rawResponse: _response.rawResponse };
127
+ return {
128
+ data: _response.body,
129
+ rawResponse: _response.rawResponse,
130
+ };
86
131
  }
87
132
  if (_response.error.reason === "status-code") {
88
- throw new errors.FiveOneEatError({
89
- statusCode: _response.error.statusCode,
90
- body: _response.error.body,
91
- rawResponse: _response.rawResponse,
92
- });
133
+ switch (_response.error.statusCode) {
134
+ case 401:
135
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
136
+ case 403:
137
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
138
+ case 422:
139
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
140
+ default:
141
+ throw new errors.FiveOneEatError({
142
+ statusCode: _response.error.statusCode,
143
+ body: _response.error.body,
144
+ rawResponse: _response.rawResponse,
145
+ });
146
+ }
93
147
  }
94
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/product-categories");
148
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/commerce/product-categories");
95
149
  });
96
150
  }
97
151
  /**
98
- * @param {FiveOneEat.business.UpdateProductCategoriesRequest} request
152
+ * @param {FiveOneEat.business.commerce.UpdateProductCategoryRequest} request
99
153
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
100
154
  *
155
+ * @throws {@link FiveOneEat.UnauthorizedError}
156
+ * @throws {@link FiveOneEat.ForbiddenError}
157
+ * @throws {@link FiveOneEat.NotFoundError}
158
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
159
+ *
101
160
  * @example
102
- * await client.business.productCategories.update({
103
- * productCategory: "productCategory"
161
+ * await client.business.commerce.productCategories.update({
162
+ * productCategory: "productCategory",
163
+ * name: "name"
104
164
  * })
105
165
  */
106
166
  update(request, requestOptions) {
@@ -109,14 +169,17 @@ export class ProductCategoriesClient {
109
169
  __update(request, requestOptions) {
110
170
  return __awaiter(this, void 0, void 0, function* () {
111
171
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
112
- const { productCategory } = request;
172
+ const { productCategory } = request, _body = __rest(request, ["productCategory"]);
113
173
  const _authRequest = yield this._options.authProvider.getAuthRequest();
114
174
  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);
115
175
  const _response = yield core.fetcher({
116
- 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/product-categories/${core.url.encodePathParam(productCategory)}`),
176
+ 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/commerce/product-categories/${core.url.encodePathParam(productCategory)}`),
117
177
  method: "PUT",
118
178
  headers: _headers,
179
+ contentType: "application/json",
119
180
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
181
+ requestType: "json",
182
+ body: _body,
120
183
  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,
121
184
  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,
122
185
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -124,24 +187,45 @@ export class ProductCategoriesClient {
124
187
  logging: this._options.logging,
125
188
  });
126
189
  if (_response.ok) {
127
- return { data: undefined, rawResponse: _response.rawResponse };
190
+ return {
191
+ data: _response.body,
192
+ rawResponse: _response.rawResponse,
193
+ };
128
194
  }
129
195
  if (_response.error.reason === "status-code") {
130
- throw new errors.FiveOneEatError({
131
- statusCode: _response.error.statusCode,
132
- body: _response.error.body,
133
- rawResponse: _response.rawResponse,
134
- });
196
+ switch (_response.error.statusCode) {
197
+ case 401:
198
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
199
+ case 403:
200
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
201
+ case 404:
202
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
203
+ case 422:
204
+ throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
205
+ default:
206
+ throw new errors.FiveOneEatError({
207
+ statusCode: _response.error.statusCode,
208
+ body: _response.error.body,
209
+ rawResponse: _response.rawResponse,
210
+ });
211
+ }
135
212
  }
136
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/product-categories/{productCategory}");
213
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/business/commerce/product-categories/{productCategory}");
137
214
  });
138
215
  }
139
216
  /**
140
- * @param {FiveOneEat.business.DeleteProductCategoriesRequest} request
217
+ * Its children become top-level categories and its products, and theirs,
218
+ * are left uncategorised.
219
+ *
220
+ * @param {FiveOneEat.business.commerce.DeleteProductCategoriesRequest} request
141
221
  * @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
142
222
  *
223
+ * @throws {@link FiveOneEat.UnauthorizedError}
224
+ * @throws {@link FiveOneEat.ForbiddenError}
225
+ * @throws {@link FiveOneEat.NotFoundError}
226
+ *
143
227
  * @example
144
- * await client.business.productCategories.delete({
228
+ * await client.business.commerce.productCategories.delete({
145
229
  * productCategory: "productCategory"
146
230
  * })
147
231
  */
@@ -155,7 +239,7 @@ export class ProductCategoriesClient {
155
239
  const _authRequest = yield this._options.authProvider.getAuthRequest();
156
240
  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);
157
241
  const _response = yield core.fetcher({
158
- 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/product-categories/${core.url.encodePathParam(productCategory)}`),
242
+ 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/commerce/product-categories/${core.url.encodePathParam(productCategory)}`),
159
243
  method: "DELETE",
160
244
  headers: _headers,
161
245
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -169,13 +253,22 @@ export class ProductCategoriesClient {
169
253
  return { data: undefined, rawResponse: _response.rawResponse };
170
254
  }
171
255
  if (_response.error.reason === "status-code") {
172
- throw new errors.FiveOneEatError({
173
- statusCode: _response.error.statusCode,
174
- body: _response.error.body,
175
- rawResponse: _response.rawResponse,
176
- });
256
+ switch (_response.error.statusCode) {
257
+ case 401:
258
+ throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
259
+ case 403:
260
+ throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
261
+ case 404:
262
+ throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
263
+ default:
264
+ throw new errors.FiveOneEatError({
265
+ statusCode: _response.error.statusCode,
266
+ body: _response.error.body,
267
+ rawResponse: _response.rawResponse,
268
+ });
269
+ }
177
270
  }
178
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/product-categories/{productCategory}");
271
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/business/commerce/product-categories/{productCategory}");
179
272
  });
180
273
  }
181
274
  }
@@ -5,5 +5,6 @@
5
5
  * }
6
6
  */
7
7
  export interface DeleteProductCategoriesRequest {
8
+ /** The product category ID */
8
9
  productCategory: string;
9
10
  }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * "Idempotency-Key": "Idempotency-Key",
5
+ * name: "name"
6
+ * }
7
+ */
8
+ export interface StoreProductCategoryRequest {
9
+ /** Required, 1–255 characters, new for each category you mean to add: a retry with the same key never adds twice. */
10
+ "Idempotency-Key": string;
11
+ name: string;
12
+ parent_id?: string | null;
13
+ sort_order?: number | null;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * productCategory: "productCategory",
5
+ * name: "name"
6
+ * }
7
+ */
8
+ export interface UpdateProductCategoryRequest {
9
+ /** The product category ID */
10
+ productCategory: string;
11
+ name: string;
12
+ parent_id?: string | null;
13
+ sort_order?: number | null;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type { DeleteProductCategoriesRequest } from "./DeleteProductCategoriesRequest.mjs";
2
+ export type { StoreProductCategoryRequest } from "./StoreProductCategoryRequest.mjs";
3
+ export type { UpdateProductCategoryRequest } from "./UpdateProductCategoryRequest.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 CreateProductCategoriesResponse {
3
+ data: FiveOneEat.ProductCategoryResource;
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 ListProductCategoriesResponse {
3
+ data: FiveOneEat.ProductCategoryResource[];
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 UpdateProductCategoriesResponse {
3
+ data: FiveOneEat.ProductCategoryResource;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./CreateProductCategoriesResponse.mjs";
2
+ export * from "./ListProductCategoriesResponse.mjs";
3
+ export * from "./UpdateProductCategoriesResponse.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./CreateProductCategoriesResponse.mjs";
2
+ export * from "./ListProductCategoriesResponse.mjs";
3
+ export * from "./UpdateProductCategoriesResponse.mjs";
@@ -0,0 +1,92 @@
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 ProductImagesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ProductImagesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ProductImagesClient.Options>;
12
+ constructor(options?: ProductImagesClient.Options);
13
+ /**
14
+ * Multipart, with the photo in `image` (up to 10 MB) and optional
15
+ * `alt_text`. Answers 201. It goes after the product's other photos.
16
+ *
17
+ * @param {FiveOneEat.business.commerce.StoreProductImageRequest} request
18
+ * @param {ProductImagesClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link FiveOneEat.UnauthorizedError}
21
+ * @throws {@link FiveOneEat.ForbiddenError}
22
+ * @throws {@link FiveOneEat.NotFoundError}
23
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
24
+ *
25
+ * @example
26
+ * import { createReadStream } from "fs";
27
+ * await client.business.commerce.productImages.upload({
28
+ * image: fs.createReadStream("/path/to/your/file"),
29
+ * "Idempotency-Key": "Idempotency-Key",
30
+ * product: "product"
31
+ * })
32
+ */
33
+ upload(request: FiveOneEat.business.commerce.StoreProductImageRequest, requestOptions?: ProductImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.commerce.UploadProductImagesResponse>;
34
+ private __upload;
35
+ /**
36
+ * Sets each listed photo's `sort_order`; the first is the product's main
37
+ * photo. A listed photo of another product is left alone. Answers with
38
+ * all the product's photos in their new order.
39
+ *
40
+ * @param {FiveOneEat.business.commerce.ReorderProductImagesRequest} request
41
+ * @param {ProductImagesClient.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link FiveOneEat.UnauthorizedError}
44
+ * @throws {@link FiveOneEat.ForbiddenError}
45
+ * @throws {@link FiveOneEat.NotFoundError}
46
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.business.commerce.productImages.reorder({
50
+ * product: "product",
51
+ * images: [{
52
+ * id: "id",
53
+ * sort_order: 1
54
+ * }]
55
+ * })
56
+ */
57
+ reorder(request: FiveOneEat.business.commerce.ReorderProductImagesRequest, requestOptions?: ProductImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.commerce.ReorderProductImagesResponse>;
58
+ private __reorder;
59
+ /**
60
+ * @param {FiveOneEat.business.commerce.UpdateProductImageRequest} request
61
+ * @param {ProductImagesClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link FiveOneEat.UnauthorizedError}
64
+ * @throws {@link FiveOneEat.ForbiddenError}
65
+ * @throws {@link FiveOneEat.NotFoundError}
66
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
67
+ *
68
+ * @example
69
+ * await client.business.commerce.productImages.update({
70
+ * product: "product",
71
+ * image: "image"
72
+ * })
73
+ */
74
+ update(request: FiveOneEat.business.commerce.UpdateProductImageRequest, requestOptions?: ProductImagesClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.commerce.UpdateProductImagesResponse>;
75
+ private __update;
76
+ /**
77
+ * @param {FiveOneEat.business.commerce.DeleteProductImagesRequest} request
78
+ * @param {ProductImagesClient.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link FiveOneEat.UnauthorizedError}
81
+ * @throws {@link FiveOneEat.ForbiddenError}
82
+ * @throws {@link FiveOneEat.NotFoundError}
83
+ *
84
+ * @example
85
+ * await client.business.commerce.productImages.delete({
86
+ * product: "product",
87
+ * image: "image"
88
+ * })
89
+ */
90
+ delete(request: FiveOneEat.business.commerce.DeleteProductImagesRequest, requestOptions?: ProductImagesClient.RequestOptions): core.HttpResponsePromise<void>;
91
+ private __delete;
92
+ }