import type * as Samsara from "../../../../index.js"; /** * @example * { * attributeType: "single-select", * entityType: "driver", * name: "License Certifications" * } */ export interface CreateAttributeRequest { /** Denotes the data type of the attribute's values. Valid values: `single-select`, `multi-select`, `text`, `freeform-multi-select`, `number`, `date`. */ attributeType: CreateAttributeRequest.AttributeType; /** Entities that will be applied to this attribute */ entities?: Samsara.CreateAttributeRequestEntities[]; /** Denotes the type of entity, driver or asset. */ entityType: CreateAttributeRequest.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[]; /** Unit of the attribute (only for Number attributes). */ unit?: CreateAttributeRequest.Unit; } export declare namespace CreateAttributeRequest { /** 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]; /** Unit of the attribute (only for Number attributes). */ const Unit: { readonly NoUnit: "NO_UNIT"; readonly Meter: "METER"; readonly Pound: "POUND"; readonly Ton: "TON"; readonly Kilogram: "KILOGRAM"; readonly Inch: "INCH"; readonly Foot: "FOOT"; readonly Gallon: "GALLON"; readonly Liter: "LITER"; readonly Barrel: "BARREL"; readonly PoundPerSquareInch: "POUND_PER_SQUARE_INCH"; readonly Bar: "BAR"; readonly Kilopascal: "KILOPASCAL"; readonly Fahrenheit: "FAHRENHEIT"; readonly Celsius: "CELSIUS"; readonly Usd: "USD"; readonly Cad: "CAD"; readonly Eur: "EUR"; readonly Gbp: "GBP"; readonly Mxn: "MXN"; readonly Hour: "HOUR"; readonly Minute: "MINUTE"; readonly Day: "DAY"; readonly MilePerHour: "MILE_PER_HOUR"; readonly KilometerPerHour: "KILOMETER_PER_HOUR"; readonly Horsepower: "HORSEPOWER"; readonly Kilowatt: "KILOWATT"; readonly BtuPerHour: "BTU_PER_HOUR"; readonly KilowattHour: "KILOWATT_HOUR"; readonly Btu: "BTU"; readonly Hertz: "HERTZ"; readonly RevolutionPerMinute: "REVOLUTION_PER_MINUTE"; readonly Decibel: "DECIBEL"; }; type Unit = (typeof Unit)[keyof typeof Unit]; }