@plantnet/planttaxomatcher 0.1.1 → 0.1.3
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.
- package/dist/index.js +14 -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(),
|
|
@@ -1046,6 +1055,7 @@ program.command("whoami").description("Show current user").action(async () => {
|
|
|
1046
1055
|
const creds = await requireCredentials();
|
|
1047
1056
|
const me = await apiClient.me(creds);
|
|
1048
1057
|
console.log(`${me.displayName} team=${me.teamId} scopes=${me.scopes.join(",")}`);
|
|
1058
|
+
console.log(`server=${creds.server}`);
|
|
1049
1059
|
});
|
|
1050
1060
|
program.command("list").description("List recent jobs").action(async () => {
|
|
1051
1061
|
const creds = await requireCredentials();
|
|
@@ -1070,7 +1080,7 @@ program.command("submit <files...>").description(
|
|
|
1070
1080
|
).option(
|
|
1071
1081
|
"--name <label>",
|
|
1072
1082
|
"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(
|
|
1083
|
+
).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
1084
|
"--keep-infraspecific",
|
|
1075
1085
|
"Keep infraspecific accepted taxa (varieties, subspecies, forms) instead of collapsing them up to the species",
|
|
1076
1086
|
false
|
|
@@ -1126,6 +1136,8 @@ ${file}`));
|
|
|
1126
1136
|
genusColumn: opts.genusColumn ? String(opts.genusColumn) : null,
|
|
1127
1137
|
rankColumn: opts.rankColumn ? String(opts.rankColumn) : null,
|
|
1128
1138
|
authorColumn: opts.authorColumn ? String(opts.authorColumn) : null,
|
|
1139
|
+
filterColumn: opts.filterColumn ? String(opts.filterColumn) : null,
|
|
1140
|
+
filterValue: opts.filterValue != null ? String(opts.filterValue) : null,
|
|
1129
1141
|
authorMode: String(opts.authorMode ?? "prefer"),
|
|
1130
1142
|
matchAuthors: true,
|
|
1131
1143
|
parallelism: Number(opts.parallel ?? 4),
|