@plantnet/planttaxomatcher 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +13 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -101,7 +101,16 @@ var jobConfigSchema = z3.object({
101
101
  * resolved version on `jobs.referential_version` so re-runs are
102
102
  * reproducible even if a newer snapshot lands later.
103
103
  */
104
- referentialVersion: z3.string().min(1).optional()
104
+ referentialVersion: z3.string().min(1).optional(),
105
+ /**
106
+ * Row filter: keep only rows whose `filterColumn` value equals
107
+ * `filterValue` (trimmed, case-insensitive); all other rows are skipped at
108
+ * ingest (no match query created). Both must be set for the filter to
109
+ * apply. Lets a user match a subset of a mixed file (e.g. only
110
+ * `kingdom = Plantae`).
111
+ */
112
+ filterColumn: z3.string().nullable().optional(),
113
+ filterValue: z3.string().nullable().optional()
105
114
  });
106
115
  var wcvpSnapshotSummarySchema = z3.object({
107
116
  version: z3.string(),
@@ -1070,7 +1079,7 @@ program.command("submit <files...>").description(
1070
1079
  ).option(
1071
1080
  "--name <label>",
1072
1081
  "Job name override (single file only; ignored when multiple files match \u2014 the file name is used)"
1073
- ).requiredOption("--name-column <name>", "Column holding the scientific name").option("--id-column <name>", "Column holding a known ID").option("--family-column <name>", "Column holding family").option("--genus-column <name>", "Column holding genus").option("--rank-column <name>", "Column holding rank").option("--author-column <name>", "Column holding authorship").option("--author-mode <mode>", "ignore|prefer|strict", "prefer").option("--parallel <n>", "Per-job parallelism", "4").option("--review-mode <mode>", "off|recommended|strict", "recommended").option(
1082
+ ).requiredOption("--name-column <name>", "Column holding the scientific name").option("--id-column <name>", "Column holding a known ID").option("--family-column <name>", "Column holding family").option("--genus-column <name>", "Column holding genus").option("--rank-column <name>", "Column holding rank").option("--author-column <name>", "Column holding authorship").option("--filter-column <name>", "Only process rows where this column matches --filter-value; others are skipped").option("--filter-value <value>", "Value the --filter-column must equal (trimmed, case-insensitive)").option("--author-mode <mode>", "ignore|prefer|strict", "prefer").option("--parallel <n>", "Per-job parallelism", "4").option("--review-mode <mode>", "off|recommended|strict", "recommended").option(
1074
1083
  "--keep-infraspecific",
1075
1084
  "Keep infraspecific accepted taxa (varieties, subspecies, forms) instead of collapsing them up to the species",
1076
1085
  false
@@ -1126,6 +1135,8 @@ ${file}`));
1126
1135
  genusColumn: opts.genusColumn ? String(opts.genusColumn) : null,
1127
1136
  rankColumn: opts.rankColumn ? String(opts.rankColumn) : null,
1128
1137
  authorColumn: opts.authorColumn ? String(opts.authorColumn) : null,
1138
+ filterColumn: opts.filterColumn ? String(opts.filterColumn) : null,
1139
+ filterValue: opts.filterValue != null ? String(opts.filterValue) : null,
1129
1140
  authorMode: String(opts.authorMode ?? "prefer"),
1130
1141
  matchAuthors: true,
1131
1142
  parallelism: Number(opts.parallel ?? 4),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plantnet/planttaxomatcher",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "PlantTaxoMatcher CLI — reconcile plant names against WCVP via the PlantTaxoMatcher API.",
5
5
  "type": "module",
6
6
  "engines": {