Skip to content

API Reference

Defined in: packages/sdk/src/errors/index.ts:30

Base API error with additional context information

try {
await client.addSingleOrder(orderData);
} catch (error) {
if (error instanceof BigshipApiError) {
console.log('Request ID:', error.requestId);
console.log('Endpoint:', error.endpoint);
console.log('Response:', error.responseBody);
}
}
new BigshipApiError(
message: string,
statusCode: number,
options?: BigshipApiErrorOptions): BigshipApiError;

Defined in: packages/sdk/src/errors/index.ts:35

string

number

BigshipApiErrorOptions = {}

BigshipApiError

BigshipError.constructor

Property Modifier Type Description Inherited from Defined in
apiResponse? readonly BigshipErrorData - BigshipError.apiResponse packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - BigshipError.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - BigshipError.code packages/sdk/src/errors/BigshipError.ts:32
endpoint? readonly string - - packages/sdk/src/errors/index.ts:32
message public string - BigshipError.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - BigshipError.name node_modules/typescript/lib/lib.es5.d.ts:1076
requestId? readonly string - - packages/sdk/src/errors/index.ts:31
responseBody? readonly unknown - - packages/sdk/src/errors/index.ts:33
stack? public string - BigshipError.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - BigshipError.statusCode packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - BigshipError.traceId packages/sdk/src/errors/BigshipError.ts:35
validationErrors? readonly Record<string, string[]> - BigshipError.validationErrors packages/sdk/src/errors/BigshipError.ts:34
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. BigshipError.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

BigshipError.isAuthError

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

BigshipError.isRateLimitError

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

BigshipError.isValidationError

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

BigshipError.captureStackTrace

static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

BigshipError.prepareStackTrace


Defined in: packages/sdk/src/errors/index.ts:147

Error thrown when authentication fails

try {
await client.addSingleOrder(orderData);
} catch (error) {
if (error instanceof BigshipAuthError) {
console.error('Authentication failed - check credentials');
}
}
new BigshipAuthError(message?: string, options?: Omit<BigshipApiErrorOptions, "code" | "apiResponse">): BigshipAuthError;

Defined in: packages/sdk/src/errors/index.ts:148

string = 'Authentication failed'

Omit<BigshipApiErrorOptions, "code" | "apiResponse"> = {}

BigshipAuthError

BigshipApiError.constructor

Property Modifier Type Description Inherited from Defined in
apiResponse? readonly BigshipErrorData - BigshipApiError.apiResponse packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - BigshipApiError.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - BigshipApiError.code packages/sdk/src/errors/BigshipError.ts:32
endpoint? readonly string - BigshipApiError.endpoint packages/sdk/src/errors/index.ts:32
message public string - BigshipApiError.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - BigshipApiError.name node_modules/typescript/lib/lib.es5.d.ts:1076
requestId? readonly string - BigshipApiError.requestId packages/sdk/src/errors/index.ts:31
responseBody? readonly unknown - BigshipApiError.responseBody packages/sdk/src/errors/index.ts:33
stack? public string - BigshipApiError.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - BigshipApiError.statusCode packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - BigshipApiError.traceId packages/sdk/src/errors/BigshipError.ts:35
validationErrors? readonly Record<string, string[]> - BigshipApiError.validationErrors packages/sdk/src/errors/BigshipError.ts:34
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. BigshipApiError.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

BigshipApiError.isAuthError

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

BigshipApiError.isRateLimitError

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

BigshipApiError.isValidationError

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

BigshipApiError.captureStackTrace

static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

BigshipApiError.prepareStackTrace


Defined in: packages/sdk/src/core/BigshipClient.ts:99

new BigshipClient(config: BigshipConfig & {
loggerAdapter?: LoggerAdapter;
}): BigshipClient;

Defined in: packages/sdk/src/core/BigshipClient.ts:107

BigshipConfig & { loggerAdapter?: LoggerAdapter; }

BigshipClient

calculateRate(payload: {
boxes: {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}[];
codAmount?: string;
destPincode: string;
invoiceValue: number;
paymentModeId: number;
riskTypeId: number;
segment_type: "domestic_b2b" | "domestic_b2c";
sourcePincode: string;
}, options?: RequestOptions): Promise<{
data: | {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:367

Calculate shipping rates without creating an order.

{ box_dead_weight: number; box_height: number; box_length: number; box_width: number; no_of_box: number; }[] = ...

string = ...

string = ...

number = ...

number = ...

number = ...

"domestic_b2b" | "domestic_b2c" = ...

string = ...

RequestOptions

Promise<{ data: | { codCharges: number; courier_partner_id: number; courierCharge: number; courierImage: string | null; courierName: string; courierType: string; emailNotificationCharge: number; greenTax: number; handlingCharge: string; lrCost: string | number; minimum_weight: string; oda: string; pickup_Charge: number; planName: string; restricted_pincode_message: string | null; riskType: string; riskTypeName: string; smsNotificationCharge: number; state_Tax: string; tat: string; toPay: number; totalCharge: number; warai_Charge: number; weight: string | number; whatsappNotificationCharge: number; zone: string; }[] | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

cancelOrder(orderId: string, options?: RequestOptions): Promise<{
data: unknown[] | null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:422

Cancel an order by its CustomGlobalOrderId.

string

The CustomGlobalOrderId of the order to cancel

RequestOptions

Promise<{ data: unknown[] | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

createOrder(payload:
| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}, options?: RequestOptions): Promise<{
data: | {
CustomGlobalOrderId: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:382

Create a new order in draft mode. Supports hyperlocal, domestic_b2b, and domestic_b2c segment types.

| { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal"; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number; }

RequestOptions

Promise<{ data: | { CustomGlobalOrderId: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

downloadDocument(
orderId: string,
documentType: "invoice" | "label" | "ewaybill" | "manifest",
options?: RequestOptions): Promise<{
data: | {
AttachmentData: string;
File_extention: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:464

Download a shipment document (invoice, label, ewaybill, or manifest).

string

The CustomGlobalOrderId of the order

"invoice" | "label" | "ewaybill" | "manifest"

The type of document to download

RequestOptions

Promise<{ data: | { AttachmentData: string; File_extention: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

getOrderDetail(orderId: string, options?: RequestOptions): Promise<{
data: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:450

Get detailed information about an order.

string

The MasterCustomOrderId of the order

RequestOptions

Promise<{ data: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

getPackageTypes(options?: RequestOptions): Promise<{
data: | {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:333

Get the list of package types for hyperlocal shipments.

RequestOptions

Promise<{ data: | { Description: string; HyperlocalPackageTypeId: number; IsEnabled: string; PackageType: string; }[] | null; message: string; status: boolean; status_code: number; }>

When API request fails

getPaymentModes(segmentType: "hyperlocal" | "domestic_b2b" | "domestic_b2c", options?: RequestOptions): Promise<{
data: | {
paymentModeId: string;
paymentModeName: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:344

Get the list of payment modes for a segment type.

"hyperlocal" | "domestic_b2b" | "domestic_b2c"

The shipment segment type: ‘hyperlocal’, ‘domestic_b2c’, or ‘domestic_b2b’

RequestOptions

Promise<{ data: | { paymentModeId: string; paymentModeName: string; }[] | null; message: string; status: boolean; status_code: number; }>

When API request fails

getProfile(options?: RequestOptions): Promise<{
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:279

Get the authenticated user’s profile information.

RequestOptions

Promise<{ data: | { api_master_client_account: { access_key: string; access_key_generated_date: string; created_date: string; is_account_enabled: string; updated_date: string; }; countryname: string; EmailID: string; firstName: string; is_outbound_service_enabled: string; IsEmailVerifed: string; lastName: string; mobileNumber: string; userWallet: { Balance: string | number; kycCurrency: string; }; } | null; message: string; status: boolean; status_code: number; }>

When API request fails

getRiskTypes(options?: RequestOptions): Promise<{
data: | {
riskName: string;
riskTypeId: number;
slug: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:354

Get the list of risk types (insurance options).

RequestOptions

Promise<{ data: | { riskName: string; riskTypeId: number; slug: string; }[] | null; message: string; status: boolean; status_code: number; }>

When API request fails

getServiceableCouriers(orderId: string, options?: RequestOptions): Promise<{
data: | {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:396

Get serviceable couriers and rate quotations for a draft order. Must be called after createOrder() and before placeOrder().

string

The CustomGlobalOrderId returned from createOrder()

RequestOptions

Promise<{ data: | { calculatedRates: ( | { base_freight: number; capacity: string; courierId: number; courierImage: string; courierName: string; currency: string; gst_amount: number; planName: string; total_freight: number; vehicle_type: string; } | { base_freight: number; charged_weight: number; codCharges: number; courierId: string; courierImage: string | null; courierName: string; courierType: string; destination: string; emailNotificationCharge: number; greenTax: string; handlingCharge: string; kycCurrency: string; lrCost: string; oda: string; pickup: string; pickup_Charge: string; planName: string; riskCharge: string; riskCharges: { chargeValue: string; isRisk: boolean; name: string; typeId: number; }[]; riskTypeName: string; smsNotificationCharge: number; state_Tax: string | number; tat: number; toPay: string; total: string; warai_Charge: number; weight_unit: string; whatsappNotificationCharge: number; zone: string; })[]; segment_type: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

getWarehouseList(params: {
filter_type?: | "warehouse_name"
| "warehouse_phone"
| "warehouse_pin"
| "warehouse_contact_person";
filter_value?: string;
page: string;
perPage: string;
segment_type: "hyperlocal" | "local";
status?: string;
}, options?: RequestOptions): Promise<WarehouseListResponse>;

Defined in: packages/sdk/src/core/BigshipClient.ts:303

Get a list of warehouses with optional filtering.

| "warehouse_name" | "warehouse_phone" | "warehouse_pin" | "warehouse_contact_person" = ...

string = ...

string = ...

string = ...

"hyperlocal" | "local" = ...

string = ...

RequestOptions

Promise<WarehouseListResponse>

When API request fails

placeOrder(payload: {
courierId: number;
invoiceType?: string;
MasterCustomOrderId: string;
riskTypeId?: string;
}, options?: RequestOptions): Promise<{
data: | {
awb_assigned: string | number | null;
reference_number: string | number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:409

Place/manifest an order with a selected courier. Must be called after getServiceableCouriers().

number = ...

string = ...

string = ...

string = ...

RequestOptions

Promise<{ data: | { awb_assigned: string | number | null; reference_number: string | number; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

saveWarehouse(payload: {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
segment_type: "hyperlocal" | "local";
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehousePinCode: string;
warehouseState: string;
}, options?: RequestOptions): Promise<{
data: | {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:292

Save a new warehouse/pickup location.

"Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other" = ...

string = ...

string = ...

"hyperlocal" | "local" = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

RequestOptions

Promise<{ data: | { is_phone_verified: number; phone_number: string; warehouseId: number; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

trackOrder(orderId: string, options?: RequestOptions): Promise<{
data: | {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:437

Track an order by its CustomGlobalOrderId.

string

The CustomGlobalOrderId of the order to track

RequestOptions

Promise<{ data: | { courier_image: string; courier_name: string; CustomGlobalOrderId: string; drop_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; latest_checkpoint_time: string; order_place_time: string; order_status: string; source_coordinate: { addressType: string; latitude: string; longitude: string; mapLocationId: string; }; tag: string; tracking_current_status: { fare_details: { amount: string; currency: string; }; location: { latitude: string | null; longitude: string | null; }; partner_details?: { contact: { primary: { country_code: string; number: string; }; secondary: { country_code: string; number: string; }; }; name: string; vehicle: { number: string | null; type: string; }; }; timestamps: { order: { accepted: string | null; ended: string | null; started: string | null; }; pickup: string | null; }; tracking_status: string; }; tracking_histories: { checkpoint_time: string; location: { latitude: string | null; longitude: string | null; }; message: string; order_status: string; tag: string; }[]; tracking_number: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails

updateWarehouse(payload: {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseId: string;
warehouseName: string;
warehousePinCode: string;
warehouseState: string;
}, options?: RequestOptions): Promise<{
data: | {
is_phone_verified: number;
phone_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/BigshipClient.ts:320

Update an existing warehouse/pickup location.

"Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other" = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

string = ...

RequestOptions

Promise<{ data: | { is_phone_verified: number; phone_number: string; } | null; message: string; status: boolean; status_code: number; }>

When request validation fails

When API request fails


Defined in: packages/sdk/src/errors/index.ts:69

Error thrown when a duplicate invoice ID is detected

try {
await client.addSingleOrder(orderData);
} catch (error) {
if (error instanceof BigshipDuplicateInvoiceError) {
console.log('Duplicate invoice ID:', error.invoiceId);
console.log('Please use a different invoice number');
}
}
new BigshipDuplicateInvoiceError(invoiceId: string, options?: Omit<BigshipApiErrorOptions, "code">): BigshipDuplicateInvoiceError;

Defined in: packages/sdk/src/errors/index.ts:72

string

Omit<BigshipApiErrorOptions, "code"> = {}

BigshipDuplicateInvoiceError

BigshipApiError.constructor

Property Modifier Type Description Inherited from Defined in
apiResponse? readonly BigshipErrorData - BigshipApiError.apiResponse packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - BigshipApiError.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - BigshipApiError.code packages/sdk/src/errors/BigshipError.ts:32
endpoint? readonly string - BigshipApiError.endpoint packages/sdk/src/errors/index.ts:32
invoiceId readonly string - - packages/sdk/src/errors/index.ts:70
message public string - BigshipApiError.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - BigshipApiError.name node_modules/typescript/lib/lib.es5.d.ts:1076
requestId? readonly string - BigshipApiError.requestId packages/sdk/src/errors/index.ts:31
responseBody? readonly unknown - BigshipApiError.responseBody packages/sdk/src/errors/index.ts:33
stack? public string - BigshipApiError.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - BigshipApiError.statusCode packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - BigshipApiError.traceId packages/sdk/src/errors/BigshipError.ts:35
validationErrors? readonly Record<string, string[]> - BigshipApiError.validationErrors packages/sdk/src/errors/BigshipError.ts:34
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. BigshipApiError.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

BigshipApiError.isAuthError

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

BigshipApiError.isRateLimitError

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

BigshipApiError.isValidationError

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

BigshipApiError.captureStackTrace

static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

BigshipApiError.prepareStackTrace


Defined in: packages/sdk/src/errors/BigshipError.ts:30

Custom error class for Bigship API errors Provides structured access to error details and helper methods for error type checking

try {
await client.addSingleOrder(orderData);
} catch (error) {
if (error instanceof BigshipError) {
if (error.isValidationError()) {
console.error('Validation failed:', error.validationErrors);
}
if (error.isRateLimitError()) {
console.error('Rate limited, retry after 60s');
}
console.error('Status:', error.statusCode);
console.error('Trace ID:', error.traceId);
}
}
  • Error
new BigshipError(
message: string,
statusCode?: number,
code?: string,
apiResponse?: BigshipErrorData,
options?: {
cause?: Error;
}): BigshipError;

Defined in: packages/sdk/src/errors/BigshipError.ts:37

string

number

string

BigshipErrorData

Error

BigshipError

Error.constructor
Property Modifier Type Description Inherited from Defined in
apiResponse? readonly BigshipErrorData - - packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - Error.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - - packages/sdk/src/errors/BigshipError.ts:32
message public string - Error.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - Error.name node_modules/typescript/lib/lib.es5.d.ts:1076
stack? public string - Error.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - - packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - - packages/sdk/src/errors/BigshipError.ts:35
validationErrors? readonly Record<string, string[]> - - packages/sdk/src/errors/BigshipError.ts:34
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. Error.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace
static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace

Defined in: packages/sdk/src/errors/index.ts:169

Error thrown when network request fails Uses statusCode -1 since this is not an HTTP error. Check error instanceof BigshipNetworkError rather than comparing statusCode.

new BigshipNetworkError(message: string, options?: Omit<BigshipApiErrorOptions, "code">): BigshipNetworkError;

Defined in: packages/sdk/src/errors/index.ts:170

string

Omit<BigshipApiErrorOptions, "code"> = {}

BigshipNetworkError

BigshipApiError.constructor

Property Modifier Type Description Inherited from Defined in
apiResponse? readonly BigshipErrorData - BigshipApiError.apiResponse packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - BigshipApiError.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - BigshipApiError.code packages/sdk/src/errors/BigshipError.ts:32
endpoint? readonly string - BigshipApiError.endpoint packages/sdk/src/errors/index.ts:32
message public string - BigshipApiError.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - BigshipApiError.name node_modules/typescript/lib/lib.es5.d.ts:1076
requestId? readonly string - BigshipApiError.requestId packages/sdk/src/errors/index.ts:31
responseBody? readonly unknown - BigshipApiError.responseBody packages/sdk/src/errors/index.ts:33
stack? public string - BigshipApiError.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - BigshipApiError.statusCode packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - BigshipApiError.traceId packages/sdk/src/errors/BigshipError.ts:35
validationErrors? readonly Record<string, string[]> - BigshipApiError.validationErrors packages/sdk/src/errors/BigshipError.ts:34
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. BigshipApiError.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

BigshipApiError.isAuthError

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

BigshipApiError.isRateLimitError

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

BigshipApiError.isValidationError

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

BigshipApiError.captureStackTrace

static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

BigshipApiError.prepareStackTrace


Defined in: packages/sdk/src/errors/index.ts:111

Error thrown when request validation fails

try {
await client.addSingleOrder(orderData);
} catch (error) {
if (error instanceof BigshipValidationError) {
console.error('Validation errors:', error.validationErrors);
// { invoice_id: ['Invalid format'], pincode: ['Invalid pincode'] }
}
}
new BigshipValidationError(
message: string,
validationErrors: Record<string, string[]>,
options?: Omit<BigshipApiErrorOptions, "code" | "apiResponse">): BigshipValidationError;

Defined in: packages/sdk/src/errors/index.ts:114

string

Record<string, string[]>

Omit<BigshipApiErrorOptions, "code" | "apiResponse"> = {}

BigshipValidationError

BigshipApiError.constructor

Property Modifier Type Description Overrides Inherited from Defined in
apiResponse? readonly BigshipErrorData - - BigshipApiError.apiResponse packages/sdk/src/errors/BigshipError.ts:33
cause? public unknown - - BigshipApiError.cause node_modules/typescript/lib/lib.es2022.error.d.ts:26
code? readonly string - - BigshipApiError.code packages/sdk/src/errors/BigshipError.ts:32
endpoint? readonly string - - BigshipApiError.endpoint packages/sdk/src/errors/index.ts:32
message public string - - BigshipApiError.message node_modules/typescript/lib/lib.es5.d.ts:1077
name public string - - BigshipApiError.name node_modules/typescript/lib/lib.es5.d.ts:1076
requestId? readonly string - - BigshipApiError.requestId packages/sdk/src/errors/index.ts:31
responseBody? readonly unknown - - BigshipApiError.responseBody packages/sdk/src/errors/index.ts:33
stack? public string - - BigshipApiError.stack node_modules/typescript/lib/lib.es5.d.ts:1078
statusCode readonly number - - BigshipApiError.statusCode packages/sdk/src/errors/BigshipError.ts:31
traceId? readonly string - - BigshipApiError.traceId packages/sdk/src/errors/BigshipError.ts:35
validationErrors readonly Record<string, string[]> - BigshipApiError.validationErrors - packages/sdk/src/errors/index.ts:112
stackTraceLimit static number The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)). The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. - BigshipApiError.stackTraceLimit node_modules/@types/node/globals.d.ts:68
isAuthError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:61

boolean

BigshipApiError.isAuthError

isRateLimitError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:57

boolean

BigshipApiError.isRateLimitError

isValidationError(): boolean;

Defined in: packages/sdk/src/errors/BigshipError.ts:53

boolean

BigshipApiError.isValidationError

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Defined in: node_modules/@types/node/globals.d.ts:52

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

BigshipApiError.captureStackTrace

static prepareStackTrace(err: Error, stackTraces: CallSite[]): any;

Defined in: node_modules/@types/node/globals.d.ts:56

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

BigshipApiError.prepareStackTrace


Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:36

Fluent workflow for the new Unified Outbound API order lifecycle.

The new order flow is:

  1. create() - Create a draft order
  2. getServiceableCouriers() - Get available couriers (called internally)
  3. withCourier() - Select a courier
  4. place() - Place/manifest the order
  5. finalize() - Get order details
const result = await client.workflow()
.create({
segment_type: 'domestic_b2c',
MasterOrderPickUpLocation: 123,
MasterOrderPaymentMode: 1,
MasterOrderShippingName: 'John Doe',
// ... other fields
})
.withCourier(25)
.place()
.finalize();
new ShipmentWorkflow(client: BigshipClient): ShipmentWorkflow;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:43

BigshipClient

ShipmentWorkflow

create(order:
| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}): Promise<ShipmentWorkflow>;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:51

Create a draft order.

| { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal"; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number; }

The order creation request

Promise<ShipmentWorkflow>

execute(order:
| {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}
| {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}, courierId?: number): Promise<{
orderDetail: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
orderId: string;
}>;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:140

Execute the complete order workflow. Creates order, selects first available courier, places, and finalizes.

| { additional_comments?: string; boxes: { dimension_unit: "cm"; dimensions: { breadth?: number; height?: number; length?: number; weight: number; }[]; weight_unit: "kg"; }; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingLatitude: string; MasterOrderShippingLongitude: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo?: string; PackageTypeId: number; pickup_instructions?: string; segment_type: "hyperlocal"; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; weight_unit: "kg"; }[]; MasterOrderCollectableAmount?: string; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; ProductName: string; segment_type: "domestic_b2b"; totalNumOfBoxes: number; } | { boxes: { dimension_unit: "cm"; dimensions: { breadth: number; height: number; length: number; weight: number; }[]; noOfBoxes: number; products: { amount: string | number; categoryId: string; collectableAmount: string | number; hsn?: string; productName: string; qty: string | number; totalAmount: string | number; }[]; weight_unit: "kg"; }[]; MasterOrderDate: string; MasterOrderInvoiceAmount: number; MasterOrderPaymentMode: number; MasterOrderPickUpLocation: number; MasterOrderReturnLocation: number; MasterOrderShippingAddress: string; MasterOrderShippingAddress2?: string; MasterOrderShippingCity: string; MasterOrderShippingCountry: string; MasterOrderShippingEmail?: string; MasterOrderShippingLandmark?: string; MasterOrderShippingMobileNo: string | number; MasterOrderShippingName: string; MasterOrderShippingState: string; MasterOrderShippingZipCode: string; OrderInvoiceNo: string; segment_type: "domestic_b2c"; totalNumOfBoxes: number; }

number

Promise<{ orderDetail: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; orderId: string; }>

finalize(): Promise<{
orderDetail: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
orderId: string;
}>;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:118

Finalize the workflow by fetching order details.

Promise<{ orderDetail: | { getOrderDetails: { AwbNumber: string; box_dimensions: { breadth: string; each_box_weight: string; height: string; length: string; no_of_box: string; }[]; collectableAmount: string; consignee: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consigneeBilling: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consigneeBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignor: { billingAddress: string; billingAddress2: string; companyEmailId: string | null; companyMobile: string; companyName: string; consignorBusinessType: string; landmark: string; orderCity: string; orderCountry: string; orderPin: string; orderState: string; }; consignorType: string; created_at: string; dimensions: string[]; InvoiceCurrency: string; InvoiceNumber: string; InvoiceStatus: string; InvoiceStatusId: string; MasterCustomInvoiceId: string | null; MasterCustomOrderId: string; MasterOrderCurrency: string; MasterOrderShippingZipCode: string; orderDate: string; PackageTypeId: string; PackageTypeName: string; PaymentMode: string; pickupDetail: { warehouseAddressLandMark: string; warehouseAddressLine1: string; warehouseAddressLine2: string; warehouseAddressPhone: string; warehouseCity: string; warehouseContactPerson: string; warehouseCountry: string; warehouseName: string; warehousePin: string; warehouseState: string; }; product_details: { box_details: { parameterCategory: string; parameterName: string; parameterValue: string; }[]; detailsIdentifier: string; numberOfProducts: string; products: unknown[]; weight: { unit: string; value: string; }; }[]; products_name: string; status: string; status_id: string; totalInvoiceAmount: string; totalNoOfBoxes: number | null; updated_at: string; weight: string; weightUnit: string; }; segment_type: string; } | null; orderId: string; }>

place(options?: {
riskTypeId?: string;
}): Promise<ShipmentWorkflow>;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:99

Place/manifest the order with the selected courier.

string

Promise<ShipmentWorkflow>

withCourier(courierId: number): this;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:68

Select a courier for the order.

number

The ID of the courier to use

this

withServiceableCourier(index?: number): Promise<ShipmentWorkflow>;

Defined in: packages/sdk/src/workflow/ShipmentWorkflow.ts:77

Select a courier from the serviceable couriers response.

number = 0

Index of the courier in the calculatedRates array (default: 0)

Promise<ShipmentWorkflow>

Defined in: packages/sdk/src/core/types.ts:770

Base API response wrapper All Bigship API responses follow this structure

T = unknown

Property Type Defined in
data T | null packages/sdk/src/core/types.ts:774
message string packages/sdk/src/core/types.ts:772
status boolean packages/sdk/src/core/types.ts:771
status_code number packages/sdk/src/core/types.ts:773

Defined in: packages/sdk/src/errors/index.ts:5

Property Type Defined in
apiResponse? BigshipErrorData packages/sdk/src/errors/index.ts:7
cause? Error packages/sdk/src/errors/index.ts:11
code? string packages/sdk/src/errors/index.ts:6
endpoint? string packages/sdk/src/errors/index.ts:9
requestId? string packages/sdk/src/errors/index.ts:8
responseBody? unknown packages/sdk/src/errors/index.ts:10

Defined in: packages/sdk/src/core/types.ts:6

Property Type Defined in
accessKey string packages/sdk/src/core/types.ts:10
baseURL string packages/sdk/src/core/types.ts:7
enableDetailedLogging? boolean packages/sdk/src/core/types.ts:14
maxRetries? number packages/sdk/src/core/types.ts:15
maxRetryDelay? number packages/sdk/src/core/types.ts:17
onBeforeRequest? (config: InternalAxiosRequestConfig) => | InternalAxiosRequestConfig<any, any> | Promise<InternalAxiosRequestConfig<any, any>> packages/sdk/src/core/types.ts:25
onError? (error: BigshipError, context: RequestContext) => void | Promise<void> packages/sdk/src/core/types.ts:23
onResponse? (response: ApiResponse<unknown>, context: RequestContext) => void | Promise<void> packages/sdk/src/core/types.ts:22
onRetry? (attempt: number, error: BigshipError, context: RequestContext) => void | Promise<void> packages/sdk/src/core/types.ts:24
password string packages/sdk/src/core/types.ts:9
retryDelay? number packages/sdk/src/core/types.ts:16
retryOnStatusCodes? number[] packages/sdk/src/core/types.ts:18
timeout? number packages/sdk/src/core/types.ts:11
tokenTtlMs? number packages/sdk/src/core/types.ts:19
userName string packages/sdk/src/core/types.ts:8

Defined in: packages/sdk/src/errors/BigshipError.ts:1

Property Type Defined in
errors? Record<string, string[]> packages/sdk/src/errors/BigshipError.ts:4
message? string packages/sdk/src/errors/BigshipError.ts:3
status? string packages/sdk/src/errors/BigshipError.ts:2
trace_id? string packages/sdk/src/errors/BigshipError.ts:5

Defined in: packages/sdk/src/core/types.ts:32

Logger interface for pluggable logging. Implement this interface to integrate with Winston, pino, etc.

optional debug(message: string, data?: unknown): void;

Defined in: packages/sdk/src/core/types.ts:33

string

unknown

void

optional error(message: string, data?: unknown): void;

Defined in: packages/sdk/src/core/types.ts:36

string

unknown

void

optional info(message: string, data?: unknown): void;

Defined in: packages/sdk/src/core/types.ts:34

string

unknown

void

optional warn(message: string, data?: unknown): void;

Defined in: packages/sdk/src/core/types.ts:35

string

unknown

void


Defined in: packages/sdk/src/core/types.ts:43

Request context for event hooks Provides information about the current request for logging and debugging

Property Type Defined in
attempt? number packages/sdk/src/core/types.ts:47
duration? number packages/sdk/src/core/types.ts:49
endpoint string packages/sdk/src/core/types.ts:44
method string packages/sdk/src/core/types.ts:45
requestId? string packages/sdk/src/core/types.ts:46
startTime number packages/sdk/src/core/types.ts:48

Defined in: packages/sdk/src/core/BigshipClient.ts:92

Per-request options that can override client-level defaults.

Property Type Description Defined in
signal? AbortSignal AbortSignal to cancel the request packages/sdk/src/core/BigshipClient.ts:96
timeout? number Override the default timeout (ms) for this request packages/sdk/src/core/BigshipClient.ts:94
type BigshipUtilsType = typeof BigshipUtils;

Defined in: packages/sdk/src/utils/index.ts:47


type CancelOrderRequest = z.infer<typeof CancelOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:529


type CancelOrderResponse = z.infer<typeof CancelOrderResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:759


type CreateOrderRequest = z.infer<typeof CreateOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:427


type CreateOrderResponse = z.infer<typeof CreateOrderResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:756


type DomesticB2BOrderRequest = z.infer<typeof DomesticB2BOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:429


type DomesticB2COrderRequest = z.infer<typeof DomesticB2COrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:430


type DownloadDocumentRequest = z.infer<typeof DownloadDocumentRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:733


type DownloadDocumentResponse = z.infer<typeof DownloadDocumentResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:762


type GetWarehouseListRequest = z.infer<typeof GetWarehouseListRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:163


type HyperlocalOrderRequest = z.infer<typeof HyperlocalOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:428


type LoginRequest = z.infer<typeof LoginRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:74


type LoginResponse = z.infer<typeof LoginResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:744


type OrderDetailRequest = z.infer<typeof OrderDetailRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:621


type OrderDetailResponse = z.infer<typeof OrderDetailResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:761


type PackageTypeResponse = z.infer<typeof PackageTypeResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:752


type PaymentModeResponse = z.infer<typeof PaymentModeResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:753


type PlaceOrderRequest = z.infer<typeof PlaceOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:514


type PlaceOrderResponse = z.infer<typeof PlaceOrderResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:758


type ProfileResponse = z.infer<typeof ProfileResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:745


type RateCalculatorRequest = z.infer<typeof RateCalculatorRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:281


type RateCalculatorResponse = z.infer<typeof RateCalculatorResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:755


type RiskTypeResponse = z.infer<typeof RiskTypeResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:754


type SaveWarehouseRequest = z.infer<typeof SaveWarehouseRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:144


type SaveWarehouseResponse = z.infer<typeof SaveWarehouseResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:746


type ServiceableCouriersRequest = z.infer<typeof ServiceableCouriersRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:444


type ServiceableCouriersResponse = z.infer<typeof ServiceableCouriersResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:757


type TrackOrderRequest = z.infer<typeof TrackOrderRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:539


type TrackOrderResponse = z.infer<typeof TrackOrderResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:760


type UpdateWarehouseRequest = z.infer<typeof UpdateWarehouseRequestSchema>;

Defined in: packages/sdk/src/core/types.ts:221


type UpdateWarehouseResponse = z.infer<typeof UpdateWarehouseResponseSchema>;

Defined in: packages/sdk/src/core/types.ts:751


type WarehouseListResponse = ApiResponse<{
total: number;
warehouse: z.infer<typeof WarehouseListItemSchema>[];
}>;

Defined in: packages/sdk/src/core/types.ts:747

const BigshipUtils: {
calculateCollectableAmount: (paymentType: "COD" | "Prepaid", codAmount: number) => number;
fileToBase64DataURI: (file: File) => Promise<string>;
formatZodErrors: (zodErrors: ZodIssue[]) => Record<string, string[]>;
isValidBase64DataURI: (value: string) => boolean;
};

Defined in: packages/sdk/src/utils/index.ts:40

Name Type Defined in
calculateCollectableAmount() (paymentType: "COD" | "Prepaid", codAmount: number) => number packages/sdk/src/utils/index.ts:43
fileToBase64DataURI() (file: File) => Promise<string> packages/sdk/src/utils/index.ts:41
formatZodErrors() (zodErrors: ZodIssue[]) => Record<string, string[]> packages/sdk/src/utils/index.ts:44
isValidBase64DataURI() (value: string) => boolean packages/sdk/src/utils/index.ts:42

const CancelOrderRequestSchema: ZodObject<{
CustomGlobalOrderId: ZodString;
}, "strip", ZodTypeAny, {
CustomGlobalOrderId: string;
}, {
CustomGlobalOrderId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:525


const CancelOrderResponseSchema: ZodObject<{
data: ZodNullable<ZodArray<ZodUnknown, "many">>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: unknown[] | null;
message: string;
status: boolean;
status_code: number;
}, {
data: unknown[] | null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:531


const CreateOrderDataSchema: ZodObject<{
CustomGlobalOrderId: ZodString;
}, "strip", ZodTypeAny, {
CustomGlobalOrderId: string;
}, {
CustomGlobalOrderId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:432


const CreateOrderRequestSchema: ZodDiscriminatedUnion<"segment_type", [ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"hyperlocal">;
} & {
additional_comments: ZodOptional<ZodString>;
boxes: ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ZodOptional<...>;
height: ZodOptional<...>;
length: ZodOptional<...>;
weight: ZodNumber;
}, "strip", ZodTypeAny, {
breadth?: ... | ...;
height?: ... | ...;
length?: ... | ...;
weight: number;
}, {
breadth?: ... | ...;
height?: ... | ...;
length?: ... | ...;
weight: number;
}>, "many">;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
}>;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderShippingLatitude: ZodString;
MasterOrderShippingLongitude: ZodString;
OrderInvoiceNo: ZodOptional<ZodString>;
PackageTypeId: ZodNumber;
pickup_instructions: ZodOptional<ZodString>;
}, "strip", ZodTypeAny, {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}, {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}>, ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"domestic_b2b">;
} & {
boxes: ZodArray<ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ...;
height: ...;
length: ...;
weight: ...;
}, "strip", ZodTypeAny, {
breadth: ...;
height: ...;
length: ...;
weight: ...;
}, {
breadth: ...;
height: ...;
length: ...;
weight: ...;
}>, "many">;
noOfBoxes: ZodNumber;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}>, "many">;
MasterOrderCollectableAmount: ZodOptional<ZodString>;
MasterOrderDate: ZodString;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderReturnLocation: ZodNumber;
OrderInvoiceNo: ZodString;
ProductName: ZodString;
totalNumOfBoxes: ZodNumber;
}, "strip", ZodTypeAny, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}>, ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"domestic_b2c">;
} & {
boxes: ZodArray<ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ...;
height: ...;
length: ...;
weight: ...;
}, "strip", ZodTypeAny, {
breadth: ...;
height: ...;
length: ...;
weight: ...;
}, {
breadth: ...;
height: ...;
length: ...;
weight: ...;
}>, "many">;
noOfBoxes: ZodNumber;
products: ZodArray<ZodObject<{
amount: ...;
categoryId: ...;
collectableAmount: ...;
hsn: ...;
productName: ...;
qty: ...;
totalAmount: ...;
}, "strip", ZodTypeAny, {
amount: ...;
categoryId: ...;
collectableAmount: ...;
hsn?: ...;
productName: ...;
qty: ...;
totalAmount: ...;
}, {
amount: ...;
categoryId: ...;
collectableAmount: ...;
hsn?: ...;
productName: ...;
qty: ...;
totalAmount: ...;
}>, "many">;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: ... | ...;
categoryId: string;
collectableAmount: ... | ...;
hsn?: ... | ...;
productName: string;
qty: ... | ...;
totalAmount: ... | ...;
}[];
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: ... | ...;
categoryId: string;
collectableAmount: ... | ...;
hsn?: ... | ...;
productName: string;
qty: ... | ...;
totalAmount: ... | ...;
}[];
weight_unit: "kg";
}>, "many">;
MasterOrderDate: ZodString;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderReturnLocation: ZodNumber;
OrderInvoiceNo: ZodString;
totalNumOfBoxes: ZodNumber;
}, "strip", ZodTypeAny, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}>]>;

Defined in: packages/sdk/src/core/types.ts:421


const CreateOrderResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
CustomGlobalOrderId: ZodString;
}, "strip", ZodTypeAny, {
CustomGlobalOrderId: string;
}, {
CustomGlobalOrderId: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
CustomGlobalOrderId: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
CustomGlobalOrderId: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:436


const DomesticB2BOrderRequestSchema: ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"domestic_b2b">;
} & {
boxes: ZodArray<ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ZodNumber;
height: ZodNumber;
length: ZodNumber;
weight: ZodNumber;
}, "strip", ZodTypeAny, {
breadth: number;
height: number;
length: number;
weight: number;
}, {
breadth: number;
height: number;
length: number;
weight: number;
}>, "many">;
noOfBoxes: ZodNumber;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}>, "many">;
MasterOrderCollectableAmount: ZodOptional<ZodString>;
MasterOrderDate: ZodString;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderReturnLocation: ZodNumber;
OrderInvoiceNo: ZodString;
ProductName: ZodString;
totalNumOfBoxes: ZodNumber;
}, "strip", ZodTypeAny, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
weight_unit: "kg";
}[];
MasterOrderCollectableAmount?: string;
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
ProductName: string;
segment_type: "domestic_b2b";
totalNumOfBoxes: number;
}>;

Defined in: packages/sdk/src/core/types.ts:412


const DomesticB2COrderRequestSchema: ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"domestic_b2c">;
} & {
boxes: ZodArray<ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ZodNumber;
height: ZodNumber;
length: ZodNumber;
weight: ZodNumber;
}, "strip", ZodTypeAny, {
breadth: number;
height: number;
length: number;
weight: number;
}, {
breadth: number;
height: number;
length: number;
weight: number;
}>, "many">;
noOfBoxes: ZodNumber;
products: ZodArray<ZodObject<{
amount: ZodUnion<[..., ...]>;
categoryId: ZodString;
collectableAmount: ZodUnion<[..., ...]>;
hsn: ZodOptional<ZodString>;
productName: ZodString;
qty: ZodUnion<[..., ...]>;
totalAmount: ZodUnion<[..., ...]>;
}, "strip", ZodTypeAny, {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}, {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}>, "many">;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}>, "many">;
MasterOrderDate: ZodString;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderReturnLocation: ZodNumber;
OrderInvoiceNo: ZodString;
totalNumOfBoxes: ZodNumber;
}, "strip", ZodTypeAny, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}, {
boxes: {
dimension_unit: "cm";
dimensions: {
breadth: number;
height: number;
length: number;
weight: number;
}[];
noOfBoxes: number;
products: {
amount: string | number;
categoryId: string;
collectableAmount: string | number;
hsn?: string;
productName: string;
qty: string | number;
totalAmount: string | number;
}[];
weight_unit: "kg";
}[];
MasterOrderDate: string;
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderReturnLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo: string;
segment_type: "domestic_b2c";
totalNumOfBoxes: number;
}>;

Defined in: packages/sdk/src/core/types.ts:416


const DomesticRateSchema: ZodObject<{
base_freight: ZodNumber;
charged_weight: ZodNumber;
codCharges: ZodNumber;
courierId: ZodString;
courierImage: ZodNullable<ZodString>;
courierName: ZodString;
courierType: ZodString;
destination: ZodString;
emailNotificationCharge: ZodNumber;
greenTax: ZodString;
handlingCharge: ZodString;
kycCurrency: ZodString;
lrCost: ZodString;
oda: ZodString;
pickup: ZodString;
pickup_Charge: ZodString;
planName: ZodString;
riskCharge: ZodString;
riskCharges: ZodArray<ZodObject<{
chargeValue: ZodString;
isRisk: ZodBoolean;
name: ZodString;
typeId: ZodNumber;
}, "strip", ZodTypeAny, {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}, {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}>, "many">;
riskTypeName: ZodString;
smsNotificationCharge: ZodNumber;
state_Tax: ZodUnion<[ZodNumber, ZodString]>;
tat: ZodNumber;
toPay: ZodString;
total: ZodString;
warai_Charge: ZodNumber;
weight_unit: ZodString;
whatsappNotificationCharge: ZodNumber;
zone: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}>;

Defined in: packages/sdk/src/core/types.ts:461


const DownloadDocumentDataSchema: ZodObject<{
AttachmentData: ZodString;
File_extention: ZodString;
}, "strip", ZodTypeAny, {
AttachmentData: string;
File_extention: string;
}, {
AttachmentData: string;
File_extention: string;
}>;

Defined in: packages/sdk/src/core/types.ts:735


const DownloadDocumentRequestSchema: ZodObject<{
CustomGlobalOrderId: ZodString;
document_type: ZodEnum<["invoice", "label", "ewaybill", "manifest"]>;
}, "strip", ZodTypeAny, {
CustomGlobalOrderId: string;
document_type: "invoice" | "label" | "ewaybill" | "manifest";
}, {
CustomGlobalOrderId: string;
document_type: "invoice" | "label" | "ewaybill" | "manifest";
}>;

Defined in: packages/sdk/src/core/types.ts:728


const DownloadDocumentResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
AttachmentData: ZodString;
File_extention: ZodString;
}, "strip", ZodTypeAny, {
AttachmentData: string;
File_extention: string;
}, {
AttachmentData: string;
File_extention: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
AttachmentData: string;
File_extention: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
AttachmentData: string;
File_extention: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:740


const GetWarehouseListRequestSchema: ZodObject<{
filter_type: ZodOptional<ZodEnum<["warehouse_name", "warehouse_phone", "warehouse_pin", "warehouse_contact_person"]>>;
filter_value: ZodOptional<ZodString>;
page: ZodString;
perPage: ZodString;
segment_type: ZodEnum<["hyperlocal", "local"]>;
status: ZodOptional<ZodString>;
}, "strip", ZodTypeAny, {
filter_type?: | "warehouse_name"
| "warehouse_phone"
| "warehouse_pin"
| "warehouse_contact_person";
filter_value?: string;
page: string;
perPage: string;
segment_type: "hyperlocal" | "local";
status?: string;
}, {
filter_type?: | "warehouse_name"
| "warehouse_phone"
| "warehouse_pin"
| "warehouse_contact_person";
filter_value?: string;
page: string;
perPage: string;
segment_type: "hyperlocal" | "local";
status?: string;
}>;

Defined in: packages/sdk/src/core/types.ts:154


const HyperlocalInfoSchema: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodNullable<ZodString>;
type: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
}>;

Defined in: packages/sdk/src/core/types.ts:165


const HyperlocalOrderRequestSchema: ZodObject<{
MasterOrderPaymentMode: ZodNumber;
MasterOrderPickUpLocation: ZodNumber;
MasterOrderShippingAddress: ZodString;
MasterOrderShippingAddress2: ZodOptional<ZodString>;
MasterOrderShippingCity: ZodString;
MasterOrderShippingCountry: ZodDefault<ZodString>;
MasterOrderShippingEmail: ZodOptional<ZodString>;
MasterOrderShippingLandmark: ZodOptional<ZodString>;
MasterOrderShippingMobileNo: ZodUnion<[ZodString, ZodNumber]>;
MasterOrderShippingName: ZodString;
MasterOrderShippingState: ZodString;
MasterOrderShippingZipCode: ZodString;
} & {
segment_type: ZodLiteral<"hyperlocal">;
} & {
additional_comments: ZodOptional<ZodString>;
boxes: ZodObject<{
dimension_unit: ZodLiteral<"cm">;
dimensions: ZodArray<ZodObject<{
breadth: ZodOptional<ZodNumber>;
height: ZodOptional<ZodNumber>;
length: ZodOptional<ZodNumber>;
weight: ZodNumber;
}, "strip", ZodTypeAny, {
breadth?: number;
height?: number;
length?: number;
weight: number;
}, {
breadth?: number;
height?: number;
length?: number;
weight: number;
}>, "many">;
weight_unit: ZodLiteral<"kg">;
}, "strip", ZodTypeAny, {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
}, {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
}>;
MasterOrderInvoiceAmount: ZodNumber;
MasterOrderShippingLatitude: ZodString;
MasterOrderShippingLongitude: ZodString;
OrderInvoiceNo: ZodOptional<ZodString>;
PackageTypeId: ZodNumber;
pickup_instructions: ZodOptional<ZodString>;
}, "strip", ZodTypeAny, {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}, {
additional_comments?: string;
boxes: {
dimension_unit: "cm";
dimensions: {
breadth?: number;
height?: number;
length?: number;
weight: number;
}[];
weight_unit: "kg";
};
MasterOrderInvoiceAmount: number;
MasterOrderPaymentMode: number;
MasterOrderPickUpLocation: number;
MasterOrderShippingAddress: string;
MasterOrderShippingAddress2?: string;
MasterOrderShippingCity: string;
MasterOrderShippingCountry?: string;
MasterOrderShippingEmail?: string;
MasterOrderShippingLandmark?: string;
MasterOrderShippingLatitude: string;
MasterOrderShippingLongitude: string;
MasterOrderShippingMobileNo: string | number;
MasterOrderShippingName: string;
MasterOrderShippingState: string;
MasterOrderShippingZipCode: string;
OrderInvoiceNo?: string;
PackageTypeId: number;
pickup_instructions?: string;
segment_type: "hyperlocal";
}>;

Defined in: packages/sdk/src/core/types.ts:408


const HyperlocalRateSchema: ZodObject<{
base_freight: ZodNumber;
capacity: ZodString;
courierId: ZodNumber;
courierImage: ZodString;
courierName: ZodString;
currency: ZodString;
gst_amount: ZodNumber;
planName: ZodString;
total_freight: ZodNumber;
vehicle_type: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}>;

Defined in: packages/sdk/src/core/types.ts:447


const LoginDataSchema: ZodObject<{
api_master_client_account: ZodObject<{
access_key: ZodString;
access_key_generated_date: ZodString;
created_date: ZodString;
is_account_enabled: ZodUnion<[ZodString, ZodBoolean]>;
updated_date: ZodString;
}, "strip", ZodTypeAny, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
}, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
}>;
countryname: ZodString;
EmailID: ZodString;
firstName: ZodString;
is_outbound_service_enabled: ZodUnion<[ZodString, ZodBoolean]>;
IsEmailVerifed: ZodUnion<[ZodString, ZodBoolean]>;
lastName: ZodString;
mobileNumber: ZodString;
token: ZodString;
tokenExpiringAt: ZodString;
userWallet: ZodObject<{
Balance: ZodUnion<[ZodString, ZodNumber]>;
kycCurrency: ZodString;
}, "strip", ZodTypeAny, {
Balance: string | number;
kycCurrency: string;
}, {
Balance: string | number;
kycCurrency: string;
}>;
}, "strip", ZodTypeAny, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}>;

Defined in: packages/sdk/src/core/types.ts:76


const LoginRequestSchema: ZodObject<{
access_key: ZodString;
password: ZodString;
username: ZodString;
}, "strip", ZodTypeAny, {
access_key: string;
password: string;
username: string;
}, {
access_key: string;
password: string;
username: string;
}>;

Defined in: packages/sdk/src/core/types.ts:68


const LoginResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
api_master_client_account: ZodObject<{
access_key: ZodString;
access_key_generated_date: ZodString;
created_date: ZodString;
is_account_enabled: ZodUnion<[ZodString, ZodBoolean]>;
updated_date: ZodString;
}, "strip", ZodTypeAny, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
}, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
}>;
countryname: ZodString;
EmailID: ZodString;
firstName: ZodString;
is_outbound_service_enabled: ZodUnion<[ZodString, ZodBoolean]>;
IsEmailVerifed: ZodUnion<[ZodString, ZodBoolean]>;
lastName: ZodString;
mobileNumber: ZodString;
token: ZodString;
tokenExpiringAt: ZodString;
userWallet: ZodObject<{
Balance: ZodUnion<[ZodString, ZodNumber]>;
kycCurrency: ZodString;
}, "strip", ZodTypeAny, {
Balance: string | number;
kycCurrency: string;
}, {
Balance: string | number;
kycCurrency: string;
}>;
}, "strip", ZodTypeAny, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string | boolean;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string | boolean;
IsEmailVerifed: string | boolean;
lastName: string;
mobileNumber: string;
token: string;
tokenExpiringAt: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:99


const OrderDetailBoxSchema: ZodObject<{
parameterCategory: ZodString;
parameterName: ZodString;
parameterValue: ZodString;
}, "strip", ZodTypeAny, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}>;

Defined in: packages/sdk/src/core/types.ts:623


const OrderDetailConsigneeSchema: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consigneeBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;

Defined in: packages/sdk/src/core/types.ts:654


const OrderDetailConsignorSchema: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consignorBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;

Defined in: packages/sdk/src/core/types.ts:640


const OrderDetailDataSchema: ZodObject<{
getOrderDetails: ZodObject<{
AwbNumber: ZodString;
box_dimensions: ZodArray<ZodObject<{
breadth: ZodString;
each_box_weight: ZodString;
height: ZodString;
length: ZodString;
no_of_box: ZodString;
}, "strip", ZodTypeAny, {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}, {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}>, "many">;
collectableAmount: ZodString;
consignee: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consigneeBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consigneeBilling: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consigneeBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consignor: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consignorBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consignorType: ZodString;
created_at: ZodString;
dimensions: ZodArray<ZodString, "many">;
InvoiceCurrency: ZodString;
InvoiceNumber: ZodString;
InvoiceStatus: ZodString;
InvoiceStatusId: ZodString;
MasterCustomInvoiceId: ZodNullable<ZodString>;
MasterCustomOrderId: ZodString;
MasterOrderCurrency: ZodString;
MasterOrderShippingZipCode: ZodString;
orderDate: ZodString;
PackageTypeId: ZodString;
PackageTypeName: ZodString;
PaymentMode: ZodString;
pickupDetail: ZodObject<{
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseCity: ZodString;
warehouseContactPerson: ZodString;
warehouseCountry: ZodString;
warehouseName: ZodString;
warehousePin: ZodString;
warehouseState: ZodString;
}, "strip", ZodTypeAny, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}>;
product_details: ZodArray<ZodObject<{
box_details: ZodArray<ZodObject<{
parameterCategory: ZodString;
parameterName: ZodString;
parameterValue: ZodString;
}, "strip", ZodTypeAny, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}>, "many">;
detailsIdentifier: ZodString;
numberOfProducts: ZodString;
products: ZodArray<ZodUnknown, "many">;
weight: ZodObject<{
unit: ZodString;
value: ZodString;
}, "strip", ZodTypeAny, {
unit: string;
value: string;
}, {
unit: string;
value: string;
}>;
}, "strip", ZodTypeAny, {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}, {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}>, "many">;
products_name: ZodString;
status: ZodString;
status_id: ZodString;
totalInvoiceAmount: ZodString;
totalNoOfBoxes: ZodNullable<ZodNumber>;
updated_at: ZodString;
weight: ZodString;
weightUnit: ZodString;
}, "strip", ZodTypeAny, {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
}, {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
}>;
segment_type: ZodString;
}, "strip", ZodTypeAny, {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}, {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}>;

Defined in: packages/sdk/src/core/types.ts:681


const OrderDetailPickupSchema: ZodObject<{
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseCity: ZodString;
warehouseContactPerson: ZodString;
warehouseCountry: ZodString;
warehouseName: ZodString;
warehousePin: ZodString;
warehouseState: ZodString;
}, "strip", ZodTypeAny, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}>;

Defined in: packages/sdk/src/core/types.ts:668


const OrderDetailProductSchema: ZodObject<{
box_details: ZodArray<ZodObject<{
parameterCategory: ZodString;
parameterName: ZodString;
parameterValue: ZodString;
}, "strip", ZodTypeAny, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}, {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}>, "many">;
detailsIdentifier: ZodString;
numberOfProducts: ZodString;
products: ZodArray<ZodUnknown, "many">;
weight: ZodObject<{
unit: ZodString;
value: ZodString;
}, "strip", ZodTypeAny, {
unit: string;
value: string;
}, {
unit: string;
value: string;
}>;
}, "strip", ZodTypeAny, {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}, {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}>;

Defined in: packages/sdk/src/core/types.ts:629


const OrderDetailRequestSchema: ZodObject<{
MasterCustomOrderId: ZodString;
}, "strip", ZodTypeAny, {
MasterCustomOrderId: string;
}, {
MasterCustomOrderId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:617


const OrderDetailResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
getOrderDetails: ZodObject<{
AwbNumber: ZodString;
box_dimensions: ZodArray<ZodObject<{
breadth: ZodString;
each_box_weight: ZodString;
height: ZodString;
length: ZodString;
no_of_box: ZodString;
}, "strip", ZodTypeAny, {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}, {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}>, "many">;
collectableAmount: ZodString;
consignee: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consigneeBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consigneeBilling: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consigneeBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consignor: ZodObject<{
billingAddress: ZodString;
billingAddress2: ZodString;
companyEmailId: ZodNullable<ZodString>;
companyMobile: ZodString;
companyName: ZodString;
consignorBusinessType: ZodString;
landmark: ZodString;
orderCity: ZodString;
orderCountry: ZodString;
orderPin: ZodString;
orderState: ZodString;
}, "strip", ZodTypeAny, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}, {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
}>;
consignorType: ZodString;
created_at: ZodString;
dimensions: ZodArray<ZodString, "many">;
InvoiceCurrency: ZodString;
InvoiceNumber: ZodString;
InvoiceStatus: ZodString;
InvoiceStatusId: ZodString;
MasterCustomInvoiceId: ZodNullable<ZodString>;
MasterCustomOrderId: ZodString;
MasterOrderCurrency: ZodString;
MasterOrderShippingZipCode: ZodString;
orderDate: ZodString;
PackageTypeId: ZodString;
PackageTypeName: ZodString;
PaymentMode: ZodString;
pickupDetail: ZodObject<{
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseCity: ZodString;
warehouseContactPerson: ZodString;
warehouseCountry: ZodString;
warehouseName: ZodString;
warehousePin: ZodString;
warehouseState: ZodString;
}, "strip", ZodTypeAny, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}, {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
}>;
product_details: ZodArray<ZodObject<{
box_details: ZodArray<..., ...>;
detailsIdentifier: ZodString;
numberOfProducts: ZodString;
products: ZodArray<..., ...>;
weight: ZodObject<..., ..., ..., ..., ...>;
}, "strip", ZodTypeAny, {
box_details: ...[];
detailsIdentifier: string;
numberOfProducts: string;
products: ...[];
weight: {
unit: ...;
value: ...;
};
}, {
box_details: ...[];
detailsIdentifier: string;
numberOfProducts: string;
products: ...[];
weight: {
unit: ...;
value: ...;
};
}>, "many">;
products_name: ZodString;
status: ZodString;
status_id: ZodString;
totalInvoiceAmount: ZodString;
totalNoOfBoxes: ZodNullable<ZodNumber>;
updated_at: ZodString;
weight: ZodString;
weightUnit: ZodString;
}, "strip", ZodTypeAny, {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: ...;
parameterName: ...;
parameterValue: ...;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
}, {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: ...;
parameterName: ...;
parameterValue: ...;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
}>;
segment_type: ZodString;
}, "strip", ZodTypeAny, {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}, {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
getOrderDetails: {
AwbNumber: string;
box_dimensions: {
breadth: string;
each_box_weight: string;
height: string;
length: string;
no_of_box: string;
}[];
collectableAmount: string;
consignee: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consigneeBilling: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consigneeBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignor: {
billingAddress: string;
billingAddress2: string;
companyEmailId: string | null;
companyMobile: string;
companyName: string;
consignorBusinessType: string;
landmark: string;
orderCity: string;
orderCountry: string;
orderPin: string;
orderState: string;
};
consignorType: string;
created_at: string;
dimensions: string[];
InvoiceCurrency: string;
InvoiceNumber: string;
InvoiceStatus: string;
InvoiceStatusId: string;
MasterCustomInvoiceId: string | null;
MasterCustomOrderId: string;
MasterOrderCurrency: string;
MasterOrderShippingZipCode: string;
orderDate: string;
PackageTypeId: string;
PackageTypeName: string;
PaymentMode: string;
pickupDetail: {
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseName: string;
warehousePin: string;
warehouseState: string;
};
product_details: {
box_details: {
parameterCategory: string;
parameterName: string;
parameterValue: string;
}[];
detailsIdentifier: string;
numberOfProducts: string;
products: unknown[];
weight: {
unit: string;
value: string;
};
}[];
products_name: string;
status: string;
status_id: string;
totalInvoiceAmount: string;
totalNoOfBoxes: number | null;
updated_at: string;
weight: string;
weightUnit: string;
};
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:724


const PackageTypeResponseSchema: ZodObject<{
data: ZodNullable<ZodArray<ZodObject<{
Description: ZodString;
HyperlocalPackageTypeId: ZodNumber;
IsEnabled: ZodString;
PackageType: ZodString;
}, "strip", ZodTypeAny, {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}, {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}>, "many">>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:239


const PackageTypeSchema: ZodObject<{
Description: ZodString;
HyperlocalPackageTypeId: ZodNumber;
IsEnabled: ZodString;
PackageType: ZodString;
}, "strip", ZodTypeAny, {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}, {
Description: string;
HyperlocalPackageTypeId: number;
IsEnabled: string;
PackageType: string;
}>;

Defined in: packages/sdk/src/core/types.ts:232


const PaymentModeResponseSchema: ZodObject<{
data: ZodNullable<ZodArray<ZodObject<{
paymentModeId: ZodString;
paymentModeName: ZodString;
}, "strip", ZodTypeAny, {
paymentModeId: string;
paymentModeName: string;
}, {
paymentModeId: string;
paymentModeName: string;
}>, "many">>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
paymentModeId: string;
paymentModeName: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
paymentModeId: string;
paymentModeName: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:248


const PaymentModeSchema: ZodObject<{
paymentModeId: ZodString;
paymentModeName: ZodString;
}, "strip", ZodTypeAny, {
paymentModeId: string;
paymentModeName: string;
}, {
paymentModeId: string;
paymentModeName: string;
}>;

Defined in: packages/sdk/src/core/types.ts:243


const PlaceOrderDataSchema: ZodObject<{
awb_assigned: ZodNullable<ZodUnion<[ZodString, ZodNumber]>>;
reference_number: ZodUnion<[ZodString, ZodNumber]>;
}, "strip", ZodTypeAny, {
awb_assigned: string | number | null;
reference_number: string | number;
}, {
awb_assigned: string | number | null;
reference_number: string | number;
}>;

Defined in: packages/sdk/src/core/types.ts:516


const PlaceOrderRequestSchema: ZodObject<{
courierId: ZodNumber;
invoiceType: ZodOptional<ZodString>;
MasterCustomOrderId: ZodString;
riskTypeId: ZodOptional<ZodString>;
}, "strip", ZodTypeAny, {
courierId: number;
invoiceType?: string;
MasterCustomOrderId: string;
riskTypeId?: string;
}, {
courierId: number;
invoiceType?: string;
MasterCustomOrderId: string;
riskTypeId?: string;
}>;

Defined in: packages/sdk/src/core/types.ts:507


const PlaceOrderResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
awb_assigned: ZodNullable<ZodUnion<[ZodString, ZodNumber]>>;
reference_number: ZodUnion<[ZodString, ZodNumber]>;
}, "strip", ZodTypeAny, {
awb_assigned: string | number | null;
reference_number: string | number;
}, {
awb_assigned: string | number | null;
reference_number: string | number;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
awb_assigned: string | number | null;
reference_number: string | number;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
awb_assigned: string | number | null;
reference_number: string | number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:521


const ProfileDataSchema: ZodObject<{
api_master_client_account: ZodObject<{
access_key: ZodString;
access_key_generated_date: ZodString;
created_date: ZodString;
is_account_enabled: ZodString;
updated_date: ZodString;
}, "strip", ZodTypeAny, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
}, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
}>;
countryname: ZodString;
EmailID: ZodString;
firstName: ZodString;
is_outbound_service_enabled: ZodString;
IsEmailVerifed: ZodString;
lastName: ZodString;
mobileNumber: ZodString;
userWallet: ZodObject<{
Balance: ZodUnion<[ZodString, ZodNumber]>;
kycCurrency: ZodString;
}, "strip", ZodTypeAny, {
Balance: string | number;
kycCurrency: string;
}, {
Balance: string | number;
kycCurrency: string;
}>;
}, "strip", ZodTypeAny, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}>;

Defined in: packages/sdk/src/core/types.ts:103


const ProfileResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
api_master_client_account: ZodObject<{
access_key: ZodString;
access_key_generated_date: ZodString;
created_date: ZodString;
is_account_enabled: ZodString;
updated_date: ZodString;
}, "strip", ZodTypeAny, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
}, {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
}>;
countryname: ZodString;
EmailID: ZodString;
firstName: ZodString;
is_outbound_service_enabled: ZodString;
IsEmailVerifed: ZodString;
lastName: ZodString;
mobileNumber: ZodString;
userWallet: ZodObject<{
Balance: ZodUnion<[ZodString, ZodNumber]>;
kycCurrency: ZodString;
}, "strip", ZodTypeAny, {
Balance: string | number;
kycCurrency: string;
}, {
Balance: string | number;
kycCurrency: string;
}>;
}, "strip", ZodTypeAny, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}, {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
api_master_client_account: {
access_key: string;
access_key_generated_date: string;
created_date: string;
is_account_enabled: string;
updated_date: string;
};
countryname: string;
EmailID: string;
firstName: string;
is_outbound_service_enabled: string;
IsEmailVerifed: string;
lastName: string;
mobileNumber: string;
userWallet: {
Balance: string | number;
kycCurrency: string;
};
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:124


const RateCalculatorBoxSchema: ZodObject<{
box_dead_weight: ZodNumber;
box_height: ZodNumber;
box_length: ZodNumber;
box_width: ZodNumber;
no_of_box: ZodNumber;
}, "strip", ZodTypeAny, {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}, {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}>;

Defined in: packages/sdk/src/core/types.ts:262


const RateCalculatorItemSchema: ZodObject<{
codCharges: ZodNumber;
courier_partner_id: ZodNumber;
courierCharge: ZodNumber;
courierImage: ZodNullable<ZodString>;
courierName: ZodString;
courierType: ZodString;
emailNotificationCharge: ZodNumber;
greenTax: ZodNumber;
handlingCharge: ZodString;
lrCost: ZodUnion<[ZodString, ZodNumber]>;
minimum_weight: ZodString;
oda: ZodString;
pickup_Charge: ZodNumber;
planName: ZodString;
restricted_pincode_message: ZodNullable<ZodString>;
riskType: ZodString;
riskTypeName: ZodString;
smsNotificationCharge: ZodNumber;
state_Tax: ZodString;
tat: ZodString;
toPay: ZodNumber;
totalCharge: ZodNumber;
warai_Charge: ZodNumber;
weight: ZodUnion<[ZodNumber, ZodString]>;
whatsappNotificationCharge: ZodNumber;
zone: ZodString;
}, "strip", ZodTypeAny, {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}, {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}>;

Defined in: packages/sdk/src/core/types.ts:283


const RateCalculatorRequestSchema: ZodObject<{
boxes: ZodArray<ZodObject<{
box_dead_weight: ZodNumber;
box_height: ZodNumber;
box_length: ZodNumber;
box_width: ZodNumber;
no_of_box: ZodNumber;
}, "strip", ZodTypeAny, {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}, {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}>, "many">;
codAmount: ZodOptional<ZodString>;
destPincode: ZodString;
invoiceValue: ZodNumber;
paymentModeId: ZodNumber;
riskTypeId: ZodNumber;
segment_type: ZodEnum<["domestic_b2b", "domestic_b2c"]>;
sourcePincode: ZodString;
}, "strip", ZodTypeAny, {
boxes: {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}[];
codAmount?: string;
destPincode: string;
invoiceValue: number;
paymentModeId: number;
riskTypeId: number;
segment_type: "domestic_b2b" | "domestic_b2c";
sourcePincode: string;
}, {
boxes: {
box_dead_weight: number;
box_height: number;
box_length: number;
box_width: number;
no_of_box: number;
}[];
codAmount?: string;
destPincode: string;
invoiceValue: number;
paymentModeId: number;
riskTypeId: number;
segment_type: "domestic_b2b" | "domestic_b2c";
sourcePincode: string;
}>;

Defined in: packages/sdk/src/core/types.ts:270


const RateCalculatorResponseSchema: ZodObject<{
data: ZodNullable<ZodArray<ZodObject<{
codCharges: ZodNumber;
courier_partner_id: ZodNumber;
courierCharge: ZodNumber;
courierImage: ZodNullable<ZodString>;
courierName: ZodString;
courierType: ZodString;
emailNotificationCharge: ZodNumber;
greenTax: ZodNumber;
handlingCharge: ZodString;
lrCost: ZodUnion<[ZodString, ZodNumber]>;
minimum_weight: ZodString;
oda: ZodString;
pickup_Charge: ZodNumber;
planName: ZodString;
restricted_pincode_message: ZodNullable<ZodString>;
riskType: ZodString;
riskTypeName: ZodString;
smsNotificationCharge: ZodNumber;
state_Tax: ZodString;
tat: ZodString;
toPay: ZodNumber;
totalCharge: ZodNumber;
warai_Charge: ZodNumber;
weight: ZodUnion<[ZodNumber, ZodString]>;
whatsappNotificationCharge: ZodNumber;
zone: ZodString;
}, "strip", ZodTypeAny, {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}, {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}>, "many">>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
codCharges: number;
courier_partner_id: number;
courierCharge: number;
courierImage: string | null;
courierName: string;
courierType: string;
emailNotificationCharge: number;
greenTax: number;
handlingCharge: string;
lrCost: string | number;
minimum_weight: string;
oda: string;
pickup_Charge: number;
planName: string;
restricted_pincode_message: string | null;
riskType: string;
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string;
tat: string;
toPay: number;
totalCharge: number;
warai_Charge: number;
weight: string | number;
whatsappNotificationCharge: number;
zone: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:312


const RiskTypeResponseSchema: ZodObject<{
data: ZodNullable<ZodArray<ZodObject<{
riskName: ZodString;
riskTypeId: ZodNumber;
slug: ZodString;
}, "strip", ZodTypeAny, {
riskName: string;
riskTypeId: number;
slug: string;
}, {
riskName: string;
riskTypeId: number;
slug: string;
}>, "many">>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
riskName: string;
riskTypeId: number;
slug: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
riskName: string;
riskTypeId: number;
slug: string;
}[]
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:258


const RiskTypeSchema: ZodObject<{
riskName: ZodString;
riskTypeId: ZodNumber;
slug: ZodString;
}, "strip", ZodTypeAny, {
riskName: string;
riskTypeId: number;
slug: string;
}, {
riskName: string;
riskTypeId: number;
slug: string;
}>;

Defined in: packages/sdk/src/core/types.ts:252


const SaveWarehouseDataSchema: ZodObject<{
is_phone_verified: ZodNumber;
phone_number: ZodString;
warehouseId: ZodNumber;
}, "strip", ZodTypeAny, {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}, {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}>;

Defined in: packages/sdk/src/core/types.ts:146


const SaveWarehouseRequestSchema: ZodObject<{
address_type: ZodOptional<ZodEnum<["Home", "Office", "Shop", "Factory", "Hotel", "Other"]>>;
latitude: ZodOptional<ZodString>;
longitude: ZodOptional<ZodString>;
segment_type: ZodEnum<["hyperlocal", "local"]>;
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodOptional<ZodString>;
warehouseAddressPhone: ZodString;
warehouseCity: ZodString;
warehouseContactPerson: ZodString;
warehouseCountry: ZodDefault<ZodString>;
warehousePinCode: ZodString;
warehouseState: ZodString;
}, "strip", ZodTypeAny, {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
segment_type: "hyperlocal" | "local";
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehousePinCode: string;
warehouseState: string;
}, {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
segment_type: "hyperlocal" | "local";
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry?: string;
warehousePinCode: string;
warehouseState: string;
}>;

Defined in: packages/sdk/src/core/types.ts:128


const SaveWarehouseResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
is_phone_verified: ZodNumber;
phone_number: ZodString;
warehouseId: ZodNumber;
}, "strip", ZodTypeAny, {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}, {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
is_phone_verified: number;
phone_number: string;
warehouseId: number;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:152


const SDK_VERSION: string = '4.0.0';

Defined in: packages/sdk/src/version.ts:3


const ServiceableCouriersDataSchema: ZodObject<{
calculatedRates: ZodArray<ZodUnion<[ZodObject<{
base_freight: ZodNumber;
capacity: ZodString;
courierId: ZodNumber;
courierImage: ZodString;
courierName: ZodString;
currency: ZodString;
gst_amount: ZodNumber;
planName: ZodString;
total_freight: ZodNumber;
vehicle_type: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}>, ZodObject<{
base_freight: ZodNumber;
charged_weight: ZodNumber;
codCharges: ZodNumber;
courierId: ZodString;
courierImage: ZodNullable<ZodString>;
courierName: ZodString;
courierType: ZodString;
destination: ZodString;
emailNotificationCharge: ZodNumber;
greenTax: ZodString;
handlingCharge: ZodString;
kycCurrency: ZodString;
lrCost: ZodString;
oda: ZodString;
pickup: ZodString;
pickup_Charge: ZodString;
planName: ZodString;
riskCharge: ZodString;
riskCharges: ZodArray<ZodObject<{
chargeValue: ZodString;
isRisk: ZodBoolean;
name: ZodString;
typeId: ZodNumber;
}, "strip", ZodTypeAny, {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}, {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}>, "many">;
riskTypeName: ZodString;
smsNotificationCharge: ZodNumber;
state_Tax: ZodUnion<[ZodNumber, ZodString]>;
tat: ZodNumber;
toPay: ZodString;
total: ZodString;
warai_Charge: ZodNumber;
weight_unit: ZodString;
whatsappNotificationCharge: ZodNumber;
zone: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}>]>, "many">;
segment_type: ZodString;
}, "strip", ZodTypeAny, {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}, {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}>;

Defined in: packages/sdk/src/core/types.ts:498


const ServiceableCouriersRequestSchema: ZodObject<{
MasterCustomOrderId: ZodString;
}, "strip", ZodTypeAny, {
MasterCustomOrderId: string;
}, {
MasterCustomOrderId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:440


const ServiceableCouriersResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
calculatedRates: ZodArray<ZodUnion<[ZodObject<{
base_freight: ZodNumber;
capacity: ZodString;
courierId: ZodNumber;
courierImage: ZodString;
courierName: ZodString;
currency: ZodString;
gst_amount: ZodNumber;
planName: ZodString;
total_freight: ZodNumber;
vehicle_type: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}, {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}>, ZodObject<{
base_freight: ZodNumber;
charged_weight: ZodNumber;
codCharges: ZodNumber;
courierId: ZodString;
courierImage: ZodNullable<...>;
courierName: ZodString;
courierType: ZodString;
destination: ZodString;
emailNotificationCharge: ZodNumber;
greenTax: ZodString;
handlingCharge: ZodString;
kycCurrency: ZodString;
lrCost: ZodString;
oda: ZodString;
pickup: ZodString;
pickup_Charge: ZodString;
planName: ZodString;
riskCharge: ZodString;
riskCharges: ZodArray<..., ...>;
riskTypeName: ZodString;
smsNotificationCharge: ZodNumber;
state_Tax: ZodUnion<...>;
tat: ZodNumber;
toPay: ZodString;
total: ZodString;
warai_Charge: ZodNumber;
weight_unit: ZodString;
whatsappNotificationCharge: ZodNumber;
zone: ZodString;
}, "strip", ZodTypeAny, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: ... | ...;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: ...[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: ... | ...;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}, {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: ... | ...;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: ...[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: ... | ...;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
}>]>, "many">;
segment_type: ZodString;
}, "strip", ZodTypeAny, {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}, {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
calculatedRates: (
| {
base_freight: number;
capacity: string;
courierId: number;
courierImage: string;
courierName: string;
currency: string;
gst_amount: number;
planName: string;
total_freight: number;
vehicle_type: string;
}
| {
base_freight: number;
charged_weight: number;
codCharges: number;
courierId: string;
courierImage: string | null;
courierName: string;
courierType: string;
destination: string;
emailNotificationCharge: number;
greenTax: string;
handlingCharge: string;
kycCurrency: string;
lrCost: string;
oda: string;
pickup: string;
pickup_Charge: string;
planName: string;
riskCharge: string;
riskCharges: {
chargeValue: string;
isRisk: boolean;
name: string;
typeId: number;
}[];
riskTypeName: string;
smsNotificationCharge: number;
state_Tax: string | number;
tat: number;
toPay: string;
total: string;
warai_Charge: number;
weight_unit: string;
whatsappNotificationCharge: number;
zone: string;
})[];
segment_type: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:503


const TrackingCoordinateSchema: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:541


const TrackingCurrentStatusSchema: ZodObject<{
fare_details: ZodObject<{
amount: ZodString;
currency: ZodString;
}, "strip", ZodTypeAny, {
amount: string;
currency: string;
}, {
amount: string;
currency: string;
}>;
location: ZodObject<{
latitude: ZodNullable<ZodString>;
longitude: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
latitude: string | null;
longitude: string | null;
}, {
latitude: string | null;
longitude: string | null;
}>;
partner_details: ZodOptional<ZodObject<{
contact: ZodObject<{
primary: ZodObject<{
country_code: ZodString;
number: ZodString;
}, "strip", ZodTypeAny, {
country_code: string;
number: string;
}, {
country_code: string;
number: string;
}>;
secondary: ZodObject<{
country_code: ZodString;
number: ZodString;
}, "strip", ZodTypeAny, {
country_code: string;
number: string;
}, {
country_code: string;
number: string;
}>;
}, "strip", ZodTypeAny, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}>;
name: ZodString;
vehicle: ZodObject<{
number: ZodNullable<ZodString>;
type: ZodString;
}, "strip", ZodTypeAny, {
number: string | null;
type: string;
}, {
number: string | null;
type: string;
}>;
}, "strip", ZodTypeAny, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}>>;
timestamps: ZodObject<{
order: ZodObject<{
accepted: ZodNullable<ZodString>;
ended: ZodNullable<ZodString>;
started: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
accepted: string | null;
ended: string | null;
started: string | null;
}, {
accepted: string | null;
ended: string | null;
started: string | null;
}>;
pickup: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
}, {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
}>;
tracking_status: ZodString;
}, "strip", ZodTypeAny, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}>;

Defined in: packages/sdk/src/core/types.ts:566


const TrackingHistorySchema: ZodObject<{
checkpoint_time: ZodString;
location: ZodObject<{
latitude: ZodNullable<ZodString>;
longitude: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
latitude: string | null;
longitude: string | null;
}, {
latitude: string | null;
longitude: string | null;
}>;
message: ZodString;
order_status: ZodString;
tag: ZodString;
}, "strip", ZodTypeAny, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}>;

Defined in: packages/sdk/src/core/types.ts:587


const TrackingPartnerSchema: ZodObject<{
contact: ZodObject<{
primary: ZodObject<{
country_code: ZodString;
number: ZodString;
}, "strip", ZodTypeAny, {
country_code: string;
number: string;
}, {
country_code: string;
number: string;
}>;
secondary: ZodObject<{
country_code: ZodString;
number: ZodString;
}, "strip", ZodTypeAny, {
country_code: string;
number: string;
}, {
country_code: string;
number: string;
}>;
}, "strip", ZodTypeAny, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}>;
name: ZodString;
vehicle: ZodObject<{
number: ZodNullable<ZodString>;
type: ZodString;
}, "strip", ZodTypeAny, {
number: string | null;
type: string;
}, {
number: string | null;
type: string;
}>;
}, "strip", ZodTypeAny, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}>;

Defined in: packages/sdk/src/core/types.ts:548


const TrackOrderDataSchema: ZodObject<{
courier_image: ZodString;
courier_name: ZodString;
CustomGlobalOrderId: ZodString;
drop_coordinate: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}>;
latest_checkpoint_time: ZodString;
order_place_time: ZodString;
order_status: ZodString;
source_coordinate: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}>;
tag: ZodString;
tracking_current_status: ZodObject<{
fare_details: ZodObject<{
amount: ZodString;
currency: ZodString;
}, "strip", ZodTypeAny, {
amount: string;
currency: string;
}, {
amount: string;
currency: string;
}>;
location: ZodObject<{
latitude: ZodNullable<ZodString>;
longitude: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
latitude: string | null;
longitude: string | null;
}, {
latitude: string | null;
longitude: string | null;
}>;
partner_details: ZodOptional<ZodObject<{
contact: ZodObject<{
primary: ZodObject<{
country_code: ...;
number: ...;
}, "strip", ZodTypeAny, {
country_code: ...;
number: ...;
}, {
country_code: ...;
number: ...;
}>;
secondary: ZodObject<{
country_code: ...;
number: ...;
}, "strip", ZodTypeAny, {
country_code: ...;
number: ...;
}, {
country_code: ...;
number: ...;
}>;
}, "strip", ZodTypeAny, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}, {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
}>;
name: ZodString;
vehicle: ZodObject<{
number: ZodNullable<ZodString>;
type: ZodString;
}, "strip", ZodTypeAny, {
number: string | null;
type: string;
}, {
number: string | null;
type: string;
}>;
}, "strip", ZodTypeAny, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}, {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
}>>;
timestamps: ZodObject<{
order: ZodObject<{
accepted: ZodNullable<ZodString>;
ended: ZodNullable<ZodString>;
started: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
accepted: string | null;
ended: string | null;
started: string | null;
}, {
accepted: string | null;
ended: string | null;
started: string | null;
}>;
pickup: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
}, {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
}>;
tracking_status: ZodString;
}, "strip", ZodTypeAny, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}>;
tracking_histories: ZodArray<ZodObject<{
checkpoint_time: ZodString;
location: ZodObject<{
latitude: ZodNullable<ZodString>;
longitude: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
latitude: string | null;
longitude: string | null;
}, {
latitude: string | null;
longitude: string | null;
}>;
message: ZodString;
order_status: ZodString;
tag: ZodString;
}, "strip", ZodTypeAny, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}>, "many">;
tracking_number: ZodString;
}, "strip", ZodTypeAny, {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}, {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}>;

Defined in: packages/sdk/src/core/types.ts:598


const TrackOrderRequestSchema: ZodObject<{
CustomGlobalOrderId: ZodString;
}, "strip", ZodTypeAny, {
CustomGlobalOrderId: string;
}, {
CustomGlobalOrderId: string;
}>;

Defined in: packages/sdk/src/core/types.ts:535


const TrackOrderResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
courier_image: ZodString;
courier_name: ZodString;
CustomGlobalOrderId: ZodString;
drop_coordinate: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}>;
latest_checkpoint_time: ZodString;
order_place_time: ZodString;
order_status: ZodString;
source_coordinate: ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
}>;
tag: ZodString;
tracking_current_status: ZodObject<{
fare_details: ZodObject<{
amount: ZodString;
currency: ZodString;
}, "strip", ZodTypeAny, {
amount: string;
currency: string;
}, {
amount: string;
currency: string;
}>;
location: ZodObject<{
latitude: ZodNullable<ZodString>;
longitude: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
latitude: string | null;
longitude: string | null;
}, {
latitude: string | null;
longitude: string | null;
}>;
partner_details: ZodOptional<ZodObject<{
contact: ZodObject<..., ..., ..., ..., ...>;
name: ZodString;
vehicle: ZodObject<..., ..., ..., ..., ...>;
}, "strip", ZodTypeAny, {
contact: {
primary: ...;
secondary: ...;
};
name: string;
vehicle: {
number: ...;
type: ...;
};
}, {
contact: {
primary: ...;
secondary: ...;
};
name: string;
vehicle: {
number: ...;
type: ...;
};
}>>;
timestamps: ZodObject<{
order: ZodObject<{
accepted: ...;
ended: ...;
started: ...;
}, "strip", ZodTypeAny, {
accepted: ...;
ended: ...;
started: ...;
}, {
accepted: ...;
ended: ...;
started: ...;
}>;
pickup: ZodNullable<ZodString>;
}, "strip", ZodTypeAny, {
order: {
accepted: ... | ...;
ended: ... | ...;
started: ... | ...;
};
pickup: string | null;
}, {
order: {
accepted: ... | ...;
ended: ... | ...;
started: ... | ...;
};
pickup: string | null;
}>;
tracking_status: ZodString;
}, "strip", ZodTypeAny, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: ...;
number: ...;
};
secondary: {
country_code: ...;
number: ...;
};
};
name: string;
vehicle: {
number: ... | ...;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}, {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: ...;
number: ...;
};
secondary: {
country_code: ...;
number: ...;
};
};
name: string;
vehicle: {
number: ... | ...;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
}>;
tracking_histories: ZodArray<ZodObject<{
checkpoint_time: ZodString;
location: ZodObject<{
latitude: ZodNullable<...>;
longitude: ZodNullable<...>;
}, "strip", ZodTypeAny, {
latitude: ... | ...;
longitude: ... | ...;
}, {
latitude: ... | ...;
longitude: ... | ...;
}>;
message: ZodString;
order_status: ZodString;
tag: ZodString;
}, "strip", ZodTypeAny, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}, {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}>, "many">;
tracking_number: ZodString;
}, "strip", ZodTypeAny, {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}, {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
courier_image: string;
courier_name: string;
CustomGlobalOrderId: string;
drop_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
latest_checkpoint_time: string;
order_place_time: string;
order_status: string;
source_coordinate: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string;
};
tag: string;
tracking_current_status: {
fare_details: {
amount: string;
currency: string;
};
location: {
latitude: string | null;
longitude: string | null;
};
partner_details?: {
contact: {
primary: {
country_code: string;
number: string;
};
secondary: {
country_code: string;
number: string;
};
};
name: string;
vehicle: {
number: string | null;
type: string;
};
};
timestamps: {
order: {
accepted: string | null;
ended: string | null;
started: string | null;
};
pickup: string | null;
};
tracking_status: string;
};
tracking_histories: {
checkpoint_time: string;
location: {
latitude: string | null;
longitude: string | null;
};
message: string;
order_status: string;
tag: string;
}[];
tracking_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:613


const UpdateWarehouseDataSchema: ZodObject<{
is_phone_verified: ZodNumber;
phone_number: ZodString;
}, "strip", ZodTypeAny, {
is_phone_verified: number;
phone_number: string;
}, {
is_phone_verified: number;
phone_number: string;
}>;

Defined in: packages/sdk/src/core/types.ts:223


const UpdateWarehouseRequestSchema: ZodObject<{
address_type: ZodOptional<ZodEnum<["Home", "Office", "Shop", "Factory", "Hotel", "Other"]>>;
latitude: ZodOptional<ZodString>;
longitude: ZodOptional<ZodString>;
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodOptional<ZodString>;
warehouseAddressPhone: ZodString;
warehouseCity: ZodString;
warehouseContactPerson: ZodString;
warehouseCountry: ZodDefault<ZodString>;
warehouseId: ZodString;
warehouseName: ZodString;
warehousePinCode: ZodString;
warehouseState: ZodString;
}, "strip", ZodTypeAny, {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry: string;
warehouseId: string;
warehouseName: string;
warehousePinCode: string;
warehouseState: string;
}, {
address_type?: "Home" | "Office" | "Shop" | "Factory" | "Hotel" | "Other";
latitude?: string;
longitude?: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2?: string;
warehouseAddressPhone: string;
warehouseCity: string;
warehouseContactPerson: string;
warehouseCountry?: string;
warehouseId: string;
warehouseName: string;
warehousePinCode: string;
warehouseState: string;
}>;

Defined in: packages/sdk/src/core/types.ts:204


const UpdateWarehouseResponseSchema: ZodObject<{
data: ZodNullable<ZodObject<{
is_phone_verified: ZodNumber;
phone_number: ZodString;
}, "strip", ZodTypeAny, {
is_phone_verified: number;
phone_number: string;
}, {
is_phone_verified: number;
phone_number: string;
}>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
is_phone_verified: number;
phone_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | {
is_phone_verified: number;
phone_number: string;
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:228


const WarehouseListDataSchema: ZodUnion<[ZodObject<{
total: ZodNumber;
warehouse: ZodArray<ZodObject<{
addedOn: ZodString;
city: ZodString;
country: ZodString;
hyperlocal: ZodOptional<ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodNullable<...>;
type: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: ... | ...;
type: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: ... | ...;
type: string;
}>>;
is_location_enabled: ZodString;
isActive: ZodString;
isEditable: ZodUnion<[ZodNumber, ZodBoolean]>;
isShipped: ZodString;
pincode: ZodString;
state: ZodString;
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseContactPerson: ZodString;
warehouseId: ZodNumber;
warehouseName: ZodString;
}, "strip", ZodTypeAny, {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}, {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}>, "many">;
}, "strip", ZodTypeAny, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}>, ZodEffects<ZodArray<ZodUnknown, "many">, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}, unknown[]>]>;

Defined in: packages/sdk/src/core/types.ts:194


const WarehouseListItemSchema: ZodObject<{
addedOn: ZodString;
city: ZodString;
country: ZodString;
hyperlocal: ZodOptional<ZodObject<{
addressType: ZodString;
latitude: ZodString;
longitude: ZodString;
mapLocationId: ZodNullable<ZodString>;
type: ZodString;
}, "strip", ZodTypeAny, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
}, {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
}>>;
is_location_enabled: ZodString;
isActive: ZodString;
isEditable: ZodUnion<[ZodNumber, ZodBoolean]>;
isShipped: ZodString;
pincode: ZodString;
state: ZodString;
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseContactPerson: ZodString;
warehouseId: ZodNumber;
warehouseName: ZodString;
}, "strip", ZodTypeAny, {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}, {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}>;

Defined in: packages/sdk/src/core/types.ts:173


const WarehouseListResponseSchema: ZodObject<{
data: ZodNullable<ZodUnion<[ZodObject<{
total: ZodNumber;
warehouse: ZodArray<ZodObject<{
addedOn: ZodString;
city: ZodString;
country: ZodString;
hyperlocal: ZodOptional<...>;
is_location_enabled: ZodString;
isActive: ZodString;
isEditable: ZodUnion<...>;
isShipped: ZodString;
pincode: ZodString;
state: ZodString;
warehouseAddressLandMark: ZodString;
warehouseAddressLine1: ZodString;
warehouseAddressLine2: ZodString;
warehouseAddressPhone: ZodString;
warehouseContactPerson: ZodString;
warehouseId: ZodNumber;
warehouseName: ZodString;
}, "strip", ZodTypeAny, {
addedOn: string;
city: string;
country: string;
hyperlocal?: ... | ...;
is_location_enabled: string;
isActive: string;
isEditable: ... | ... | ...;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}, {
addedOn: string;
city: string;
country: string;
hyperlocal?: ... | ...;
is_location_enabled: string;
isActive: string;
isEditable: ... | ... | ...;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}>, "many">;
}, "strip", ZodTypeAny, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: ...;
latitude: ...;
longitude: ...;
mapLocationId: ...;
type: ...;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: ...;
latitude: ...;
longitude: ...;
mapLocationId: ...;
type: ...;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}>, ZodEffects<ZodArray<ZodUnknown, "many">, {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: ...;
latitude: ...;
longitude: ...;
mapLocationId: ...;
type: ...;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}, unknown[]>]>>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, {
data: | {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}
| {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}
| null;
message: string;
status: boolean;
status_code: number;
}, {
data: | unknown[]
| {
total: number;
warehouse: {
addedOn: string;
city: string;
country: string;
hyperlocal?: {
addressType: string;
latitude: string;
longitude: string;
mapLocationId: string | null;
type: string;
};
is_location_enabled: string;
isActive: string;
isEditable: number | boolean;
isShipped: string;
pincode: string;
state: string;
warehouseAddressLandMark: string;
warehouseAddressLine1: string;
warehouseAddressLine2: string;
warehouseAddressPhone: string;
warehouseContactPerson: string;
warehouseId: number;
warehouseName: string;
}[];
}
| null;
message: string;
status: boolean;
status_code: number;
}>;

Defined in: packages/sdk/src/core/types.ts:202

function ApiResponseSchema<T>(dataSchema: T): ZodObject<{
data: ZodNullable<T>;
message: ZodString;
status: ZodBoolean;
status_code: ZodNumber;
}, "strip", ZodTypeAny, { [k in "status" | "message" | "status_code" | "data"]: addQuestionMarks<baseObjectOutputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>, any>[k] }, { [k in "status" | "message" | "status_code" | "data"]: baseObjectInputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>[k] }>;

Defined in: packages/sdk/src/core/types.ts:58

Standard API response wrapper for Unified Outbound API Uses status and status_code fields

T extends ZodTypeAny

T

ZodObject<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber; }, "strip", ZodTypeAny, { [k in “status” | “message” | “status_code” | “data”]: addQuestionMarks<baseObjectOutputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>, any>[k] }, { [k in “status” | “message” | “status_code” | “data”]: baseObjectInputType<{ data: ZodNullable<T>; message: ZodString; status: ZodBoolean; status_code: ZodNumber }>[k] }>


function calculateCollectableAmount(paymentType: "COD" | "Prepaid", codAmount: number): number;

Defined in: packages/sdk/src/utils/index.ts:30

"COD" | "Prepaid"

number

number


function fileToBase64DataURI(file: File): Promise<string>;

Defined in: packages/sdk/src/utils/index.ts:5

File

Promise<string>


function formatZodErrors(zodErrors: ZodIssue[]): Record<string, string[]>;

Defined in: packages/sdk/src/utils/index.ts:58

Helper function to format Zod errors into a readable format

ZodIssue[]

Record<string, string[]>

const errors = formatZodErrors(zodError.issues);
// { 'order_detail.invoice_id': ['Invalid format'] }

function isBigshipApiError(error: unknown): error is BigshipApiError;

Defined in: packages/sdk/src/errors/index.ts:199

unknown

error is BigshipApiError


function isBigshipAuthError(error: unknown): error is BigshipAuthError;

Defined in: packages/sdk/src/errors/index.ts:191

unknown

error is BigshipAuthError


function isBigshipDuplicateInvoiceError(error: unknown): error is BigshipDuplicateInvoiceError;

Defined in: packages/sdk/src/errors/index.ts:183

unknown

error is BigshipDuplicateInvoiceError


function isBigshipNetworkError(error: unknown): error is BigshipNetworkError;

Defined in: packages/sdk/src/errors/index.ts:195

unknown

error is BigshipNetworkError


function isBigshipValidationError(error: unknown): error is BigshipValidationError;

Defined in: packages/sdk/src/errors/index.ts:187

unknown

error is BigshipValidationError


function isFailedResponse<T>(response: ApiResponse<T>): response is ApiResponse<T> & { data: null; status: false };

Defined in: packages/sdk/src/core/types.ts:791

Type guard to check if an API response failed Narrows the type to ensure data is null.

T

ApiResponse<T>

response is ApiResponse<T> & { data: null; status: false }


function isSuccessResponse<T>(response: ApiResponse<T>): response is ApiResponse<T> & { data: T; status: true };

Defined in: packages/sdk/src/core/types.ts:783

Type guard to check if an API response is successful Narrows the type to ensure data is non-null

T

ApiResponse<T>

response is ApiResponse<T> & { data: T; status: true }


function isValidBase64DataURI(value: string): boolean;

Defined in: packages/sdk/src/utils/index.ts:26

string

boolean