@vansite/ts-sharetribe-flex-sdk 1.0.33 → 2.0.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 (271) hide show
  1. package/README.md +1 -1
  2. package/dist/endpoints/assets/index.d.ts +47 -0
  3. package/dist/endpoints/auth/index.d.ts +45 -0
  4. package/dist/endpoints/integrationApi/AvailabilityExceptions.d.ts +66 -0
  5. package/dist/endpoints/integrationApi/Events.d.ts +43 -0
  6. package/dist/endpoints/integrationApi/Images.d.ts +36 -0
  7. package/dist/endpoints/integrationApi/Listings.d.ts +87 -0
  8. package/dist/endpoints/integrationApi/Marketplace.d.ts +30 -0
  9. package/dist/endpoints/integrationApi/Stock.d.ts +42 -0
  10. package/dist/endpoints/integrationApi/StockAdjustments.d.ts +64 -0
  11. package/dist/{types/endpoints/integrationApi/StockReservation.d.ts → endpoints/integrationApi/StockReservations.d.ts} +3 -4
  12. package/dist/endpoints/integrationApi/Transactions.d.ts +76 -0
  13. package/dist/endpoints/integrationApi/Users.d.ts +72 -0
  14. package/dist/endpoints/integrationApi/index.d.ts +58 -0
  15. package/dist/endpoints/marketplace/AvailabilityExceptions.d.ts +69 -0
  16. package/dist/endpoints/marketplace/Bookings.d.ts +45 -0
  17. package/dist/endpoints/marketplace/CurrentUser.d.ts +110 -0
  18. package/dist/endpoints/marketplace/Images.d.ts +38 -0
  19. package/dist/endpoints/marketplace/Listings.d.ts +52 -0
  20. package/dist/endpoints/marketplace/Marketplace.d.ts +33 -0
  21. package/dist/endpoints/marketplace/Messages.d.ts +51 -0
  22. package/dist/endpoints/marketplace/OwnListings.d.ts +116 -0
  23. package/dist/endpoints/marketplace/PasswordReset.d.ts +50 -0
  24. package/dist/endpoints/marketplace/ProcessTransitions.d.ts +42 -0
  25. package/dist/endpoints/marketplace/Reviews.d.ts +49 -0
  26. package/dist/endpoints/marketplace/Stock.d.ts +50 -0
  27. package/dist/endpoints/marketplace/StockAdjustments.d.ts +64 -0
  28. package/dist/endpoints/marketplace/StripeAccount.d.ts +56 -0
  29. package/dist/endpoints/marketplace/StripeAccountLinks.d.ts +42 -0
  30. package/dist/endpoints/marketplace/StripeCustomer.d.ts +62 -0
  31. package/dist/endpoints/marketplace/StripePersons.d.ts +37 -0
  32. package/dist/endpoints/marketplace/StripeSetupIntents.d.ts +42 -0
  33. package/dist/endpoints/marketplace/TimeSlots.d.ts +40 -0
  34. package/dist/endpoints/marketplace/Transactions.d.ts +89 -0
  35. package/dist/endpoints/marketplace/Users.d.ts +34 -0
  36. package/dist/endpoints/marketplace/index.d.ts +80 -0
  37. package/dist/index.d.ts +161 -0
  38. package/dist/index.js +3 -0
  39. package/dist/{ts-sharetribe-flex-sdk.cjs.LICENSE.txt → index.js.LICENSE.txt} +53 -41
  40. package/dist/index.js.map +1 -0
  41. package/dist/index.mjs +3 -0
  42. package/dist/{ts-sharetribe-flex-sdk.js.LICENSE.txt → index.mjs.LICENSE.txt} +13 -5
  43. package/dist/index.mjs.map +1 -0
  44. package/dist/index.umd.js +3 -0
  45. package/dist/{ts-sharetribe-flex-sdk.mjs.LICENSE.txt → index.umd.js.LICENSE.txt} +13 -5
  46. package/dist/index.umd.js.map +1 -0
  47. package/dist/integrationSdk.d.ts +119 -0
  48. package/dist/sdk.d.ts +211 -0
  49. package/dist/sdkTypes/BigDecimal.d.ts +30 -0
  50. package/dist/sdkTypes/LatLng.d.ts +34 -0
  51. package/dist/sdkTypes/LatLngBounds.d.ts +51 -0
  52. package/dist/sdkTypes/Money.d.ts +28 -0
  53. package/dist/sdkTypes/UUID.d.ts +38 -0
  54. package/dist/types/apiConfigs.d.ts +104 -0
  55. package/dist/types/assets/index.d.ts +101 -0
  56. package/dist/types/authentication/index.d.ts +152 -0
  57. package/dist/types/axios.d.ts +10 -0
  58. package/dist/types/config.d.ts +99 -0
  59. package/dist/types/endpoints/assets/index.d.ts +22 -36
  60. package/dist/types/endpoints/assets/index.d.ts.map +1 -1
  61. package/dist/types/endpoints/auth/index.d.ts +20 -41
  62. package/dist/types/endpoints/auth/index.d.ts.map +1 -1
  63. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts +30 -49
  64. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts.map +1 -1
  65. package/dist/types/endpoints/integrationApi/Events.d.ts +23 -27
  66. package/dist/types/endpoints/integrationApi/Events.d.ts.map +1 -1
  67. package/dist/types/endpoints/integrationApi/Images.d.ts +17 -28
  68. package/dist/types/endpoints/integrationApi/Images.d.ts.map +1 -1
  69. package/dist/types/endpoints/integrationApi/Listings.d.ts +42 -104
  70. package/dist/types/endpoints/integrationApi/Listings.d.ts.map +1 -1
  71. package/dist/types/endpoints/integrationApi/Marketplace.d.ts +12 -20
  72. package/dist/types/endpoints/integrationApi/Marketplace.d.ts.map +1 -1
  73. package/dist/types/endpoints/integrationApi/Stock.d.ts +22 -28
  74. package/dist/types/endpoints/integrationApi/Stock.d.ts.map +1 -1
  75. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts +35 -35
  76. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts.map +1 -1
  77. package/dist/types/endpoints/integrationApi/StockReservations.d.ts +43 -0
  78. package/dist/types/endpoints/integrationApi/StockReservations.d.ts.map +1 -0
  79. package/dist/types/endpoints/integrationApi/Transactions.d.ts +36 -80
  80. package/dist/types/endpoints/integrationApi/Transactions.d.ts.map +1 -1
  81. package/dist/types/endpoints/integrationApi/Users.d.ts +35 -70
  82. package/dist/types/endpoints/integrationApi/Users.d.ts.map +1 -1
  83. package/dist/types/endpoints/integrationApi/index.d.ts +40 -40
  84. package/dist/types/endpoints/integrationApi/index.d.ts.map +1 -1
  85. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts +34 -48
  86. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts.map +1 -1
  87. package/dist/types/endpoints/marketplace/Bookings.d.ts +24 -23
  88. package/dist/types/endpoints/marketplace/Bookings.d.ts.map +1 -1
  89. package/dist/types/endpoints/marketplace/CurrentUser.d.ts +54 -125
  90. package/dist/types/endpoints/marketplace/CurrentUser.d.ts.map +1 -1
  91. package/dist/types/endpoints/marketplace/Images.d.ts +19 -27
  92. package/dist/types/endpoints/marketplace/Images.d.ts.map +1 -1
  93. package/dist/types/endpoints/marketplace/Listings.d.ts +26 -25
  94. package/dist/types/endpoints/marketplace/Listings.d.ts.map +1 -1
  95. package/dist/types/endpoints/marketplace/Marketplace.d.ts +15 -19
  96. package/dist/types/endpoints/marketplace/Marketplace.d.ts.map +1 -1
  97. package/dist/types/endpoints/marketplace/Messages.d.ts +24 -29
  98. package/dist/types/endpoints/marketplace/Messages.d.ts.map +1 -1
  99. package/dist/types/endpoints/marketplace/OwnListings.d.ts +55 -119
  100. package/dist/types/endpoints/marketplace/OwnListings.d.ts.map +1 -1
  101. package/dist/types/endpoints/marketplace/PasswordReset.d.ts +23 -35
  102. package/dist/types/endpoints/marketplace/PasswordReset.d.ts.map +1 -1
  103. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts +22 -22
  104. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts.map +1 -1
  105. package/dist/types/endpoints/marketplace/Reviews.d.ts +23 -25
  106. package/dist/types/endpoints/marketplace/Reviews.d.ts.map +1 -1
  107. package/dist/types/endpoints/marketplace/Stock.d.ts +30 -26
  108. package/dist/types/endpoints/marketplace/Stock.d.ts.map +1 -1
  109. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts +36 -34
  110. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts.map +1 -1
  111. package/dist/types/endpoints/marketplace/StripeAccount.d.ts +28 -49
  112. package/dist/types/endpoints/marketplace/StripeAccount.d.ts.map +1 -1
  113. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts +22 -31
  114. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts.map +1 -1
  115. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts +32 -46
  116. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts.map +1 -1
  117. package/dist/types/endpoints/marketplace/StripePersons.d.ts +17 -25
  118. package/dist/types/endpoints/marketplace/StripePersons.d.ts.map +1 -1
  119. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts +24 -24
  120. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts.map +1 -1
  121. package/dist/types/endpoints/marketplace/TimeSlots.d.ts +20 -23
  122. package/dist/types/endpoints/marketplace/TimeSlots.d.ts.map +1 -1
  123. package/dist/types/endpoints/marketplace/Transactions.d.ts +45 -81
  124. package/dist/types/endpoints/marketplace/Transactions.d.ts.map +1 -1
  125. package/dist/types/endpoints/marketplace/Users.d.ts +15 -22
  126. package/dist/types/endpoints/marketplace/Users.d.ts.map +1 -1
  127. package/dist/types/endpoints/marketplace/index.d.ts +50 -40
  128. package/dist/types/endpoints/marketplace/index.d.ts.map +1 -1
  129. package/dist/types/index.d.ts +15 -30
  130. package/dist/types/index.d.ts.map +1 -1
  131. package/dist/types/integration/events.d.ts +87 -0
  132. package/dist/types/integrationSdk.d.ts +4 -5
  133. package/dist/types/integrationSdk.d.ts.map +1 -1
  134. package/dist/types/marketplace/availabilityExceptions.d.ts +99 -0
  135. package/dist/types/marketplace/availabilityPlan.d.ts +17 -0
  136. package/dist/types/marketplace/bookings.d.ts +80 -0
  137. package/dist/types/marketplace/currentUser.d.ts +202 -0
  138. package/dist/types/marketplace/images.d.ts +65 -0
  139. package/dist/types/marketplace/listings.d.ts +169 -0
  140. package/dist/types/marketplace/marketplace.d.ts +30 -0
  141. package/dist/types/marketplace/messages.d.ts +87 -0
  142. package/dist/types/marketplace/ownListings.d.ts +155 -0
  143. package/dist/types/marketplace/passwordReset.d.ts +54 -0
  144. package/dist/types/marketplace/processTransitions.d.ts +56 -0
  145. package/dist/types/marketplace/reviews.d.ts +108 -0
  146. package/dist/types/marketplace/stock.d.ts +45 -0
  147. package/dist/types/marketplace/stockAdjustment.d.ts +97 -0
  148. package/dist/types/marketplace/stockReservations.d.ts +89 -0
  149. package/dist/types/marketplace/stripeAccount.d.ts +67 -0
  150. package/dist/types/marketplace/stripeAccountLinks.d.ts +55 -0
  151. package/dist/types/marketplace/stripeCustomer.d.ts +94 -0
  152. package/dist/types/marketplace/stripePaymentMethod.d.ts +21 -0
  153. package/dist/types/marketplace/stripePersons.d.ts +48 -0
  154. package/dist/types/marketplace/stripeSetupIntents.d.ts +48 -0
  155. package/dist/types/marketplace/timeSlots.d.ts +51 -0
  156. package/dist/types/marketplace/transactions.d.ts +200 -0
  157. package/dist/types/marketplace/user.d.ts +200 -0
  158. package/dist/types/sdk-types.d.ts +10 -0
  159. package/dist/types/sdk.d.ts +6 -7
  160. package/dist/types/sdk.d.ts.map +1 -1
  161. package/dist/types/sdkTypes/BigDecimal.d.ts +1 -1
  162. package/dist/types/sdkTypes/BigDecimal.d.ts.map +1 -1
  163. package/dist/types/sdkTypes/LatLng.d.ts +1 -1
  164. package/dist/types/sdkTypes/LatLng.d.ts.map +1 -1
  165. package/dist/types/sdkTypes/LatLngBounds.d.ts +1 -1
  166. package/dist/types/sdkTypes/LatLngBounds.d.ts.map +1 -1
  167. package/dist/types/sdkTypes/Money.d.ts +1 -1
  168. package/dist/types/sdkTypes/Money.d.ts.map +1 -1
  169. package/dist/types/sdkTypes/UUID.d.ts +1 -1
  170. package/dist/types/sdkTypes/UUID.d.ts.map +1 -1
  171. package/dist/types/sharetribe.d.ts +227 -0
  172. package/dist/types/store.d.ts +22 -0
  173. package/dist/types/types/apiConfigs.d.ts.map +1 -1
  174. package/dist/types/types/assets/index.d.ts +74 -36
  175. package/dist/types/types/assets/index.d.ts.map +1 -1
  176. package/dist/types/types/authentication/index.d.ts +111 -60
  177. package/dist/types/types/authentication/index.d.ts.map +1 -1
  178. package/dist/types/types/axios.d.ts.map +1 -1
  179. package/dist/types/types/config.d.ts +1 -39
  180. package/dist/types/types/config.d.ts.map +1 -1
  181. package/dist/types/types/integration/events.d.ts +52 -20
  182. package/dist/types/types/integration/events.d.ts.map +1 -1
  183. package/dist/types/types/marketplace/availabilityExceptions.d.ts +59 -16
  184. package/dist/types/types/marketplace/availabilityExceptions.d.ts.map +1 -1
  185. package/dist/types/types/marketplace/availabilityPlan.d.ts +18 -0
  186. package/dist/types/types/marketplace/availabilityPlan.d.ts.map +1 -0
  187. package/dist/types/types/marketplace/bookings.d.ts +48 -14
  188. package/dist/types/types/marketplace/bookings.d.ts.map +1 -1
  189. package/dist/types/types/marketplace/currentUser.d.ts +99 -55
  190. package/dist/types/types/marketplace/currentUser.d.ts.map +1 -1
  191. package/dist/types/types/marketplace/images.d.ts +40 -14
  192. package/dist/types/types/marketplace/images.d.ts.map +1 -1
  193. package/dist/types/types/marketplace/listings.d.ts +96 -66
  194. package/dist/types/types/marketplace/listings.d.ts.map +1 -1
  195. package/dist/types/types/marketplace/marketplace.d.ts +16 -6
  196. package/dist/types/types/marketplace/marketplace.d.ts.map +1 -1
  197. package/dist/types/types/marketplace/messages.d.ts +53 -15
  198. package/dist/types/types/marketplace/messages.d.ts.map +1 -1
  199. package/dist/types/types/marketplace/ownListings.d.ts +92 -65
  200. package/dist/types/types/marketplace/ownListings.d.ts.map +1 -1
  201. package/dist/types/types/marketplace/passwordReset.d.ts +32 -9
  202. package/dist/types/types/marketplace/passwordReset.d.ts.map +1 -1
  203. package/dist/types/types/marketplace/processTransitions.d.ts +33 -14
  204. package/dist/types/types/marketplace/processTransitions.d.ts.map +1 -1
  205. package/dist/types/types/marketplace/reviews.d.ts +72 -23
  206. package/dist/types/types/marketplace/reviews.d.ts.map +1 -1
  207. package/dist/types/types/marketplace/stock.d.ts +23 -6
  208. package/dist/types/types/marketplace/stock.d.ts.map +1 -1
  209. package/dist/types/types/marketplace/stockAdjustment.d.ts +60 -14
  210. package/dist/types/types/marketplace/stockAdjustment.d.ts.map +1 -1
  211. package/dist/types/types/marketplace/stockReservations.d.ts +59 -14
  212. package/dist/types/types/marketplace/stockReservations.d.ts.map +1 -1
  213. package/dist/types/types/marketplace/stripeAccount.d.ts +28 -5
  214. package/dist/types/types/marketplace/stripeAccount.d.ts.map +1 -1
  215. package/dist/types/types/marketplace/stripeAccountLinks.d.ts +26 -6
  216. package/dist/types/types/marketplace/stripeAccountLinks.d.ts.map +1 -1
  217. package/dist/types/types/marketplace/stripeCustomer.d.ts +60 -13
  218. package/dist/types/types/marketplace/stripeCustomer.d.ts.map +1 -1
  219. package/dist/types/types/marketplace/stripePaymentMethod.d.ts +1 -2
  220. package/dist/types/types/marketplace/stripePaymentMethod.d.ts.map +1 -1
  221. package/dist/types/types/marketplace/stripePersons.d.ts +17 -15
  222. package/dist/types/types/marketplace/stripePersons.d.ts.map +1 -1
  223. package/dist/types/types/marketplace/stripeSetupIntents.d.ts +16 -14
  224. package/dist/types/types/marketplace/stripeSetupIntents.d.ts.map +1 -1
  225. package/dist/types/types/marketplace/timeSlots.d.ts +13 -15
  226. package/dist/types/types/marketplace/timeSlots.d.ts.map +1 -1
  227. package/dist/types/types/marketplace/transactions.d.ts +77 -83
  228. package/dist/types/types/marketplace/transactions.d.ts.map +1 -1
  229. package/dist/types/types/marketplace/user.d.ts +85 -64
  230. package/dist/types/types/marketplace/user.d.ts.map +1 -1
  231. package/dist/types/types/sharetribe.d.ts +130 -92
  232. package/dist/types/types/sharetribe.d.ts.map +1 -1
  233. package/dist/types/types/store.d.ts +3 -14
  234. package/dist/types/types/store.d.ts.map +1 -1
  235. package/dist/types/utils/apis.d.ts +1 -1
  236. package/dist/types/utils/apis.d.ts.map +1 -1
  237. package/dist/types/utils/config.d.ts.map +1 -1
  238. package/dist/types/utils/convert-types.d.ts.map +1 -1
  239. package/dist/types/utils/parameter-serializer.d.ts.map +1 -1
  240. package/dist/types/utils/prepare-axios-instance.d.ts +1 -1
  241. package/dist/types/utils/prepare-axios-instance.d.ts.map +1 -1
  242. package/dist/types/utils/stores/BrowserStore.d.ts +1 -2
  243. package/dist/types/utils/stores/BrowserStore.d.ts.map +1 -1
  244. package/dist/types/utils/stores/ExpressStore.d.ts +6 -7
  245. package/dist/types/utils/stores/ExpressStore.d.ts.map +1 -1
  246. package/dist/types/utils/stores/MemoryStore.d.ts +1 -2
  247. package/dist/types/utils/stores/MemoryStore.d.ts.map +1 -1
  248. package/dist/types/utils/stores/store.d.ts.map +1 -1
  249. package/dist/types/utils/transit.d.ts +1 -1
  250. package/dist/types/utils/transit.d.ts.map +1 -1
  251. package/dist/types/utils/util.d.ts +2 -2
  252. package/dist/types/utils/util.d.ts.map +1 -1
  253. package/dist/utils/apis.d.ts +8 -0
  254. package/dist/utils/config.d.ts +32 -0
  255. package/dist/utils/convert-types.d.ts +13 -0
  256. package/dist/utils/parameter-serializer.d.ts +23 -0
  257. package/dist/utils/prepare-axios-instance.d.ts +14 -0
  258. package/dist/utils/stores/BrowserStore.d.ts +37 -0
  259. package/dist/utils/stores/ExpressStore.d.ts +48 -0
  260. package/dist/utils/stores/MemoryStore.d.ts +23 -0
  261. package/dist/utils/stores/store.d.ts +8 -0
  262. package/dist/utils/transit.d.ts +28 -0
  263. package/dist/utils/util.d.ts +15 -0
  264. package/package.json +18 -17
  265. package/dist/ts-sharetribe-flex-sdk.cjs +0 -3
  266. package/dist/ts-sharetribe-flex-sdk.cjs.map +0 -1
  267. package/dist/ts-sharetribe-flex-sdk.js +0 -3
  268. package/dist/ts-sharetribe-flex-sdk.js.map +0 -1
  269. package/dist/ts-sharetribe-flex-sdk.mjs +0 -3
  270. package/dist/ts-sharetribe-flex-sdk.mjs.map +0 -1
  271. package/dist/types/endpoints/integrationApi/StockReservation.d.ts.map +0 -1
@@ -1,65 +1,65 @@
1
1
  /**
2
- * @fileoverview Provides the StockAdjustments class for managing stock adjustments in the Sharetribe Integration API.
3
- * This class allows querying and creating stock adjustment records.
2
+ * @fileoverview Client for managing stock adjustments in the Sharetribe Integration API.
4
3
  *
5
- * For more details, refer to the Integration API documentation:
6
- * https://www.sharetribe.com/api-reference/integration.html#stock-adjustments
4
+ * Stock adjustments are manual changes to listing stock (e.g. restocking, corrections, damage write-offs).
5
+ * They appear in the stock history and are separate from automatic reservation-based changes.
6
+ *
7
+ * @see https://www.sharetribe.com/api-reference/integration.html#stock-adjustments
7
8
  */
8
- import { AxiosResponse } from "axios";
9
+ import type { AxiosResponse } from "axios";
9
10
  import IntegrationApi from "./index";
10
- import { StockAdjustmentsCreateParameter, StockAdjustmentsQueryParameter, StockAdjustmentsResponse } from "../../types/marketplace/stockAdjustment";
11
- import { ExtraParameter } from "../../types/sharetribe";
11
+ import { ExtraParameter, StockAdjustmentsCreateParameter, StockAdjustmentsQueryParameter, StockAdjustmentsResponse } from "../../types";
12
12
  /**
13
- * Class representing the Stock Adjustments API.
14
- *
15
- * The Stock Adjustments API provides methods to query and create stock adjustments for marketplace resources.
13
+ * Stock Adjustments API client (privileged)
16
14
  */
17
15
  declare class StockAdjustments {
18
- private readonly endpoint;
16
+ readonly authRequired = true;
19
17
  private readonly axios;
18
+ private readonly endpoint;
20
19
  private readonly headers;
21
- readonly authRequired = true;
22
- /**
23
- * Creates an instance of the StockAdjustments class.
24
- *
25
- * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.
26
- */
27
20
  constructor(api: IntegrationApi);
28
21
  /**
29
- * Queries stock adjustment records based on specified filters.
22
+ * Query stock adjustment history
30
23
  *
31
24
  * @template P
32
- * @param {P & StockAdjustmentsQueryParameter} params - Query parameters to filter stock adjustment records.
33
- * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'query', P>>>} - A promise resolving to the query results.
25
+ * @param {P & StockAdjustmentsQueryParameter} params
26
+ * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<"query", P>>>}
34
27
  *
35
28
  * @example
36
- * const response = await integrationSdk.stockAdjustments.query({
37
- * listingId: 'resource-id',
38
- * start: '2024-12-01T00:00:00Z',
39
- * end: '2024-12-31T23:59:59Z',
29
+ * const { data } = await sdk.stockAdjustments.query({
30
+ * listingId: "listing-abc123",
31
+ * start: "2025-01-01",
32
+ * end: "2025-01-31"
40
33
  * });
41
- *
42
- * const adjustments = response.data;
43
34
  */
44
35
  query<P extends StockAdjustmentsQueryParameter>(params: P): Promise<AxiosResponse<StockAdjustmentsResponse<"query", P>>>;
45
36
  /**
46
- * Creates a new stock adjustment record.
37
+ * Create a manual stock adjustment
38
+ *
39
+ * Positive `quantity` = add stock
40
+ * Negative `quantity` = remove stock
47
41
  *
48
42
  * @template P
49
43
  * @template EP
50
- * @param {P & StockAdjustmentsCreateParameter} params - Parameters for the new stock adjustment.
51
- * @param {EP | undefined} extraParams - Optional extra parameters for the request.
52
- * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'create', P, EP>>>} - A promise resolving to the created stock adjustment record.
44
+ * @param {P & StockAdjustmentsCreateParameter} params
45
+ * @param {EP} [extraParams] - Optional extra parameters (e.g. `expand: true`)
46
+ * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<"create", P, EP>>>}
53
47
  *
54
48
  * @example
55
- * const response = await integrationSdk.stockAdjustments.create({
56
- * listingId: 'listing-id',
57
- * quantity: 10,
49
+ * // Restock 50 units
50
+ * await sdk.stockAdjustments.create({
51
+ * listingId: "listing-abc123",
52
+ * quantity: 50
58
53
  * });
59
54
  *
60
- * const newAdjustment = response.data;
55
+ * @example
56
+ * // Write off 3 damaged units
57
+ * await sdk.stockAdjustments.create({
58
+ * listingId: "listing-abc123",
59
+ * quantity: -3
60
+ * });
61
61
  */
62
- create<P extends StockAdjustmentsCreateParameter, EP extends ExtraParameter | undefined>(params: P, extraParams?: EP | void): Promise<AxiosResponse<StockAdjustmentsResponse<"create", P, EP>>>;
62
+ create<P extends StockAdjustmentsCreateParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<StockAdjustmentsResponse<"create", P, EP>>>;
63
63
  }
64
64
  export default StockAdjustments;
65
65
  //# sourceMappingURL=StockAdjustments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StockAdjustments.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/StockAdjustments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiB,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;GAIG;AACH,cAAM,gBAAgB;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,SAAgB,YAAY,QAAQ;IAEpC;;;;OAIG;gBACS,GAAG,EAAE,cAAc;IAM/B;;;;;;;;;;;;;;;OAeG;IACG,KAAK,CAAC,CAAC,SAAS,8BAA8B,EAClD,MAAM,EAAE,CAAC,GACR,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IAU/D;;;;;;;;;;;;;;;;OAgBG;IACG,MAAM,CACV,CAAC,SAAS,+BAA+B,EACzC,EAAE,SAAS,cAAc,GAAG,SAAS,EAErC,MAAM,EAAE,CAAC,EACT,WAAW,GAAE,EAAE,GAAG,IAAe,GAChC,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;CAOrE;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"StockAdjustments.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/StockAdjustments.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAgB,aAAa,EAAC,MAAM,OAAO,CAAC;AACxD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,cAAc,EACd,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,cAAM,gBAAgB;IACpB,SAAgB,YAAY,QAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;gBAErC,GAAG,EAAE,cAAc;IAM/B;;;;;;;;;;;;;OAaG;IACG,KAAK,CAAC,CAAC,SAAS,8BAA8B,EAClD,MAAM,EAAE,CAAC,GACR,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IAO/D;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,MAAM,CACV,CAAC,SAAS,+BAA+B,EACzC,EAAE,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,EAEjD,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;CAOrE;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @fileoverview Provides the StockReservation class for managing stock reservations in the Sharetribe Integration API.
3
+ * This class allows retrieving details about stock reservations.
4
+ *
5
+ * For more details, refer to the Integration API documentation:
6
+ * https://www.sharetribe.com/api-reference/integration.html#stock-reservations
7
+ */
8
+ import { AxiosResponse } from "axios";
9
+ import IntegrationApi from "./index";
10
+ import { StockReservationShowParameter, StockReservationsResponse } from "../../types";
11
+ /**
12
+ * Class representing the Stock Reservations API.
13
+ *
14
+ * The Stock Reservations API provides methods to manage stock reservations for marketplace resources.
15
+ */
16
+ declare class StockReservations {
17
+ private readonly endpoint;
18
+ private readonly axios;
19
+ private readonly headers;
20
+ /**
21
+ * Creates an instance of the StockReservation class.
22
+ *
23
+ * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.
24
+ */
25
+ constructor(api: IntegrationApi);
26
+ /**
27
+ * Retrieves details about a specific stock reservation.
28
+ *
29
+ * @template P
30
+ * @param {P & StockReservationShowParameter} params - The parameters to identify the stock reservation.
31
+ * @returns {Promise<AxiosResponse<StockReservationsResponse<'show', P>>>} - A promise resolving to the stock reservation details.
32
+ *
33
+ * @example
34
+ * const response = await integrationSdk.stockReservations.show({
35
+ * id: 'reservation-id',
36
+ * });
37
+ *
38
+ * const reservationDetails = response.data;
39
+ */
40
+ show<P extends StockReservationShowParameter>(params: P): Promise<AxiosResponse<StockReservationsResponse<"show", P>>>;
41
+ }
42
+ export default StockReservations;
43
+ //# sourceMappingURL=StockReservations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StockReservations.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/StockReservations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAgB,aAAa,EAAC,MAAM,OAAO,CAAC;AACnD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EAAC,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAEtF;;;;GAIG;AACH,cAAM,iBAAiB;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD;;;;OAIG;gBACS,GAAG,EAAE,cAAc;IAM/B;;;;;;;;;;;;;OAaG;IACG,IAAI,CAAC,CAAC,SAAS,6BAA6B,EAChD,MAAM,EAAE,CAAC,GACR,OAAO,CAAC,aAAa,CAAC,yBAAyB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;CAMhE;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,121 +1,77 @@
1
1
  /**
2
- * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Integration API.
3
- * This class allows querying, transitioning, and updating metadata for transactions.
2
+ * @fileoverview Client for managing transactions in the Sharetribe Integration API.
4
3
  *
5
- * For more details, refer to the Integration API documentation:
6
- * https://www.sharetribe.com/api-reference/integration.html#transactions
4
+ * This privileged API allows querying, transitioning, and updating metadata for transactions.
5
+ * Use it for admin tools, backend services, or automated workflows.
6
+ *
7
+ * @see https://www.sharetribe.com/api-reference/integration.html#transactions
7
8
  */
8
- import { AxiosResponse } from "axios";
9
+ import type { AxiosResponse } from "axios";
9
10
  import IntegrationApi from "./index";
10
- import { TransactionsQueryParameter, TransactionsResponse, TransactionsShowParameter, TransactionsTransitionParameter, TransactionsTransitionSpeculativeParameter, TransactionsUpdateMetadataParameter } from "../../types/marketplace/transactions";
11
- import { ExtraParameter } from "../../types/sharetribe";
11
+ import { ExtraParameter, TransactionsQueryParameter, TransactionsResponse, TransactionsShowParameter, TransactionsTransitionParameter, TransactionsTransitionSpeculativeParameter, TransactionsUpdateMetadataParameter } from "../../types";
12
12
  /**
13
- * Class representing the Transactions API.
14
- *
15
- * The Transactions API provides methods to query, transition, and manage metadata for marketplace transactions.
13
+ * Transactions API client (privileged)
16
14
  */
17
15
  declare class Transactions {
18
- private readonly endpoint;
16
+ readonly authRequired = true;
19
17
  private readonly axios;
18
+ private readonly endpoint;
20
19
  private readonly headers;
21
- readonly authRequired = true;
22
- /**
23
- * Creates an instance of the Transactions class.
24
- *
25
- * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.
26
- */
27
20
  constructor(api: IntegrationApi);
28
21
  /**
29
- * Retrieves details about a specific transaction.
22
+ * Fetch a single transaction by ID
30
23
  *
31
24
  * @template P
32
- * @param {P & TransactionsShowParameter} params - The parameters to identify the transaction.
33
- * @returns {Promise<AxiosResponse<TransactionsResponse<'show', P>>>} - A promise resolving to the transaction details.
34
- *
35
- * @example
36
- * const response = await integrationSdk.transactions.show({
37
- * id: 'transaction-id',
38
- * });
39
- *
40
- * const transactionDetails = response.data;
25
+ * @param {P & TransactionsShowParameter} params
26
+ * @returns {Promise<AxiosResponse<TransactionsResponse<"show", P>>>}
41
27
  */
42
28
  show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P>>>;
43
29
  /**
44
- * Queries transactions based on specified filters.
30
+ * Query transactions with privileged filters
45
31
  *
46
32
  * @template P
47
- * @param {P & TransactionsQueryParameter<true>} params - Query parameters to filter transactions.
48
- * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.
49
- *
50
- * @example
51
- * const response = await integrationSdk.transactions.query({
52
- * createdAtStart: '2021-01-01T00:00:00Z',
53
- * createdAtEnd: '2021-01-31T23:59:59Z',
54
- * userId: 'user-id',
55
- * customerId: 'customer-id',
56
- * providerId: 'provider-id',
57
- * listingId: 'listing-id',
58
- * });
59
- *
60
- * const transactions = response.data;
33
+ * @param {P & TransactionsQueryParameter<true>} params - Note: `true` enables privileged fields like `customerId`, `providerId`
34
+ * @returns {Promise<AxiosResponse<TransactionsResponse<"query", P>>>}
61
35
  */
62
36
  query<P extends TransactionsQueryParameter<true>>(params: P): Promise<AxiosResponse<TransactionsResponse<"query", P>>>;
63
37
  /**
64
- * Transitions a transaction to a new state.
38
+ * Transition a transaction to a new state
65
39
  *
66
40
  * @template P
67
41
  * @template EP
68
- * @param {P & TransactionsTransitionParameter} params - Parameters specifying the transaction and the transition.
69
- * @param {EP | void} extraParams - Optional extra parameters for the request.
70
- * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction.
42
+ * @param {P & TransactionsTransitionParameter} params
43
+ * @param {EP} [extraParams] - Optional extra parameters (e.g. `expand: true`)
44
+ * @returns {Promise<AxiosResponse<TransactionsResponse<"transition", P, EP>>>}
71
45
  *
72
46
  * @example
73
- * const response = await integrationSdk.transactions.transition({
74
- * id: 'transaction-id',
75
- * transition: 'accept',
76
- * params: { key: 'value' },
47
+ * await sdk.transactions.transition({
48
+ * id: "tx-abc123",
49
+ * transition: "transition/confirm-payment"
77
50
  * });
78
- *
79
- * const updatedTransaction = response.data;
80
51
  */
81
- transition<P extends TransactionsTransitionParameter, EP extends ExtraParameter>(params: P, extraParams?: EP | void): Promise<AxiosResponse<TransactionsResponse<"transition", P, EP>>>;
52
+ transition<P extends TransactionsTransitionParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"transition", P, EP>>>;
82
53
  /**
83
- * Transitions a transaction speculatively to a new state without persisting the transition.
54
+ * Perform a speculative transition (dry-run)
55
+ *
56
+ * Does not persist changes — useful for validation before real transition.
84
57
  *
85
58
  * @template P
86
59
  * @template EP
87
- * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters specifying the speculative transition.
88
- * @param {EP | void} extraParams - Optional extra parameters for the request.
89
- * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transition result.
90
- *
91
- * @example
92
- * const response = await integrationSdk.transactions.transitionSpeculative({
93
- * id: 'transaction-id',
94
- * transition: 'accept',
95
- * params: { key: 'value' },
96
- * });
97
- *
98
- * const speculativeResult = response.data;
60
+ * @param {P & TransactionsTransitionSpeculativeParameter} params
61
+ * @param {EP} [extraParams]
62
+ * @returns {Promise<AxiosResponse<TransactionsResponse<"transitionSpeculative", P, EP>>>}
99
63
  */
100
- transitionSpeculative<P extends TransactionsTransitionSpeculativeParameter, EP extends ExtraParameter>(params: P, extraParams?: EP | void): Promise<AxiosResponse<TransactionsResponse<"transitionSpeculative", P, EP>>>;
64
+ transitionSpeculative<P extends TransactionsTransitionSpeculativeParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"transitionSpeculative", P, EP>>>;
101
65
  /**
102
- * Updates metadata for a transaction.
66
+ * Update transaction metadata
103
67
  *
104
68
  * @template P
105
69
  * @template EP
106
- * @param {P & TransactionsUpdateMetadataParameter} params - Parameters specifying the transaction metadata to update.
107
- * @param {EP | void} extraParams - Optional extra parameters for the request.
108
- * @returns {Promise<AxiosResponse<TransactionsResponse<'updateMetadata', P, EP>>>} - A promise resolving to the updated transaction metadata.
109
- *
110
- * @example
111
- * const response = await integrationSdk.transactions.updateMetadata({
112
- * id: 'transaction-id',
113
- * metadata: { key: 'value' },
114
- * });
115
- *
116
- * const updatedMetadata = response.data;
70
+ * @param {P & TransactionsUpdateMetadataParameter} params
71
+ * @param {EP} [extraParams]
72
+ * @returns {Promise<AxiosResponse<TransactionsResponse<"updateMetadata", P, EP>>>}
117
73
  */
118
- updateMetadata<P extends TransactionsUpdateMetadataParameter, EP extends ExtraParameter>(params: P, extraParams?: EP | void): Promise<AxiosResponse<TransactionsResponse<"updateMetadata", P, EP>>>;
74
+ updateMetadata<P extends TransactionsUpdateMetadataParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"updateMetadata", P, EP>>>;
119
75
  }
120
76
  export default Transactions;
121
77
  //# sourceMappingURL=Transactions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/Transactions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiB,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,+BAA+B,EAC/B,0CAA0C,EAC1C,mCAAmC,EACpC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;GAIG;AACH,cAAM,YAAY;IAChB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,SAAgB,YAAY,QAAQ;IAEpC;;;;OAIG;gBACS,GAAG,EAAE,cAAc;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AAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAQ/E;;;;;;;;OAQG;IACG,cAAc,CAClB,CAAC,SAAS,mCAAmC,EAC7C,EAAE,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,EAEjD,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;CAOzE;AAED,eAAe,YAAY,CAAC"}
@@ -1,108 +1,73 @@
1
1
  /**
2
- * @fileoverview Provides the Users class for managing user data in the Sharetribe Integration API.
3
- * This class allows retrieving details about a specific user.
2
+ * @fileoverview Client for managing users in the Sharetribe Integration API.
4
3
  *
5
- * For more details, refer to the Integration API documentation:
6
- * https://www.sharetribe.com/api-reference/integration.html#users
4
+ * This privileged API allows querying users, updating profiles, approving accounts,
5
+ * and managing permissions — typically used by admin tools or backend services.
6
+ *
7
+ * @see https://www.sharetribe.com/api-reference/integration.html#users
7
8
  */
8
- import { AxiosResponse } from "axios";
9
+ import type { AxiosResponse } from "axios";
9
10
  import IntegrationApi from "./index";
10
- import { UsersApproveParameter, UsersQueryParameter, UsersResponse, UsersShowParameter, UsersUpdatePermissionsParameter, UsersUpdateProfileParameter } from "../../types/marketplace/user";
11
- import { ExtraParameter } from "../../types/sharetribe";
11
+ import { ExtraParameter, UsersApproveParameter, UsersQueryParameter, UsersResponse, UsersShowParameter, UsersUpdatePermissionsParameter, UsersUpdateProfileParameter } from "../../types";
12
12
  /**
13
- * Class representing the Users API.
14
- *
15
- * The Users API provides methods to retrieve user data for marketplace resources.
13
+ * Users API client (privileged)
16
14
  */
17
15
  declare class Users {
18
- private readonly endpoint;
16
+ readonly authRequired = true;
19
17
  private readonly axios;
18
+ private readonly endpoint;
20
19
  private readonly headers;
21
- /**
22
- * Creates an instance of the Users class.
23
- *
24
- * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.
25
- */
26
20
  constructor(api: IntegrationApi);
27
21
  /**
28
- * Retrieves details about a specific user.
22
+ * Fetch a single user by ID or email
29
23
  *
30
24
  * @template P
31
- * @param {P & UsersShowParameter} params - The parameters to identify the user.
32
- * @returns {Promise<AxiosResponse<UsersResponse<'show', P, undefined, true>>>} - A promise resolving to the user details.
25
+ * @param {P & UsersShowParameter<true>} params - Either `id` or `email` is required
26
+ * @returns {Promise<AxiosResponse<UsersResponse<"show", P>>>}
33
27
  *
34
28
  * @example
35
- * const response = await integrationSdk.users.show({
36
- * id: 'user-id',
37
- * });
38
- *
39
- * const userDetails = response.data;
29
+ * const { data } = await sdk.users.show({ id: "user-abc123" });
30
+ * const { data: userByEmail } = await sdk.users.show({ email: "john@example.com" });
40
31
  */
41
- show<P extends UsersShowParameter<true>>(params: P): Promise<AxiosResponse<UsersResponse<"show", P, undefined, true>>>;
32
+ show<P extends UsersShowParameter<true>>(params: P): Promise<AxiosResponse<UsersResponse<"show", P>>>;
42
33
  /**
43
- * Queries users based on specified filters.
34
+ * Query users with privileged filters
44
35
  *
45
36
  * @template P
46
- * @param {P & UsersQueryParameter} params - Query parameters for filtering users.
47
- * @returns {Promise<AxiosResponse<UsersResponse<'query', P, undefined, true>>>} - A promise resolving to the list of users.
48
- *
49
- * @example
50
- * const response = await integrationSdk.users.query({
51
- * createdAtStart: '2021-01-01T00:00:00Z'
52
- * });
53
- * const users = response.data;
37
+ * @param {P & UsersQueryParameter} params
38
+ * @returns {Promise<AxiosResponse<UsersResponse<"query", P>>>}
54
39
  */
55
- query<P extends UsersQueryParameter>(params: P): Promise<AxiosResponse<UsersResponse<"query", P, undefined, true>>>;
40
+ query<P extends UsersQueryParameter>(params: P): Promise<AxiosResponse<UsersResponse<"query", P>>>;
56
41
  /**
57
- * Updates a user's profile.
42
+ * Update a user's profile
58
43
  *
59
44
  * @template P
60
45
  * @template EP
61
- * @param {P & UsersUpdateProfileParameter} params - Parameters to update the user's profile.
62
- * @param {EP | void} extraParams - Optional extra parameters for the request.
63
- * @returns {Promise<AxiosResponse<UsersResponse<'updateProfile', P, EP, true>>>} - A promise resolving to the updated profile details.
64
- *
65
- * @example
66
- * const response = await integrationSdk.users.updateProfile({
67
- * id: 'user-id',
68
- * firstName: 'John',
69
- * lastName: 'Doe',
70
- * displayName: 'John Doe',
71
- * });
72
- * const updatedProfile = response.data;
46
+ * @param {P & UsersUpdateProfileParameter} params
47
+ * @param {EP} [extraParams]
48
+ * @returns {Promise<AxiosResponse<UsersResponse<"updateProfile", P, EP>>>}
73
49
  */
74
- updateProfile<P extends UsersUpdateProfileParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"updateProfile", P, EP, true>>>;
50
+ updateProfile<P extends UsersUpdateProfileParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"updateProfile", P, EP>>>;
75
51
  /**
76
- * Approves a user.
52
+ * Approve a pending user account
77
53
  *
78
54
  * @template P
79
55
  * @template EP
80
- * @param {P & UsersApproveParameter} params - Parameters to approve the user.
81
- * @param {EP | void} extraParams - Optional extra parameters for the request.
82
- * @returns {Promise<AxiosResponse<UsersResponse<'approve', P, EP, true>>>} - A promise resolving to the approval confirmation.
83
- *
84
- * @example
85
- * const response = await integrationSdk.users.approve({ id: 'user-id' });
86
- * const approvalResult = response.data;
56
+ * @param {P & UsersApproveParameter} params
57
+ * @param {EP} [extraParams]
58
+ * @returns {Promise<AxiosResponse<UsersResponse<"approve", P, EP>>>}
87
59
  */
88
- approve<P extends UsersApproveParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"approve", P, EP, true>>>;
60
+ approve<P extends UsersApproveParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"approve", P, EP>>>;
89
61
  /**
90
- * Updates a user's permissions.
62
+ * Update a user's permissions
91
63
  *
92
64
  * @template P
93
65
  * @template EP
94
- * @param {P & UsersUpdatePermissionsParameter} params - Parameters to update the user's permissions.
95
- * @param {EP | void} extraParams - Optional extra parameters for the request.
96
- * @returns {Promise<AxiosResponse<UsersResponse<'updatePermissions', P, EP, true>>>} - A promise resolving to the updated permissions details.
97
- *
98
- * @example
99
- * const response = await integrationSdk.users.updatePermissions(
100
- * { id: 'user-id', permissions: ['permission-1', 'permission-2'] },
101
- * { additionalParam: 'value' }
102
- * );
103
- * const updatedPermissions = response.data;
66
+ * @param {P & UsersUpdatePermissionsParameter} params
67
+ * @param {EP} [extraParams]
68
+ * @returns {Promise<AxiosResponse<UsersResponse<"updatePermissions", P, EP>>>}
104
69
  */
105
- updatePermissions<P extends UsersUpdatePermissionsParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"updatePermissions", P, EP, true>>>;
70
+ updatePermissions<P extends UsersUpdatePermissionsParameter, EP extends ExtraParameter | undefined = undefined>(params: P, extraParams?: EP): Promise<AxiosResponse<UsersResponse<"updatePermissions", P, EP>>>;
106
71
  }
107
72
  export default Users;
108
73
  //# sourceMappingURL=Users.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/Users.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiB,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;GAIG;AACH,cAAM,KAAK;IACT,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;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S,cAAc,GAAG,SAAS,GAAG,SAAS,EAEjD,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAQ1D;;;;;;;;OAQG;IACG,iBAAiB,CACrB,CAAC,SAAS,+BAA+B,EACzC,EAAE,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,EAEjD,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;CAOrE;AAED,eAAe,KAAK,CAAC"}
@@ -1,8 +1,25 @@
1
1
  /**
2
- * @fileoverview Provides the IntegrationApi class for accessing various endpoints of the Sharetribe Integration API.
3
- * This class acts as a gateway to multiple sub-APIs, including availability exceptions, events, images, listings, stock, transactions, and users.
2
+ * @fileoverview Client for the Sharetribe Integration API.
3
+ *
4
+ * This is the main entry point for server-side or trusted integrations.
5
+ * It provides access to all privileged endpoints: availability exceptions, events,
6
+ * image uploads, stock management, transactions, users, and more.
7
+ *
8
+ * Requires a client secret for authentication.
9
+ *
10
+ * @example
11
+ * const sdk = new IntegrationSdk({
12
+ * clientId: "abc123",
13
+ * clientSecret: "super-secret",
14
+ * baseUrl: "https://api.sharetribe.com"
15
+ * });
16
+ *
17
+ * // Query recent events
18
+ * const { data: events } = await sdk.integration.events.query({
19
+ * createdAtStart: "2025-01-01T00:00:00Z"
20
+ * });
4
21
  */
5
- import { AxiosInstance } from "axios";
22
+ import type { AxiosInstance } from "axios";
6
23
  import IntegrationSdk from "../../integrationSdk";
7
24
  import AvailabilityExceptions from "./AvailabilityExceptions";
8
25
  import Events from "./Events";
@@ -11,48 +28,31 @@ import Listings from "./Listings";
11
28
  import Marketplace from "./Marketplace";
12
29
  import Stock from "./Stock";
13
30
  import StockAdjustments from "./StockAdjustments";
14
- import StockReservation from "./StockReservation";
31
+ import StockReservations from "./StockReservations";
15
32
  import Transactions from "./Transactions";
16
33
  import Users from "./Users";
17
34
  /**
18
- * Class representing the Sharetribe Integration API.
19
- *
20
- * This class provides access to various sub-APIs for managing marketplace resources such as availability exceptions,
21
- * events, images, listings, stock, transactions, and users.
22
- *
23
- * @example
24
- * const sdk = new IntegrationSdk(sdkConfig);
25
- * const integrationApi = new IntegrationApi(sdk);
26
- *
27
- * // Example: Query availability exceptions
28
- * const response = await integrationApi.availabilityExceptions.query({
29
- * resource_id: 'resource-id',
30
- * start: '2024-12-01T00:00:00Z',
31
- * end: '2024-12-31T23:59:59Z'
32
- * });
33
- *
34
- * const exceptions = response.data;
35
+ * Integration API client
35
36
  */
36
37
  declare class IntegrationApi {
37
- axios: AxiosInstance;
38
- endpoint: string;
39
- headers: Record<string, string>;
40
- authRequired: boolean;
41
- availabilityExceptions: AvailabilityExceptions;
42
- events: Events;
43
- images: Images;
44
- listings: Listings;
45
- marketplace: Marketplace;
46
- stock: Stock;
47
- stockAdjustments: StockAdjustments;
48
- stockReservations: StockReservation;
49
- transactions: Transactions;
50
- users: Users;
51
- /**
52
- * Creates an instance of the IntegrationApi class.
53
- *
54
- * @param {IntegrationSdk} sdk - The Integration SDK instance providing configuration and request handling.
55
- */
38
+ /** Axios instance with auth headers */
39
+ readonly axios: AxiosInstance;
40
+ /** Base URL for all Integration API endpoints */
41
+ readonly endpoint: string;
42
+ /** Default headers (includes Authorization) */
43
+ readonly headers: Record<string, string>;
44
+ /** Most endpoints require authentication */
45
+ readonly authRequired = true;
46
+ readonly availabilityExceptions: AvailabilityExceptions;
47
+ readonly events: Events;
48
+ readonly images: Images;
49
+ readonly listings: Listings;
50
+ readonly marketplace: Marketplace;
51
+ readonly stock: Stock;
52
+ readonly stockAdjustments: StockAdjustments;
53
+ readonly stockReservations: StockReservations;
54
+ readonly transactions: Transactions;
55
+ readonly users: Users;
56
56
  constructor(sdk: IntegrationSdk);
57
57
  }
58
58
  export default IntegrationApi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/integrationApi/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAM,cAAc;IAClB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;IAGtB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,EAAE,gBAAgB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IAEb;;;;OAIG;gBACS,GAAG,EAAE,cAAc;CAkBhC;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot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