@gooddata/sdk-code-convertors
Enumerations
Enumeration | Description |
|---|---|
Functions
Function | Description |
|---|---|
declarativeDashboardToYaml(entities, dashboard, filterContexts, context) | |
declarativePublisherDocumentTemplateToYamlV2(template, errorContext) | (ALPHA) Converts a stored v2 document template to its as-code YAML. |
(ALPHA) | |
declarativePublisherDocumentToYamlV2(document, errorContext) | (ALPHA) Converts a stored v2 document to its as-code YAML. |
(ALPHA) | |
declarativePublisherPageTemplateToYamlV2(template, errorContext) | (ALPHA) Converts a stored v2 page template to its as-code YAML. |
declarativeVisualisationToYaml(entities, visualisation, context) | |
(ALPHA) Adds the section, page and widget ids a v2 document, document template or page template as code leaves out, so the YAML written by hand states the ids the stored entity keeps. An id counts as missing when it is absent, null or empty. Comments and the indent width survive, the line break of the first line is applied to the whole file, and the sequence style survives too, except that unindented sequences are kept only at a 2-space indent and the compact | |
fromDeclarativePermissions(permissions, hierarchyPermissions) | |
getValueOrDefault(value, defaultValue, type, undefinedAsDefault) | |
(ALPHA) The same document, written from what the frontend holds: the object reference it is identified by becomes the bare id the YAML names it with. | |
(ALPHA) Converts the v2 document the frontend holds to its as-code YAML. A document without a reference yet is written without an id. | |
(ALPHA) | |
publisherDocumentTemplateDefinitionToYamlV2(template, errorContext) | (ALPHA) |
(ALPHA) A reusable page. Its body is written at the top level, because the object it is already names it - a page written into a document names itself instead. | |
publisherPageTemplateDefinitionToYamlV2(template, errorContext) | (ALPHA) |
(ALPHA) Validates a stored v2 document, document template or page template, named by the bare | |
yamlPublisherDocumentTemplateToDeclarativeV2(input, errorContext) | (ALPHA) Converts a v2 document template as code to the stored document template. |
yamlPublisherDocumentTemplateToDefinition(input, errorContext) | (ALPHA) |
yamlPublisherDocumentTemplateToDefinitionV2(input, errorContext) | (ALPHA) |
(ALPHA) Named for the document it reads, because a visualisation’s query convertor already owns the shorter name. | |
(ALPHA) Converts a v2 document as code to the stored document. | |
(ALPHA) The same document, as the frontend holds it: an object reference in place of the bare id the YAML names it by. | |
(ALPHA) Converts a v2 document as code to the definition the frontend holds: an object reference in place of the bare id. A document written without an id reads back without a reference. | |
(ALPHA) | |
(ALPHA) | |
yamlPublisherPageTemplateToDeclarativeV2(input, errorContext) | (ALPHA) Converts a v2 page template as code to the stored page template. |
yamlPublisherPageTemplateToDefinitionV2(input, errorContext) | (ALPHA) |
Interfaces
Interface | Description |
|---|---|
Variables
Variable | Description |
|---|---|
Type Aliases
Type Alias | Description |
|---|---|
(ALPHA) | |
(ALPHA) | |
(ALPHA) | |
(ALPHA) | |
(ALPHA) A v2 Publisher entity as code written before the entity has an id. | |
(ALPHA) | |
(ALPHA) | |
A parameter AAC can represent as code: textual or numeric. Anything else has to stay under whatever tool created it. | |
The declarative-API shape of any object AAC can carry; the counterpart of EntityData. | |
A numeric parameter as the declarative API carries it. | |
(ALPHA) A document template as the declarative API stores it. | |
(ALPHA) A document as the declarative API stores it: the model’s definition named by a bare id. | |
(ALPHA) A page template as the declarative API stores it. The backend’s default page templates are not part of the declarative layout. | |
A textual parameter as the declarative API carries it. | |
The YAML-side shape of any object AAC can carry; shared so entity types cannot drift apart. | |