Search Metrc processing job types

distru-search-metrc-processing-job-typesRead

Searches the Metrc processing job types of one license: the job definitions Metrc has accepted.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
limitintegerNoDefault: 10
cursorstringNonextCursor of the previous call; keep the other arguments unchanged.
licenseIdstringYesResolve via distru-search-licenses.
searchstringNoCase-insensitive substring of the name: "chew" finds "Fruit Chews", "chews" does not find "Fruit Chew". Matches are ranked by similarity to it; sortBy is ignored.
sortByobjectNoSort options. Defaults to most recently created in Metrc first; ignored when search is set.
sortBy.directionenum
ASCDESC
Yes
sortBy.fieldenum
NAMEINSERTED_AT
YesINSERTED_AT = created in Metrc.

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[].descriptionstringAlways
items[].categorystringAlways
What the AI reads

Searches the Metrc processing job types of one license: the job definitions Metrc has accepted. Only a license with canRecordProcessingJobs (distru-search-licenses) has any; any other license returns none. Each row's id is Metrc's type ID, not a Distru ID.