Function: getOshaViolations() ​
ts
function getOshaViolations(opts?: {
activity_nr?: number;
limit?: number;
offset?: number;
sort_by?: string;
sort_order?: string;
standard?: string;
viol_type?: string;
}): Promise<OshaViolation[]>;Defined in: dol/sdk.ts:360
Search OSHA violations found during inspections.
Example: const violations = await getOshaViolations({ activity_nr: 317463633 }); const willful = await getOshaViolations({ viol_type: "W", limit: 25 });
Parameters ​
| Parameter | Type |
|---|---|
opts | { activity_nr?: number; limit?: number; offset?: number; sort_by?: string; sort_order?: string; standard?: string; viol_type?: string; } |
opts.activity_nr? | number |
opts.limit? | number |
opts.offset? | number |
opts.sort_by? | string |
opts.sort_order? | string |
opts.standard? | string |
opts.viol_type? | string |
Returns ​
Promise<OshaViolation[]>