@myparcel/sdk
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -0,10 +1,7 @@ | ||
import { type SystemCountryCodesPerCountry, type GetSystemCountryCodesParams } from './SystemCountryCodes.types'; | ||
import { AbstractPrivateEndpoint } from '../../../model/endpoint/AbstractPrivateEndpoint'; | ||
import { type CarrierId } from '@myparcel/constants'; | ||
import { type CreateDefinition } from '../../../model/endpoint/AbstractEndpoint.types'; | ||
import { type SystemCountryCodesPerCountry } from './SystemCountryCodes.types'; | ||
type GetSystemCountryCodesDefinition = CreateDefinition<{ | ||
name: typeof GetSystemCountryCodes.name; | ||
parameters: { | ||
carrier_id?: CarrierId; | ||
}; | ||
parameters: GetSystemCountryCodesParams; | ||
response: SystemCountryCodesPerCountry; | ||
@@ -11,0 +8,0 @@ }>; |
@@ -0,1 +1,2 @@ | ||
import { type CarrierId } from '@myparcel/constants'; | ||
export interface SystemCountryCode { | ||
@@ -6,1 +7,5 @@ label: string; | ||
export type SystemCountryCodesPerCountry = Record<string, SystemCountryCode>[]; | ||
export type GetSystemCountryCodesParams = { | ||
carrier_id?: CarrierId; | ||
unfiltered?: boolean; | ||
}; |
{ | ||
"name": "@myparcel/sdk", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "JavaScript SDK to connect to the MyParcel API via Node.js or browser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
89882
2282