@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
21 lines • 867 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";
import * as components from "../components/index.js";
/** @internal */
export const PatchAgreementByDocumentIdRequest$outboundSchema = z.object({
accountId: z.string().default("00000000-0000-0000-0000-000000000000"),
documentId: z.string().optional(),
agreement: components.Agreement$outboundSchema,
}).transform((v) => {
return remap$(v, {
documentId: "document_id",
agreement: "Agreement",
});
});
export function patchAgreementByDocumentIdRequestToJSON(patchAgreementByDocumentIdRequest) {
return JSON.stringify(PatchAgreementByDocumentIdRequest$outboundSchema.parse(patchAgreementByDocumentIdRequest));
}
//# sourceMappingURL=patchagreementbydocumentid.js.map