UNPKG

@docusign/iam-sdk

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.

33 lines 1.41 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; /** @internal */ export const GetAgreementRequest$inboundSchema = z.object({ accountId: z.string(), agreementId: z.string(), }); /** @internal */ export const GetAgreementRequest$outboundSchema = z.object({ accountId: z.string(), agreementId: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var GetAgreementRequest$; (function (GetAgreementRequest$) { /** @deprecated use `GetAgreementRequest$inboundSchema` instead. */ GetAgreementRequest$.inboundSchema = GetAgreementRequest$inboundSchema; /** @deprecated use `GetAgreementRequest$outboundSchema` instead. */ GetAgreementRequest$.outboundSchema = GetAgreementRequest$outboundSchema; })(GetAgreementRequest$ || (GetAgreementRequest$ = {})); export function getAgreementRequestToJSON(getAgreementRequest) { return JSON.stringify(GetAgreementRequest$outboundSchema.parse(getAgreementRequest)); } export function getAgreementRequestFromJSON(jsonString) { return safeParse(jsonString, (x) => GetAgreementRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgreementRequest' from JSON`); } //# sourceMappingURL=getagreement.js.map