farseer-cli 1.20.0 → 1.22.0
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/README.md +1 -1
- package/dist/commands/dimensions.js +20 -4
- package/dist/commands/dimensions.js.map +1 -1
- package/dist/commands/sheets.js +200 -15
- package/dist/commands/sheets.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/tools/modelTools.js +17 -6
- package/dist/mcp/tools/modelTools.js.map +1 -1
- package/dist/operations/model.js +6 -2
- package/dist/operations/model.js.map +1 -1
- package/dist/operations/sheets.js +368 -30
- package/dist/operations/sheets.js.map +1 -1
- package/dist/pipeline/generated-reference.json +10 -10
- package/dist/utils/dimensionMembers.js +54 -0
- package/dist/utils/dimensionMembers.js.map +6 -0
- package/dist/utils/entityResolver.js +2 -0
- package/dist/utils/entityResolver.js.map +1 -1
- package/docs/cli-guide.md +17 -3
- package/docs/pipeline-reference.md +126 -18
- package/package.json +2 -2
- package/skills/farseer-dashboards/SKILL.md +222 -20
- package/skills/farseer-dashboards/cards.md +59 -0
- package/skills/farseer-dashboards/charts.md +245 -0
- package/skills/farseer-dashboards/check.md +91 -0
- package/skills/farseer-dashboards/measures.md +88 -0
- package/skills/farseer-dashboards/page.md +99 -0
- package/skills/farseer-dashboards/reporting-period.md +82 -0
- package/skills/farseer-dashboards/standard-set.md +182 -0
- package/skills/farseer-dashboards/tables.md +174 -0
- package/skills/farseer-data-permissions/SKILL.md +85 -0
- package/skills/pipeline-authoring/SKILL.md +3 -3
- package/skills/pipeline-authoring/practices.md +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/operations/sheets.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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BAAsB,MAAM,IAAI,QAAQ,SAAS,OAAO,MAAM,OAAO;AACrE,QAAM,OAAO,OAAO,OAAO,MAAM,IAAI,SAAS,gBAAgB,QAAQ,QAAQ,wBAAwB,CAAC;AAEvG,SAAO;AAAA,IACH,OAAO,EAAE,IAAI,MAAM,IAAI,MAAM,OAAO,KAAK;AAAA,IACzC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,SAAS,UAAU,OAAO,IAAI,cAAc,QAAQ,KAAK,IAAI,CAAC;AAAA,EAClE;AACJ;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"engineVersion": "3.
|
|
4
|
-
"engineProfile": "3.
|
|
5
|
-
"runnerImage": "runner-python-simple-pipelines:1.
|
|
3
|
+
"engineVersion": "3.5.0",
|
|
4
|
+
"engineProfile": "3.5",
|
|
5
|
+
"runnerImage": "runner-python-simple-pipelines:1.20.0",
|
|
6
6
|
"sourceHashes": {
|
|
7
|
-
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "
|
|
8
|
-
"data-platform/packages/simple-pipelines/pyproject.toml": "
|
|
7
|
+
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "581d604b005e7d0c6a86411035af873c6c3b82ff0c27507756f578cd05dd6448",
|
|
8
|
+
"data-platform/packages/simple-pipelines/pyproject.toml": "68b4c6e140047b3e9c2f797ba8f61935b3e209883a911efc974258d342b2f6ba",
|
|
9
9
|
"tools/pipeline/generate_docs.py": "3a3639b1421f06ed816a35def8861fc42104324eff3c38892ae8367bf877e4cc",
|
|
10
|
-
"runner-images/VERSION": "
|
|
11
|
-
"runner-images/python-simple-pipelines/pyproject.toml": "
|
|
10
|
+
"runner-images/VERSION": "26ac7beccb7951efb69255974ffc70a13bb2e68ae84dcb5456c3fb46294bdba8",
|
|
11
|
+
"runner-images/python-simple-pipelines/pyproject.toml": "4c0ac46ba412af1ddee48bc356d40a778a773f2e20bfaedbfcf44f2360ffc4f7",
|
|
12
12
|
"tools/pipeline/examples/FarseerFilesExtractConfig.yaml": "20950da2f5413833dcaa1e700f13dd0597530c5a17d75ed96e35d6e3ca87eaa4",
|
|
13
13
|
"tools/pipeline/examples/LoadCellsConfig.yaml": "2b56bd84e35765b616916c21c98fd306e2b93127358979777a77083991ac8bf1",
|
|
14
14
|
"tools/pipeline/examples/ParseConfig.yaml": "c5b2deada46ba2edbe29410a37d4b3fd53ffd231d506417a5990cdd3c2d7f8ac",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"notice": "Generated from Pydantic's validation schema using YAML aliases. This describes rendered dataset definitions, not discovery/template directives. Descriptions come from the models; Python validators may impose additional cross-field rules. Read the method guide for the supported pipeline subset. Optional fields without a literal default may use a default factory. Runtime-derived fields are listed separately and must not be authored in YAML.",
|
|
18
18
|
"topics": {
|
|
19
|
-
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, parse, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none |
|
|
19
|
+
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, parse, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none | Qualified names of the datasets this step reads, each produced by a step of this pipeline, which runs first. On a transform, `<name>@published` reads the published version of a dataset instead: it does not order the steps, and it can name the step's own dataset (see TransformConfig). |\n| `description` | string | no | `\"\"` | For the client, who reads it in the step's panel on the Pipeline tab: what the step does, and any rule needed to judge its result. Plain words, at most about 300 characters, no build details. |\n| `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |\n| `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |\n| `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |\n| `load` | [LoadConfig](#loadconfig) or null | no | `null` | |\n| `export` | [ExportConfig](#exportconfig) or null | no | `null` | |\n| `schema` | [DataSchema](#dataschema) or null | no | `null` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n| `write_mode` | [WriteMode](#writemode) | no | `\"overwrite\"` | |\n| `merge_keys` | array of string | no | none | |\n| `sort_by` | array of string | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\nRuntime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`, `published_deps`, `query_template`.\n",
|
|
20
20
|
"BusinessCentralExtractConfig": "## BusinessCentralExtractConfig\n\nExtraction settings for Microsoft Dynamics 365 Business Central.\n\nReads through the OData V4 API, authenticating with the OAuth2\nclient-credentials flow against Azure AD. Requires an Azure AD app\nregistration consented in the BC tenant (typical permission:\n`Dynamics 365 Business Central / app_access`). Credentials (`tenant_id`,\n`client_id`, `client_secret`) are supplied as YAML fields — typically\ntemplated via `{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\nA BC URL is composed as:\n\n {api_base}/{bc_tenant_id}/{environment}/api/{publisher}/{api_group}/{api_version}/companies({company_guid})/{entity}\n\nThe four URL-path fields (`publisher`, `api_group`, `entity`,\n`api_version`) are kept separate so that authors can't accidentally\nglue them into a malformed path; the same structure also lets the\nextractor log one stable summary regardless of which entity is fetched.\n\n`bc_tenant_id` is the *BC* tenant GUID (the one that appears in the\nAPI URL) and may differ from `tenant_id` (the Azure AD tenant GUID\nused for the token endpoint), although in practice they are usually\nthe same.\n\n`filter` is an OData `$filter` expression (e.g.\n`\"postingDateYear eq 2025\"`) — server-side filtering, so it scales\nindependent of pagination. `select` projects a subset of fields\nserver-side; useful when the response payload is dominated by\ncolumns the pipeline does not need.\n\nPagination follows `@odata.nextLink` until exhausted. `page_size`\nis forwarded to BC as `?$top=` — leave unset to accept BC's default\n(20,000 rows per page); set it to a smaller value when running\nagainst a slow connection or to force a multi-page test on a small\nentity.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `bc_tenant_id` | string | yes | none | |\n| `environment` | string | yes | none | |\n| `publisher` | string | yes | none | |\n| `api_group` | string | yes | none | |\n| `company_guid` | string | yes | none | |\n| `entity` | string | yes | none | |\n| `api_version` | string | no | `\"v1.0\"` | |\n| `filter` | string or null | no | `null` | |\n| `select` | string or null | no | `null` | |\n| `page_size` | integer or null | no | `null` | integer: exclusiveMinimum=`0` |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n",
|
|
21
21
|
"CellsOptions": "## CellsOptions\n\nPer-entry options for cell value import.\n\nRows that land on the same coordinates in one import are summed, so the\nsource should already hold one row per cell.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `overwrite_cells` | boolean | yes | none | true replaces the existing value of every coordinate in this import; cells for coordinates not in the import keep their values. false refuses the whole import if any target cell already holds a value, so a rerun fails. |\n| `import_zeros` | boolean | no | `true` | false drops rows whose value is 0, so a value that fell to zero keeps its old number. |\n| `create_missing_members` | boolean | no | `false` | When true, members that appear in mapped source columns but not in the model are created during the import. Fixed dimension members are not created: each must already exist, or be written by a dimension load earlier in the same run. |\n| `missing_member_policy` | `\"DISALLOW\"`, `\"USE_DEFAULT\"`, `\"SKIP_ROW\"` | no | `\"DISALLOW\"` | What happens to a source value a dimension does not have: DISALLOW fails the whole import, USE_DEFAULT books the row to the table's default member, SKIP_ROW drops the row without counting it. |\n| `labels` | array of string | no | none | Stored on the import job; the engine adds pipeline:<load qualified name>. undo_previous finds earlier imports by all of them, so name exactly the slice one run owns. |\n| `undo_previous` | boolean | no | `false` | After this import commits, undo every earlier import carrying all the same labels. Undo deletes that import's cells and never restores the values they replaced; a failed undo is only a warning. |\n| `review_gate` | [ReviewGateConfig](#reviewgateconfig) or null | no | `null` | |\n| `allow_empty` | boolean | no | `false` | true turns a source with zero rows into a no-op instead of an error. Mapped columns must still be present, and nothing is undone. |\n",
|
|
22
22
|
"ColumnSchema": "## ColumnSchema\n\nSchema definition for a single column.\n\n`quality_rules:` carries the column's single-column quality rules —\neach one applies to *this* column with no further reference needed.\nRelational rules (which span multiple columns) sit in the top-level\n`quality_rules:` block on the dataset, not here.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `name` | string | yes | none | |\n| `type` | `\"str\"`, `\"int\"`, `\"float\"`, `\"datetime\"`, `\"bool\"`, `\"list[str]\"` or null | no | `null` | |\n| `not_null` | boolean | no | `false` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"FarseerDimensionsNumberColumn": "## FarseerDimensionsNumberColumn\n\nProjects a NUMBER attribute column on a dim table to a DataFrame column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table_column` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
47
47
|
"FarseerDimensionsTextColumn": "## FarseerDimensionsTextColumn\n\nProjects a TEXT attribute column on a dim table to a DataFrame column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table_column` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
48
48
|
"FarseerExtractConfig": "## FarseerExtractConfig\n\n`extract.type: farseer` — multi-source family.\n\n`source:` picks which Farseer concept to extract from; the\nmatching inner block carries source-specific config. Cross-tenant\ncredentials are shared across all sources via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [FarseerSource](#farseersource) | yes | none | |\n| `variables` | [FarseerVariablesExtractConfig](#farseervariablesextractconfig) or null | no | `null` | |\n| `files` | [FarseerFilesExtractConfig](#farseerfilesextractconfig) or null | no | `null` | |\n| `imports` | [FarseerImportsExtractConfig](#farseerimportsextractconfig) or null | no | `null` | |\n| `dimensions` | [FarseerDimensionsExtractConfig](#farseerdimensionsextractconfig) or null | no | `null` | |\n| `datasets` | [FarseerDatasetsExtractConfig](#farseerdatasetsextractconfig) or null | no | `null` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
49
|
-
"FarseerFilesExportConfig": "## FarseerFilesExportConfig\n\nFarseer Files export target: the source DataFrame as a user-chosen file.\n\nWrites to the tenant's own Files folder (the tree shown in the UI's left\nnav). The write-side mirror of `extract.farseer source: files`.\n\nDistinct from the `Data/` folder the `farseer_files` *data store*\nwrites intermediate step outputs to: that location is addressed by\nqualified name and is meant for developers / product-services, whereas\nthis target writes a single, user-readable report to a path the author\npicks (`file_path`, relative to the Files root — the leading `Files/`\nis implied, exactly like the extractor's `file:`).\n\n**Parquet
|
|
49
|
+
"FarseerFilesExportConfig": "## FarseerFilesExportConfig\n\nFarseer Files export target: the source DataFrame as a user-chosen file.\n\nWrites to the tenant's own Files folder (the tree shown in the UI's left\nnav). The write-side mirror of `extract.farseer source: files`.\n\nDistinct from the `Data/` folder the `farseer_files` *data store*\nwrites intermediate step outputs to: that location is addressed by\nqualified name and is meant for developers / product-services, whereas\nthis target writes a single, user-readable report to a path the author\npicks (`file_path`, relative to the Files root — the leading `Files/`\nis implied, exactly like the extractor's `file:`).\n\n**Parquet unless `format: xlsx`.** Parquet reproduces the DataFrame\nexactly: it stores dtypes, float precision, null-vs-NaN, datetimes and\nleading-zero string codes in the file's own metadata, and the Files page\npreviews it with those types. `format: xlsx` writes a workbook instead,\nfor a client who downloads the file and opens it in Excel: one sheet\nholding the table, named and headed by the `xlsx:` block as on the\nSharePoint export. Excel keeps at most 15 significant digits of a\nnumber, so an integer of more than 15 digits, such as a long\nsource-system ID, opens in Excel as a different number, without an error;\nkeep such a column as text in the step that feeds the export. A\nsheet holds at most 1,048,576 rows, its header included, and a larger\nsource fails the step before anything is written. `file_path` ends in\nthe format's extension, `.parquet` or `.xlsx`.\n\n`source_dataset` names the single dep whose DataFrame is written to the\nfile -- the same source-naming field SharePoint export uses. An export\nwrites exactly one dataset to one file, so the step's single dep must\nequal `source_dataset` (enforced on `DatasetDefinition`).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `file_path` | string | yes | none | Path under Files, ending in the file name. The folder must already exist: the export does not create folders. |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"fail\"` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n| `format` | `\"parquet\"`, `\"xlsx\"` | no | `\"parquet\"` | |\n| `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |\n",
|
|
50
50
|
"FarseerFilesExtractConfig": "## FarseerFilesExtractConfig\n\n`extract.farseer.source: files` — pick a file from Farseer Files.\n\nReads from the source tenant's store. Specify exactly one of `file`\n(slash-separated path under Files) or `file_id` (opaque ID). Cross-tenant\naccess lives on `FarseerExtractConfig`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `file` | string or null | no | `null` | |\n| `file_id` | string or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_raw.yaml: a file's name must match its `name:`.\n# Stores one month's CSV from Files unread, for the parse step `sales` to read.\n# The run argument picks the file, so each run reads its own month.\nname: sales_raw\ntype: extract\nextract:\n type: farseer\n farseer:\n source: files\n files:\n file: \"Imports/{{ pipeline_args.SOURCE_FILE }}\"\n```\n",
|
|
51
51
|
"FarseerImportsExtractConfig": "## FarseerImportsExtractConfig\n\n`extract.farseer.source: imports` — source-row audit of a variable.\n\nOne row per `import_cell`, preserving the `description` set when each\nrow was imported.\n\nCounterpart to `FarseerVariablesExtractConfig`, which\naggregates to one row per Rama cell (current state). Same variable\nsurface (`variable` + `dimensions` + `filters`) with an\nadditional `target_description_column` for the per-row description;\ncells without import provenance (manual entries, calculated cells)\nare excluded. This is the audit view: one row per imported cell with\nthe description it was imported with. For the current value of each\ncell, use `source: variables`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `variable` | string | yes | none | |\n| `target_value_column` | string | yes | none | |\n| `target_description_column` | string | yes | none | |\n| `dimensions` | array of [FarseerVariablesDimensionMapping](#farseervariablesdimensionmapping) | yes | none | minItems=`1` |\n| `filters` | array of [FarseerVariablesFilter](#farseervariablesfilter) | no | none | |\n",
|
|
52
52
|
"FarseerLoadConfig": "## FarseerLoadConfig\n\n`load.target: farseer` — push cells and/or dimension members.\n\nWrites into a Farseer tenant's model.\nOne atomic `/model/load` call can carry both `dimension_tables`\n(member sync) and `cells` (variable-cell import); at least one\nis required, and dim tables sync before cells when both are set.\nNo inner `entity:` discriminator because Farseer has a single\nload operation; if a second mode appears later it can add one.\nCross-tenant pushes are configured via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `dimension_tables` | [DimensionTablesConfig](#dimensiontablesconfig) or null | no | `null` | |\n| `cells` | array of [LoadCellsConfig](#loadcellsconfig) | no | none | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"TldvExtractConfig": "## TldvExtractConfig\n\n`extract.type: tldv` — multi-source family over the tl;dv REST API.\n\nAuthentication is a personal API key from tl;dv's settings, sent as\n`x-api-key`; it is a YAML field, typically templated via\n`{{ pipeline_args.TLDV_API_KEY }}`. A key sees the meetings its owner\ncan see, and a transcript is exported only for meetings whose organizer\nis on a paid plan -- tl;dv answers 403 for the others, which the\nextractor logs and skips per meeting rather than failing the run.\n\n`meetings` is one row per meeting; `transcripts` one row per spoken\nsegment; `notes` one row per meeting with tl;dv's generated notes as\nMarkdown. The filter block is the same on all three. Every source\nstores a parquet payload, which a parse step reads with `format: parquet`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [TldvSource](#tldvsource) | yes | none | |\n| `api_key` | string or null | no | `null` | |\n| `meetings` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `transcripts` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `notes` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n",
|
|
119
119
|
"TldvMeetingsFilter": "## TldvMeetingsFilter\n\nWhich meetings a tl;dv source reads: a date window.\n\nShared by every source, because transcripts and notes are addressed per\nmeeting and so start from the same meeting list. `from_date` and\n`to_date` are ISO 8601 dates.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `from_date` | string or null | no | `null` | |\n| `to_date` | string or null | no | `null` | |\n| `page_size` | integer | no | `50` | maximum=`50`; exclusiveMinimum=`0` |\n",
|
|
120
120
|
"TldvSource": "## TldvSource\n\nSub-discriminator on `extract.tldv.source`.\n\nValues: `\"meetings\"`, `\"transcripts\"`, `\"notes\"`\n",
|
|
121
|
-
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query`. A query that should stop because the data isn't\nwhat the step needs calls `fail_step('…')` with what is wrong and what the\nclient does next, not `error()`: the client reads `fail_step`'s message as\nthe step's failure, and `error()` only as the app's own code failing.\n\nFor `engine: ibis`:\n\n`script` names a `Code/` file holding an `@ibis_transform` function. The\nrunner calls it with one lazy ibis `Table` per dep, named by the dep's leaf\nname, and it must return a `Table`; returning a DataFrame is refused. Rows\ncome back in no fixed order unless the expression ends in `.order_by()`.\n\n from farseer_simple_pipelines import ibis_transform\n\n @ibis_transform\n def sales_clean(sales_lines, *, args):\n t = sales_lines\n for column in args[\"code_columns\"]:\n t = t.mutate(**{column: t[column].strip().upper()})\n return t.order_by(args[\"code_columns\"])\n\nFor `engine: python`:\n\n`script` is the Python filename containing the `@transform` function.\nThe runner calls it with one pandas DataFrame per dep, as a keyword\nargument named by the dep's leaf name, and the function returns one\nDataFrame.\n\nFor both script surfaces:\n\n`function` optionally overrides which decorated function in the script\nbacks this dataset. When unset, the runner binds the function whose name\nmatches the dataset's leaf name. Setting this lets one shared function\nback many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,\n`tb_cih`). `args` is an arbitrary dict passed to the function's\nkeyword-only `args` parameter, if it declares one. The script lives under\n`Code/`, mirroring the dataset's folder under `Models/`.\n\nWhatever the engine, the output is parquet, so there is no format to set:\na transform's output is typed and read back by scanning it, and neither\nsurvives csv or json.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `engine` | [TransformEngine](#transformengine) | no | `\"python\"` | |\n| `script` | string or null | no | `null` | |\n| `function` | string or null | no | `null` | |\n| `query` | string or null | no | `null` | |\n| `sql_file` | string or null | no | `null` | |\n| `args` | object | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_monthly.yaml: a file's name must match its `name:`.\n# Totals the month by product and region in SQL. Each dep is a view named after\n# its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.\nname: sales_monthly\ntype: transform\ndeps: [sales]\ntransform:\n engine: duckdb\n query: |\n SELECT\n product,\n region,\n strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,\n CAST(SUM(amount) AS DOUBLE) AS amount\n FROM sales\n GROUP BY ALL\n```\n",
|
|
121
|
+
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query`. A query that should stop because the data isn't\nwhat the step needs calls `fail_step('…')` with what is wrong and what the\nclient does next, not `error()`: the client reads `fail_step`'s message as\nthe step's failure, and `error()` only as the app's own code failing.\n\nFor `engine: ibis`:\n\n`script` names a `Code/` file holding an `@ibis_transform` function. The\nrunner calls it with one lazy ibis `Table` per dep, named by the dep's leaf\nname, and it must return a `Table`; returning a DataFrame is refused. Rows\ncome back in no fixed order unless the expression ends in `.order_by()`.\n\n from farseer_simple_pipelines import ibis_transform\n\n @ibis_transform\n def sales_clean(sales_lines, *, args):\n t = sales_lines\n for column in args[\"code_columns\"]:\n t = t.mutate(**{column: t[column].strip().upper()})\n return t.order_by(args[\"code_columns\"])\n\nFor `engine: python`:\n\n`script` is the Python filename containing the `@transform` function.\nThe runner calls it with one pandas DataFrame per dep, as a keyword\nargument named by the dep's leaf name, and the function returns one\nDataFrame.\n\nFor both script surfaces:\n\n`function` optionally overrides which decorated function in the script\nbacks this dataset. When unset, the runner binds the function whose name\nmatches the dataset's leaf name. Setting this lets one shared function\nback many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,\n`tb_cih`). `args` is an arbitrary dict passed to the function's\nkeyword-only `args` parameter, if it declares one. The script lives under\n`Code/`, mirroring the dataset's folder under `Models/`.\n\nWhatever the engine, the output is parquet, so there is no format to set:\na transform's output is typed and read back by scanning it, and neither\nsurvives csv or json.\n\nReading a published version (`@published`):\n\nA `deps` entry `<name>@published` reads the published version of a\ndataset, not the version this run writes. It does not order the steps, so\na step can name its own dataset. For its own dataset the step reads exactly\nthe version its new version replaces, and if another run publishes first,\nthe publication of this run fails. For another dataset of the pipeline, it\nreads the version published before the run, also under `ON_COMPLETE`,\nwhich publishes each step when it finishes. For a dataset of another\npipeline, it reads the version published when the step starts, so two\nsteps that read it can see different versions if that pipeline publishes\nduring the run; when they must agree, read it in one step and pass that\nstep's output on as an ordinary dep. The name is the qualified name: in\n`Models/silver/`, the step `history` reads its own version as\n`silver.history@published`. SQL reads the entry as the view\n`\"<leaf>@published\"` (quoted); a script function takes it in a `**`\nparameter, under the same key. Only the Datasets and Iceberg stores keep\nversions, and a step reads only datasets of the store the pipeline runs\non; the Farseer Files store refuses the entry.\n\nA dataset with no published version has no relation, and SQL that reads it\nfails. `is_published('<name>')` is true when the dependency has a version on\nthis run, so guard the part of the query that reads it. The rows of\n`customers` that are new or changed since the last publication:\n\n deps: [customers, customers@published]\n query: >\n SELECT * FROM customers\n {{ 'EXCEPT SELECT * FROM \"customers@published\"'\n if is_published('customers') else '' }}\n\n`run_time()` is the instant the run started, in UTC, as text for\n`TIMESTAMP '{{ run_time() }}'`.\n\nSCD type 2 history (`scd2()`):\n\n name: customers_history\n type: transform\n deps: [customers, customers_history@published]\n transform:\n engine: duckdb\n query: >\n {{ scd2(snapshot='customers', key=['customer_id'],\n track=['region', 'sales_rep']) }}\n\nThe step publishes the snapshot's columns plus `__valid_from` and\n`__valid_to` (UTC `TIMESTAMP`; `__valid_to` is empty on the open row of a\nkey) and `__is_current` (`BOOLEAN`, true on that open row). A change of\na tracked column closes the open row and opens a new one at `run_time()`.\nAn untracked column changes on the open row only. A key that leaves the\nsnapshot closes (`close_missing=False` keeps it open), and a new or\nreturning key opens at `run_time()`. The first run opens every row at\n`initial_valid_from` (default `'1900-01-01 00:00:00'`). A NULL key value\nor a repeated key in the snapshot fails the step. An empty string is a key\nvalue: reject it in the snapshot step if it means no key. A tracked column\nthat the snapshot does not have fails the step, and so does a column that\nthe snapshot and the history both have with two types, also when only the\ncase of its name changed. A run fails when the published history holds a\ntime later than its own start, usually because a run that started later\npublished first. A later run fails when the snapshot has no rows and the\nhistory has open rows, because a source read that returned nothing would\nclose every key: `allow_empty=True` lets one run close them. The step logs\nhow many rows it opened and closed. The step must declare its own `<name>@published` and keep\n`write_mode: overwrite`, because it writes the whole history on every run.\nA `schema:` on the history step must declare the key and the tracked\ncolumns, and the three history columns by their exact names, because a\nstep with a `schema:` keeps only the columns it declares. An `initial_valid_from` later than the run's start\nis refused.\n\nThe snapshot must hold the complete population: a key that is missing\ncloses. Put quality rules on every dataset that the snapshot reads, so\nthat a partial read fails before the history sees it: a minimum on the\nkey (`custom__distinct_count` with `min`), a format rule on the key (for\nexample `str_length`), and `not_null` on columns that come from a joined\ntable.\nA dataset restore returns the history to an earlier version, and does not\nundo writes to the planning model. Never feed a shared history from a\npartial snapshot, such as an incremental window kept with `overwrite` or a\nrun narrowed to one company or period: every key outside it closes. Do not\noverlap history runs: an earlier run fails only when a later one published\nfirst and opened or closed a row. A later first run, a run with no change\nor a run that changed only untracked values writes no such time, so the\nearlier run still publishes its older snapshot after the newer one. Build the snapshot\nwith a `LEFT JOIN` from the table that holds the population, deduplicate\nwith a full\n`ORDER BY`, give each column a fixed type in its `schema:`, and keep the\nextract and its history in one pipeline. A change of `key` is not\ndetected: start a new history for a new key. A new column is untracked in\nthe run that adds it, because the published history does not have it yet:\nadd it to `track` from the next run. A snapshot column with the name of one\nof the three history columns, in any letter case, fails the step. A source\ncolumn such as `valid_from` is ordinary data and can be tracked. Load a\ndimension from the snapshot, or from the latest row per key, and never with\n`delete_missing: true` from a history. Facts by date, and the value on a\ndate beside today's:\n\n SELECT i.*, h.region FROM invoices i\n LEFT JOIN customers_history h ON h.customer_id = i.customer_id\n AND i.invoice_date >= CAST(h.__valid_from AS DATE)\n AND (h.__valid_to IS NULL OR i.invoice_date < CAST(h.__valid_to AS DATE))\n\n SELECT o.customer_id, o.region AS region_now, d.region AS region_nov_1\n FROM customers_history o LEFT JOIN customers_history d\n ON d.customer_id = o.customer_id\n AND CAST(d.__valid_from AS DATE) <= DATE '2026-11-01'\n AND (d.__valid_to IS NULL OR DATE '2026-11-01' < CAST(d.__valid_to AS DATE))\n WHERE o.__is_current\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `engine` | [TransformEngine](#transformengine) | no | `\"python\"` | |\n| `script` | string or null | no | `null` | |\n| `function` | string or null | no | `null` | |\n| `query` | string or null | no | `null` | |\n| `sql_file` | string or null | no | `null` | |\n| `args` | object | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_monthly.yaml: a file's name must match its `name:`.\n# Totals the month by product and region in SQL. Each dep is a view named after\n# its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.\nname: sales_monthly\ntype: transform\ndeps: [sales]\ntransform:\n engine: duckdb\n query: |\n SELECT\n product,\n region,\n strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,\n CAST(SUM(amount) AS DOUBLE) AS amount\n FROM sales\n GROUP BY ALL\n```\n",
|
|
122
122
|
"TransformEngine": "## TransformEngine\n\nHow a transform is authored, and therefore whether it materialises.\n\nNot the compute engine, despite the name: there is one of those, DuckDB, and\nevery surface here runs on it. What this selects is the authoring surface --\nand because exactly one surface holds a whole dataset in memory, it is also\nthe step's resource envelope, declared where a scheduler can read it before\nthe step has ever run. The name is kept because the field is a tenant's\nYAML.\n\n`duckdb` runs author SQL over the dependency relations. Streams.\n\n`ibis` runs an `@ibis_transform` function over lazy tables, returning one.\nStreams.\n\n`python` runs a `@transform` function over DataFrames, returning one. **The\nonly surface that materialises**, so a step declaring it is bounded by the\ncontainer rather than by a memory limit.\n\nValues: `\"python\"`, `\"duckdb\"`, `\"ibis\"`\n",
|
|
123
123
|
"WriteMode": "## WriteMode\n\nChoose how a parse step or transform writes its output to a dataset.\n\n`overwrite` replaces the rows, `append` adds rows, and `upsert` replaces\nmatching keys while retaining the others. The tenant chooses the mode on\neach run, independently of whether the source uses a SQL cursor.\nOverwriting an incremental window and appending a complete result are both\nintentional choices we support. A SAP OData window (`cursor` or `odp`) is\nthe exception: a changed row arrives again, so the parse step reading it\nmust upsert on the entity's key, or the run fails before any step runs. The\nstore must implement the requested mode; currently only the Iceberg store\nsupports append and upsert. An extract declares no mode: it stores a\npayload, and the dataset is the parse step reading it.\n\nQuality rules and `schema:` see the accumulated dataset rather than this\nrun's rows, because validation loads back what was persisted. A rule has to\nhold across runs. Schema-only checks avoid a cached copy, but quality rules\nmaterialize the full dataset; incremental reads do not make validation cost\nproportional to the new window.\n\nA run whose window read no rows publishes no version and adds no file, so\nwhat a consumer reads tracks changes rather than runs. The exception is an\nextractor that returns its position as a `MovedPosition` (SAP ODP, which\nserves an older delta token only as a recovery of what it already\ndelivered): that window is published, empty, to carry it. Declared validation\nstill checks the published dataset: rules may have changed since the last\npublication. A first run over an empty source does publish, so a consumer\nfinds an empty dataset rather than none, provided its columns are typed:\ndeclared under `schema:`, or already typed in the payload, as a SAP OData\nread's are from the service's `$metadata`. Without types the Iceberg store\nrefuses that run: every column of an empty result arrives untyped, and a\nnew table needs types.\n\nThe candidate that a quiet run opened is cancelled and its logical version\nnumber stays consumed. Physical cleanup and metadata retention are deferred;\nthe abandonment sweep only marks eligible active attempts cancelled.\n\nValues: `\"overwrite\"`, `\"append\"`, `\"upsert\"`\n",
|
|
124
124
|
"XlsxParseOptions": "## XlsxParseOptions\n\nHow to read an xlsx payload.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `sheet_name` | string or integer | no | `0` | |\n| `columns` | string or null | no | `null` | |\n| `has_header` | boolean | no | `true` | |\n| `start_row` | integer or null | no | `null` | |\n",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var dimensionMembers_exports = {};
|
|
30
|
+
__export(dimensionMembers_exports, {
|
|
31
|
+
findDimensionMemberById: () => findDimensionMemberById
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(dimensionMembers_exports);
|
|
34
|
+
var farseer = __toESM(require("farseer-client"));
|
|
35
|
+
async function findDimensionMemberById(client, tableName, id) {
|
|
36
|
+
const maps = await client.initTagMap();
|
|
37
|
+
const table = await client.getDimensionTable(tableName);
|
|
38
|
+
const member = maps.mapById.get(id);
|
|
39
|
+
if (member === void 0 || member.type !== farseer.TagType.Dimension) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const seen = /* @__PURE__ */ new Set();
|
|
43
|
+
let parent = member.ParentId;
|
|
44
|
+
while (parent !== null && parent !== table.id && !seen.has(parent)) {
|
|
45
|
+
seen.add(parent);
|
|
46
|
+
parent = maps.mapById.get(parent)?.ParentId ?? null;
|
|
47
|
+
}
|
|
48
|
+
return parent === table.id ? member : null;
|
|
49
|
+
}
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
findDimensionMemberById
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=dimensionMembers.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/dimensionMembers.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAAyB;AASzB,eAAsB,wBAClB,QACA,WACA,IACyC;AACzC,QAAM,OAAO,MAAM,OAAO,WAAW;AACrC,QAAM,QAAQ,MAAM,OAAO,kBAAkB,SAAS;AACtD,QAAM,SAAS,KAAK,QAAQ,IAAI,EAAE;AAClC,MAAI,WAAW,UAAa,OAAO,SAAS,QAAQ,QAAQ,WAAW;AACnE,WAAO;AAAA,EACX;AACA,QAAM,OAAO,oBAAI,IAAY;AAC7B,MAAI,SAAS,OAAO;AACpB,SAAO,WAAW,QAAQ,WAAW,MAAM,MAAM,CAAC,KAAK,IAAI,MAAM,GAAG;AAChE,SAAK,IAAI,MAAM;AACf,aAAS,KAAK,QAAQ,IAAI,MAAM,GAAG,YAAY;AAAA,EACnD;AACA,SAAO,WAAW,MAAM,KAAK,SAAS;AAC1C;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -30,6 +30,7 @@ var entityResolver_exports = {};
|
|
|
30
30
|
__export(entityResolver_exports, {
|
|
31
31
|
collectFolderItems: () => collectFolderItems,
|
|
32
32
|
describeAmbiguity: () => describeAmbiguity,
|
|
33
|
+
isMissing: () => isMissing,
|
|
33
34
|
listSheets: () => listSheets,
|
|
34
35
|
resolveDashboard: () => resolveDashboard,
|
|
35
36
|
resolveSheet: () => resolveSheet
|
|
@@ -202,6 +203,7 @@ function describeIdNameClash(plural, typedId, matches, located, listed) {
|
|
|
202
203
|
0 && (module.exports = {
|
|
203
204
|
collectFolderItems,
|
|
204
205
|
describeAmbiguity,
|
|
206
|
+
isMissing,
|
|
205
207
|
listSheets,
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AAM,EAAE,KAAK;AAClD,QAAM,OACF,WAAW,WAAW,KAAK,UAAU,WAAW,IAC1C,QAAQ,MAAM,IAAI,sBAAsB,MAAM,CAAC,EAAE,IAAI,qBACrD,UAAU,SAAS,IACjB,QAAQ,UAAU,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,IAAI,CAAC,MACnE;AACZ,QAAM,QAAQ,WACT,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,EACtB,IAAI,CAAC,MAAM,mBAAmB,EAAE,KAAK,uDAAuD;AACjG,SAAO;AAAA,IACH,IAAI,OAAO,mCAAmC,IAAI,KAAK,MAAM,IAAI,qBAAqB,MAAM;AAAA,IAC5F;AAAA,IACA,GAAG;AAAA,EACP,EACK,OAAO,OAAO,EACd,KAAK,GAAG;AACjB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/docs/cli-guide.md
CHANGED
|
@@ -224,6 +224,8 @@ farseer dimensions create "Sales regions" --folder-path "Dimensions/Sales"
|
|
|
224
224
|
farseer dimensions create-member --table "Sales regions" --name Nordics
|
|
225
225
|
farseer dimensions create-member --table "Sales regions" --name Norway --parent Nordics
|
|
226
226
|
farseer dimensions create-member --table "AC Period" --name Q1 --compound --formula 'or($101,$102,$103)'
|
|
227
|
+
farseer dimensions delete-member --table "Sales regions" --name Nordics -y
|
|
228
|
+
farseer dimensions delete-member --table "Sales regions" --id 4711 -y # a member that shares its name with another
|
|
227
229
|
|
|
228
230
|
# Variables (farseer_create_variable, farseer_update_variable)
|
|
229
231
|
farseer variables create --name Margin --dimensions Product,Years,Months --formula 'Revenue - Cost' \
|
|
@@ -296,7 +298,7 @@ farseer dashboards delete "Sales (copy)" -y
|
|
|
296
298
|
|
|
297
299
|
## Sheets
|
|
298
300
|
|
|
299
|
-
`farseer sheets` lists, reads and changes sheets. A sheet is named by its name or numeric id. With `--json`, `rows`, `create`, `create-row`, `update-row`, `delete-row` and `set-columns` print the MCP tool's payload with `tenant` and without `success
|
|
301
|
+
`farseer sheets` lists, reads and changes sheets. A sheet is named by its name or numeric id. With `--json`, `rows`, `create`, `create-row`, `update-row`, `delete-row` and `set-columns` print the MCP tool's payload with `tenant` and without `success`, and `update` and the line commands a result of the same shape; `list --json` prints the plain array of sheets, `show --json` the whole sheet, and `data --json` its columns and rows.
|
|
300
302
|
|
|
301
303
|
```bash
|
|
302
304
|
farseer sheets list --limit 20 --offset 20 # page through the sheets
|
|
@@ -323,12 +325,24 @@ farseer sheets show "Plan 2026" --json | jq .columns > columns.json # edit, th
|
|
|
323
325
|
farseer sheets set-columns "Plan 2026" --input columns.json -y
|
|
324
326
|
```
|
|
325
327
|
|
|
326
|
-
**Lines.** `create-line` adds one NUMBER line on either axis, by name or id, which also fills a dashboard tile's sheet (by its numeric id). A row line lists a table's members; a column line is one variable at the members that filter it.
|
|
328
|
+
**Lines.** `create-line` adds one NUMBER line on either axis, by name or id, which also fills a dashboard tile's sheet (by its numeric id). A row line lists a table's members; a column line is one variable at the members that filter it. Any other line, such as a COMPARISON column, comes whole from `--input`, with ids instead of names. `lines` lists a sheet's lines, `update-line` changes the fields its `--input` holds, and `delete-line` deletes a line with the lines nested under it (a preview without `-y`).
|
|
327
329
|
|
|
328
330
|
```bash
|
|
329
|
-
farseer sheets create-line 424 --axis row --name Companies --table "Company (LVL3)"
|
|
331
|
+
farseer sheets create-line 424 --axis row --name Companies --table "Company (LVL3)" # --hierarchy-flatten for one line per member
|
|
330
332
|
farseer sheets create-line 424 --axis column --name "Revenue Plan 2026" \
|
|
331
333
|
--variable Revenue --member Versions=Plan --member Years=Y2026
|
|
334
|
+
farseer sheets create-line 424 --input comparison.json # {"axis": "COLUMN", "type": "COMPARISON", "comparisonOptions": {...}}
|
|
335
|
+
farseer sheets lines 424 --axis column --json
|
|
336
|
+
farseer sheets update-line 424 4593 --input rename.json # {"name": "AC"}
|
|
337
|
+
farseer sheets delete-line 424 4593 -y
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
Rows, custom columns and lines are the same objects in two shapes. A row is a ROW line with the same id: `rows` and `lines --axis row` list the same rows, except on a sheet that mirrors another's rows, where `lines` lists the origin's. A custom column is a COLUMN line (its `id` in `columns.custom` is the column's own, not the line id), so `set-columns` with a `custom` array deletes the lines of the columns missing from it. Standard and timeline columns are settings of the sheet, not lines.
|
|
341
|
+
|
|
342
|
+
**Settings.** `update` deep-merges the `name`, `stacked`, `rows` and `display` its `--input` holds into the sheet, so a change names only what differs. A key is overwritten, never removed. Ranking, top N and only-with-data live in `rows`. A `display.columnConfig` entry names a column's `key`, `width` and `order`: it sets the width of any column, and the order only of the name, description and timeline columns. A column that comes from a line takes its place from that line's order, changed with `farseer sheets update-line`, and a changed `order` for it is refused. On a sheet that mirrors another, a change to what it takes from that sheet (its filters, ranking, row heights or column widths and order) is refused: make it on the sheet it mirrors.
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
farseer sheets update 424 --input ranking.json # {"rows": {"sort": {"enabled": true, "topN": 15, ...}}}
|
|
332
346
|
```
|
|
333
347
|
|
|
334
348
|
## Tenant Resolution
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Pipeline YAML reference: engine 3.
|
|
1
|
+
# Pipeline YAML reference: engine 3.5.0
|
|
2
2
|
|
|
3
3
|
Generated file. Regenerate with `tools/pipeline/generate_docs.py`.
|
|
4
4
|
|
|
@@ -130,7 +130,7 @@ Unknown fields are rejected.
|
|
|
130
130
|
| `schema_version` | integer | no | `1` | minimum=`1` |
|
|
131
131
|
| `name` | string | yes | none | |
|
|
132
132
|
| `type` | [StepType](#steptype) | yes | none | |
|
|
133
|
-
| `deps` | array of string | no | none |
|
|
133
|
+
| `deps` | array of string | no | none | Qualified names of the datasets this step reads, each produced by a step of this pipeline, which runs first. On a transform, `<name>@published` reads the published version of a dataset instead: it does not order the steps, and it can name the step's own dataset (see TransformConfig). |
|
|
134
134
|
| `description` | string | no | `""` | For the client, who reads it in the step's panel on the Pipeline tab: what the step does, and any rule needed to judge its result. Plain words, at most about 300 characters, no build details. |
|
|
135
135
|
| `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |
|
|
136
136
|
| `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |
|
|
@@ -144,7 +144,7 @@ Unknown fields are rejected.
|
|
|
144
144
|
| `sort_by` | array of string | no | none | |
|
|
145
145
|
| `max_file_size` | string or integer or null | no | `null` | |
|
|
146
146
|
|
|
147
|
-
Runtime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`.
|
|
147
|
+
Runtime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`, `published_deps`, `query_template`.
|
|
148
148
|
|
|
149
149
|
## BusinessCentralExtractConfig
|
|
150
150
|
|
|
@@ -663,21 +663,19 @@ this target writes a single, user-readable report to a path the author
|
|
|
663
663
|
picks (`file_path`, relative to the Files root — the leading `Files/`
|
|
664
664
|
is implied, exactly like the extractor's `file:`).
|
|
665
665
|
|
|
666
|
-
**Parquet
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
the
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
opt-in for the "download and open outside Farseer" case, with the
|
|
680
|
-
lossiness documented at that point.
|
|
666
|
+
**Parquet unless `format: xlsx`.** Parquet reproduces the DataFrame
|
|
667
|
+
exactly: it stores dtypes, float precision, null-vs-NaN, datetimes and
|
|
668
|
+
leading-zero string codes in the file's own metadata, and the Files page
|
|
669
|
+
previews it with those types. `format: xlsx` writes a workbook instead,
|
|
670
|
+
for a client who downloads the file and opens it in Excel: one sheet
|
|
671
|
+
holding the table, named and headed by the `xlsx:` block as on the
|
|
672
|
+
SharePoint export. Excel keeps at most 15 significant digits of a
|
|
673
|
+
number, so an integer of more than 15 digits, such as a long
|
|
674
|
+
source-system ID, opens in Excel as a different number, without an error;
|
|
675
|
+
keep such a column as text in the step that feeds the export. A
|
|
676
|
+
sheet holds at most 1,048,576 rows, its header included, and a larger
|
|
677
|
+
source fails the step before anything is written. `file_path` ends in
|
|
678
|
+
the format's extension, `.parquet` or `.xlsx`.
|
|
681
679
|
|
|
682
680
|
`source_dataset` names the single dep whose DataFrame is written to the
|
|
683
681
|
file -- the same source-naming field SharePoint export uses. An export
|
|
@@ -692,6 +690,8 @@ Unknown fields are rejected.
|
|
|
692
690
|
| `file_path` | string | yes | none | Path under Files, ending in the file name. The folder must already exist: the export does not create folders. |
|
|
693
691
|
| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `"fail"` | |
|
|
694
692
|
| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |
|
|
693
|
+
| `format` | `"parquet"`, `"xlsx"` | no | `"parquet"` | |
|
|
694
|
+
| `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |
|
|
695
695
|
|
|
696
696
|
## FarseerFilesExtractConfig
|
|
697
697
|
|
|
@@ -2296,6 +2296,114 @@ Whatever the engine, the output is parquet, so there is no format to set:
|
|
|
2296
2296
|
a transform's output is typed and read back by scanning it, and neither
|
|
2297
2297
|
survives csv or json.
|
|
2298
2298
|
|
|
2299
|
+
Reading a published version (`@published`):
|
|
2300
|
+
|
|
2301
|
+
A `deps` entry `<name>@published` reads the published version of a
|
|
2302
|
+
dataset, not the version this run writes. It does not order the steps, so
|
|
2303
|
+
a step can name its own dataset. For its own dataset the step reads exactly
|
|
2304
|
+
the version its new version replaces, and if another run publishes first,
|
|
2305
|
+
the publication of this run fails. For another dataset of the pipeline, it
|
|
2306
|
+
reads the version published before the run, also under `ON_COMPLETE`,
|
|
2307
|
+
which publishes each step when it finishes. For a dataset of another
|
|
2308
|
+
pipeline, it reads the version published when the step starts, so two
|
|
2309
|
+
steps that read it can see different versions if that pipeline publishes
|
|
2310
|
+
during the run; when they must agree, read it in one step and pass that
|
|
2311
|
+
step's output on as an ordinary dep. The name is the qualified name: in
|
|
2312
|
+
`Models/silver/`, the step `history` reads its own version as
|
|
2313
|
+
`silver.history@published`. SQL reads the entry as the view
|
|
2314
|
+
`"<leaf>@published"` (quoted); a script function takes it in a `**`
|
|
2315
|
+
parameter, under the same key. Only the Datasets and Iceberg stores keep
|
|
2316
|
+
versions, and a step reads only datasets of the store the pipeline runs
|
|
2317
|
+
on; the Farseer Files store refuses the entry.
|
|
2318
|
+
|
|
2319
|
+
A dataset with no published version has no relation, and SQL that reads it
|
|
2320
|
+
fails. `is_published('<name>')` is true when the dependency has a version on
|
|
2321
|
+
this run, so guard the part of the query that reads it. The rows of
|
|
2322
|
+
`customers` that are new or changed since the last publication:
|
|
2323
|
+
|
|
2324
|
+
deps: [customers, customers@published]
|
|
2325
|
+
query: >
|
|
2326
|
+
SELECT * FROM customers
|
|
2327
|
+
{{ 'EXCEPT SELECT * FROM "customers@published"'
|
|
2328
|
+
if is_published('customers') else '' }}
|
|
2329
|
+
|
|
2330
|
+
`run_time()` is the instant the run started, in UTC, as text for
|
|
2331
|
+
`TIMESTAMP '{{ run_time() }}'`.
|
|
2332
|
+
|
|
2333
|
+
SCD type 2 history (`scd2()`):
|
|
2334
|
+
|
|
2335
|
+
name: customers_history
|
|
2336
|
+
type: transform
|
|
2337
|
+
deps: [customers, customers_history@published]
|
|
2338
|
+
transform:
|
|
2339
|
+
engine: duckdb
|
|
2340
|
+
query: >
|
|
2341
|
+
{{ scd2(snapshot='customers', key=['customer_id'],
|
|
2342
|
+
track=['region', 'sales_rep']) }}
|
|
2343
|
+
|
|
2344
|
+
The step publishes the snapshot's columns plus `__valid_from` and
|
|
2345
|
+
`__valid_to` (UTC `TIMESTAMP`; `__valid_to` is empty on the open row of a
|
|
2346
|
+
key) and `__is_current` (`BOOLEAN`, true on that open row). A change of
|
|
2347
|
+
a tracked column closes the open row and opens a new one at `run_time()`.
|
|
2348
|
+
An untracked column changes on the open row only. A key that leaves the
|
|
2349
|
+
snapshot closes (`close_missing=False` keeps it open), and a new or
|
|
2350
|
+
returning key opens at `run_time()`. The first run opens every row at
|
|
2351
|
+
`initial_valid_from` (default `'1900-01-01 00:00:00'`). A NULL key value
|
|
2352
|
+
or a repeated key in the snapshot fails the step. An empty string is a key
|
|
2353
|
+
value: reject it in the snapshot step if it means no key. A tracked column
|
|
2354
|
+
that the snapshot does not have fails the step, and so does a column that
|
|
2355
|
+
the snapshot and the history both have with two types, also when only the
|
|
2356
|
+
case of its name changed. A run fails when the published history holds a
|
|
2357
|
+
time later than its own start, usually because a run that started later
|
|
2358
|
+
published first. A later run fails when the snapshot has no rows and the
|
|
2359
|
+
history has open rows, because a source read that returned nothing would
|
|
2360
|
+
close every key: `allow_empty=True` lets one run close them. The step logs
|
|
2361
|
+
how many rows it opened and closed. The step must declare its own `<name>@published` and keep
|
|
2362
|
+
`write_mode: overwrite`, because it writes the whole history on every run.
|
|
2363
|
+
A `schema:` on the history step must declare the key and the tracked
|
|
2364
|
+
columns, and the three history columns by their exact names, because a
|
|
2365
|
+
step with a `schema:` keeps only the columns it declares. An `initial_valid_from` later than the run's start
|
|
2366
|
+
is refused.
|
|
2367
|
+
|
|
2368
|
+
The snapshot must hold the complete population: a key that is missing
|
|
2369
|
+
closes. Put quality rules on every dataset that the snapshot reads, so
|
|
2370
|
+
that a partial read fails before the history sees it: a minimum on the
|
|
2371
|
+
key (`custom__distinct_count` with `min`), a format rule on the key (for
|
|
2372
|
+
example `str_length`), and `not_null` on columns that come from a joined
|
|
2373
|
+
table.
|
|
2374
|
+
A dataset restore returns the history to an earlier version, and does not
|
|
2375
|
+
undo writes to the planning model. Never feed a shared history from a
|
|
2376
|
+
partial snapshot, such as an incremental window kept with `overwrite` or a
|
|
2377
|
+
run narrowed to one company or period: every key outside it closes. Do not
|
|
2378
|
+
overlap history runs: an earlier run fails only when a later one published
|
|
2379
|
+
first and opened or closed a row. A later first run, a run with no change
|
|
2380
|
+
or a run that changed only untracked values writes no such time, so the
|
|
2381
|
+
earlier run still publishes its older snapshot after the newer one. Build the snapshot
|
|
2382
|
+
with a `LEFT JOIN` from the table that holds the population, deduplicate
|
|
2383
|
+
with a full
|
|
2384
|
+
`ORDER BY`, give each column a fixed type in its `schema:`, and keep the
|
|
2385
|
+
extract and its history in one pipeline. A change of `key` is not
|
|
2386
|
+
detected: start a new history for a new key. A new column is untracked in
|
|
2387
|
+
the run that adds it, because the published history does not have it yet:
|
|
2388
|
+
add it to `track` from the next run. A snapshot column with the name of one
|
|
2389
|
+
of the three history columns, in any letter case, fails the step. A source
|
|
2390
|
+
column such as `valid_from` is ordinary data and can be tracked. Load a
|
|
2391
|
+
dimension from the snapshot, or from the latest row per key, and never with
|
|
2392
|
+
`delete_missing: true` from a history. Facts by date, and the value on a
|
|
2393
|
+
date beside today's:
|
|
2394
|
+
|
|
2395
|
+
SELECT i.*, h.region FROM invoices i
|
|
2396
|
+
LEFT JOIN customers_history h ON h.customer_id = i.customer_id
|
|
2397
|
+
AND i.invoice_date >= CAST(h.__valid_from AS DATE)
|
|
2398
|
+
AND (h.__valid_to IS NULL OR i.invoice_date < CAST(h.__valid_to AS DATE))
|
|
2399
|
+
|
|
2400
|
+
SELECT o.customer_id, o.region AS region_now, d.region AS region_nov_1
|
|
2401
|
+
FROM customers_history o LEFT JOIN customers_history d
|
|
2402
|
+
ON d.customer_id = o.customer_id
|
|
2403
|
+
AND CAST(d.__valid_from AS DATE) <= DATE '2026-11-01'
|
|
2404
|
+
AND (d.__valid_to IS NULL OR DATE '2026-11-01' < CAST(d.__valid_to AS DATE))
|
|
2405
|
+
WHERE o.__is_current
|
|
2406
|
+
|
|
2299
2407
|
Unknown fields are rejected.
|
|
2300
2408
|
|
|
2301
2409
|
| YAML field | Type | Required | Default | Constraints / description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "farseer-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "CLI tool for syncing Farseer App scripts between local folder and Farseer instances",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"chalk": "^4.1.2",
|
|
56
56
|
"commander": "^11.1.0",
|
|
57
57
|
"diff": "^5.1.0",
|
|
58
|
-
"farseer-client": "npm:@farseerdev/farseer-client@1.
|
|
58
|
+
"farseer-client": "npm:@farseerdev/farseer-client@1.29.0",
|
|
59
59
|
"inquirer": "^8.2.6",
|
|
60
60
|
"js-yaml": "4.1.1",
|
|
61
61
|
"zod": "^3.25.0"
|