attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
64 lines • 3.09 kB
TypeScript
import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { Note, Note$Outbound } from "../components/note.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type GetV2NotesRequest = {
limit?: number | undefined;
offset?: number | undefined;
parentObject?: string | undefined;
parentRecordId?: string | undefined;
};
/**
* Success
*/
export type GetV2NotesResponse = {
data: Array<Note>;
};
/** @internal */
export declare const GetV2NotesRequest$inboundSchema: z.ZodType<GetV2NotesRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2NotesRequest$Outbound = {
limit?: number | undefined;
offset?: number | undefined;
parent_object?: string | undefined;
parent_record_id?: string | undefined;
};
/** @internal */
export declare const GetV2NotesRequest$outboundSchema: z.ZodType<GetV2NotesRequest$Outbound, z.ZodTypeDef, GetV2NotesRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2NotesRequest$ {
/** @deprecated use `GetV2NotesRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2NotesRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2NotesRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2NotesRequest$Outbound, z.ZodTypeDef, GetV2NotesRequest>;
/** @deprecated use `GetV2NotesRequest$Outbound` instead. */
type Outbound = GetV2NotesRequest$Outbound;
}
export declare function getV2NotesRequestToJSON(getV2NotesRequest: GetV2NotesRequest): string;
export declare function getV2NotesRequestFromJSON(jsonString: string): SafeParseResult<GetV2NotesRequest, SDKValidationError>;
/** @internal */
export declare const GetV2NotesResponse$inboundSchema: z.ZodType<GetV2NotesResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2NotesResponse$Outbound = {
data: Array<Note$Outbound>;
};
/** @internal */
export declare const GetV2NotesResponse$outboundSchema: z.ZodType<GetV2NotesResponse$Outbound, z.ZodTypeDef, GetV2NotesResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2NotesResponse$ {
/** @deprecated use `GetV2NotesResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2NotesResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2NotesResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2NotesResponse$Outbound, z.ZodTypeDef, GetV2NotesResponse>;
/** @deprecated use `GetV2NotesResponse$Outbound` instead. */
type Outbound = GetV2NotesResponse$Outbound;
}
export declare function getV2NotesResponseToJSON(getV2NotesResponse: GetV2NotesResponse): string;
export declare function getV2NotesResponseFromJSON(jsonString: string): SafeParseResult<GetV2NotesResponse, SDKValidationError>;
//# sourceMappingURL=getv2notes.d.ts.map