/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type ListShipmentsGlobals = { /** * Optional string used to pick a non-default API version to use. See our API version guide. */ shippoApiVersion?: string | undefined; }; export type ListShipmentsRequest = { /** * The page token for paginated results */ pageToken?: string | undefined; /** * The page number you want to select */ page?: number | undefined; /** * The number of results to return per page (max 100) */ results?: number | undefined; /** * Object(s) created greater than a provided date and time. */ objectCreatedGt?: string | undefined; /** * Object(s) created greater than or equal to a provided date and time. */ objectCreatedGte?: string | undefined; /** * Object(s) created lesser than a provided date and time. */ objectCreatedLt?: string | undefined; /** * Object(s) created lesser than or equal to a provided date and time. */ objectCreatedLte?: string | undefined; }; /** @internal */ export type ListShipmentsRequest$Outbound = { page_token?: string | undefined; page: number; results: number; object_created_gt?: string | undefined; object_created_gte?: string | undefined; object_created_lt?: string | undefined; object_created_lte?: string | undefined; }; /** @internal */ export const ListShipmentsRequest$outboundSchema: z.ZodMiniType< ListShipmentsRequest$Outbound, ListShipmentsRequest > = z.pipe( z.object({ pageToken: z.optional(z.string()), page: z._default(z.int(), 1), results: z._default(z.int(), 25), objectCreatedGt: z.optional(z.string()), objectCreatedGte: z.optional(z.string()), objectCreatedLt: z.optional(z.string()), objectCreatedLte: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { pageToken: "page_token", objectCreatedGt: "object_created_gt", objectCreatedGte: "object_created_gte", objectCreatedLt: "object_created_lt", objectCreatedLte: "object_created_lte", }); }), ); export function listShipmentsRequestToJSON( listShipmentsRequest: ListShipmentsRequest, ): string { return JSON.stringify( ListShipmentsRequest$outboundSchema.parse(listShipmentsRequest), ); }