@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
60 lines • 2.61 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/**
* The operation that the field supports.
*/
export const SupportedOperation = {
VerifyType: "VerifyType",
};
/** @internal */
export const SupportedOperation$inboundSchema = z.nativeEnum(SupportedOperation);
/** @internal */
export const SupportedOperation$outboundSchema = SupportedOperation$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var SupportedOperation$;
(function (SupportedOperation$) {
/** @deprecated use `SupportedOperation$inboundSchema` instead. */
SupportedOperation$.inboundSchema = SupportedOperation$inboundSchema;
/** @deprecated use `SupportedOperation$outboundSchema` instead. */
SupportedOperation$.outboundSchema = SupportedOperation$outboundSchema;
})(SupportedOperation$ || (SupportedOperation$ = {}));
/** @internal */
export const TabConnectedFieldsData$inboundSchema = z.object({
typeSystemNamespace: z.string(),
typeName: z.string(),
supportedOperation: SupportedOperation$inboundSchema,
propertyName: z.string(),
supportedUri: z.string(),
});
/** @internal */
export const TabConnectedFieldsData$outboundSchema = z.object({
typeSystemNamespace: z.string(),
typeName: z.string(),
supportedOperation: SupportedOperation$outboundSchema,
propertyName: z.string(),
supportedUri: 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 TabConnectedFieldsData$;
(function (TabConnectedFieldsData$) {
/** @deprecated use `TabConnectedFieldsData$inboundSchema` instead. */
TabConnectedFieldsData$.inboundSchema = TabConnectedFieldsData$inboundSchema;
/** @deprecated use `TabConnectedFieldsData$outboundSchema` instead. */
TabConnectedFieldsData$.outboundSchema = TabConnectedFieldsData$outboundSchema;
})(TabConnectedFieldsData$ || (TabConnectedFieldsData$ = {}));
export function tabConnectedFieldsDataToJSON(tabConnectedFieldsData) {
return JSON.stringify(TabConnectedFieldsData$outboundSchema.parse(tabConnectedFieldsData));
}
export function tabConnectedFieldsDataFromJSON(jsonString) {
return safeParse(jsonString, (x) => TabConnectedFieldsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TabConnectedFieldsData' from JSON`);
}
//# sourceMappingURL=tabconnectedfieldsdata.js.map