Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InsuranceController.prototype.processRegularItems
import { InsuranceController } from "https://deno.land/x/sptaki@1.2.0/controllers/InsuranceController.d.ts";

Process "regular" insurance items. Any insured item that is not an attached, attachment is considered a "regular" item. This method iterates over them, preforming item deletion rolls to see if they should be deleted. If so, they (and their attached, attachments, if any) are marked for deletion in the toDelete Set.

Parameters

insured: Insurance

The insurance object containing the items to evaluate.

toDelete: Set<string>

A Set to keep track of items marked for deletion.

parentAttachmentsMap: Map<string, Item[]>

A Map object containing parent item IDs to arrays of their attachment items.

Returns

void

void