@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
106 lines • 4.74 kB
JavaScript
;
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetWorkflowsListRequest$ = exports.GetWorkflowsListRequest$outboundSchema = exports.GetWorkflowsListRequest$inboundSchema = exports.Status$ = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.Status = void 0;
exports.getWorkflowsListRequestToJSON = getWorkflowsListRequestToJSON;
exports.getWorkflowsListRequestFromJSON = getWorkflowsListRequestFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../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.
*/
exports.Status = {
Active: "active",
Inactive: "inactive",
Publishing: "publishing",
Unpublishing: "unpublishing",
Archived: "archived",
Archiving: "archiving",
};
/** @internal */
exports.Status$inboundSchema = z
.nativeEnum(exports.Status);
/** @internal */
exports.Status$outboundSchema = exports.Status$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var Status$;
(function (Status$) {
/** @deprecated use `Status$inboundSchema` instead. */
Status$.inboundSchema = exports.Status$inboundSchema;
/** @deprecated use `Status$outboundSchema` instead. */
Status$.outboundSchema = exports.Status$outboundSchema;
})(Status$ || (exports.Status$ = Status$ = {}));
/** @internal */
exports.GetWorkflowsListRequest$inboundSchema = z.object({
accountId: z.string(),
status: exports.Status$inboundSchema.optional(),
});
/** @internal */
exports.GetWorkflowsListRequest$outboundSchema = z.object({
accountId: z.string(),
status: exports.Status$outboundSchema.optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
var GetWorkflowsListRequest$;
(function (GetWorkflowsListRequest$) {
/** @deprecated use `GetWorkflowsListRequest$inboundSchema` instead. */
GetWorkflowsListRequest$.inboundSchema = exports.GetWorkflowsListRequest$inboundSchema;
/** @deprecated use `GetWorkflowsListRequest$outboundSchema` instead. */
GetWorkflowsListRequest$.outboundSchema = exports.GetWorkflowsListRequest$outboundSchema;
})(GetWorkflowsListRequest$ || (exports.GetWorkflowsListRequest$ = GetWorkflowsListRequest$ = {}));
function getWorkflowsListRequestToJSON(getWorkflowsListRequest) {
return JSON.stringify(exports.GetWorkflowsListRequest$outboundSchema.parse(getWorkflowsListRequest));
}
function getWorkflowsListRequestFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetWorkflowsListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkflowsListRequest' from JSON`);
}
//# sourceMappingURL=getworkflowslist.js.map