@shipengine/js-api
Advanced tools
| import { AxiosInstance } from "axios"; | ||
| import { Currency, Money } from "../payments"; | ||
| import { SandboxableQuery } from "../resources"; | ||
| import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, CarrierTerm, CarrierZone, PackageRatingType } from "./types"; | ||
| import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, CarrierTerm, CarrierZone, ListCarriersQueryParams, PackageRatingType } from "./types"; | ||
| /** | ||
@@ -14,3 +14,3 @@ * # Carriers API module - /v1/carriers | ||
| */ | ||
| list: (props?: SandboxableQuery) => Promise<import("axios").AxiosResponse<{ | ||
| list: (props?: SandboxableQuery<ListCarriersQueryParams>) => Promise<import("axios").AxiosResponse<{ | ||
| carriers: Carrier[]; | ||
@@ -17,0 +17,0 @@ }, any>>; |
+23
-0
@@ -144,2 +144,25 @@ import { Address } from "../addresses"; | ||
| /** | ||
| * @category Queries | ||
| */ | ||
| export interface ListCarriersQueryParams { | ||
| /** | ||
| * Include account balance information in the response. | ||
| * @default true | ||
| */ | ||
| includeBalance?: boolean; | ||
| /** | ||
| * Include extended carrier details (packages and advanced options) in the response. | ||
| * Setting to false reduces payload size by approximately 80%. | ||
| * @default true | ||
| */ | ||
| includeExtendedDetails?: boolean; | ||
| /** | ||
| * Filter carriers by wallet type. | ||
| * - `true`: Returns only wallet carriers (carriers with fundingSourceId) | ||
| * - `false`: Returns only BYOA carriers (carriers without fundingSourceId) | ||
| * - `undefined`: Returns all carriers (default behavior) | ||
| */ | ||
| isWallet?: boolean; | ||
| } | ||
| /** | ||
| * @category Responses | ||
@@ -146,0 +169,0 @@ */ |
+1
-1
| { | ||
| "name": "@shipengine/js-api", | ||
| "version": "4.33.0", | ||
| "version": "4.34.0", | ||
| "main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1623429
0.06%46006
0.06%