box-node-sdk
Version:
Official SDK for Box Platform APIs
52 lines (51 loc) • 2.79 kB
TypeScript
import { TemplateSignerInput } from './templateSignerInput';
import { SerializedData } from '../serialization/json';
export type TemplateSignerRoleField = 'signer' | 'approver' | 'final_copy_reader' | string;
export interface TemplateSigner {
readonly inputs?: readonly TemplateSignerInput[];
/**
* Email address of the signer. */
readonly email?: string | null;
/**
* Defines the role of the signer in the signature request. A role of
* `signer` needs to sign the document, a role `approver`
* approves the document and
* a `final_copy_reader` role only
* receives the final signed document and signing log. */
readonly role?: TemplateSignerRoleField;
/**
* Used in combination with an embed URL for a sender.
* After the sender signs, they will be
* redirected to the next `in_person` signer. */
readonly isInPerson?: boolean;
/**
* Order of the signer. */
readonly order?: number;
/**
* If provided, this value points signers that are assigned the same inputs and belongs to same signer group.
* A signer group is not a Box Group. It is an entity that belongs to the template itself and can only be used
* within Box Sign requests created from it. */
readonly signerGroupId?: string | null;
/**
* A placeholder label for the signer set by the template creator to differentiate between signers. */
readonly label?: string | null;
/**
* An identifier for the signer. This can be used to identify a signer within the template. */
readonly publicId?: string;
/**
* If true for signers with a defined email, the password provided when the template was created is used by default.
* If true for signers without a specified / defined email, the creator needs to provide a password when using the template. */
readonly isPasswordRequired?: boolean | null;
/**
* If true for signers with a defined email, the phone number provided when the template was created is used by default.
* If true for signers without a specified / defined email, the template creator needs to provide a phone number when creating a request. */
readonly isPhoneNumberRequired?: boolean | null;
/**
* If true, the signer is required to login to access the document. */
readonly loginRequired?: boolean | null;
readonly rawData?: SerializedData;
}
export declare function serializeTemplateSignerRoleField(val: TemplateSignerRoleField): SerializedData;
export declare function deserializeTemplateSignerRoleField(val: SerializedData): TemplateSignerRoleField;
export declare function serializeTemplateSigner(val: TemplateSigner): SerializedData;
export declare function deserializeTemplateSigner(val: SerializedData): TemplateSigner;