import type { Answer } from '../models/Answer'; import type { Contract } from '../models/Contract'; import type { FieldRequest } from '../models/FieldRequest'; import type { SigningSideRequest } from '../models/SigningSideRequest'; import type { Table } from '../models/Table'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class ContractService { /** * Create contract * @returns any contract object response * @throws ApiError */ static create({ requestBody, }: { /** * Create a contract */ requestBody: { /** * id of template */ templateId: string; contract: { /** * list of field items */ answers?: Array; /** * list of field items */ fields?: Array; /** * contract name */ name?: string; /** * list of signing side items */ signingSides?: Array; /** * list of table items */ tables?: Array; }; }; }): CancelablePromise<{ contract: Contract; }>; /** * Get a specific contract * @returns any contract object response * @throws ApiError */ static retrieve({ id, }: { /** * ID of contract */ id: string; }): CancelablePromise<{ contract: Contract; }>; /** * This endpoint updates an existing contract. * @returns any contract object response * @throws ApiError */ static update({ id, requestBody, }: { /** * The ID of the contract to make update request */ id: string; /** * Update a contract */ requestBody: { /** * list of field items */ fields?: Array; /** * contract name */ name?: string; /** * list of signing side items */ signingSides?: Array; /** * list of table items */ tables?: Array
; }; }): CancelablePromise<{ contract: Contract; }>; /** * @returns any Default successful response * @throws ApiError */ static delete({ id, }: { /** * The ID of the contract to delete */ id: string; }): CancelablePromise<{ message: 'ok'; }>; } //# sourceMappingURL=ContractService.d.ts.map