@vansite/ts-sharetribe-flex-sdk 1.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 (184) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +191 -0
  3. package/dist/ts-sharetribe-flex-sdk.cjs +3 -0
  4. package/dist/ts-sharetribe-flex-sdk.cjs.LICENSE.txt +701 -0
  5. package/dist/ts-sharetribe-flex-sdk.cjs.map +1 -0
  6. package/dist/ts-sharetribe-flex-sdk.js +3 -0
  7. package/dist/ts-sharetribe-flex-sdk.js.LICENSE.txt +701 -0
  8. package/dist/ts-sharetribe-flex-sdk.js.map +1 -0
  9. package/dist/ts-sharetribe-flex-sdk.mjs +3 -0
  10. package/dist/ts-sharetribe-flex-sdk.mjs.LICENSE.txt +701 -0
  11. package/dist/ts-sharetribe-flex-sdk.mjs.map +1 -0
  12. package/dist/types/endpoints/assets/index.d.ts +62 -0
  13. package/dist/types/endpoints/assets/index.d.ts.map +1 -0
  14. package/dist/types/endpoints/auth/index.d.ts +59 -0
  15. package/dist/types/endpoints/auth/index.d.ts.map +1 -0
  16. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts +86 -0
  17. package/dist/types/endpoints/integrationApi/AvailabilityExceptions.d.ts.map +1 -0
  18. package/dist/types/endpoints/integrationApi/Events.d.ts +48 -0
  19. package/dist/types/endpoints/integrationApi/Events.d.ts.map +1 -0
  20. package/dist/types/endpoints/integrationApi/Images.d.ts +48 -0
  21. package/dist/types/endpoints/integrationApi/Images.d.ts.map +1 -0
  22. package/dist/types/endpoints/integrationApi/Listings.d.ts +150 -0
  23. package/dist/types/endpoints/integrationApi/Listings.d.ts.map +1 -0
  24. package/dist/types/endpoints/integrationApi/Marketplace.d.ts +39 -0
  25. package/dist/types/endpoints/integrationApi/Marketplace.d.ts.map +1 -0
  26. package/dist/types/endpoints/integrationApi/Stock.d.ts +48 -0
  27. package/dist/types/endpoints/integrationApi/Stock.d.ts.map +1 -0
  28. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts +65 -0
  29. package/dist/types/endpoints/integrationApi/StockAdjustments.d.ts.map +1 -0
  30. package/dist/types/endpoints/integrationApi/StockReservation.d.ts +43 -0
  31. package/dist/types/endpoints/integrationApi/StockReservation.d.ts.map +1 -0
  32. package/dist/types/endpoints/integrationApi/Transactions.d.ts +121 -0
  33. package/dist/types/endpoints/integrationApi/Transactions.d.ts.map +1 -0
  34. package/dist/types/endpoints/integrationApi/Users.d.ts +108 -0
  35. package/dist/types/endpoints/integrationApi/Users.d.ts.map +1 -0
  36. package/dist/types/endpoints/integrationApi/index.d.ts +59 -0
  37. package/dist/types/endpoints/integrationApi/index.d.ts.map +1 -0
  38. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts +84 -0
  39. package/dist/types/endpoints/marketplace/AvailabilityExceptions.d.ts.map +1 -0
  40. package/dist/types/endpoints/marketplace/Bookings.d.ts +45 -0
  41. package/dist/types/endpoints/marketplace/Bookings.d.ts.map +1 -0
  42. package/dist/types/endpoints/marketplace/CurrentUser.d.ts +182 -0
  43. package/dist/types/endpoints/marketplace/CurrentUser.d.ts.map +1 -0
  44. package/dist/types/endpoints/marketplace/Images.d.ts +47 -0
  45. package/dist/types/endpoints/marketplace/Images.d.ts.map +1 -0
  46. package/dist/types/endpoints/marketplace/Listings.d.ts +52 -0
  47. package/dist/types/endpoints/marketplace/Listings.d.ts.map +1 -0
  48. package/dist/types/endpoints/marketplace/Marketplace.d.ts +38 -0
  49. package/dist/types/endpoints/marketplace/Marketplace.d.ts.map +1 -0
  50. package/dist/types/endpoints/marketplace/Messages.d.ts +57 -0
  51. package/dist/types/endpoints/marketplace/Messages.d.ts.map +1 -0
  52. package/dist/types/endpoints/marketplace/OwnListings.d.ts +181 -0
  53. package/dist/types/endpoints/marketplace/OwnListings.d.ts.map +1 -0
  54. package/dist/types/endpoints/marketplace/PasswordReset.d.ts +63 -0
  55. package/dist/types/endpoints/marketplace/PasswordReset.d.ts.map +1 -0
  56. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts +43 -0
  57. package/dist/types/endpoints/marketplace/ProcessTransitions.d.ts.map +1 -0
  58. package/dist/types/endpoints/marketplace/Reviews.d.ts +52 -0
  59. package/dist/types/endpoints/marketplace/Reviews.d.ts.map +1 -0
  60. package/dist/types/endpoints/marketplace/Stock.d.ts +47 -0
  61. package/dist/types/endpoints/marketplace/Stock.d.ts.map +1 -0
  62. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts +63 -0
  63. package/dist/types/endpoints/marketplace/StockAdjustments.d.ts.map +1 -0
  64. package/dist/types/endpoints/marketplace/StripeAccount.d.ts +78 -0
  65. package/dist/types/endpoints/marketplace/StripeAccount.d.ts.map +1 -0
  66. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts +52 -0
  67. package/dist/types/endpoints/marketplace/StripeAccountLinks.d.ts.map +1 -0
  68. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts +77 -0
  69. package/dist/types/endpoints/marketplace/StripeCustomer.d.ts.map +1 -0
  70. package/dist/types/endpoints/marketplace/StripePersons.d.ts +46 -0
  71. package/dist/types/endpoints/marketplace/StripePersons.d.ts.map +1 -0
  72. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts +43 -0
  73. package/dist/types/endpoints/marketplace/StripeSetupIntents.d.ts.map +1 -0
  74. package/dist/types/endpoints/marketplace/TimeSlots.d.ts +44 -0
  75. package/dist/types/endpoints/marketplace/TimeSlots.d.ts.map +1 -0
  76. package/dist/types/endpoints/marketplace/Transactions.d.ts +126 -0
  77. package/dist/types/endpoints/marketplace/Transactions.d.ts.map +1 -0
  78. package/dist/types/endpoints/marketplace/Users.d.ts +42 -0
  79. package/dist/types/endpoints/marketplace/Users.d.ts.map +1 -0
  80. package/dist/types/endpoints/marketplace/index.d.ts +71 -0
  81. package/dist/types/endpoints/marketplace/index.d.ts.map +1 -0
  82. package/dist/types/index.d.ts +143 -0
  83. package/dist/types/index.d.ts.map +1 -0
  84. package/dist/types/integrationSdk.d.ts +121 -0
  85. package/dist/types/integrationSdk.d.ts.map +1 -0
  86. package/dist/types/sdk.d.ts +213 -0
  87. package/dist/types/sdk.d.ts.map +1 -0
  88. package/dist/types/sdkTypes/BigDecimal.d.ts +31 -0
  89. package/dist/types/sdkTypes/BigDecimal.d.ts.map +1 -0
  90. package/dist/types/sdkTypes/LatLng.d.ts +35 -0
  91. package/dist/types/sdkTypes/LatLng.d.ts.map +1 -0
  92. package/dist/types/sdkTypes/LatLngBounds.d.ts +52 -0
  93. package/dist/types/sdkTypes/LatLngBounds.d.ts.map +1 -0
  94. package/dist/types/sdkTypes/Money.d.ts +29 -0
  95. package/dist/types/sdkTypes/Money.d.ts.map +1 -0
  96. package/dist/types/sdkTypes/UUID.d.ts +39 -0
  97. package/dist/types/sdkTypes/UUID.d.ts.map +1 -0
  98. package/dist/types/types/apiConfigs.d.ts +105 -0
  99. package/dist/types/types/apiConfigs.d.ts.map +1 -0
  100. package/dist/types/types/assets/index.d.ts +64 -0
  101. package/dist/types/types/assets/index.d.ts.map +1 -0
  102. package/dist/types/types/authentication/index.d.ts +102 -0
  103. package/dist/types/types/authentication/index.d.ts.map +1 -0
  104. package/dist/types/types/axios.d.ts +11 -0
  105. package/dist/types/types/axios.d.ts.map +1 -0
  106. package/dist/types/types/config.d.ts +138 -0
  107. package/dist/types/types/config.d.ts.map +1 -0
  108. package/dist/types/types/integration/events.d.ts +56 -0
  109. package/dist/types/types/integration/events.d.ts.map +1 -0
  110. package/dist/types/types/marketplace/availabilityExceptions.d.ts +57 -0
  111. package/dist/types/types/marketplace/availabilityExceptions.d.ts.map +1 -0
  112. package/dist/types/types/marketplace/bookings.d.ts +47 -0
  113. package/dist/types/types/marketplace/bookings.d.ts.map +1 -0
  114. package/dist/types/types/marketplace/currentUser.d.ts +159 -0
  115. package/dist/types/types/marketplace/currentUser.d.ts.map +1 -0
  116. package/dist/types/types/marketplace/images.d.ts +40 -0
  117. package/dist/types/types/marketplace/images.d.ts.map +1 -0
  118. package/dist/types/types/marketplace/listings.d.ts +140 -0
  119. package/dist/types/types/marketplace/listings.d.ts.map +1 -0
  120. package/dist/types/types/marketplace/marketplace.d.ts +21 -0
  121. package/dist/types/types/marketplace/marketplace.d.ts.map +1 -0
  122. package/dist/types/types/marketplace/messages.d.ts +50 -0
  123. package/dist/types/types/marketplace/messages.d.ts.map +1 -0
  124. package/dist/types/types/marketplace/ownListings.d.ts +129 -0
  125. package/dist/types/types/marketplace/ownListings.d.ts.map +1 -0
  126. package/dist/types/types/marketplace/passwordReset.d.ts +32 -0
  127. package/dist/types/types/marketplace/passwordReset.d.ts.map +1 -0
  128. package/dist/types/types/marketplace/processTransitions.d.ts +38 -0
  129. package/dist/types/types/marketplace/processTransitions.d.ts.map +1 -0
  130. package/dist/types/types/marketplace/reviews.d.ts +60 -0
  131. package/dist/types/types/marketplace/reviews.d.ts.map +1 -0
  132. package/dist/types/types/marketplace/stock.d.ts +29 -0
  133. package/dist/types/types/marketplace/stock.d.ts.map +1 -0
  134. package/dist/types/types/marketplace/stockAdjustment.d.ts +52 -0
  135. package/dist/types/types/marketplace/stockAdjustment.d.ts.map +1 -0
  136. package/dist/types/types/marketplace/stockReservations.d.ts +45 -0
  137. package/dist/types/types/marketplace/stockReservations.d.ts.map +1 -0
  138. package/dist/types/types/marketplace/stripeAccount.d.ts +45 -0
  139. package/dist/types/types/marketplace/stripeAccount.d.ts.map +1 -0
  140. package/dist/types/types/marketplace/stripeAccountLinks.d.ts +36 -0
  141. package/dist/types/types/marketplace/stripeAccountLinks.d.ts.map +1 -0
  142. package/dist/types/types/marketplace/stripeCustomer.d.ts +48 -0
  143. package/dist/types/types/marketplace/stripeCustomer.d.ts.map +1 -0
  144. package/dist/types/types/marketplace/stripePaymentMethod.d.ts +23 -0
  145. package/dist/types/types/marketplace/stripePaymentMethod.d.ts.map +1 -0
  146. package/dist/types/types/marketplace/stripePersons.d.ts +47 -0
  147. package/dist/types/types/marketplace/stripePersons.d.ts.map +1 -0
  148. package/dist/types/types/marketplace/stripeSetupIntents.d.ts +47 -0
  149. package/dist/types/types/marketplace/stripeSetupIntents.d.ts.map +1 -0
  150. package/dist/types/types/marketplace/timeSlots.d.ts +54 -0
  151. package/dist/types/types/marketplace/timeSlots.d.ts.map +1 -0
  152. package/dist/types/types/marketplace/transactions.d.ts +191 -0
  153. package/dist/types/types/marketplace/transactions.d.ts.map +1 -0
  154. package/dist/types/types/marketplace/user.d.ts +166 -0
  155. package/dist/types/types/marketplace/user.d.ts.map +1 -0
  156. package/dist/types/types/sdk-types.d.ts +11 -0
  157. package/dist/types/types/sdk-types.d.ts.map +1 -0
  158. package/dist/types/types/sharetribe.d.ts +177 -0
  159. package/dist/types/types/sharetribe.d.ts.map +1 -0
  160. package/dist/types/types/store.d.ts +34 -0
  161. package/dist/types/types/store.d.ts.map +1 -0
  162. package/dist/types/utils/apis.d.ts +9 -0
  163. package/dist/types/utils/apis.d.ts.map +1 -0
  164. package/dist/types/utils/config.d.ts +16 -0
  165. package/dist/types/utils/config.d.ts.map +1 -0
  166. package/dist/types/utils/convert-types.d.ts +14 -0
  167. package/dist/types/utils/convert-types.d.ts.map +1 -0
  168. package/dist/types/utils/parameter-serializer.d.ts +24 -0
  169. package/dist/types/utils/parameter-serializer.d.ts.map +1 -0
  170. package/dist/types/utils/prepare-axios-instance.d.ts +14 -0
  171. package/dist/types/utils/prepare-axios-instance.d.ts.map +1 -0
  172. package/dist/types/utils/stores/BrowserStore.d.ts +39 -0
  173. package/dist/types/utils/stores/BrowserStore.d.ts.map +1 -0
  174. package/dist/types/utils/stores/ExpressStore.d.ts +50 -0
  175. package/dist/types/utils/stores/ExpressStore.d.ts.map +1 -0
  176. package/dist/types/utils/stores/MemoryStore.d.ts +25 -0
  177. package/dist/types/utils/stores/MemoryStore.d.ts.map +1 -0
  178. package/dist/types/utils/stores/store.d.ts +9 -0
  179. package/dist/types/utils/stores/store.d.ts.map +1 -0
  180. package/dist/types/utils/transit.d.ts +30 -0
  181. package/dist/types/utils/transit.d.ts.map +1 -0
  182. package/dist/types/utils/util.d.ts +13 -0
  183. package/dist/types/utils/util.d.ts.map +1 -0
  184. package/package.json +90 -0
@@ -0,0 +1,126 @@
1
+ /**
2
+ * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Marketplace API.
3
+ * This class includes methods for querying, initiating, transitioning, and managing transactions.
4
+ *
5
+ * For more details, refer to the Marketplace API documentation:
6
+ * https://www.sharetribe.com/api-reference/marketplace.html#transactions
7
+ */
8
+ import { AxiosResponse } from "axios";
9
+ import MarketplaceApi from "./index";
10
+ import { TransactionsInitiateParameter, TransactionsInitiateSpeculativeParameter, TransactionsQueryParameter, TransactionsResponse, TransactionsShowParameter, TransactionsTransitionParameter, TransactionsTransitionSpeculativeParameter } from "../../types/marketplace/transactions";
11
+ import { ExtraParameter } from "../../types/sharetribe";
12
+ /**
13
+ * Class representing the Transactions API.
14
+ *
15
+ * The Transactions API provides methods for managing marketplace transactions, including querying, initiating, and transitioning them.
16
+ */
17
+ declare class Transactions {
18
+ private readonly endpoint;
19
+ private readonly axios;
20
+ private readonly headers;
21
+ readonly authRequired = true;
22
+ /**
23
+ * Creates an instance of the Transactions class.
24
+ *
25
+ * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.
26
+ */
27
+ constructor(api: MarketplaceApi);
28
+ /**
29
+ * Retrieves details of a specific transaction.
30
+ *
31
+ * @template P
32
+ * @param {P & TransactionsShowParameter} params - 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 sdk.transactions.show({ id: 'transaction-id' });
37
+ * const transactionDetails = response.data;
38
+ */
39
+ show<P extends TransactionsShowParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"show", P>>>;
40
+ /**
41
+ * Queries transactions based on specified filters.
42
+ *
43
+ * @template P
44
+ * @param {P & TransactionsQueryParameter} params - Query parameters for filtering transactions.
45
+ * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.
46
+ *
47
+ * @example
48
+ * const response = await sdk.transactions.query({ perPage: 10 });
49
+ * const transactions = response.data;
50
+ */
51
+ query<P extends TransactionsQueryParameter>(params: P): Promise<AxiosResponse<TransactionsResponse<"query", P>>>;
52
+ /**
53
+ * Initiates a new transaction.
54
+ *
55
+ * @template P
56
+ * @template EP
57
+ * @param {P & TransactionsInitiateParameter} params - Parameters for initiating the transaction.
58
+ * @param {EP | void} extraParams - Optional extra parameters for the request.
59
+ * @returns {Promise<AxiosResponse<TransactionsResponse<'initiate', P, EP>>>} - A promise resolving to the initiated transaction details.
60
+ *
61
+ * @example
62
+ * const response = await sdk.transactions.initiate({
63
+ * processAlias: 'order',
64
+ * transition: 'start',
65
+ * params: {}
66
+ * });
67
+ * const initiatedTransaction = response.data;
68
+ */
69
+ initiate<P extends TransactionsInitiateParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"initiate", P, EP>>>;
70
+ /**
71
+ * Initiates a speculative transaction.
72
+ *
73
+ * @template P
74
+ * @template EP
75
+ * @param {P & TransactionsInitiateSpeculativeParameter} params - Parameters for the speculative transaction initiation.
76
+ * @param {EP | void} extraParams - Optional extra parameters for the request.
77
+ * @returns {Promise<AxiosResponse<TransactionsResponse<'initiateSpeculative', P, EP>>>} - A promise resolving to the speculative transaction details.
78
+ *
79
+ * @example
80
+ * const response = await sdk.transactions.initiateSpeculative({
81
+ * processAlias: 'order',
82
+ * transition: 'start',
83
+ * params: {}
84
+ * });
85
+ * const speculativeTransaction = response.data;
86
+ */
87
+ initiateSpeculative<P extends TransactionsInitiateSpeculativeParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"initiateSpeculative", P, EP>>>;
88
+ /**
89
+ * Transitions an existing transaction.
90
+ *
91
+ * @template P
92
+ * @template EP
93
+ * @param {P & TransactionsTransitionParameter} params - Parameters for transitioning the transaction.
94
+ * @param {EP | void} extraParams - Optional extra parameters for the request.
95
+ * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction details.
96
+ *
97
+ * @example
98
+ * const response = await sdk.transactions.transition({
99
+ * id: 'transaction-id',
100
+ * transition: 'complete',
101
+ * params: { review: 5 }
102
+ * });
103
+ * const transitionedTransaction = response.data;
104
+ */
105
+ transition<P extends TransactionsTransitionParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"transition", P, EP>>>;
106
+ /**
107
+ * Transitions a speculative transaction.
108
+ *
109
+ * @template P
110
+ * @template EP
111
+ * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters for the speculative transaction transition.
112
+ * @param {EP | void} extraParams - Optional extra parameters for the request.
113
+ * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transitioned transaction details.
114
+ *
115
+ * @example
116
+ * const response = await sdk.transactions.transitionSpeculative({
117
+ * id: 'transaction-id',
118
+ * transition: 'complete',
119
+ * params: { review: 5 }
120
+ * });
121
+ * const speculativeTransitionedTransaction = response.data;
122
+ */
123
+ transitionSpeculative<P extends TransactionsTransitionSpeculativeParameter, EP extends ExtraParameter>(params: P, extraParams?: EP): Promise<AxiosResponse<TransactionsResponse<"transitionSpeculative", P, EP>>>;
124
+ }
125
+ export default Transactions;
126
+ //# sourceMappingURL=Transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/marketplace/Transactions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiB,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,0BAA0B,EAC1B,oBAAoB,EACpB,yBA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ACzC,EAAE,SAAS,cAAc,EAEzB,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAQpE;;;;;;;;;;;;;;;;OAgBG;IACG,qBAAqB,CACzB,CAAC,SAAS,0CAA0C,EACpD,EAAE,SAAS,cAAc,EAEzB,MAAM,EAAE,CAAC,EACT,WAAW,CAAC,EAAE,EAAE,GACf,OAAO,CACR,aAAa,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CACpE;CASF;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @fileoverview Provides the Users class for managing user data in the Sharetribe Marketplace API.
3
+ * This class includes methods for retrieving details about a specific user.
4
+ *
5
+ * For more details, refer to the Marketplace API documentation:
6
+ * https://www.sharetribe.com/api-reference/marketplace.html#show-user
7
+ */
8
+ import { AxiosResponse } from "axios";
9
+ import MarketplaceApi from "./index";
10
+ import { UsersResponse, UsersShowParameter } from "../../types/marketplace/user";
11
+ /**
12
+ * Class representing the Users API.
13
+ *
14
+ * The Users API provides methods for managing user data in the marketplace.
15
+ */
16
+ declare class Users {
17
+ private readonly endpoint;
18
+ private readonly axios;
19
+ private readonly headers;
20
+ /**
21
+ * Creates an instance of the Users class.
22
+ *
23
+ * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.
24
+ */
25
+ constructor(api: MarketplaceApi);
26
+ /**
27
+ * Retrieves details of a specific user.
28
+ *
29
+ * @template P
30
+ * @param {P & UsersShowParameter} params - Parameters to identify the user.
31
+ * @returns {Promise<AxiosResponse<UsersResponse<'show', P>>>} - A promise resolving to the user details.
32
+ *
33
+ * @example
34
+ * const response = await sdk.users.show({
35
+ * id: 'user-id',
36
+ * });
37
+ * const userDetails = response.data;
38
+ */
39
+ show<P extends UsersShowParameter>(params: P): Promise<AxiosResponse<UsersResponse<"show", P>>>;
40
+ }
41
+ export default Users;
42
+ //# sourceMappingURL=Users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/marketplace/Users.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAiB,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,cAAc,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,aAAa,EACb,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,cAAM,KAAK;IACT,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;;;;;;;;;;;;OAYG;IACG,IAAI,CAAC,CAAC,SAAS,kBAAkB,EACrC,MAAM,EAAE,CAAC,GACR,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;CAMpD;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @fileoverview Provides the MarketplaceApi class for accessing all available endpoints in the Sharetribe Marketplace API.
3
+ * This class serves as the entry point for interacting with various resources such as listings, bookings, users, and payments.
4
+ *
5
+ * For more details, refer to the Marketplace API documentation:
6
+ * https://www.sharetribe.com/api-reference/marketplace.html
7
+ */
8
+ import SharetribeSdk from "../../sdk";
9
+ import { AxiosInstance } from "axios";
10
+ import AvailabilityExceptions from "./AvailabilityExceptions";
11
+ import Listings from "./Listings";
12
+ import Bookings from "./Bookings";
13
+ import CurrentUser from "./CurrentUser";
14
+ import Images from "./Images";
15
+ import Marketplace from "./Marketplace";
16
+ import Messages from "./Messages";
17
+ import OwnListings from "./OwnListings";
18
+ import PasswordReset from "./PasswordReset";
19
+ import ProcessTransitions from "./ProcessTransitions";
20
+ import Reviews from "./Reviews";
21
+ import Stock from "./Stock";
22
+ import StockAdjustments from "./StockAdjustments";
23
+ import StripeAccount from "./StripeAccount";
24
+ import StripeAccountLinks from "./StripeAccountLinks";
25
+ import StripeCustomer from "./StripeCustomer";
26
+ import StripePersons from "./StripePersons";
27
+ import StripeSetupIntents from "./StripeSetupIntents";
28
+ import TimeSlots from "./TimeSlots";
29
+ import Transactions from "./Transactions";
30
+ import Users from "./Users";
31
+ /**
32
+ * Class representing the Sharetribe Marketplace API.
33
+ *
34
+ * This class provides access to all available endpoints in the Sharetribe Marketplace API, enabling operations such as managing listings,
35
+ * handling transactions, updating user profiles, and integrating with Stripe.
36
+ */
37
+ declare class MarketplaceApi {
38
+ axios: AxiosInstance;
39
+ endpoint: string;
40
+ headers: Record<string, string>;
41
+ authRequired: boolean;
42
+ availabilityExceptions: AvailabilityExceptions;
43
+ bookings: Bookings;
44
+ currentUser: CurrentUser;
45
+ images: Images;
46
+ listings: Listings;
47
+ marketplace: Marketplace;
48
+ messages: Messages;
49
+ ownListings: OwnListings;
50
+ passwordReset: PasswordReset;
51
+ processTransitions: ProcessTransitions;
52
+ reviews: Reviews;
53
+ stock: Stock;
54
+ stockAdjustments: StockAdjustments;
55
+ stripeAccount: StripeAccount;
56
+ stripeAccountLinks: StripeAccountLinks;
57
+ stripeCustomer: StripeCustomer;
58
+ stripePersons: StripePersons;
59
+ stripeSetupIntents: StripeSetupIntents;
60
+ timeslots: TimeSlots;
61
+ transactions: Transactions;
62
+ users: Users;
63
+ /**
64
+ * Creates an instance of the MarketplaceApi class.
65
+ *
66
+ * @param {SharetribeSdk} sdk - The Sharetribe SDK instance providing configuration and request handling.
67
+ */
68
+ constructor(sdk: SharetribeSdk);
69
+ }
70
+ export default MarketplaceApi;
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/endpoints/marketplace/index.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AAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IAEb;;;;OAIG;gBACS,GAAG,EAAE,aAAa;CA8B/B;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,143 @@
1
+ /**
2
+ * A collection of utilities, SDKs, and types provided by the Sharetribe SDK.
3
+ *
4
+ * @module SharetribeSdkExports
5
+ */
6
+ import SharetribeSdkExport from "./sdk";
7
+ import IntegrationSdkExport from "./integrationSdk";
8
+ import BigDecimal from "./sdkTypes/BigDecimal";
9
+ import UUID from "./sdkTypes/UUID";
10
+ import LatLng from "./sdkTypes/LatLng";
11
+ import LatLngBounds from "./sdkTypes/LatLngBounds";
12
+ import Money from "./sdkTypes/Money";
13
+ import MemoryStore from "./utils/stores/MemoryStore";
14
+ import BrowserStore from "./utils/stores/BrowserStore";
15
+ import ExpressStore from "./utils/stores/ExpressStore";
16
+ export * from "./types/assets";
17
+ export * from "./types/authentication";
18
+ export * from "./types/integration/events";
19
+ export * from "./types/marketplace/availabilityExceptions";
20
+ export * from "./types/marketplace/bookings";
21
+ export * from "./types/marketplace/currentUser";
22
+ export * from "./types/marketplace/images";
23
+ export * from "./types/marketplace/listings";
24
+ export * from "./types/marketplace/marketplace";
25
+ export * from "./types/marketplace/messages";
26
+ export * from "./types/marketplace/ownListings";
27
+ export * from "./types/marketplace/passwordReset";
28
+ export * from "./types/marketplace/processTransitions";
29
+ export * from "./types/marketplace/reviews";
30
+ export * from "./types/marketplace/stock";
31
+ export * from "./types/marketplace/stockAdjustment";
32
+ export * from "./types/marketplace/stockReservations";
33
+ export * from "./types/marketplace/stripeAccount";
34
+ export * from "./types/marketplace/stripeAccountLinks";
35
+ export * from "./types/marketplace/stripeCustomer";
36
+ export * from "./types/marketplace/stripePaymentMethod";
37
+ export * from "./types/marketplace/stripePersons";
38
+ export * from "./types/marketplace/stripeSetupIntents";
39
+ export * from "./types/marketplace/timeSlots";
40
+ export * from "./types/marketplace/transactions";
41
+ export * from "./types/marketplace/user";
42
+ export * from "./types/config";
43
+ export * from "./types/sharetribe";
44
+ export * from "./types/apiConfigs";
45
+ export * from "./types/config";
46
+ export * from "./types/store";
47
+ /**
48
+ * SDK-specific types provided for advanced usage.
49
+ */
50
+ export declare const sdkTypes: {
51
+ /** A representation of a high-precision decimal number. */
52
+ BigDecimal: typeof BigDecimal;
53
+ /** A geographical point with latitude and longitude. */
54
+ LatLng: typeof LatLng;
55
+ /** A bounding box defined by northeast and southwest geographical points. */
56
+ LatLngBounds: typeof LatLngBounds;
57
+ /** A monetary value with an amount and currency. */
58
+ Money: typeof Money;
59
+ /** A universally unique identifier (UUID). */
60
+ UUID: typeof UUID;
61
+ /** Replacer function for JSON serialization. */
62
+ replacer: (key: string, value: any) => any;
63
+ /** Reviver function for JSON deserialization. */
64
+ reviver: (key: string, value: any) => any;
65
+ };
66
+ /**
67
+ * Token store implementations for managing authentication tokens.
68
+ */
69
+ export declare const TokenStore: {
70
+ /** In-memory token store for temporary token management. */
71
+ MemoryStore: typeof MemoryStore;
72
+ /** Browser token store using cookies. */
73
+ BrowserStore: typeof BrowserStore;
74
+ /** Express.js-compatible token store using request and response cookies. */
75
+ ExpressStore: typeof ExpressStore;
76
+ };
77
+ /**
78
+ * Transit utilities for reading and writing transit data.
79
+ */
80
+ export declare const transit: {
81
+ read: (str: string, opts?: import("./utils/transit").TransitOptions) => any;
82
+ write: (data: any, opts?: import("./utils/transit").TransitOptions) => string;
83
+ };
84
+ /**
85
+ * Export the Sharetribe SDK and Integration SDK.
86
+ */
87
+ export declare const SharetribeSdk: typeof SharetribeSdkExport;
88
+ export declare const IntegrationSdk: typeof IntegrationSdkExport;
89
+ /**
90
+ * Utility functions for data manipulation.
91
+ */
92
+ export declare const util: {
93
+ /** Serializes an object into a custom query string format. */
94
+ objectQueryString: (obj: {
95
+ [x: string]: any;
96
+ }) => string;
97
+ };
98
+ declare const _default: {
99
+ /** Export of the Sharetribe SDK. */
100
+ SharetribeSdk: typeof SharetribeSdkExport;
101
+ /** Export of the Integration SDK. */
102
+ SharetribeIntegrationSdk: typeof IntegrationSdkExport;
103
+ /** Export of available token stores. */
104
+ TokenStore: {
105
+ /** In-memory token store for temporary token management. */
106
+ MemoryStore: typeof MemoryStore;
107
+ /** Browser token store using cookies. */
108
+ BrowserStore: typeof BrowserStore;
109
+ /** Express.js-compatible token store using request and response cookies. */
110
+ ExpressStore: typeof ExpressStore;
111
+ };
112
+ /** Export of SDK-specific types. */
113
+ sdkTypes: {
114
+ /** A representation of a high-precision decimal number. */
115
+ BigDecimal: typeof BigDecimal;
116
+ /** A geographical point with latitude and longitude. */
117
+ LatLng: typeof LatLng;
118
+ /** A bounding box defined by northeast and southwest geographical points. */
119
+ LatLngBounds: typeof LatLngBounds;
120
+ /** A monetary value with an amount and currency. */
121
+ Money: typeof Money;
122
+ /** A universally unique identifier (UUID). */
123
+ UUID: typeof UUID;
124
+ /** Replacer function for JSON serialization. */
125
+ replacer: (key: string, value: any) => any;
126
+ /** Reviver function for JSON deserialization. */
127
+ reviver: (key: string, value: any) => any;
128
+ };
129
+ /** Export of utility functions. */
130
+ util: {
131
+ /** Serializes an object into a custom query string format. */
132
+ objectQueryString: (obj: {
133
+ [x: string]: any;
134
+ }) => string;
135
+ };
136
+ /** Export of Transit utilities. */
137
+ transit: {
138
+ read: (str: string, opts?: import("./utils/transit").TransitOptions) => any;
139
+ write: (data: any, opts?: import("./utils/transit").TransitOptions) => string;
140
+ };
141
+ };
142
+ export default _default;
143
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,mBAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,oBAAoB,MAAM,kBAAkB,CAAC;AACpD,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AAErC,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAKvD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,QAAQ;IACnB,2DAA2D;;IAE3D,wDAAwD;;IAExD,6EAA6E;;IAE7E,oDAAoD;;IAEpD,8CAA8C;;IAE9C,gDAAgD;;IAEhD,iDAAiD;;CAElD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,4DAA4D;;IAE5D,yCAAyC;;IAEzC,4EAA4E;;CAE7E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,4BAAsB,CAAC;AACjD,eAAO,MAAM,cAAc,6BAAuB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,IAAI;IACf,8DAA8D;;;;CAE/D,CAAC;;IAGA,oCAAoC;;IAEpC,qCAAqC;;IAErC,wCAAwC;;QAnCxC,4DAA4D;;QAE5D,yCAAyC;;QAEzC,4EAA4E;;;IAiC5E,oCAAoC;;QAzDpC,2DAA2D;;QAE3D,wDAAwD;;QAExD,6EAA6E;;QAE7E,oDAAoD;;QAEpD,8CAA8C;;QAE9C,gDAAgD;;QAEhD,iDAAiD;;;IA+CjD,mCAAmC;;QAbnC,8DAA8D;;;;;IAe9D,mCAAmC;;;;;;AAXrC,wBAaE"}
@@ -0,0 +1,121 @@
1
+ import { SdkConfig } from "./types/config";
2
+ import { AxiosInstance } from "axios";
3
+ import { ApiConfigs } from "./types/apiConfigs";
4
+ import IntegrationApi from "./endpoints/integrationApi";
5
+ import AuthenticationApi from "./endpoints/auth";
6
+ import AvailabilityExceptions from "./endpoints/integrationApi/AvailabilityExceptions";
7
+ import Events from "./endpoints/integrationApi/Events";
8
+ import Images from "./endpoints/integrationApi/Images";
9
+ import Listings from "./endpoints/integrationApi/Listings";
10
+ import Marketplace from "./endpoints/integrationApi/Marketplace";
11
+ import Stock from "./endpoints/integrationApi/Stock";
12
+ import StockAdjustments from "./endpoints/integrationApi/StockAdjustments";
13
+ import StockReservation from "./endpoints/integrationApi/StockReservation";
14
+ import Transactions from "./endpoints/integrationApi/Transactions";
15
+ import Users from "./endpoints/integrationApi/Users";
16
+ /**
17
+ * The main Sharetribe Integration SDK for interacting with the Sharetribe Integration API.
18
+ *
19
+ * @class
20
+ */
21
+ declare class IntegrationSdk {
22
+ /**
23
+ * Configuration for the SDK.
24
+ *
25
+ * @type {SdkConfig}
26
+ */
27
+ sdkConfig: SdkConfig;
28
+ /**
29
+ * Configuration for the API endpoints.
30
+ *
31
+ * @type {ApiConfigs<true>}
32
+ */
33
+ apisConfigs: ApiConfigs<true>;
34
+ /**
35
+ * Axios instance used for making API requests.
36
+ *
37
+ * @type {AxiosInstance}
38
+ */
39
+ axios: AxiosInstance;
40
+ /**
41
+ * Endpoint for handling authentication.
42
+ *
43
+ * @type {AuthenticationApi}
44
+ */
45
+ auth: AuthenticationApi;
46
+ /**
47
+ * Main integration API.
48
+ *
49
+ * @type {IntegrationApi}
50
+ */
51
+ integration_api: IntegrationApi;
52
+ /**
53
+ * Endpoint for managing availability exceptions.
54
+ *
55
+ * @type {AvailabilityExceptions}
56
+ */
57
+ availabilityExceptions: AvailabilityExceptions;
58
+ /**
59
+ * Endpoint for retrieving and managing events.
60
+ *
61
+ * @type {Events}
62
+ */
63
+ events: Events;
64
+ /**
65
+ * Endpoint for handling image-related operations.
66
+ *
67
+ * @type {Images}
68
+ */
69
+ images: Images;
70
+ /**
71
+ * Endpoint for managing listings.
72
+ *
73
+ * @type {Listings}
74
+ */
75
+ listings: Listings;
76
+ /**
77
+ * Endpoint for accessing marketplace details.
78
+ *
79
+ * @type {Marketplace}
80
+ */
81
+ marketplace: Marketplace;
82
+ /**
83
+ * Endpoint for managing stock.
84
+ *
85
+ * @type {Stock}
86
+ */
87
+ stock: Stock;
88
+ /**
89
+ * Endpoint for handling stock adjustments.
90
+ *
91
+ * @type {StockAdjustments}
92
+ */
93
+ stockAdjustments: StockAdjustments;
94
+ /**
95
+ * Endpoint for managing stock reservations.
96
+ *
97
+ * @type {StockReservation}
98
+ */
99
+ stockReservations: StockReservation;
100
+ /**
101
+ * Endpoint for managing transactions.
102
+ *
103
+ * @type {Transactions}
104
+ */
105
+ transactions: Transactions;
106
+ /**
107
+ * Endpoint for managing user data.
108
+ *
109
+ * @type {Users}
110
+ */
111
+ users: Users;
112
+ /**
113
+ * Initializes a new instance of the SharetribeIntegrationSdk class.
114
+ *
115
+ * @constructor
116
+ * @param {SdkConfig} config - The configuration object for the SDK.
117
+ */
118
+ constructor(config: SdkConfig);
119
+ }
120
+ export default IntegrationSdk;
121
+ //# sourceMappingURL=integrationSdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrationSdk.d.ts","sourceRoot":"","sources":["../../src/integrationSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAMxD,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,sBAAsB,MAAM,mDAAmD,CAAC;AACvF,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,QAAQ,MAAM,qCAAqC,CAAC;AAC3D,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD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