UNPKG

@gohighlevel/api-client

Version:
242 lines 10.2 kB
import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/custom-fields'; /** * CustomFields Service * Custom fields are data points that allow you to capture and store specific information tailored to your business requirements. You can create fields across field types like text, numeric, selection options and special fields like date/time or signature */ export declare class CustomFields { private client; constructor(httpClient: AxiosInstance); /** * Get Custom Field / Folder By Id * &lt;div&gt; &lt;p&gt; Get Custom Field / Folder By Id.&lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ getCustomFieldById(params: { id: string; }, options?: AxiosRequestConfig): Promise<Models.CustomFieldSuccessfulResponseDto>; /** * Update Custom Field By Id * &lt;div&gt; &lt;p&gt; Update Custom Field By Id &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ updateCustomField(params: { id: string; }, requestBody: Models.UpdateCustomFieldsDTO, options?: AxiosRequestConfig): Promise<Models.CustomFieldSuccessfulResponseDto>; /** * Delete Custom Field By Id * &lt;div&gt; &lt;p&gt; Delete Custom Field By Id &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ deleteCustomField(params: { id: string; }, options?: AxiosRequestConfig): Promise<Models.CustomFolderDeleteResponseDto>; /** * Get Custom Fields By Object Key * &lt;div&gt; &lt;p&gt; Get Custom Fields By Object Key&lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ getCustomFieldsByObjectKey(params: { objectKey: string; locationId: string; }, options?: AxiosRequestConfig): Promise<Models.CustomFieldsResponseDTO>; /** * Create Custom Field Folder * &lt;div&gt; &lt;p&gt; Create Custom Field Folder &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ createCustomFieldFolder(requestBody: Models.CreateFolder, options?: AxiosRequestConfig): Promise<Models.ICustomFieldFolder>; /** * Update Custom Field Folder Name * &lt;div&gt; &lt;p&gt; Create Custom Field Folder &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ updateCustomFieldFolder(params: { id: string; }, requestBody: Models.UpdateFolder, options?: AxiosRequestConfig): Promise<Models.ICustomFieldFolder>; /** * Delete Custom Field Folder * &lt;div&gt; &lt;p&gt; Create Custom Field Folder &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ deleteCustomFieldFolder(params: { id: string; locationId: string; }, options?: AxiosRequestConfig): Promise<Models.CustomFolderDeleteResponseDto>; /** * Create Custom Field * &lt;div&gt; &lt;p&gt; Create Custom Field &lt;/p&gt; &lt;div&gt; &lt;span style&#x3D; &quot;display: inline-block; width: 25px; height: 25px; background-color: yellow; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 22px; border: 2px solid black; border-radius: 10%; margin-right: 10px;&quot;&gt; ! &lt;/span&gt; &lt;span&gt; &lt;strong&gt; Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future. &lt;/strong&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt; */ createCustomField(requestBody: Models.CreateCustomFieldsDTO, options?: AxiosRequestConfig): Promise<Models.CustomFieldSuccessfulResponseDto>; } export default CustomFields; //# sourceMappingURL=custom-fields.d.ts.map