UNPKG

box-node-sdk

Version:

Official SDK for Box Platform APIs

30 lines (29 loc) 1.95 kB
import { SignRequestPrefillTag } from './signRequestPrefillTag'; import { SignRequestSignerInputValidation } from './signRequestSignerInputValidation'; import { SerializedData } from '../serialization/json'; export type SignRequestSignerInputTypeField = 'signature' | 'date' | 'text' | 'checkbox' | 'radio' | 'dropdown'; export type SignRequestSignerInputContentTypeField = 'signature' | 'initial' | 'stamp' | 'date' | 'checkbox' | 'text' | 'full_name' | 'first_name' | 'last_name' | 'company' | 'title' | 'email' | 'attachment' | 'radio' | 'dropdown' | string; export type SignRequestSignerInput = SignRequestPrefillTag & { /** * Type of input. */ readonly type?: SignRequestSignerInputTypeField; /** * Content type of input. */ readonly contentType?: SignRequestSignerInputContentTypeField; /** * Index of page that the input is on. */ readonly pageIndex: number; /** * Indicates whether this input is read-only (cannot be modified by signers). */ readonly readOnly?: boolean; /** * Specifies the formatting rules that signers must follow for text field inputs. * If set, this validation is mandatory. */ readonly validation?: SignRequestSignerInputValidation; }; export declare function serializeSignRequestSignerInputTypeField(val: SignRequestSignerInputTypeField): SerializedData; export declare function deserializeSignRequestSignerInputTypeField(val: SerializedData): SignRequestSignerInputTypeField; export declare function serializeSignRequestSignerInputContentTypeField(val: SignRequestSignerInputContentTypeField): SerializedData; export declare function deserializeSignRequestSignerInputContentTypeField(val: SerializedData): SignRequestSignerInputContentTypeField; export declare function serializeSignRequestSignerInput(val: SignRequestSignerInput): SerializedData; export declare function deserializeSignRequestSignerInput(val: SerializedData): SignRequestSignerInput;