@thorprovider/medusa-extended 1.12.0 → 1.13.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.
- package/dist/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/dropshipper.ts +34 -2
package/dist/index.mjs
CHANGED
|
@@ -637,6 +637,29 @@ var DropshipperClient = class {
|
|
|
637
637
|
`/admin/thor/dropshipper/notifications?${qs}`
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* Get the authenticated dropshipper's notification preferences.
|
|
642
|
+
*
|
|
643
|
+
* `GET /admin/thor/dropshipper/notifications/preferences`
|
|
644
|
+
*/
|
|
645
|
+
async getNotificationPreferences() {
|
|
646
|
+
return this.request(
|
|
647
|
+
"GET",
|
|
648
|
+
"/admin/thor/dropshipper/notifications/preferences"
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Update the authenticated dropshipper's notification preferences.
|
|
653
|
+
*
|
|
654
|
+
* `PATCH /admin/thor/dropshipper/notifications/preferences`
|
|
655
|
+
*/
|
|
656
|
+
async updateNotificationPreferences(body) {
|
|
657
|
+
return this.request(
|
|
658
|
+
"PATCH",
|
|
659
|
+
"/admin/thor/dropshipper/notifications/preferences",
|
|
660
|
+
body
|
|
661
|
+
);
|
|
662
|
+
}
|
|
640
663
|
// -------------------------------------------------------------------------
|
|
641
664
|
// Onboarding (Solo X)
|
|
642
665
|
// -------------------------------------------------------------------------
|