UNPKG

@docusign/iam-sdk

Version:

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

39 lines 1.39 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 CustomProperty$inboundSchema = z.union([ z.string(), z.number(), z.boolean(), z.record(z.any()), z.array(z.any()), ]); /** @internal */ export const CustomProperty$outboundSchema = z.union([ z.string(), z.number(), z.boolean(), z.record(z.any()), z.array(z.any()), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var CustomProperty$; (function (CustomProperty$) { /** @deprecated use `CustomProperty$inboundSchema` instead. */ CustomProperty$.inboundSchema = CustomProperty$inboundSchema; /** @deprecated use `CustomProperty$outboundSchema` instead. */ CustomProperty$.outboundSchema = CustomProperty$outboundSchema; })(CustomProperty$ || (CustomProperty$ = {})); export function customPropertyToJSON(customProperty) { return JSON.stringify(CustomProperty$outboundSchema.parse(customProperty)); } export function customPropertyFromJSON(jsonString) { return safeParse(jsonString, (x) => CustomProperty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomProperty' from JSON`); } //# sourceMappingURL=customproperty.js.map