@medusajs/js-sdk 1.0.0-rc-20241018141633 → 1.0.0-rc-20241022152047

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/dist/admin/api-key.d.ts +144 -1
  2. package/dist/admin/api-key.d.ts.map +1 -1
  3. package/dist/admin/api-key.js +143 -0
  4. package/dist/admin/api-key.js.map +1 -1
  5. package/dist/admin/campaign.d.ts +135 -0
  6. package/dist/admin/campaign.d.ts.map +1 -1
  7. package/dist/admin/campaign.js +135 -0
  8. package/dist/admin/campaign.js.map +1 -1
  9. package/dist/admin/claim.d.ts +542 -20
  10. package/dist/admin/claim.d.ts.map +1 -1
  11. package/dist/admin/claim.js +523 -7
  12. package/dist/admin/claim.js.map +1 -1
  13. package/dist/admin/currency.d.ts +80 -1
  14. package/dist/admin/currency.d.ts.map +1 -1
  15. package/dist/admin/currency.js +81 -2
  16. package/dist/admin/currency.js.map +1 -1
  17. package/dist/admin/customer-group.d.ts +152 -2
  18. package/dist/admin/customer-group.d.ts.map +1 -1
  19. package/dist/admin/customer-group.js +150 -0
  20. package/dist/admin/customer-group.js.map +1 -1
  21. package/dist/admin/customer.d.ts +135 -13
  22. package/dist/admin/customer.d.ts.map +1 -1
  23. package/dist/admin/customer.js +130 -0
  24. package/dist/admin/customer.js.map +1 -1
  25. package/dist/admin/exchange.d.ts +471 -20
  26. package/dist/admin/exchange.d.ts.map +1 -1
  27. package/dist/admin/exchange.js +455 -30
  28. package/dist/admin/exchange.js.map +1 -1
  29. package/dist/admin/fulfillment-provider.d.ts +47 -0
  30. package/dist/admin/fulfillment-provider.d.ts.map +1 -1
  31. package/dist/admin/fulfillment-provider.js +47 -0
  32. package/dist/admin/fulfillment-provider.js.map +1 -1
  33. package/dist/admin/fulfillment-set.d.ts +122 -0
  34. package/dist/admin/fulfillment-set.d.ts.map +1 -1
  35. package/dist/admin/fulfillment-set.js +122 -0
  36. package/dist/admin/fulfillment-set.js.map +1 -1
  37. package/dist/admin/fulfillment.d.ts +74 -0
  38. package/dist/admin/fulfillment.d.ts.map +1 -1
  39. package/dist/admin/fulfillment.js +75 -0
  40. package/dist/admin/fulfillment.js.map +1 -1
  41. package/dist/admin/inventory-item.d.ts +252 -1
  42. package/dist/admin/inventory-item.d.ts.map +1 -1
  43. package/dist/admin/inventory-item.js +251 -0
  44. package/dist/admin/inventory-item.js.map +1 -1
  45. package/dist/admin/invite.d.ts +170 -15
  46. package/dist/admin/invite.d.ts.map +1 -1
  47. package/dist/admin/invite.js +162 -0
  48. package/dist/admin/invite.js.map +1 -1
  49. package/dist/admin/order.d.ts +1 -0
  50. package/dist/admin/order.d.ts.map +1 -1
  51. package/dist/admin/order.js +6 -0
  52. package/dist/admin/order.js.map +1 -1
  53. package/dist/auth/index.d.ts +156 -0
  54. package/dist/auth/index.d.ts.map +1 -1
  55. package/dist/auth/index.js +152 -1
  56. package/dist/auth/index.js.map +1 -1
  57. package/dist/client.d.ts +1 -1
  58. package/dist/client.d.ts.map +1 -1
  59. package/dist/client.js +2 -1
  60. package/dist/client.js.map +1 -1
  61. package/dist/esm/admin/api-key.d.ts +144 -1
  62. package/dist/esm/admin/api-key.d.ts.map +1 -1
  63. package/dist/esm/admin/api-key.js +143 -0
  64. package/dist/esm/admin/api-key.js.map +1 -1
  65. package/dist/esm/admin/campaign.d.ts +135 -0
  66. package/dist/esm/admin/campaign.d.ts.map +1 -1
  67. package/dist/esm/admin/campaign.js +135 -0
  68. package/dist/esm/admin/campaign.js.map +1 -1
  69. package/dist/esm/admin/claim.d.ts +542 -20
  70. package/dist/esm/admin/claim.d.ts.map +1 -1
  71. package/dist/esm/admin/claim.js +523 -9
  72. package/dist/esm/admin/claim.js.map +1 -1
  73. package/dist/esm/admin/currency.d.ts +80 -1
  74. package/dist/esm/admin/currency.d.ts.map +1 -1
  75. package/dist/esm/admin/currency.js +81 -2
  76. package/dist/esm/admin/currency.js.map +1 -1
  77. package/dist/esm/admin/customer-group.d.ts +152 -2
  78. package/dist/esm/admin/customer-group.d.ts.map +1 -1
  79. package/dist/esm/admin/customer-group.js +150 -0
  80. package/dist/esm/admin/customer-group.js.map +1 -1
  81. package/dist/esm/admin/customer.d.ts +135 -13
  82. package/dist/esm/admin/customer.d.ts.map +1 -1
  83. package/dist/esm/admin/customer.js +130 -0
  84. package/dist/esm/admin/customer.js.map +1 -1
  85. package/dist/esm/admin/exchange.d.ts +471 -20
  86. package/dist/esm/admin/exchange.d.ts.map +1 -1
  87. package/dist/esm/admin/exchange.js +455 -38
  88. package/dist/esm/admin/exchange.js.map +1 -1
  89. package/dist/esm/admin/fulfillment-provider.d.ts +47 -0
  90. package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -1
  91. package/dist/esm/admin/fulfillment-provider.js +47 -0
  92. package/dist/esm/admin/fulfillment-provider.js.map +1 -1
  93. package/dist/esm/admin/fulfillment-set.d.ts +122 -0
  94. package/dist/esm/admin/fulfillment-set.d.ts.map +1 -1
  95. package/dist/esm/admin/fulfillment-set.js +122 -0
  96. package/dist/esm/admin/fulfillment-set.js.map +1 -1
  97. package/dist/esm/admin/fulfillment.d.ts +74 -0
  98. package/dist/esm/admin/fulfillment.d.ts.map +1 -1
  99. package/dist/esm/admin/fulfillment.js +75 -0
  100. package/dist/esm/admin/fulfillment.js.map +1 -1
  101. package/dist/esm/admin/inventory-item.d.ts +252 -1
  102. package/dist/esm/admin/inventory-item.d.ts.map +1 -1
  103. package/dist/esm/admin/inventory-item.js +251 -0
  104. package/dist/esm/admin/inventory-item.js.map +1 -1
  105. package/dist/esm/admin/invite.d.ts +170 -15
  106. package/dist/esm/admin/invite.d.ts.map +1 -1
  107. package/dist/esm/admin/invite.js +162 -0
  108. package/dist/esm/admin/invite.js.map +1 -1
  109. package/dist/esm/admin/order.d.ts +1 -0
  110. package/dist/esm/admin/order.d.ts.map +1 -1
  111. package/dist/esm/admin/order.js +8 -0
  112. package/dist/esm/admin/order.js.map +1 -1
  113. package/dist/esm/auth/index.d.ts +156 -0
  114. package/dist/esm/auth/index.d.ts.map +1 -1
  115. package/dist/esm/auth/index.js +152 -1
  116. package/dist/esm/auth/index.js.map +1 -1
  117. package/dist/esm/client.d.ts +1 -1
  118. package/dist/esm/client.d.ts.map +1 -1
  119. package/dist/esm/client.js +2 -1
  120. package/dist/esm/client.js.map +1 -1
  121. package/dist/esm/store/index.d.ts +973 -83
  122. package/dist/esm/store/index.d.ts.map +1 -1
  123. package/dist/esm/store/index.js +946 -0
  124. package/dist/esm/store/index.js.map +1 -1
  125. package/dist/esm/types.d.ts +6 -1
  126. package/dist/esm/types.d.ts.map +1 -1
  127. package/dist/store/index.d.ts +973 -83
  128. package/dist/store/index.d.ts.map +1 -1
  129. package/dist/store/index.js +946 -0
  130. package/dist/store/index.js.map +1 -1
  131. package/dist/types.d.ts +6 -1
  132. package/dist/types.d.ts.map +1 -1
  133. package/package.json +2 -2
@@ -14,6 +14,53 @@ export class Exchange {
14
14
  constructor(client) {
15
15
  this.client = client;
16
16
  }
17
+ /**
18
+ * This method retrieves a paginated list of exchanges. It sends a request to the
19
+ * [List Exchanges](https://docs.medusajs.com/v2/api/admin#exchanges_getexchanges)
20
+ * API route.
21
+ *
22
+ * @param query - Filters and pagination configurations.
23
+ * @param headers - Headers to pass in the request.
24
+ * @returns The paginated list of exchanges.
25
+ *
26
+ * @example
27
+ * To retrieve the list of exchanges:
28
+ *
29
+ * ```ts
30
+ * sdk.admin.exchange.list()
31
+ * .then(({ exchanges, count, limit, offset }) => {
32
+ * console.log(exchanges)
33
+ * })
34
+ * ```
35
+ *
36
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
37
+ *
38
+ * For example, to retrieve only 10 items and skip 10 items:
39
+ *
40
+ * ```ts
41
+ * sdk.admin.exchange.list({
42
+ * limit: 10,
43
+ * offset: 10
44
+ * })
45
+ * .then(({ exchanges, count, limit, offset }) => {
46
+ * console.log(exchanges)
47
+ * })
48
+ * ```
49
+ *
50
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
51
+ * in each exchange:
52
+ *
53
+ * ```ts
54
+ * sdk.admin.exchange.list({
55
+ * fields: "id,*order"
56
+ * })
57
+ * .then(({ exchanges, count, limit, offset }) => {
58
+ * console.log(exchanges)
59
+ * })
60
+ * ```
61
+ *
62
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
63
+ */
17
64
  list(query, headers) {
18
65
  return __awaiter(this, void 0, void 0, function* () {
19
66
  return yield this.client.fetch(`/admin/exchanges`, {
@@ -22,6 +69,39 @@ export class Exchange {
22
69
  });
23
70
  });
24
71
  }
72
+ /**
73
+ * This method retrieves an exchange by its ID. It sends a request to the
74
+ * [Get Exchange](https://docs.medusajs.com/v2/api/admin#exchanges_getexchangesid)
75
+ * API route.
76
+ *
77
+ * @param id - The exchange's ID.
78
+ * @param query - Configure the fields to retrieve in the exchange.
79
+ * @param headers - Headers to pass in the request.
80
+ * @returns The exchange's details.
81
+ *
82
+ * @example
83
+ * To retrieve an exchange by its ID:
84
+ *
85
+ * ```ts
86
+ * sdk.admin.exchange.retrieve("exchange_123")
87
+ * .then(({ exchange }) => {
88
+ * console.log(exchange)
89
+ * })
90
+ * ```
91
+ *
92
+ * To specify the fields and relations to retrieve:
93
+ *
94
+ * ```ts
95
+ * sdk.admin.exchange.retrieve("exchange_123", {
96
+ * fields: "id,*order"
97
+ * })
98
+ * .then(({ exchange }) => {
99
+ * console.log(exchange)
100
+ * })
101
+ * ```
102
+ *
103
+ * Learn more about the `fields` property in the [API reference](https://docs.medusajs.com/v2/api/store#select-fields-and-relations).
104
+ */
25
105
  retrieve(id, query, headers) {
26
106
  return __awaiter(this, void 0, void 0, function* () {
27
107
  return yield this.client.fetch(`/admin/exchanges/${id}`, {
@@ -30,6 +110,23 @@ export class Exchange {
30
110
  });
31
111
  });
32
112
  }
113
+ /**
114
+ * This method creates an admin exchange. It sends a request to the
115
+ * [Create Exchange](https://docs.medusajs.com/v2/api/admin#exchanges_postexchanges) API route.
116
+ *
117
+ * @param body - The exchange's details.
118
+ * @param query - Configure the fields to retrieve in the exchange.
119
+ * @param headers - Headers to pass in the request.
120
+ * @returns The exchange's details.
121
+ *
122
+ * @example
123
+ * sdk.admin.exchange.create({
124
+ * order_id: "order_123"
125
+ * })
126
+ * .then(({ exchange }) => {
127
+ * console.log(exchange)
128
+ * })
129
+ */
33
130
  create(body, query, headers) {
34
131
  return __awaiter(this, void 0, void 0, function* () {
35
132
  return yield this.client.fetch(`/admin/exchanges`, {
@@ -40,6 +137,21 @@ export class Exchange {
40
137
  });
41
138
  });
42
139
  }
140
+ /**
141
+ * This method cancels an exchange. It sends a request to the
142
+ * [Cancel Exchange](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidcancel) API route.
143
+ *
144
+ * @param id - The exchange's ID.
145
+ * @param query - Configure the fields to retrieve in the exchange.
146
+ * @param headers - Headers to pass in the request.
147
+ * @returns The exchange's details.
148
+ *
149
+ * @example
150
+ * sdk.admin.exchange.cancel("exchange_123")
151
+ * .then(({ exchange }) => {
152
+ * console.log(exchange)
153
+ * })
154
+ */
43
155
  cancel(id, query, headers) {
44
156
  return __awaiter(this, void 0, void 0, function* () {
45
157
  return yield this.client.fetch(`/admin/exchanges/${id}/cancel`, {
@@ -49,44 +161,30 @@ export class Exchange {
49
161
  });
50
162
  });
51
163
  }
52
- delete(id, query, headers) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- return yield this.client.fetch(`/admin/exchanges/${id}`, {
55
- method: "DELETE",
56
- headers,
57
- query,
58
- });
59
- });
60
- }
61
- addItems(id, body, query, headers) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items`, {
64
- method: "POST",
65
- headers,
66
- body,
67
- query,
68
- });
69
- });
70
- }
71
- updateItem(id, actionId, body, query, headers) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items/${actionId}`, {
74
- method: "POST",
75
- headers,
76
- body,
77
- query,
78
- });
79
- });
80
- }
81
- removeItem(id, actionId, query, headers) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items/${actionId}`, {
84
- method: "DELETE",
85
- headers,
86
- query,
87
- });
88
- });
89
- }
164
+ /**
165
+ * This method adds inbound (or return) items to an exchange. These inbound items will
166
+ * have the action `RETURN_ITEM`.
167
+ *
168
+ * This method sends a request to the [Add Inbound Items](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidinbounditems)
169
+ * API route.
170
+ *
171
+ * @param id - The exchange's ID.
172
+ * @param body - The items to add.
173
+ * @param query - Configure the fields to retrieve in the return.
174
+ * @param headers - Headers to pass in the request.
175
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
176
+ *
177
+ * @example
178
+ * sdk.admin.exchange.addInboundItems("exchange_123", {
179
+ * items: [{
180
+ * id: "orli_123",
181
+ * quantity: 1
182
+ * }]
183
+ * })
184
+ * .then(({ return: returnData }) => {
185
+ * console.log(returnData)
186
+ * })
187
+ */
90
188
  addInboundItems(id, body, query, headers) {
91
189
  return __awaiter(this, void 0, void 0, function* () {
92
190
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items`, {
@@ -97,6 +195,35 @@ export class Exchange {
97
195
  });
98
196
  });
99
197
  }
198
+ /**
199
+ * This method updates an inbound (or return) item from an exchange using the ID of
200
+ * the item's `RETURN_ITEM` action.
201
+ *
202
+ * Every item has an `actions` property, whose value is an array of actions. You can
203
+ * check the action's name using its `action` property, and use the value of the `id` property.
204
+ *
205
+ * This method sends a request to the [Update Inbound Item](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidinbounditemsaction_id)
206
+ * API route.
207
+ *
208
+ * @param id - The exchange's ID.
209
+ * @param actionId - The id of the return item's `RETURN_ITEM` action.
210
+ * @param body - The details to update.
211
+ * @param query - Configure the fields to retrieve in the return.
212
+ * @param headers - Headers to pass in the request.
213
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
214
+ *
215
+ * @example
216
+ * sdk.admin.exchange.updateInboundItem(
217
+ * "exchange_123",
218
+ * "ordchact_123",
219
+ * {
220
+ * quantity: 1
221
+ * }
222
+ * )
223
+ * .then(({ return: returnData }) => {
224
+ * console.log(returnData)
225
+ * })
226
+ */
100
227
  updateInboundItem(id, actionId, body, query, headers) {
101
228
  return __awaiter(this, void 0, void 0, function* () {
102
229
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
@@ -107,6 +234,31 @@ export class Exchange {
107
234
  });
108
235
  });
109
236
  }
237
+ /**
238
+ * This method removes an inbound (or return) item from an exchange using the ID of the
239
+ * item's `RETURN_ITEM` action.
240
+ *
241
+ * Every item has an `actions` property, whose value is an array of actions.
242
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
243
+ *
244
+ * This method sends a request to the [Remove Inbound Item](https://docs.medusajs.com/v2/api/admin#exchanges_deleteexchangesidinbounditemsaction_id)
245
+ * API route.
246
+ *
247
+ * @param id - The exchange's ID.
248
+ * @param actionId - The id of the return item's `RETURN_ITEM` action.
249
+ * @param query - Configure the fields to retrieve in the return.
250
+ * @param headers - Headers to pass in the request.
251
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
252
+ *
253
+ * @example
254
+ * sdk.admin.exchange.removeInboundItem(
255
+ * "exchange_123",
256
+ * "ordchact_123",
257
+ * )
258
+ * .then(({ return: returnData }) => {
259
+ * console.log(returnData)
260
+ * })
261
+ */
110
262
  removeInboundItem(id, actionId, query, headers) {
111
263
  return __awaiter(this, void 0, void 0, function* () {
112
264
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
@@ -116,6 +268,30 @@ export class Exchange {
116
268
  });
117
269
  });
118
270
  }
271
+ /**
272
+ * This method adds an inbound (or return) shipping method to an exchange.
273
+ * The inbound shipping method will have a `SHIPPING_ADD` action.
274
+ *
275
+ * This method sends a request to the [Add Inbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidinboundshippingmethod)
276
+ * API route.
277
+ *
278
+ * This method sends a request to the [Add Inbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidinboundshippingmethod)
279
+ * API route.
280
+ *
281
+ * @param id - The exchange's ID.
282
+ * @param body - The shipping method's details.
283
+ * @param query - Configure the fields to retrieve in the return.
284
+ * @param headers - Headers to pass in the request.
285
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
286
+ *
287
+ * @example
288
+ * sdk.admin.exchange.addInboundShipping("exchange_123", {
289
+ * shipping_option_id: "so_123"
290
+ * })
291
+ * .then(({ return: returnData }) => {
292
+ * console.log(returnData)
293
+ * })
294
+ */
119
295
  addInboundShipping(id, body, query, headers) {
120
296
  return __awaiter(this, void 0, void 0, function* () {
121
297
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method`, {
@@ -126,6 +302,35 @@ export class Exchange {
126
302
  });
127
303
  });
128
304
  }
305
+ /**
306
+ * This method updates the shipping method for returning items in the exchange using the ID
307
+ * of the method's `SHIPPING_ADD` action.
308
+ *
309
+ * Every shipping method has an `actions` property, whose value is an array of actions.
310
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
311
+ *
312
+ * This method sends a request to the [Update Inbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidinboundshippingmethodaction_id)
313
+ * API route.
314
+ *
315
+ * @param id - The exchange's ID.
316
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
317
+ * @param body - The details to update.
318
+ * @param query - Configure the fields to retrieve in the return.
319
+ * @param headers - Headers to pass in the request.
320
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
321
+ *
322
+ * @example
323
+ * sdk.admin.exchange.updateInboundShipping(
324
+ * "exchange_123",
325
+ * "ordchact_123",
326
+ * {
327
+ * custom_amount: 10
328
+ * }
329
+ * )
330
+ * .then(({ return: returnData }) => {
331
+ * console.log(returnData)
332
+ * })
333
+ */
129
334
  updateInboundShipping(id, actionId, body, query, headers) {
130
335
  return __awaiter(this, void 0, void 0, function* () {
131
336
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
@@ -136,6 +341,31 @@ export class Exchange {
136
341
  });
137
342
  });
138
343
  }
344
+ /**
345
+ * This method removes the shipping method for returning items in the exchange using the ID
346
+ * of the method's `SHIPPING_ADD` action.
347
+ *
348
+ * Every shipping method has an `actions` property, whose value is an array of actions.
349
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
350
+ *
351
+ * This method sends a request to the [Remove Inbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_deleteexchangesidinboundshippingmethodaction_id)
352
+ * API route.
353
+ *
354
+ * @param id - The exchange's ID.
355
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
356
+ * @param query - Configure the fields to retrieve in the return.
357
+ * @param headers - Headers to pass in the request.
358
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
359
+ *
360
+ * @example
361
+ * sdk.admin.exchange.deleteInboundShipping(
362
+ * "exchange_123",
363
+ * "ordchact_123",
364
+ * )
365
+ * .then(({ return: returnData }) => {
366
+ * console.log(returnData)
367
+ * })
368
+ */
139
369
  deleteInboundShipping(id, actionId, query, headers) {
140
370
  return __awaiter(this, void 0, void 0, function* () {
141
371
  return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
@@ -145,6 +375,30 @@ export class Exchange {
145
375
  });
146
376
  });
147
377
  }
378
+ /**
379
+ * This method adds outbound (or new) items to an exchange.
380
+ * These outbound items will have the action `ITEM_ADD`.
381
+ *
382
+ * This method sends a request to the [Add Outbound Items](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidoutbounditems)
383
+ * API route.
384
+ *
385
+ * @param id - The exchange's ID.
386
+ * @param body - The items to add.
387
+ * @param query - Configure the fields to retrieve in the exchange.
388
+ * @param headers - Headers to pass in the request
389
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
390
+ *
391
+ * @example
392
+ * sdk.admin.exchange.addOutboundItems("exchange_123", {
393
+ * items: [{
394
+ * id: "variant_123",
395
+ * quantity: 1
396
+ * }]
397
+ * })
398
+ * .then(({ exchange }) => {
399
+ * console.log(exchange)
400
+ * })
401
+ */
148
402
  addOutboundItems(id, body, query, headers) {
149
403
  return __awaiter(this, void 0, void 0, function* () {
150
404
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items`, {
@@ -155,6 +409,35 @@ export class Exchange {
155
409
  });
156
410
  });
157
411
  }
412
+ /**
413
+ * This method updates an outbound (or new) item from an exchange using the ID
414
+ * of the item's `ITEM_ADD` action.
415
+ *
416
+ * Every item has an `actions` property, whose value is an array of actions.
417
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
418
+ *
419
+ * This method sends a request to the [Update Inbound Item](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidoutbounditemsaction_id)
420
+ * API route.
421
+ *
422
+ * @param id - The exchange's ID.
423
+ * @param actionId - The id of the new exchange item's `ITEM_ADD` action.
424
+ * @param body - The item's details to update.
425
+ * @param query - Configure the fields to retrieve in the exchange.
426
+ * @param headers - Headers to pass in the request
427
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
428
+ *
429
+ * @example
430
+ * sdk.admin.exchange.updateOutboundItem(
431
+ * "exchange_123",
432
+ * "ordchact_123",
433
+ * {
434
+ * quantity: 1
435
+ * }
436
+ * )
437
+ * .then(({ exchange }) => {
438
+ * console.log(exchange)
439
+ * })
440
+ */
158
441
  updateOutboundItem(id, actionId, body, query, headers) {
159
442
  return __awaiter(this, void 0, void 0, function* () {
160
443
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
@@ -165,6 +448,31 @@ export class Exchange {
165
448
  });
166
449
  });
167
450
  }
451
+ /**
452
+ * This method removes an outbound (or new) item from an exchange using the ID
453
+ * of the item's `ITEM_ADD` action.
454
+ *
455
+ * Every item has an `actions` property, whose value is an array of actions.
456
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
457
+ *
458
+ * This method sends a request to the [Update Outbound Item](https://docs.medusajs.com/v2/api/admin#exchanges_deleteexchangesidoutbounditemsaction_id)
459
+ * API route.
460
+ *
461
+ * @param id - The exchange's ID.
462
+ * @param actionId - The id of the new exchange item's `ITEM_ADD` action.
463
+ * @param query - Configure the fields to retrieve in the exchange.
464
+ * @param headers - Headers to pass in the request
465
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
466
+ *
467
+ * @example
468
+ * sdk.admin.exchange.removeOutboundItem(
469
+ * "exchange_123",
470
+ * "ordchact_123",
471
+ * )
472
+ * .then(({ exchange }) => {
473
+ * console.log(exchange)
474
+ * })
475
+ */
168
476
  removeOutboundItem(id, actionId, query, headers) {
169
477
  return __awaiter(this, void 0, void 0, function* () {
170
478
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
@@ -174,6 +482,27 @@ export class Exchange {
174
482
  });
175
483
  });
176
484
  }
485
+ /**
486
+ * This method adds an outbound shipping method to an exchange. The outbound shipping method
487
+ * will have a `SHIPPING_ADD` action.
488
+ *
489
+ * This method sends a request to the [Add Outbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidoutboundshippingmethod)
490
+ * API route.
491
+ *
492
+ * @param id - The exchange's ID.
493
+ * @param body - The shipping method's details.
494
+ * @param query - Configure the fields to retrieve in the exchange.
495
+ * @param headers - Headers to pass in the request
496
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
497
+ *
498
+ * @example
499
+ * sdk.admin.exchange.addOutboundShipping("exchange_123", {
500
+ * shipping_option_id: "so_123"
501
+ * })
502
+ * .then(({ exchange }) => {
503
+ * console.log(exchange)
504
+ * })
505
+ */
177
506
  addOutboundShipping(id, body, query, headers) {
178
507
  return __awaiter(this, void 0, void 0, function* () {
179
508
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method`, {
@@ -184,6 +513,35 @@ export class Exchange {
184
513
  });
185
514
  });
186
515
  }
516
+ /**
517
+ * This method updates the shipping method for delivering outbound items in the exchange using
518
+ * the ID of the method's `SHIPPING_ADD` action.
519
+ *
520
+ * Every shipping method has an `actions` property, whose value is an array of actions.
521
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
522
+ *
523
+ * This method sends a request to the [Update Outbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidoutboundshippingmethodaction_id)
524
+ * API route.
525
+ *
526
+ * @param id - The exchange's ID.
527
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
528
+ * @param body - The details to update.
529
+ * @param query - Configure the fields to retrieve in the exchange.
530
+ * @param headers - Headers to pass in the request
531
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
532
+ *
533
+ * @example
534
+ * sdk.admin.exchange.updateOutboundShipping(
535
+ * "exchange_123",
536
+ * "ordchact_123",
537
+ * {
538
+ * custom_amount: 10
539
+ * }
540
+ * )
541
+ * .then(({ exchange }) => {
542
+ * console.log(exchange)
543
+ * })
544
+ */
187
545
  updateOutboundShipping(id, actionId, body, query, headers) {
188
546
  return __awaiter(this, void 0, void 0, function* () {
189
547
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
@@ -194,6 +552,31 @@ export class Exchange {
194
552
  });
195
553
  });
196
554
  }
555
+ /**
556
+ * This method removes the shipping method for delivering outbound items in the exchange using
557
+ * the ID of the method's `SHIPPING_ADD` action.
558
+ *
559
+ * Every shipping method has an `actions` property, whose value is an array of actions.
560
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
561
+ *
562
+ * This method sends a request to the [Remove Outbound Shipping](https://docs.medusajs.com/v2/api/admin#exchanges_deleteexchangesidoutboundshippingmethodaction_id)
563
+ * API route.
564
+ *
565
+ * @param id - The exchange's ID.
566
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
567
+ * @param query - Configure the fields to retrieve in the exchange.
568
+ * @param headers - Headers to pass in the request
569
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
570
+ *
571
+ * @example
572
+ * sdk.admin.exchange.deleteOutboundShipping(
573
+ * "exchange_123",
574
+ * "ordchact_123",
575
+ * )
576
+ * .then(({ exchange }) => {
577
+ * console.log(exchange)
578
+ * })
579
+ */
197
580
  deleteOutboundShipping(id, actionId, query, headers) {
198
581
  return __awaiter(this, void 0, void 0, function* () {
199
582
  return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
@@ -203,6 +586,24 @@ export class Exchange {
203
586
  });
204
587
  });
205
588
  }
589
+ /**
590
+ * This method confirms an exchange request, applying its changes on the associated order.
591
+ *
592
+ * This method sends a request to the [Confirm Exchange](https://docs.medusajs.com/v2/api/admin#exchanges_postexchangesidrequest)
593
+ * API route.
594
+ *
595
+ * @param id - The exchange's ID.
596
+ * @param body - The confirmation's details.
597
+ * @param query - Configure the fields to retrieve in the exchange.
598
+ * @param headers - Headers to pass in the request
599
+ * @returns The exchange and associated return's details with a preview of the order when the exchange is applied.
600
+ *
601
+ * @example
602
+ * sdk.admin.exchange.request("exchange_123", {})
603
+ * .then(({ exchange }) => {
604
+ * console.log(exchange)
605
+ * })
606
+ */
206
607
  request(id, body, query, headers) {
207
608
  return __awaiter(this, void 0, void 0, function* () {
208
609
  return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
@@ -213,6 +614,22 @@ export class Exchange {
213
614
  });
214
615
  });
215
616
  }
617
+ /**
618
+ * This method cancels an exchange request. It sends a request to the
619
+ * [Cancel Exchange Request](https://docs.medusajs.com/v2/api/admin#exchanges_deleteexchangesidrequest)
620
+ * API route.
621
+ *
622
+ * @param id - The exchange's ID.
623
+ * @param query - Configure the fields to retrieve in the exchange.
624
+ * @param headers - Headers to pass in the request
625
+ * @returns The cancelation's details.
626
+ *
627
+ * @example
628
+ * sdk.admin.exchange.cancel("exchange_123")
629
+ * .then(({ deleted }) => {
630
+ * console.log(deleted)
631
+ * })
632
+ */
216
633
  cancelRequest(id, query, headers) {
217
634
  return __awaiter(this, void 0, void 0, function* () {
218
635
  return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
@@ -1 +1 @@
1
- {"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/admin/exchange.ts"],"names":[],"mappings":";;;;;;;;;AAKA,MAAM,OAAO,QAAQ;IAKnB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CACR,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAClB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAqC,EACrC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EAAE,EAAE,EACxB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAAmC,EACnC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAClB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EAAE,SAAS,EAC/B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EAAE,EAAE,EACxB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;gBACP,KAAK;aACN,CACF,CA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