import { object , optional , Schema , string } from '../schema' ; /** A Square API V1 identifier of an item, including the object ID and its associated location ID. */ export interface CatalogV1Id { /** The ID for an object used in the Square API V1, if the object ID differs from the Square API V2 object ID. */ catalogV1Id ? : string ; /** The ID of the `Location` this Connect V1 ID is associated with. */ locationId ? : string ; } export const catalogV1IdSchema = object ( { catalogV1Id : [ 'catalog_v1_id' , optional ( string ( ) ) ] , locationId : [ 'location_id' , optional ( string ( ) ) ] , } ) ;