Search teardowns

distru-search-teardownsRead

Searches teardowns — cultivation work that turns flowering plants into harvests.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
idsstring[]NoTeardown IDs.
searchstringNoCase-insensitive substring of the name. Ranks by name similarity, so sortBy is ignored.
statusesenum[]
COMPLETEDPENDINGPREPARING
NoLifecycle stage: PREPARING (draft, not yet submitted), PENDING (submitted for review) or COMPLETED. Defaults to all.
licenseIdsstring[]NoFilter to teardowns with harvests under these licenses. Resolve via distru-search-licenses.
plantCountMinintegerNoAt least this many plants.
plantCountMaxintegerNoAt most this many plants.
sortByobjectNoSort options. Defaults to most recently updated first when omitted. Ignored when search is set.
sortBy.directionenum
ASCDESC
Yes
sortBy.fieldenum
INSERTED_ATUPDATED_ATNAME
YesField to sort by.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
hasMorebooleanAlways
nextCursorstringCan be absent
totalCountintegerCan be absent
itemsobject[]Always
items[].idstringAlways
items[].namestringAlways
items[].statusenum
COMPLETEDPENDINGPREPARING
Always
items[].plantCountnumberAlways
items[].weighedPlantCountnumberAlways
items[].isManicurebooleanAlways
items[].insertedAtstringCan be null
items[].updatedAtstringCan be null
items[].submittedForReviewAtstringCan be null
items[].grownForobjectNull or absent
items[].grownFor.idstringAlways
items[].grownFor.namestringNull or absent
items[].unitTypeobjectCan be null
items[].unitType.idstringAlways
items[].unitType.namestringAlways
What the AI reads

Searches teardowns — cultivation work that turns flowering plants into harvests. One row per teardown: status, plant counts, the company it was grown for, unit type, submittedForReviewAt, no plants or harvests. weighedPlantCount is the plants with a weight recorded. isManicure is a partial harvest: plants keep growing and can be manicured again. Hides removed teardowns. For the plants use distru-search-plants; for the harvests use distru-search-harvests.