@medusajs/js-sdk 2.6.2-snapshot-20250328151043 → 2.7.0-preview-20250411080918
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.
- package/dist/admin/draft-order.d.ts +285 -4
- package/dist/admin/draft-order.d.ts.map +1 -1
- package/dist/admin/draft-order.js +369 -4
- package/dist/admin/draft-order.js.map +1 -1
- package/dist/admin/plugin.d.ts +18 -0
- package/dist/admin/plugin.d.ts.map +1 -1
- package/dist/admin/plugin.js +15 -0
- package/dist/admin/plugin.js.map +1 -1
- package/dist/auth/index.d.ts +87 -23
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +87 -23
- package/dist/auth/index.js.map +1 -1
- package/dist/esm/admin/draft-order.d.ts +285 -4
- package/dist/esm/admin/draft-order.d.ts.map +1 -1
- package/dist/esm/admin/draft-order.js +399 -4
- package/dist/esm/admin/draft-order.js.map +1 -1
- package/dist/esm/admin/plugin.d.ts +18 -0
- package/dist/esm/admin/plugin.d.ts.map +1 -1
- package/dist/esm/admin/plugin.js +15 -0
- package/dist/esm/admin/plugin.js.map +1 -1
- package/dist/esm/auth/index.d.ts +87 -23
- package/dist/esm/auth/index.d.ts.map +1 -1
- package/dist/esm/auth/index.js +87 -23
- package/dist/esm/auth/index.js.map +1 -1
- package/package.json +2 -2
@@ -22,7 +22,7 @@ class DraftOrder {
|
|
22
22
|
* To retrieve a draft order by its ID:
|
23
23
|
*
|
24
24
|
* ```ts
|
25
|
-
* sdk.admin.draftOrder.retrieve("
|
25
|
+
* sdk.admin.draftOrder.retrieve("order_123")
|
26
26
|
* .then(({ draft_order }) => {
|
27
27
|
* console.log(draft_order)
|
28
28
|
* })
|
@@ -31,7 +31,7 @@ class DraftOrder {
|
|
31
31
|
* To specify the fields and relations to retrieve:
|
32
32
|
*
|
33
33
|
* ```ts
|
34
|
-
* sdk.admin.draftOrder.retrieve("
|
34
|
+
* sdk.admin.draftOrder.retrieve("order_123", {
|
35
35
|
* fields: "id,*items"
|
36
36
|
* })
|
37
37
|
* .then(({ draft_order }) => {
|
@@ -120,7 +120,7 @@ class DraftOrder {
|
|
120
120
|
* },
|
121
121
|
* ],
|
122
122
|
* region_id: "region_123",
|
123
|
-
* sales_channel_id: "
|
123
|
+
* sales_channel_id: "sc_123",
|
124
124
|
* })
|
125
125
|
* .then(({ draft_order }) => {
|
126
126
|
* console.log(draft_order)
|
@@ -148,7 +148,7 @@ class DraftOrder {
|
|
148
148
|
* To update a draft order:
|
149
149
|
*
|
150
150
|
* ```ts
|
151
|
-
* sdk.admin.draftOrder.update("
|
151
|
+
* sdk.admin.draftOrder.update("order_123", {
|
152
152
|
* email: "test@test.com",
|
153
153
|
* })
|
154
154
|
* .then(({ draft_order }) => {
|
@@ -164,6 +164,371 @@ class DraftOrder {
|
|
164
164
|
headers,
|
165
165
|
});
|
166
166
|
}
|
167
|
+
/**
|
168
|
+
* This method converts a draft order to an order. It sends a request to the
|
169
|
+
* [Convert Draft Order to Order](https://docs.medusajs.com/api/admin#draft-orders_postdraftordersidconvert-to-order) API route.
|
170
|
+
*
|
171
|
+
* @param id - The draft order's ID.
|
172
|
+
* @param query - Configure the fields to retrieve in the order.
|
173
|
+
* @param headers - Headers to pass in the request.
|
174
|
+
*
|
175
|
+
* @example
|
176
|
+
* To convert a draft order to an order:
|
177
|
+
*
|
178
|
+
* ```ts
|
179
|
+
* sdk.admin.draftOrder.convertToOrder("order_123")
|
180
|
+
* .then(({ order }) => {
|
181
|
+
* console.log(order)
|
182
|
+
* })
|
183
|
+
*/
|
184
|
+
async convertToOrder(id, query, headers) {
|
185
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/convert-to-order`, {
|
186
|
+
method: "POST",
|
187
|
+
query,
|
188
|
+
headers,
|
189
|
+
});
|
190
|
+
}
|
191
|
+
/**
|
192
|
+
* This method adds items to a draft order. It sends a request to the
|
193
|
+
* [Add Draft Order Items](https://docs.medusajs.com/api/admin#draft-orders_postordereditsiditems) API route.
|
194
|
+
*
|
195
|
+
* @param id - The draft order's ID.
|
196
|
+
* @param body - The data to add the items to the draft order.
|
197
|
+
* @param headers - Headers to pass in the request.
|
198
|
+
*
|
199
|
+
* @example
|
200
|
+
* To add items to a draft order:
|
201
|
+
*
|
202
|
+
* ```ts
|
203
|
+
* sdk.admin.draftOrder.addItems("order_123", {
|
204
|
+
* items: [
|
205
|
+
* {
|
206
|
+
* variant_id: "variant_123",
|
207
|
+
* quantity: 1,
|
208
|
+
* },
|
209
|
+
* ],
|
210
|
+
* })
|
211
|
+
* .then(({ draft_order_preview }) => {
|
212
|
+
* console.log(draft_order_preview)
|
213
|
+
* })
|
214
|
+
* ```
|
215
|
+
*/
|
216
|
+
async addItems(id, body, headers) {
|
217
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/items`, {
|
218
|
+
method: "POST",
|
219
|
+
body,
|
220
|
+
headers,
|
221
|
+
});
|
222
|
+
}
|
223
|
+
/**
|
224
|
+
* This method updates an item that is part of an action in a draft order. It sends a request to the
|
225
|
+
* [Update Draft Order Item](https://docs.medusajs.com/api/admin#draft-orders_postordereditsiditemsaction_id) API route.
|
226
|
+
*
|
227
|
+
* @param id - The draft order's ID.
|
228
|
+
* @param actionId - The action ID.
|
229
|
+
* @param body - The data to update the item.
|
230
|
+
* @param headers - Headers to pass in the request.
|
231
|
+
*
|
232
|
+
* @example
|
233
|
+
* To update an item that is part of an action in a draft order:
|
234
|
+
*
|
235
|
+
* ```ts
|
236
|
+
* sdk.admin.draftOrder.updateActionItem("order_123", "action_123", {
|
237
|
+
* quantity: 2,
|
238
|
+
* })
|
239
|
+
* .then(({ draft_order_preview }) => {
|
240
|
+
* console.log(draft_order_preview)
|
241
|
+
* })
|
242
|
+
* ```
|
243
|
+
*/
|
244
|
+
async updateActionItem(id, actionId, body, headers) {
|
245
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/items/${actionId}`, {
|
246
|
+
method: "POST",
|
247
|
+
body,
|
248
|
+
headers,
|
249
|
+
});
|
250
|
+
}
|
251
|
+
/**
|
252
|
+
* This method removes an item that is part of an action in a draft order. It sends a request to the
|
253
|
+
* [Remove Draft Order Item](https://docs.medusajs.com/api/admin#draft-orders_deleteordereditsiditemsaction_id) API route.
|
254
|
+
*
|
255
|
+
* @param id - The draft order's ID.
|
256
|
+
* @param actionId - The action ID.
|
257
|
+
* @param headers - Headers to pass in the request.
|
258
|
+
*
|
259
|
+
* @example
|
260
|
+
* To remove an item that is part of an action in a draft order:
|
261
|
+
*
|
262
|
+
* ```ts
|
263
|
+
* sdk.admin.draftOrder.removeActionItem("order_123", "action_123")
|
264
|
+
* .then(({ draft_order_preview }) => {
|
265
|
+
* console.log(draft_order_preview)
|
266
|
+
* })
|
267
|
+
* ```
|
268
|
+
*/
|
269
|
+
async removeActionItem(id, actionId, headers) {
|
270
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/items/${actionId}`, {
|
271
|
+
method: "DELETE",
|
272
|
+
headers,
|
273
|
+
});
|
274
|
+
}
|
275
|
+
/**
|
276
|
+
* This method updates an item in a draft order. It sends a request to the
|
277
|
+
* [Update Draft Order Item](https://docs.medusajs.com/api/admin#draft-orders_postordereditsiditemsitem_id) API route.
|
278
|
+
*
|
279
|
+
* @param id - The draft order's ID.
|
280
|
+
* @param itemId - The item ID.
|
281
|
+
* @param body - The data to update the item.
|
282
|
+
* @param headers - Headers to pass in the request.
|
283
|
+
*
|
284
|
+
* @example
|
285
|
+
* To update an item in a draft order:
|
286
|
+
*
|
287
|
+
* ```ts
|
288
|
+
* sdk.admin.draftOrder.updateItem("order_123", "item_123", {
|
289
|
+
* quantity: 2,
|
290
|
+
* })
|
291
|
+
* .then(({ draft_order_preview }) => {
|
292
|
+
* console.log(draft_order_preview)
|
293
|
+
* })
|
294
|
+
* ```
|
295
|
+
*/
|
296
|
+
async updateItem(id, itemId, body, headers) {
|
297
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/items/item/${itemId}`, {
|
298
|
+
method: "POST",
|
299
|
+
body,
|
300
|
+
headers,
|
301
|
+
});
|
302
|
+
}
|
303
|
+
/**
|
304
|
+
* This method adds promotions to a draft order. It sends a request to the
|
305
|
+
* [Add Draft Order Promotions](https://docs.medusajs.com/api/admin#draft-orders_postordereditsidpromotions) API route.
|
306
|
+
*
|
307
|
+
* @param id - The draft order's ID.
|
308
|
+
* @param body - The data to add the promotions to the draft order.
|
309
|
+
* @param headers - Headers to pass in the request.
|
310
|
+
*
|
311
|
+
* @example
|
312
|
+
* To add promotions to a draft order:
|
313
|
+
*
|
314
|
+
* ```ts
|
315
|
+
* sdk.admin.draftOrder.addPromotions("order_123", {
|
316
|
+
* promo_codes: ["PROMO_CODE_1", "PROMO_CODE_2"],
|
317
|
+
* })
|
318
|
+
* .then(({ draft_order_preview }) => {
|
319
|
+
* console.log(draft_order_preview)
|
320
|
+
* })
|
321
|
+
* ```
|
322
|
+
*/
|
323
|
+
async addPromotions(id, body, headers) {
|
324
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/promotions`, {
|
325
|
+
method: "POST",
|
326
|
+
body,
|
327
|
+
headers,
|
328
|
+
});
|
329
|
+
}
|
330
|
+
/**
|
331
|
+
* This method removes promotions from a draft order. It sends a request to the
|
332
|
+
* [Remove Draft Order Promotions](https://docs.medusajs.com/api/admin#draft-orders_deleteordereditsidpromotions) API route.
|
333
|
+
*
|
334
|
+
* @param id - The draft order's ID.
|
335
|
+
* @param body - The data to remove the promotions from the draft order.
|
336
|
+
* @param headers - Headers to pass in the request.
|
337
|
+
*
|
338
|
+
* @example
|
339
|
+
* To remove promotions from a draft order:
|
340
|
+
*
|
341
|
+
* ```ts
|
342
|
+
* sdk.admin.draftOrder.removePromotions("order_123", {
|
343
|
+
* promo_codes: ["PROMO_CODE_1", "PROMO_CODE_2"],
|
344
|
+
* })
|
345
|
+
* ```
|
346
|
+
*/
|
347
|
+
async removePromotions(id, body, headers) {
|
348
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/promotions`, {
|
349
|
+
method: "DELETE",
|
350
|
+
body,
|
351
|
+
headers,
|
352
|
+
});
|
353
|
+
}
|
354
|
+
/**
|
355
|
+
* This method adds a shipping method to a draft order. It sends a request to the
|
356
|
+
* [Add Draft Order Shipping Method](https://docs.medusajs.com/api/admin#draft-orders_postordereditsidshipping-methods) API route.
|
357
|
+
*
|
358
|
+
* @param id - The draft order's ID.
|
359
|
+
* @param body - The data to add the shipping method to the draft order.
|
360
|
+
* @param headers - Headers to pass in the request.
|
361
|
+
*
|
362
|
+
* @example
|
363
|
+
* To add a shipping method to a draft order:
|
364
|
+
*
|
365
|
+
* ```ts
|
366
|
+
* sdk.admin.draftOrder.addShippingMethod("order_123", {
|
367
|
+
* shipping_option_id: "shipping_option_123",
|
368
|
+
* })
|
369
|
+
* .then(({ draft_order_preview }) => {
|
370
|
+
* console.log(draft_order_preview)
|
371
|
+
* })
|
372
|
+
* ```
|
373
|
+
*/
|
374
|
+
async addShippingMethod(id, body, headers) {
|
375
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/shipping-methods`, {
|
376
|
+
method: "POST",
|
377
|
+
body,
|
378
|
+
headers,
|
379
|
+
});
|
380
|
+
}
|
381
|
+
/**
|
382
|
+
* This method updates a shipping method in a draft order. It sends a request to the
|
383
|
+
* [Update Draft Order Shipping Method](https://docs.medusajs.com/api/admin#draft-orders_postordereditsidshipping-methodsaction_id) API route.
|
384
|
+
*
|
385
|
+
* @param id - The draft order's ID.
|
386
|
+
* @param actionId - The action ID.
|
387
|
+
* @param body - The data to update the shipping method.
|
388
|
+
* @param headers - Headers to pass in the request.
|
389
|
+
*
|
390
|
+
* @example
|
391
|
+
* To update a shipping method in a draft order:
|
392
|
+
*
|
393
|
+
* ```ts
|
394
|
+
* sdk.admin.draftOrder.updateShippingMethod("order_123", "action_123", {
|
395
|
+
* shipping_option_id: "shipping_option_123",
|
396
|
+
* })
|
397
|
+
* .then(({ draft_order_preview }) => {
|
398
|
+
* console.log(draft_order_preview)
|
399
|
+
* })
|
400
|
+
* ```
|
401
|
+
*/
|
402
|
+
async updateActionShippingMethod(id, actionId, body, headers) {
|
403
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/shipping-methods/${actionId}`, {
|
404
|
+
method: "POST",
|
405
|
+
body,
|
406
|
+
headers,
|
407
|
+
});
|
408
|
+
}
|
409
|
+
/**
|
410
|
+
* This method removes a shipping method from a draft order. It sends a request to the
|
411
|
+
* [Remove Draft Order Shipping Method](https://docs.medusajs.com/api/admin#draft-orders_deleteordereditsidshipping-methodsaction_id) API route.
|
412
|
+
*
|
413
|
+
* @param id - The draft order's ID.
|
414
|
+
* @param actionId - The action ID.
|
415
|
+
* @param headers - Headers to pass in the request.
|
416
|
+
*
|
417
|
+
* @example
|
418
|
+
* To remove a shipping method from a draft order:
|
419
|
+
*
|
420
|
+
* ```ts
|
421
|
+
* sdk.admin.draftOrder.removeShippingMethod("order_123", "action_123")
|
422
|
+
* .then(({ draft_order_preview }) => {
|
423
|
+
* console.log(draft_order_preview)
|
424
|
+
* })
|
425
|
+
* ```
|
426
|
+
*/
|
427
|
+
async removeActionShippingMethod(id, actionId, headers) {
|
428
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/shipping-methods/${actionId}`, {
|
429
|
+
method: "DELETE",
|
430
|
+
headers,
|
431
|
+
});
|
432
|
+
}
|
433
|
+
async updateShippingMethod(id, methodId, body, headers) {
|
434
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/shipping-methods/method/${methodId}`, {
|
435
|
+
method: "POST",
|
436
|
+
body,
|
437
|
+
headers,
|
438
|
+
});
|
439
|
+
}
|
440
|
+
/**
|
441
|
+
* This method begins an edit to a draft order. It sends a request to the
|
442
|
+
* [Begin Draft Order Edit](https://docs.medusajs.com/api/admin#draft-orders_postordereditsid) API route.
|
443
|
+
*
|
444
|
+
* @param id - The draft order's ID.
|
445
|
+
* @param headers - Headers to pass in the request.
|
446
|
+
*
|
447
|
+
* @example
|
448
|
+
* To begin an edit to a draft order:
|
449
|
+
*
|
450
|
+
* ```ts
|
451
|
+
* sdk.admin.draftOrder.beginEdit("order_123")
|
452
|
+
* .then(({ draft_order_preview }) => {
|
453
|
+
* console.log(draft_order_preview)
|
454
|
+
* })
|
455
|
+
* ```
|
456
|
+
*/
|
457
|
+
async beginEdit(id, headers) {
|
458
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit`, {
|
459
|
+
method: "POST",
|
460
|
+
headers,
|
461
|
+
});
|
462
|
+
}
|
463
|
+
/**
|
464
|
+
* This method cancels an edit to a draft order. It sends a request to the
|
465
|
+
* [Cancel Draft Order Edit](https://docs.medusajs.com/api/admin#draft-orders_deleteordereditsid) API route.
|
466
|
+
*
|
467
|
+
* @param id - The draft order's ID.
|
468
|
+
* @param headers - Headers to pass in the request.
|
469
|
+
*
|
470
|
+
* @example
|
471
|
+
* To cancel an edit to a draft order:
|
472
|
+
*
|
473
|
+
* ```ts
|
474
|
+
* sdk.admin.draftOrder.cancelEdit("order_123")
|
475
|
+
* .then(({ id, object, deleted }) => {
|
476
|
+
* console.log(id, object, deleted)
|
477
|
+
* })
|
478
|
+
* ```
|
479
|
+
*/
|
480
|
+
async cancelEdit(id, headers) {
|
481
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit`, {
|
482
|
+
method: "DELETE",
|
483
|
+
headers,
|
484
|
+
});
|
485
|
+
}
|
486
|
+
/**
|
487
|
+
* This method requests an edit to a draft order. It sends a request to the
|
488
|
+
* [Request Draft Order Edit](https://docs.medusajs.com/api/admin#draft-orders_postordereditsidrequest) API route.
|
489
|
+
*
|
490
|
+
* @param id - The draft order's ID.
|
491
|
+
* @param headers - Headers to pass in the request.
|
492
|
+
*
|
493
|
+
* @example
|
494
|
+
* To request an edit to a draft order:
|
495
|
+
*
|
496
|
+
* ```ts
|
497
|
+
* sdk.admin.draftOrder.requestEdit("order_123")
|
498
|
+
* .then(({ draft_order_preview }) => {
|
499
|
+
* console.log(draft_order_preview)
|
500
|
+
* })
|
501
|
+
* ```
|
502
|
+
*/
|
503
|
+
async requestEdit(id, headers) {
|
504
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/request`, {
|
505
|
+
method: "POST",
|
506
|
+
headers,
|
507
|
+
});
|
508
|
+
}
|
509
|
+
/**
|
510
|
+
* This method confirms an edit to a draft order. It sends a request to the
|
511
|
+
* [Confirm Draft Order Edit](https://docs.medusajs.com/api/admin#draft-orders_postordereditsidconfirm) API route.
|
512
|
+
*
|
513
|
+
* @param id - The draft order's ID.
|
514
|
+
* @param headers - Headers to pass in the request.
|
515
|
+
*
|
516
|
+
* @example
|
517
|
+
* To confirm an edit to a draft order:
|
518
|
+
*
|
519
|
+
* ```ts
|
520
|
+
* sdk.admin.draftOrder.confirmEdit("order_123")
|
521
|
+
* .then(({ draft_order_preview }) => {
|
522
|
+
* console.log(draft_order_preview)
|
523
|
+
* })
|
524
|
+
* ```
|
525
|
+
*/
|
526
|
+
async confirmEdit(id, headers) {
|
527
|
+
return await this.client.fetch(`/admin/draft-orders/${id}/edit/confirm`, {
|
528
|
+
method: "POST",
|
529
|
+
headers,
|
530
|
+
});
|
531
|
+
}
|
167
532
|
}
|
168
533
|
exports.DraftOrder = DraftOrder;
|
169
534
|
//# sourceMappingURL=draft-order.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"draft-order.js","sourceRoot":"","sources":["../../src/admin/draft-order.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;IAKrB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAuC,EACvC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,KAAK,CAAC,IAAI,CACR,WAAiD,EACjD,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;YACE,KAAK,EAAE,WAAW;YAClB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,MAAM,CACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;YACE,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAqC,EACrC,KAAuC,EACvC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;YACE,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;
|
1
|
+
{"version":3,"file":"draft-order.js","sourceRoot":"","sources":["../../src/admin/draft-order.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;IAKrB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAuC,EACvC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;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AE,OAAuB;QACjD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,OAAO,EAChC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,UAAU,CAAC,EAAU,EAAE,OAAuB;QAClD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,uBAAuB,EAAE,OAAO,EAAE;YAClC,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,WAAW,CAAC,EAAU,EAAE,OAAuB;QACnD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,eAAe,EACxC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,WAAW,CAAC,EAAU,EAAE,OAAuB;QACnD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,eAAe,EACxC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;AA9pBD,gCA8pBC"}
|
package/dist/admin/plugin.d.ts
CHANGED
@@ -2,8 +2,26 @@ import { HttpTypes } from "@medusajs/types";
|
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Plugin {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
private client;
|
9
|
+
/**
|
10
|
+
* @ignore
|
11
|
+
*/
|
6
12
|
constructor(client: Client);
|
13
|
+
/**
|
14
|
+
* This method retrieves the list of plugins installed in a Medusa application.
|
15
|
+
*
|
16
|
+
* @param headers - Headers to pass in the request.
|
17
|
+
* @returns The list of plugins.
|
18
|
+
*
|
19
|
+
* @example
|
20
|
+
* sdk.admin.plugin.list()
|
21
|
+
* .then(({ plugins }) => {
|
22
|
+
* console.log(plugins)
|
23
|
+
* })
|
24
|
+
*/
|
7
25
|
list(headers?: ClientHeaders): Promise<HttpTypes.AdminPluginsListResponse>;
|
8
26
|
}
|
9
27
|
//# sourceMappingURL=plugin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/admin/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAQ;
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/admin/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAQ;IAEtB;;OAEG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;OAWG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,aAAa;CASnC"}
|
package/dist/admin/plugin.js
CHANGED
@@ -2,9 +2,24 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Plugin = void 0;
|
4
4
|
class Plugin {
|
5
|
+
/**
|
6
|
+
* @ignore
|
7
|
+
*/
|
5
8
|
constructor(client) {
|
6
9
|
this.client = client;
|
7
10
|
}
|
11
|
+
/**
|
12
|
+
* This method retrieves the list of plugins installed in a Medusa application.
|
13
|
+
*
|
14
|
+
* @param headers - Headers to pass in the request.
|
15
|
+
* @returns The list of plugins.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* sdk.admin.plugin.list()
|
19
|
+
* .then(({ plugins }) => {
|
20
|
+
* console.log(plugins)
|
21
|
+
* })
|
22
|
+
*/
|
8
23
|
async list(headers) {
|
9
24
|
return await this.client.fetch(`/admin/plugins`, {
|
10
25
|
headers,
|
package/dist/admin/plugin.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/admin/plugin.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/admin/plugin.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IAMjB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI,CAAC,OAAuB;QAChC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;YACE,OAAO;YACP,KAAK,EAAE,EAAE;SACV,CACF,CAAA;IACH,CAAC;CACF;AAlCD,wBAkCC"}
|
package/dist/auth/index.d.ts
CHANGED
@@ -9,6 +9,12 @@ export declare class Auth {
|
|
9
9
|
* This method is used to retrieve a registration JWT token for a user, customer, or custom actor type. It sends a request to the
|
10
10
|
* [Retrieve Registration Token API route](https://docs.medusajs.com/api/store#auth_postactor_typeauth_provider_register).
|
11
11
|
*
|
12
|
+
* Then, it stores the returned token and passes it in the header of subsequent requests. So, you can call the
|
13
|
+
* [store.customer.create](https://docs.medusajs.com/resources/references/js-sdk/store/customer#create) method,
|
14
|
+
* for example, after calling this method.
|
15
|
+
*
|
16
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
17
|
+
*
|
12
18
|
* @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
|
13
19
|
* @param method - The authentication provider to use. For example, `emailpass` or `google`.
|
14
20
|
* @param payload - The data to pass in the request's body for authentication. When using the `emailpass` provider,
|
@@ -18,15 +24,19 @@ export declare class Auth {
|
|
18
24
|
* @tags auth
|
19
25
|
*
|
20
26
|
* @example
|
21
|
-
* sdk.auth.register(
|
27
|
+
* await sdk.auth.register(
|
22
28
|
* "customer",
|
23
29
|
* "emailpass",
|
24
30
|
* {
|
25
31
|
* email: "customer@gmail.com",
|
26
32
|
* password: "supersecret"
|
27
33
|
* }
|
28
|
-
* )
|
29
|
-
*
|
34
|
+
* )
|
35
|
+
*
|
36
|
+
* // all subsequent requests will use the token in the header
|
37
|
+
* const { customer } = await sdk.store.customer.create({
|
38
|
+
* email: "customer@gmail.com",
|
39
|
+
* password: "supersecret"
|
30
40
|
* })
|
31
41
|
*/
|
32
42
|
register: (actor: string, method: string, payload: HttpTypes.AdminSignUpWithEmailPassword) => Promise<string>;
|
@@ -34,11 +44,32 @@ export declare class Auth {
|
|
34
44
|
* This method retrieves the JWT authenticated token for an admin user, customer, or custom
|
35
45
|
* actor type. It sends a request to the [Authenticate API Route](https://docs.medusajs.com/api/admin#auth_postactor_typeauth_provider).
|
36
46
|
*
|
47
|
+
* ### Third-Party Authentication
|
48
|
+
*
|
49
|
+
* If the API route returns a `location` property, it means that the authentication requires additional steps,
|
50
|
+
* typically in a third-party service. The `location` property is returned so that you
|
51
|
+
* can redirect the user to the appropriate page.
|
52
|
+
*
|
53
|
+
* :::note
|
54
|
+
*
|
55
|
+
* For an example of implementing third-party authentication, refer to the
|
56
|
+
* [Third-Party Login in Storefront](https://docs.medusajs.com/resources/storefront-development/customers/third-party-login) guide.
|
57
|
+
*
|
58
|
+
* :::
|
59
|
+
*
|
60
|
+
* ### Session Authentication
|
61
|
+
*
|
37
62
|
* If the `auth.type` of the SDK is set to `session`, this method will also send a request to the
|
38
63
|
* [Set Authentication Session API route](https://docs.medusajs.com/api/admin#auth_postsession).
|
39
64
|
*
|
40
|
-
*
|
41
|
-
*
|
65
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
66
|
+
*
|
67
|
+
* ### Automatic Authentication
|
68
|
+
*
|
69
|
+
* If the authentication was successful, subsequent requests using the SDK will automatically have the necessary authentication headers / session
|
70
|
+
* set, based on your JS SDK authentication configurations.
|
71
|
+
*
|
72
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
42
73
|
*
|
43
74
|
* @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
|
44
75
|
* @param method - The authentication provider to use. For example, `emailpass` or `google`.
|
@@ -49,16 +80,25 @@ export declare class Auth {
|
|
49
80
|
* @tags auth
|
50
81
|
*
|
51
82
|
* @example
|
52
|
-
* sdk.auth.login(
|
83
|
+
* const result = await sdk.auth.login(
|
53
84
|
* "customer",
|
54
85
|
* "emailpass",
|
55
86
|
* {
|
56
87
|
* email: "customer@gmail.com",
|
57
88
|
* password: "supersecret"
|
58
89
|
* }
|
59
|
-
* )
|
60
|
-
*
|
61
|
-
*
|
90
|
+
* )
|
91
|
+
*
|
92
|
+
* if (typeof result !== "string") {
|
93
|
+
* alert("Authentication requires additional steps")
|
94
|
+
* // replace with the redirect logic of your application
|
95
|
+
* window.location.href = result.location
|
96
|
+
* return
|
97
|
+
* }
|
98
|
+
*
|
99
|
+
* // customer is now authenticated
|
100
|
+
* // all subsequent requests will use the token in the header
|
101
|
+
* const { customer } = await sdk.store.customer.retrieve()
|
62
102
|
*/
|
63
103
|
login: (actor: string, method: string, payload: HttpTypes.AdminSignInWithEmailPassword | Record<string, unknown>) => Promise<string | {
|
64
104
|
location: string;
|
@@ -67,6 +107,12 @@ export declare class Auth {
|
|
67
107
|
* This method is used to validate an Oauth callback from a third-party service, such as Google, for an admin user, customer, or custom actor types.
|
68
108
|
* It sends a request to the [Validate Authentication Callback](https://docs.medusajs.com/api/admin#auth_postactor_typeauth_providercallback).
|
69
109
|
*
|
110
|
+
* The method stores the returned token and passes it in the header of subsequent requests. So, you can call the
|
111
|
+
* [store.customer.create](https://docs.medusajs.com/resources/references/js-sdk/store/customer#create) or {@link refresh} methods,
|
112
|
+
* for example, after calling this method.
|
113
|
+
*
|
114
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
115
|
+
*
|
70
116
|
* @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
|
71
117
|
* @param method - The authentication provider to use. For example, `google`.
|
72
118
|
* @param query - The query parameters from the Oauth callback, which should be passed to the API route. This includes query parameters like
|
@@ -76,17 +122,20 @@ export declare class Auth {
|
|
76
122
|
* @tags auth
|
77
123
|
*
|
78
124
|
* @example
|
79
|
-
* sdk.auth.callback(
|
125
|
+
* await sdk.auth.callback(
|
80
126
|
* "customer",
|
81
127
|
* "google",
|
82
128
|
* {
|
83
129
|
* code: "123",
|
84
130
|
* state: "456"
|
85
131
|
* }
|
86
|
-
* )
|
87
|
-
* console.log(token)
|
88
|
-
* })
|
132
|
+
* )
|
89
133
|
*
|
134
|
+
* // all subsequent requests will use the token in the header
|
135
|
+
* const { customer } = await sdk.store.customer.create({
|
136
|
+
* email: "customer@gmail.com",
|
137
|
+
* password: "supersecret"
|
138
|
+
* })
|
90
139
|
*
|
91
140
|
* @privateRemarks
|
92
141
|
* The callback expects all query parameters from the Oauth callback to be passed to
|
@@ -97,28 +146,43 @@ export declare class Auth {
|
|
97
146
|
* This method refreshes a JWT authentication token, which is useful after validating the Oauth callback
|
98
147
|
* with {@link callback}. It sends a request to the [Refresh Authentication Token API route](https://docs.medusajs.com/api/admin#auth_postadminauthtokenrefresh).
|
99
148
|
*
|
149
|
+
* The method stores the returned token and passes it in the header of subsequent requests. So, you can call other
|
150
|
+
* methods that require authentication after calling this method.
|
151
|
+
*
|
152
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
153
|
+
*
|
154
|
+
* For an example of implementing third-party authentication, refer to the
|
155
|
+
* [Third-Party Login in Storefront](https://docs.medusajs.com/resources/storefront-development/customers/third-party-login) guide.
|
156
|
+
*
|
157
|
+
*
|
100
158
|
* @returns The refreshed JWT authentication token.
|
101
159
|
*
|
102
160
|
* @tags auth
|
103
161
|
*
|
104
162
|
* @example
|
105
|
-
* sdk.auth.refresh()
|
106
|
-
*
|
107
|
-
*
|
108
|
-
* })
|
163
|
+
* const token = await sdk.auth.refresh()
|
164
|
+
*
|
165
|
+
* // all subsequent requests will use the token in the header
|
166
|
+
* const { customer } = await sdk.store.customer.retrieve()
|
109
167
|
*/
|
110
168
|
refresh: () => Promise<string>;
|
111
169
|
/**
|
112
|
-
* This method
|
113
|
-
*
|
170
|
+
* This method logs out the currently authenticated user based on your JS SDK authentication configurations.
|
171
|
+
*
|
172
|
+
* If the `auth.type` of the SDK is set to `session`, this method will also send a request to the
|
173
|
+
* [Delete Authentication Session API route](https://docs.medusajs.com/api/admin#auth_deletesession).
|
174
|
+
*
|
175
|
+
* The method also clears any stored tokens or sessions, based on your JS SDK authentication configurations.
|
176
|
+
*
|
177
|
+
* Learn more in the [JS SDK Authentication](https://docs.medusajs.com/resources/js-sdk/auth/overview) guide.
|
114
178
|
*
|
115
179
|
* @tags auth
|
116
180
|
*
|
117
181
|
* @example
|
118
|
-
* sdk.auth.logout()
|
119
|
-
*
|
120
|
-
*
|
121
|
-
*
|
182
|
+
* await sdk.auth.logout()
|
183
|
+
*
|
184
|
+
* // user is now logged out
|
185
|
+
* // you can't send any requests that require authentication
|
122
186
|
*/
|
123
187
|
logout: () => Promise<void>;
|
124
188
|
/**
|
package/dist/auth/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAA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