import type * as Samsara from "../../../../index.js"; /** * @example * { * id: "id", * entityType: "driver" * } */ export interface UpdateAttributeRequest { /** Samsara-provided UUID of the attribute. */ id: string; /** Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`. */ attributeType?: UpdateAttributeRequest.AttributeType; /** Entities that will be applied to this attribute */ entities?: Samsara.CreateAttributeRequestEntities[]; /** Denotes the type of entity, driver or asset. */ entityType: UpdateAttributeRequest.EntityType; /** Name */ name?: string; /** Number values that can be associated with this attribute */ numberValues?: number[]; /** String values that can be associated with this attribute */ stringValues?: string[]; } export declare namespace UpdateAttributeRequest { /** Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`. */ const AttributeType: { readonly SingleSelect: "single-select"; readonly MultiSelect: "multi-select"; readonly Text: "text"; readonly FreeformMultiSelect: "freeform-multi-select"; readonly Number: "number"; readonly Date: "date"; }; type AttributeType = (typeof AttributeType)[keyof typeof AttributeType]; /** Denotes the type of entity, driver or asset. */ const EntityType: { readonly Driver: "driver"; readonly Asset: "asset"; }; type EntityType = (typeof EntityType)[keyof typeof EntityType]; }