import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Templates extends APIResource { /** * Returns a list of templates. Use the `cursor` parameter to paginate through the * results. * * @example * ```ts * const templates = await conductor.qbd.templates.list({ * conductorEndUserId: 'end_usr_1234567abcdefg', * }); * ``` */ list(params: TemplateListParams, options?: RequestOptions): APIPromise; } export interface Template { /** * The unique identifier assigned by QuickBooks to this template. This ID is unique * across all templates but not across different QuickBooks object types. */ id: string; /** * The date and time when this template was created, in ISO 8601 format * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local * timezone of the end-user's computer. */ createdAt: string; /** * Indicates whether this template is active. Inactive objects are typically hidden * from views and reports in QuickBooks. Defaults to `true`. */ isActive: boolean; /** * The case-insensitive unique name of this template, unique across all templates. * * **NOTE**: Templates do not have a `fullName` field because they are not * hierarchical objects, which is why `name` is unique for them but not for objects * that have parents. */ name: string; /** * The type of object. This value is always `"qbd_template"`. */ objectType: 'qbd_template'; /** * The current QuickBooks-assigned revision number of this template object, which * changes each time the object is modified. When updating this object, you must * provide the most recent `revisionNumber` to ensure you're working with the * latest data; otherwise, the update will return an error. */ revisionNumber: string; /** * The type of transaction that this template is used for. */ templateType: 'bill_payment' | 'build_assembly' | 'credit_memo' | 'estimate' | 'invoice' | 'payment_receipt' | 'purchase_order' | 'sales_order' | 'sales_receipt'; /** * The date and time when this template was last updated, in ISO 8601 format * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local * timezone of the end-user's computer. */ updatedAt: string; } export interface TemplateListResponse { /** * The array of templates. */ data: Array