/** * GENERATED by scripts/sync-v2-contract.mjs from not-front-v2.schema.json. * Do not edit by hand: change wire.py in the suite and re-run the sync. */ export type Field = string; export type Label = string; export type Component = 'v2.bars'; export type Datasource = PiperLiteDataSourceWire; export type Dataframe = string; export type Pipelinecode = string; export type Dependson = string[]; export type Authorization = string; export type Tenant = string; export type Kind = 'piperLite'; export type Method = 'post'; export type Url = string; export type Dependencies = string[] | null; export type Hash = number | null; export type Hint = string | null; export type Responsekey = string; export type Series = BarsSeriesWire[]; export type Stack = 'stacked' | null; export type Title = string; export type Variant = 'vertical' | 'horizontal'; export type X = string; export type Component1 = 'v2.download'; export type Dependencies1 = string[] | null; export type Dependson1 = string[]; export type Filetitle = string; export type Label1 = string; export type Value = string; export type Filters = ExportFilterWire[]; export type Formats = ('xlsx' | 'csv')[]; export type Kind1 = 'piperLiteExport'; export type Maxrows = number; export type Method1 = 'post'; export type Label2 = string; export type Name = string; export type Columns = ExportColumnWire[]; export type Dataframe1 = string; export type Pipelinecode1 = string; export type Title1 = string; export type Sheets = ExportSheetWire[]; export type Url1 = string; export type Hash1 = number | null; export type Hint1 = string | null; export type Missingfilters = string[]; export type Responsekey1 = string; export type Title2 = string; export type Unavailable = 'too_many_pieces' | null; export type Variant1 = 'card' | 'action'; export type File = string; export type Filetitle1 = string; export type Kind2 = 'piperLiteFile'; export type Pipelinecode2 = string; export type Url2 = string; export type Component2 = 'v2.file'; export type Dependencies2 = string[] | null; export type Hash2 = number | null; export type Hint2 = string | null; export type Responsekey2 = string; export type Title3 = string; export type Default = string | string[] | null; export type Id = string; export type Label3 = string; export type Labelfield = string; export type Parentarg = string | null; export type Valuefield = string; export type Parent = string | null; export type Statekey = string; export type Type = 'select' | 'multi' | 'search'; export type Value1 = string | string[] | null; export type Controls = FilterControlWire[]; export type Title4 = string | null; export type Component3 = 'v2.filters'; export type Dependencies3 = string[] | null; export type Dependentoptions = 'live' | 'onApply'; export type Groups = FilterGroupWire[]; export type Hash3 = number | null; export type Hint3 = string | null; export type Responsekey3 = string; export type Title5 = string | null; export type Actions = { [k: string]: unknown; }[]; export type Component4 = 'v2.header'; export type Dataasof = string[] | null; export type Dependencies4 = string[] | null; export type Hash4 = number | null; export type Icon = 'hexagon' | 'chart-no-axes-combined' | 'layout-panel-top' | 'table-2' | 'file-down'; export type Responsekey4 = string; export type Subtitle = string | null; export type Title6 = string; export type Typelabel = string | null; export type Component5 = 'v2.heading'; export type Dependencies5 = string[] | null; export type Hash5 = number | null; export type Responsekey5 = string; export type Text = string; export type Field1 = string; export type Label4 = string; export type Component6 = 'v2.line'; export type Datasource1 = PiperLiteDataSourceWire; export type Dependencies6 = string[] | null; export type Hash6 = number | null; export type Hint4 = string | null; export type Responsekey6 = string; export type Series1 = LineSeriesWire[]; export type Title7 = string; export type X1 = string; export type Children = { [k: string]: unknown; }[]; export type Component7 = 'v2.page'; export type Dependencies7 = string[] | null; export type Hash7 = number | null; export type Locale = 'es-CL' | 'es-CO' | 'es-MX'; export type Note = string | null; export type Responsekey7 = string; export type Subtitle1 = string | null; export type Timezone = string; export type Title8 = string; export type Component8 = 'v2.progress'; export type Context = string | null; export type Datasource2 = PiperLiteDataSourceWire; export type Dependencies8 = string[] | null; export type Hash8 = number | null; export type Label5 = string; export type Of = string; export type Responsekey8 = string; export type Value2 = string; export type Children1 = { [k: string]: unknown; }[]; export type Span = number; export type Cells = RowsCellWire[]; export type Cols = '1' | '1/1' | '1/2' | '2/1' | '1/1/1' | '1/1/1/1'; export type Component9 = 'v2.rows'; export type Dependencies9 = string[] | null; export type Hash9 = number | null; export type Responsekey9 = string; export type Card = string | null; export type Children2 = { [k: string]: unknown; }[]; export type Component10 = 'v2.section'; export type Dependencies10 = string[] | null; export type Hash10 = number | null; export type Hint5 = string | null; export type Responsekey10 = string; export type Title9 = string; export type Component11 = 'v2.share'; export type Datasource3 = PiperLiteDataSourceWire; export type Dependencies11 = string[] | null; export type Hash11 = number | null; export type Hint6 = string | null; export type Responsekey11 = string; export type Title10 = string; export type Variant2 = 'bar' | 'donut'; export type X2 = string; export type Y = string; export type Field2 = string; export type Format = 'status' | null; export type Label6 = string; export type Tonefield = string | null; export type Columns1 = TableColumnWire[]; export type Component12 = 'v2.table'; export type Datasource4 = PiperLiteDataSourceWire; export type Dependencies12 = string[] | null; export type Hash12 = number | null; export type Hint7 = string | null; export type Pagesize = number; export type Responsekey12 = string; export type Title11 = string; export type Component13 = 'v2.text'; export type Dependencies13 = string[] | null; export type Hash13 = number | null; export type Responsekey13 = string; export type Text1 = string; /** * Wire contract of the not-front V2 components. */ export interface NotFrontV2 { [k: string]: unknown; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "BarsSeriesWire". */ export interface BarsSeriesWire { field: Field; label: Label; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "BarsWire". */ export interface BarsWire { component: Component; dataSource: Datasource; dependencies?: Dependencies; hash?: Hash; hint?: Hint; responseKey: Responsekey; series: Series; stack?: Stack; title: Title; variant: Variant; x: X; } /** * Data source served by piper-lite (ADR-SVC-0007). * * The front knows the response shape of this kind (``data`` rows), so no * JSONPath travels on the wire (ADR-SVC-0011 decision 3). ``depends_on`` is * the room reserved for partial updates (ADR-SVC-0011 decision 4). * * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "PiperLiteDataSourceWire". */ export interface PiperLiteDataSourceWire { body: PiperLiteBodyWire; dependsOn: Dependson; headers: PiperLiteHeadersWire; kind: Kind; method: Method; url: Url; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "PiperLiteBodyWire". */ export interface PiperLiteBodyWire { args: Args; dataframe: Dataframe; pipelineCode: Pipelinecode; } export interface Args { [k: string]: string | number | boolean | (string | number | number | boolean)[]; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "PiperLiteHeadersWire". */ export interface PiperLiteHeadersWire { Authorization: Authorization; Tenant: Tenant; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "DownloadWire". */ export interface DownloadWire { component: Component1; dependencies?: Dependencies1; export?: ExportSourceWire | null; hash?: Hash1; hint?: Hint1; missingFilters: Missingfilters; responseKey: Responsekey1; title: Title2; unavailable?: Unavailable; variant: Variant1; } /** * Request of the piper-lite on-demand export (``POST /api/v1/exports/``). * * The front knows the protocol (ADR-SVC-0011 decision 3): it maps these fields * to the task 06 snake_case body and sends one ``format`` of ``formats``. * * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ExportSourceWire". */ export interface ExportSourceWire { dependsOn: Dependson1; fileTitle: Filetitle; filters: Filters; formats: Formats; headers: PiperLiteHeadersWire; kind: Kind1; maxRows: Maxrows; method: Method1; sheets: Sheets; url: Url1; } /** * Display text for the "Informacion" sheet; never sent to the pipeline. * * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ExportFilterWire". */ export interface ExportFilterWire { label: Label1; value: Value; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ExportSheetWire". */ export interface ExportSheetWire { args: Args1; columns: Columns; dataframe: Dataframe1; pipelineCode: Pipelinecode1; title: Title1; } export interface Args1 { [k: string]: string | number | boolean | (string | number | number | boolean)[]; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ExportColumnWire". */ export interface ExportColumnWire { label: Label2; name: Name; } /** * Where the pre-generated file lives (``/api/v1/files/``, task 07). * * The front knows the protocol (ADR-SVC-0011 decision 3, task 07): * versions listing ``GET versions/?pipeline_code=&file=`` * (contract only, no route yet); sign ``POST sign/`` with the closed * JSON body ``{pipeline_code, file, format, version, title}``, where ``title`` * is ``fileTitle`` and ``format``/``version`` come from the chosen versions * row. Headers ``Tenant`` and ``Authorization`` come from ``headers``. The * ``/api/v1/files/`` suffix is built by server code, not validated here. No * URL, key, signature or version data travels here. * * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FileSourceWire". */ export interface FileSourceWire { file: File; fileTitle: Filetitle1; headers: PiperLiteHeadersWire; kind: Kind2; pipelineCode: Pipelinecode2; url: Url2; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FileWire". */ export interface FileWire { component: Component2; dependencies?: Dependencies2; fileSource: FileSourceWire; hash?: Hash2; hint?: Hint2; responseKey: Responsekey2; title: Title3; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FilterControlWire". */ export interface FilterControlWire { default?: Default; id: Id; label: Label3; options?: FilterOptionsWire | null; parent?: Parent; stateKey: Statekey; type: Type; value?: Value1; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FilterOptionsWire". */ export interface FilterOptionsWire { labelField: Labelfield; parentArg?: Parentarg; source: PiperLiteDataSourceWire; valueField: Valuefield; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FilterGroupWire". */ export interface FilterGroupWire { controls: Controls; title?: Title4; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "FiltersWire". */ export interface FiltersWire { component: Component3; dependencies?: Dependencies3; dependentOptions: Dependentoptions; groups: Groups; hash?: Hash3; hint?: Hint3; responseKey: Responsekey3; title?: Title5; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "HeaderWire". */ export interface HeaderWire { actions: Actions; component: Component4; dataAsOf?: Dataasof; dependencies?: Dependencies4; hash?: Hash4; icon: Icon; responseKey: Responsekey4; subtitle?: Subtitle; title: Title6; typeLabel?: Typelabel; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "HeadingWire". */ export interface HeadingWire { component: Component5; dependencies?: Dependencies5; hash?: Hash5; responseKey: Responsekey5; text: Text; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "LineSeriesWire". */ export interface LineSeriesWire { field: Field1; label: Label4; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "LineWire". */ export interface LineWire { component: Component6; dataSource: Datasource1; dependencies?: Dependencies6; hash?: Hash6; hint?: Hint4; responseKey: Responsekey6; series: Series1; title: Title7; x: X1; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "PageWire". */ export interface PageWire { children: Children; component: Component7; dependencies?: Dependencies7; hash?: Hash7; locale: Locale; note?: Note; responseKey: Responsekey7; subtitle?: Subtitle1; timeZone: Timezone; title: Title8; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ProgressWire". */ export interface ProgressWire { component: Component8; context?: Context; dataSource: Datasource2; dependencies?: Dependencies8; hash?: Hash8; label: Label5; of: Of; responseKey: Responsekey8; value: Value2; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "RowsCellWire". */ export interface RowsCellWire { children: Children1; span: Span; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "RowsWire". */ export interface RowsWire { cells: Cells; cols: Cols; component: Component9; dependencies?: Dependencies9; hash?: Hash9; responseKey: Responsekey9; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "SectionWire". */ export interface SectionWire { card?: Card; children: Children2; component: Component10; dependencies?: Dependencies10; hash?: Hash10; hint?: Hint5; responseKey: Responsekey10; title: Title9; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "ShareWire". */ export interface ShareWire { component: Component11; dataSource: Datasource3; dependencies?: Dependencies11; hash?: Hash11; hint?: Hint6; responseKey: Responsekey11; title: Title10; variant: Variant2; x: X2; y: Y; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "TableColumnWire". */ export interface TableColumnWire { field: Field2; format?: Format; label: Label6; toneField?: Tonefield; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "TableWire". */ export interface TableWire { columns: Columns1; component: Component12; dataSource: Datasource4; dependencies?: Dependencies12; download?: ExportSourceWire | null; hash?: Hash12; hint?: Hint7; pageSize: Pagesize; responseKey: Responsekey12; title: Title11; } /** * This interface was referenced by `NotFrontV2`'s JSON-Schema * via the `definition` "TextWire". */ export interface TextWire { component: Component13; dependencies?: Dependencies13; hash?: Hash13; responseKey: Responsekey13; text: Text1; }