@thorprovider/medusa-extended 1.7.7 → 1.7.9
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 +3 -12
- package/dist/index.d.ts +3 -12
- package/dist/index.js +6 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/dropshipper.test.ts +31 -2
- package/src/dropshipper.ts +8 -15
package/src/dropshipper.ts
CHANGED
|
@@ -27,6 +27,8 @@ import type {
|
|
|
27
27
|
BatchVariantCostsResponse,
|
|
28
28
|
DeleteVariantCostResponse,
|
|
29
29
|
// Products & Prices
|
|
30
|
+
DropshipperCostTier,
|
|
31
|
+
DropshipperSaleTier,
|
|
30
32
|
GetDropshipperProductsOptions,
|
|
31
33
|
GetDropshipperProductsResponse,
|
|
32
34
|
UpdateDropshipperProductStatusBody,
|
|
@@ -1630,42 +1632,33 @@ export class DropshipperClient {
|
|
|
1630
1632
|
/**
|
|
1631
1633
|
* List all geo-reference countries.
|
|
1632
1634
|
*
|
|
1633
|
-
*
|
|
1634
|
-
* and admin JWTs.
|
|
1635
|
-
*
|
|
1636
|
-
* `GET /store/geo-reference`
|
|
1635
|
+
* `GET /admin/geo-reference`
|
|
1637
1636
|
*/
|
|
1638
1637
|
async getGeoCountries(): Promise<GetGeoCountriesResponse> {
|
|
1639
|
-
return this.request<GetGeoCountriesResponse>('GET', '/
|
|
1638
|
+
return this.request<GetGeoCountriesResponse>('GET', '/admin/geo-reference');
|
|
1640
1639
|
}
|
|
1641
1640
|
|
|
1642
1641
|
/**
|
|
1643
1642
|
* List provinces/states for a country.
|
|
1644
1643
|
*
|
|
1645
|
-
*
|
|
1646
|
-
* and admin JWTs.
|
|
1647
|
-
*
|
|
1648
|
-
* `GET /store/geo-reference/countries/:iso_2/provinces`
|
|
1644
|
+
* `GET /admin/geo-reference/countries/:iso_2/provinces`
|
|
1649
1645
|
*/
|
|
1650
1646
|
async getGeoProvinces(iso2: string): Promise<GetGeoProvincesResponse> {
|
|
1651
1647
|
return this.request<GetGeoProvincesResponse>(
|
|
1652
1648
|
'GET',
|
|
1653
|
-
`/
|
|
1649
|
+
`/admin/geo-reference/countries/${iso2}/provinces`,
|
|
1654
1650
|
);
|
|
1655
1651
|
}
|
|
1656
1652
|
|
|
1657
1653
|
/**
|
|
1658
1654
|
* List cities for a province/state.
|
|
1659
1655
|
*
|
|
1660
|
-
*
|
|
1661
|
-
* and admin JWTs.
|
|
1662
|
-
*
|
|
1663
|
-
* `GET /store/geo-reference/provinces/:code/cities`
|
|
1656
|
+
* `GET /admin/geo-reference/provinces/:code/cities`
|
|
1664
1657
|
*/
|
|
1665
1658
|
async getGeoCities(code: string): Promise<GetGeoCitiesResponse> {
|
|
1666
1659
|
return this.request<GetGeoCitiesResponse>(
|
|
1667
1660
|
'GET',
|
|
1668
|
-
`/
|
|
1661
|
+
`/admin/geo-reference/provinces/${code}/cities`,
|
|
1669
1662
|
);
|
|
1670
1663
|
}
|
|
1671
1664
|
}
|