Appearance
ImportCostConfigurationPayload
Type: Object
Outcome of a CSV cost-configuration import: how many categories, mappings, and rate versions were written, and what was skipped or flagged. All writes happen in a single transaction.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| errors | [FieldError!]! | Per-row validation failures, each with a path (e.g. "csv.row[4].rate") and a message. Rows listed here were skipped; the rest of the import still committed. Empty means the import fully succeeded. | ||
| importedCategories | Int! | Number of distinct cost categories created or updated from the CSV (counted once per category code, even when several rows reference it). | ||
| importedMappings | Int! | Number of distinct operation-to-cost-category mappings created or updated, keyed by (operationKind, costType). | ||
| importedRates | Int! | Number of cost rate versions written. A new version is created only when a category has no current rate or its rate/currency changed; unchanged rates are not counted. | ||
| skippedRows | Int! | Number of CSV data rows not applied — blank rows, plus rows rejected by validation (each rejection also appears in errors). | ||
| warnings | [String!]! | Non-fatal notices about rows that were still imported, e.g. an empty rate column defaulted to 0. Empty when the CSV was clean. |