@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
68 lines • 2.8 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/**
* Filter workflows by their status. If provided, only workflows with the specified status will be returned.
*
* @remarks
* - `active`: Returns only active workflows.
* - `inactive`: Returns only inactive workflows.
* - `publishing`: Returns workflows currently being published.
* - `unpublishing`: Returns workflows currently being unpublished.
* - `archived`: Returns workflows that have been archived.
* - `archiving`: Returns workflows currently being archived.
*/
export const Status = {
Active: "active",
Inactive: "inactive",
Publishing: "publishing",
Unpublishing: "unpublishing",
Archived: "archived",
Archiving: "archiving",
};
/** @internal */
export const Status$inboundSchema = z
.nativeEnum(Status);
/** @internal */
export const Status$outboundSchema = Status$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var Status$;
(function (Status$) {
/** @deprecated use `Status$inboundSchema` instead. */
Status$.inboundSchema = Status$inboundSchema;
/** @deprecated use `Status$outboundSchema` instead. */
Status$.outboundSchema = Status$outboundSchema;
})(Status$ || (Status$ = {}));
/** @internal */
export const GetWorkflowsListRequest$inboundSchema = z.object({
accountId: z.string(),
status: Status$inboundSchema.optional(),
});
/** @internal */
export const GetWorkflowsListRequest$outboundSchema = z.object({
accountId: z.string(),
status: Status$outboundSchema.optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetWorkflowsListRequest$;
(function (GetWorkflowsListRequest$) {
/** @deprecated use `GetWorkflowsListRequest$inboundSchema` instead. */
GetWorkflowsListRequest$.inboundSchema = GetWorkflowsListRequest$inboundSchema;
/** @deprecated use `GetWorkflowsListRequest$outboundSchema` instead. */
GetWorkflowsListRequest$.outboundSchema = GetWorkflowsListRequest$outboundSchema;
})(GetWorkflowsListRequest$ || (GetWorkflowsListRequest$ = {}));
export function getWorkflowsListRequestToJSON(getWorkflowsListRequest) {
return JSON.stringify(GetWorkflowsListRequest$outboundSchema.parse(getWorkflowsListRequest));
}
export function getWorkflowsListRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetWorkflowsListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkflowsListRequest' from JSON`);
}
//# sourceMappingURL=getworkflowslist.js.map