@gooddata/sdk-code-convertors 11.62.0-alpha.0 → 11.62.0-alpha.1
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/esm/configs/areaChart.d.ts +2 -0
- package/esm/configs/areaChart.d.ts.map +1 -1
- package/esm/configs/areaChart.js +4 -0
- package/esm/configs/comboChart.d.ts +2 -0
- package/esm/configs/comboChart.d.ts.map +1 -1
- package/esm/configs/comboChart.js +4 -0
- package/esm/configs/lineChart.d.ts +2 -0
- package/esm/configs/lineChart.d.ts.map +1 -1
- package/esm/configs/lineChart.js +4 -0
- package/esm/from/{declarativeReportPageToYaml.d.ts → declarativePublisherDocumentPageToYaml.d.ts} +5 -5
- package/esm/from/declarativePublisherDocumentPageToYaml.d.ts.map +1 -0
- package/esm/from/{declarativeReportPageToYaml.js → declarativePublisherDocumentPageToYaml.js} +13 -13
- package/esm/from/declarativePublisherDocumentToYaml.d.ts +45 -0
- package/esm/from/declarativePublisherDocumentToYaml.d.ts.map +1 -0
- package/esm/from/{declarativeReportToYaml.js → declarativePublisherDocumentToYaml.js} +40 -36
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/schemas/types.d.ts +3 -3
- package/esm/schemas/types.d.ts.map +1 -1
- package/esm/sdk-code-convertors.d.ts +78 -72
- package/esm/to/{yamlReportPageToDeclarative.d.ts → yamlPublisherDocumentPageToDeclarative.d.ts} +6 -6
- package/esm/to/yamlPublisherDocumentPageToDeclarative.d.ts.map +1 -0
- package/esm/to/{yamlReportPageToDeclarative.js → yamlPublisherDocumentPageToDeclarative.js} +7 -7
- package/esm/to/yamlPublisherDocumentToDeclarative.d.ts +25 -0
- package/esm/to/yamlPublisherDocumentToDeclarative.d.ts.map +1 -0
- package/esm/to/{yamlReportToDeclarative.js → yamlPublisherDocumentToDeclarative.js} +11 -11
- package/esm/utils/{reportFilterRefs.d.ts → publisherFilterRefs.d.ts} +1 -1
- package/esm/utils/publisherFilterRefs.d.ts.map +1 -0
- package/esm/utils/{reportFilterRefs.js → publisherFilterRefs.js} +1 -1
- package/esm/utils/texts.d.ts +3 -3
- package/esm/utils/texts.d.ts.map +1 -1
- package/esm/utils/texts.js +8 -8
- package/package.json +6 -6
- package/esm/from/declarativeReportPageToYaml.d.ts.map +0 -1
- package/esm/from/declarativeReportToYaml.d.ts +0 -45
- package/esm/from/declarativeReportToYaml.d.ts.map +0 -1
- package/esm/to/yamlReportPageToDeclarative.d.ts.map +0 -1
- package/esm/to/yamlReportToDeclarative.d.ts +0 -25
- package/esm/to/yamlReportToDeclarative.d.ts.map +0 -1
- package/esm/utils/reportFilterRefs.d.ts.map +0 -1
|
@@ -70,14 +70,14 @@ import type { Interaction } from '@gooddata/sdk-code-schemas/v1';
|
|
|
70
70
|
import { IPoPMeasureDefinition } from '@gooddata/sdk-model';
|
|
71
71
|
import { IPositiveAttributeFilterBody } from '@gooddata/sdk-model';
|
|
72
72
|
import { IPreviousPeriodMeasureDefinition } from '@gooddata/sdk-model';
|
|
73
|
+
import { IPublisherDocumentDefinition } from '@gooddata/sdk-model';
|
|
74
|
+
import { IPublisherDocumentPage } from '@gooddata/sdk-model';
|
|
75
|
+
import { IPublisherDocumentTemplate } from '@gooddata/sdk-model';
|
|
76
|
+
import { IPublisherDocumentTemplateDefinition } from '@gooddata/sdk-model';
|
|
77
|
+
import { IPublisherPageLayout } from '@gooddata/sdk-model';
|
|
78
|
+
import { IPublisherPageLayoutDefinition } from '@gooddata/sdk-model';
|
|
73
79
|
import { IRankingFilterBody } from '@gooddata/sdk-model';
|
|
74
80
|
import { IRelativeDateFilter } from '@gooddata/sdk-model';
|
|
75
|
-
import { IReportContentPage } from '@gooddata/sdk-model';
|
|
76
|
-
import { IReportDefinition } from '@gooddata/sdk-model';
|
|
77
|
-
import { IReportPageLayout } from '@gooddata/sdk-model';
|
|
78
|
-
import { IReportPageLayoutDefinition } from '@gooddata/sdk-model';
|
|
79
|
-
import { IReportTemplate } from '@gooddata/sdk-model';
|
|
80
|
-
import { IReportTemplateDefinition } from '@gooddata/sdk-model';
|
|
81
81
|
import { ISortItem } from '@gooddata/sdk-model';
|
|
82
82
|
import { ITotal } from '@gooddata/sdk-model';
|
|
83
83
|
import { JsonApiVisualizationObjectOut } from '@gooddata/api-client-tiger';
|
|
@@ -146,17 +146,17 @@ export declare type AacParameter = Parameter;
|
|
|
146
146
|
/** @public */
|
|
147
147
|
export declare type AacPlugin = Plugin_2;
|
|
148
148
|
|
|
149
|
-
/** @public */
|
|
150
|
-
export declare type AacQuery = Query;
|
|
151
|
-
|
|
152
149
|
/** @alpha */
|
|
153
|
-
export declare type
|
|
150
|
+
export declare type AacPublisherDocument = Report_2;
|
|
154
151
|
|
|
155
152
|
/** @alpha */
|
|
156
|
-
export declare type
|
|
153
|
+
export declare type AacPublisherDocumentTemplate = ReportTemplate;
|
|
157
154
|
|
|
158
155
|
/** @alpha */
|
|
159
|
-
export declare type
|
|
156
|
+
export declare type AacPublisherPageLayout = ReportPageLayout;
|
|
157
|
+
|
|
158
|
+
/** @public */
|
|
159
|
+
export declare type AacQuery = Query;
|
|
160
160
|
|
|
161
161
|
/** @public */
|
|
162
162
|
export declare type AacSection = Section;
|
|
@@ -231,6 +231,7 @@ export declare type AreaChartConfigProperties = {
|
|
|
231
231
|
disableKeyDriveAnalysisOn: Record<string, boolean>;
|
|
232
232
|
customTooltip: CustomTooltip;
|
|
233
233
|
lineStyleMapping: Array<LineStyleMapping>;
|
|
234
|
+
lineShape: "linear" | "spline" | "stepped";
|
|
234
235
|
};
|
|
235
236
|
|
|
236
237
|
/** @internal */
|
|
@@ -337,6 +338,7 @@ export declare function areaChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
337
338
|
} | undefined;
|
|
338
339
|
customTooltip: CustomTooltip | undefined;
|
|
339
340
|
lineStyleMapping: LineStyleMapping[] | undefined;
|
|
341
|
+
lineShape: "linear" | "spline" | "stepped" | undefined;
|
|
340
342
|
} | undefined;
|
|
341
343
|
|
|
342
344
|
/** @public */
|
|
@@ -1124,6 +1126,7 @@ export declare type ComboChartConfigProperties = {
|
|
|
1124
1126
|
thresholdMeasures: string[];
|
|
1125
1127
|
thresholdExcludedMeasures: string[];
|
|
1126
1128
|
lineStyleMapping: Array<LineStyleMapping>;
|
|
1129
|
+
lineShape: "linear" | "spline" | "stepped";
|
|
1127
1130
|
};
|
|
1128
1131
|
|
|
1129
1132
|
/** @internal */
|
|
@@ -1251,6 +1254,7 @@ export declare function comboChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
1251
1254
|
thresholdMeasures: string[] | undefined;
|
|
1252
1255
|
thresholdExcludedMeasures: string[] | undefined;
|
|
1253
1256
|
lineStyleMapping: LineStyleMapping[] | undefined;
|
|
1257
|
+
lineShape: "linear" | "spline" | "stepped" | undefined;
|
|
1254
1258
|
} | undefined;
|
|
1255
1259
|
|
|
1256
1260
|
/** @internal */
|
|
@@ -1488,25 +1492,25 @@ export declare function declarativePositiveAttributeFilterToYaml(entities: FromE
|
|
|
1488
1492
|
/** @internal */
|
|
1489
1493
|
export declare function declarativePreviousPeriodMetricToYaml(def: IMeasureBody, previousDefinition: IPreviousPeriodMeasureDefinition, errorContext?: IErrorContext): YAMLMap;
|
|
1490
1494
|
|
|
1491
|
-
/** @
|
|
1492
|
-
export declare function
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
export declare function declarativeRelativeDateFilterToYaml(relativeDateFilter: IRelativeDateFilter["relativeDateFilter"], { entities, claimKey, connectedAttributeFilters, errorContext }: DateFilterEmitOptions): {
|
|
1496
|
-
yaml: YAMLMap;
|
|
1497
|
-
carried: WrittenFilter[];
|
|
1495
|
+
/** @alpha */
|
|
1496
|
+
export declare function declarativePublisherDocumentToYaml(publisherDocument: DeclarativeReport): {
|
|
1497
|
+
content: string;
|
|
1498
|
+
json: Report_2;
|
|
1498
1499
|
};
|
|
1499
1500
|
|
|
1500
1501
|
/** @alpha */
|
|
1501
|
-
export declare function
|
|
1502
|
+
export declare function declarativePublisherPageLayoutToYaml(layout: DeclarativeReportPageLayout): {
|
|
1502
1503
|
content: string;
|
|
1503
1504
|
json: ReportPageLayout;
|
|
1504
1505
|
};
|
|
1505
1506
|
|
|
1506
|
-
/** @
|
|
1507
|
-
export declare function
|
|
1508
|
-
|
|
1509
|
-
|
|
1507
|
+
/** @internal */
|
|
1508
|
+
export declare function declarativeRankingFilterToYaml(rankingFilter: IRankingFilterBody, errorContext?: IErrorContext): YAMLMap;
|
|
1509
|
+
|
|
1510
|
+
/** @internal */
|
|
1511
|
+
export declare function declarativeRelativeDateFilterToYaml(relativeDateFilter: IRelativeDateFilter["relativeDateFilter"], { entities, claimKey, connectedAttributeFilters, errorContext }: DateFilterEmitOptions): {
|
|
1512
|
+
yaml: YAMLMap;
|
|
1513
|
+
carried: WrittenFilter[];
|
|
1510
1514
|
};
|
|
1511
1515
|
|
|
1512
1516
|
/** @internal */
|
|
@@ -2846,6 +2850,7 @@ export declare type LineChartConfigProperties = {
|
|
|
2846
2850
|
thresholdMeasures: string[];
|
|
2847
2851
|
thresholdExcludedMeasures: string[];
|
|
2848
2852
|
lineStyleMapping: Array<LineStyleMapping>;
|
|
2853
|
+
lineShape: "linear" | "spline" | "stepped";
|
|
2849
2854
|
};
|
|
2850
2855
|
|
|
2851
2856
|
/** @internal */
|
|
@@ -2963,6 +2968,7 @@ export declare function lineChartSave(_fields: Visualisation["query"]["fields"]
|
|
|
2963
2968
|
thresholdMeasures: string[] | undefined;
|
|
2964
2969
|
thresholdExcludedMeasures: string[] | undefined;
|
|
2965
2970
|
lineStyleMapping: LineStyleMapping[] | undefined;
|
|
2971
|
+
lineShape: "linear" | "spline" | "stepped" | undefined;
|
|
2966
2972
|
} | undefined;
|
|
2967
2973
|
|
|
2968
2974
|
/** @public */
|
|
@@ -3125,6 +3131,41 @@ export declare type Profile = {
|
|
|
3125
3131
|
data_source?: string;
|
|
3126
3132
|
};
|
|
3127
3133
|
|
|
3134
|
+
/**
|
|
3135
|
+
* The same document, written from what the frontend holds: the object reference it is identified by
|
|
3136
|
+
* becomes the bare id the YAML names it with.
|
|
3137
|
+
*
|
|
3138
|
+
* @alpha
|
|
3139
|
+
*/
|
|
3140
|
+
export declare function publisherDocumentDefinitionToYaml(publisherDocument: IPublisherDocumentDefinition): {
|
|
3141
|
+
content: string;
|
|
3142
|
+
json: Report_2;
|
|
3143
|
+
};
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* One page of a document or a template, as the YAML writes it down.
|
|
3147
|
+
*
|
|
3148
|
+
* @internal
|
|
3149
|
+
*/
|
|
3150
|
+
export declare function publisherDocumentPageToAacPage(page: IPublisherDocumentPage): ReportPageBody;
|
|
3151
|
+
|
|
3152
|
+
/** @alpha */
|
|
3153
|
+
export declare function publisherDocumentTemplateDefinitionToYaml(template: IPublisherDocumentTemplate | IPublisherDocumentTemplateDefinition): {
|
|
3154
|
+
content: string;
|
|
3155
|
+
json: ReportTemplate;
|
|
3156
|
+
};
|
|
3157
|
+
|
|
3158
|
+
/**
|
|
3159
|
+
* A reusable page. Its body is written at the top level, because the object it is already names it -
|
|
3160
|
+
* a page written into a document names itself instead.
|
|
3161
|
+
*
|
|
3162
|
+
* @alpha
|
|
3163
|
+
*/
|
|
3164
|
+
export declare function publisherPageLayoutDefinitionToYaml(layout: IPublisherPageLayout | IPublisherPageLayoutDefinition): {
|
|
3165
|
+
content: string;
|
|
3166
|
+
json: ReportPageLayout;
|
|
3167
|
+
};
|
|
3168
|
+
|
|
3128
3169
|
/** @internal */
|
|
3129
3170
|
export declare const PYRAMID_CHART_DEFAULTS: ConfigDefaults<PyramidChartConfigProperties>;
|
|
3130
3171
|
|
|
@@ -3499,41 +3540,6 @@ export declare function repeaterChartSave(fields: Visualisation["query"]["fields
|
|
|
3499
3540
|
} | undefined;
|
|
3500
3541
|
} | undefined;
|
|
3501
3542
|
|
|
3502
|
-
/**
|
|
3503
|
-
* The same report, written from what the frontend holds: the object reference it is identified by
|
|
3504
|
-
* becomes the bare id a document names it with.
|
|
3505
|
-
*
|
|
3506
|
-
* @alpha
|
|
3507
|
-
*/
|
|
3508
|
-
export declare function reportDefinitionToYaml(report: IReportDefinition): {
|
|
3509
|
-
content: string;
|
|
3510
|
-
json: Report_2;
|
|
3511
|
-
};
|
|
3512
|
-
|
|
3513
|
-
/**
|
|
3514
|
-
* A reusable page. Its body is written at the top level, because the object it is already names it -
|
|
3515
|
-
* a page written into a report names itself instead.
|
|
3516
|
-
*
|
|
3517
|
-
* @alpha
|
|
3518
|
-
*/
|
|
3519
|
-
export declare function reportPageLayoutDefinitionToYaml(layout: IReportPageLayout | IReportPageLayoutDefinition): {
|
|
3520
|
-
content: string;
|
|
3521
|
-
json: ReportPageLayout;
|
|
3522
|
-
};
|
|
3523
|
-
|
|
3524
|
-
/**
|
|
3525
|
-
* One page of a report or a template, as a document writes it down.
|
|
3526
|
-
*
|
|
3527
|
-
* @internal
|
|
3528
|
-
*/
|
|
3529
|
-
export declare function reportPageToAacPage(page: IReportContentPage): ReportPageBody;
|
|
3530
|
-
|
|
3531
|
-
/** @alpha */
|
|
3532
|
-
export declare function reportTemplateDefinitionToYaml(template: IReportTemplate | IReportTemplateDefinition): {
|
|
3533
|
-
content: string;
|
|
3534
|
-
json: ReportTemplate;
|
|
3535
|
-
};
|
|
3536
|
-
|
|
3537
3543
|
/** @public */
|
|
3538
3544
|
export declare function resolveIdFromFileName(fileName: FilePath): string;
|
|
3539
3545
|
|
|
@@ -4426,22 +4432,30 @@ export declare type YamlPostProcessors = {
|
|
|
4426
4432
|
}>;
|
|
4427
4433
|
};
|
|
4428
4434
|
|
|
4435
|
+
/** @alpha */
|
|
4436
|
+
export declare function yamlPublisherDocumentTemplateToDefinition(input: ReportTemplate, errorContext?: IErrorContext): IPublisherDocumentTemplateDefinition;
|
|
4437
|
+
|
|
4429
4438
|
/**
|
|
4430
4439
|
* Named for the document it reads, because a visualisation's query convertor already owns the
|
|
4431
4440
|
* shorter name.
|
|
4432
4441
|
*
|
|
4433
4442
|
* @alpha
|
|
4434
4443
|
*/
|
|
4435
|
-
export declare function
|
|
4444
|
+
export declare function yamlPublisherDocumentToDeclarative(input: Report_2, errorContext?: IErrorContext): DeclarativeReport;
|
|
4436
4445
|
|
|
4437
|
-
/**
|
|
4438
|
-
|
|
4446
|
+
/**
|
|
4447
|
+
* The same document, as the frontend holds it: an object reference in place of the bare id the
|
|
4448
|
+
* YAML names it by.
|
|
4449
|
+
*
|
|
4450
|
+
* @alpha
|
|
4451
|
+
*/
|
|
4452
|
+
export declare function yamlPublisherDocumentToDefinition(input: Report_2, errorContext?: IErrorContext): IPublisherDocumentDefinition;
|
|
4439
4453
|
|
|
4440
4454
|
/** @alpha */
|
|
4441
|
-
export declare function
|
|
4455
|
+
export declare function yamlPublisherPageLayoutToDeclarative(input: ReportPageLayout, errorContext?: IErrorContext): DeclarativeReportPageLayout;
|
|
4442
4456
|
|
|
4443
4457
|
/** @alpha */
|
|
4444
|
-
export declare function
|
|
4458
|
+
export declare function yamlPublisherPageLayoutToDefinition(input: ReportPageLayout, errorContext?: IErrorContext): IPublisherPageLayoutDefinition;
|
|
4445
4459
|
|
|
4446
4460
|
/** @internal */
|
|
4447
4461
|
export declare function yamlReportToDeclarative(entities: ExportEntities, input: Visualisation): {
|
|
@@ -4455,14 +4469,6 @@ export declare function yamlReportToDeclarative(entities: ExportEntities, input:
|
|
|
4455
4469
|
attributeFilterConfigs?: IAttributeFilterConfigs;
|
|
4456
4470
|
};
|
|
4457
4471
|
|
|
4458
|
-
/**
|
|
4459
|
-
* The same report, as the frontend holds it: an object reference in place of the bare id the
|
|
4460
|
-
* document names it by.
|
|
4461
|
-
*
|
|
4462
|
-
* @alpha
|
|
4463
|
-
*/
|
|
4464
|
-
export declare function yamlReportToDefinition(input: Report_2, errorContext?: IErrorContext): IReportDefinition;
|
|
4465
|
-
|
|
4466
4472
|
/** @internal */
|
|
4467
4473
|
export declare function yamlReportTotalToDeclarative(totals: Total[] | undefined, attributeIdentifier: string): ITotal[];
|
|
4468
4474
|
|
package/esm/to/{yamlReportPageToDeclarative.d.ts → yamlPublisherDocumentPageToDeclarative.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DashboardFilters, ReportPageBody } from "@gooddata/sdk-code-schemas/v1";
|
|
2
|
-
import { type FilterContextItem, type
|
|
2
|
+
import { type FilterContextItem, type IPublisherDocumentPage, type IPublisherPageBody } from "@gooddata/sdk-model";
|
|
3
3
|
import { type IErrorContext } from "../utils/errors.js";
|
|
4
4
|
/**
|
|
5
|
-
* A
|
|
5
|
+
* A document holds its filters the way a dashboard's filter context does, so they are written and read
|
|
6
6
|
* back by the same convertor; only the envelope it expects is put around them here.
|
|
7
7
|
*
|
|
8
8
|
* @internal
|
|
@@ -14,12 +14,12 @@ export declare function filtersToDeclarative(filters: DashboardFilters | undefin
|
|
|
14
14
|
*
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function yamlPublisherDocumentPageToDeclarative(body: ReportPageBody, errorContext?: IErrorContext): IPublisherDocumentPage;
|
|
18
18
|
/**
|
|
19
|
-
* The body of a page, without the identity of whatever holds it: a page written into a
|
|
19
|
+
* The body of a page, without the identity of whatever holds it: a page written into a document names
|
|
20
20
|
* itself, a reusable one is named by the object it is.
|
|
21
21
|
*
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
export declare function
|
|
25
|
-
//# sourceMappingURL=
|
|
24
|
+
export declare function yamlPublisherPageBodyToDeclarative(body: ReportPageBody, errorContext?: IErrorContext): IPublisherPageBody;
|
|
25
|
+
//# sourceMappingURL=yamlPublisherDocumentPageToDeclarative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yamlPublisherDocumentPageToDeclarative.d.ts","sourceRoot":"","sources":["../../src/to/yamlPublisherDocumentPageToDeclarative.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,gBAAgB,EAKhB,cAAc,EAIjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,KAAK,iBAAiB,EAItB,KAAK,sBAAsB,EAE3B,KAAK,kBAAkB,EAQ1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAiB,KAAK,aAAa,EAAgC,MAAM,oBAAoB,CAAC;AAQrG;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,EAAE,GAAG,SAAS,CAS3G;AAoND;;;;;GAKG;AACH,wBAAgB,sCAAsC,CAClD,IAAI,EAAE,cAAc,EACpB,YAAY,CAAC,EAAE,aAAa,GAC7B,sBAAsB,CAExB;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAC9C,IAAI,EAAE,cAAc,EACpB,YAAY,CAAC,EAAE,aAAa,GAC7B,kBAAkB,CAcpB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { idRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { CoreErrorCode, newError, updateErrorContext } from "../utils/errors.js";
|
|
4
|
-
import { referencesAsStored } from "../utils/
|
|
4
|
+
import { referencesAsStored } from "../utils/publisherFilterRefs.js";
|
|
5
5
|
import { yamlFilterContextToDeclarative, yamlIgnoredFilterToDeclarative, } from "./yamlDashboardToDeclarative.js";
|
|
6
6
|
/**
|
|
7
|
-
* A
|
|
7
|
+
* A document holds its filters the way a dashboard's filter context does, so they are written and read
|
|
8
8
|
* back by the same convertor; only the envelope it expects is put around them here.
|
|
9
9
|
*
|
|
10
10
|
* @internal
|
|
@@ -14,7 +14,7 @@ export function filtersToDeclarative(filters) {
|
|
|
14
14
|
return undefined;
|
|
15
15
|
}
|
|
16
16
|
// The filter context the shared convertor builds around them is thrown away, so what it is
|
|
17
|
-
// named does not matter; only the filters inside it are what a
|
|
17
|
+
// named does not matter; only the filters inside it are what a document stores.
|
|
18
18
|
const { filterContext } = yamlFilterContextToDeclarative("report", filters);
|
|
19
19
|
const content = filterContext.content;
|
|
20
20
|
return content?.filters?.length ? referencesAsStored(content.filters) : undefined;
|
|
@@ -190,16 +190,16 @@ function slotToDeclarative(node, page, errorContext) {
|
|
|
190
190
|
*
|
|
191
191
|
* @internal
|
|
192
192
|
*/
|
|
193
|
-
export function
|
|
194
|
-
return { localIdentifier: body.id, ...
|
|
193
|
+
export function yamlPublisherDocumentPageToDeclarative(body, errorContext) {
|
|
194
|
+
return { localIdentifier: body.id, ...yamlPublisherPageBodyToDeclarative(body, errorContext) };
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
* The body of a page, without the identity of whatever holds it: a page written into a
|
|
197
|
+
* The body of a page, without the identity of whatever holds it: a page written into a document names
|
|
198
198
|
* itself, a reusable one is named by the object it is.
|
|
199
199
|
*
|
|
200
200
|
* @internal
|
|
201
201
|
*/
|
|
202
|
-
export function
|
|
202
|
+
export function yamlPublisherPageBodyToDeclarative(body, errorContext) {
|
|
203
203
|
const page = { slots: [] };
|
|
204
204
|
const style = boxStyleToDeclarative(body.style, page);
|
|
205
205
|
const layout = layoutNodeToDeclarative(body.layout, page, errorContext);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type DeclarativeReport, type DeclarativeReportPageLayout } from "@gooddata/api-client-tiger";
|
|
2
|
+
import type { Report, ReportPageLayout, ReportTemplate } from "@gooddata/sdk-code-schemas/v1";
|
|
3
|
+
import { type IPublisherDocumentDefinition, type IPublisherDocumentTemplateDefinition, type IPublisherPageLayoutDefinition } from "@gooddata/sdk-model";
|
|
4
|
+
import { type IErrorContext } from "../utils/errors.js";
|
|
5
|
+
/**
|
|
6
|
+
* Named for the document it reads, because a visualisation's query convertor already owns the
|
|
7
|
+
* shorter name.
|
|
8
|
+
*
|
|
9
|
+
* @alpha
|
|
10
|
+
*/
|
|
11
|
+
export declare function yamlPublisherDocumentToDeclarative(input: Report, errorContext?: IErrorContext): DeclarativeReport;
|
|
12
|
+
/**
|
|
13
|
+
* The same document, as the frontend holds it: an object reference in place of the bare id the
|
|
14
|
+
* YAML names it by.
|
|
15
|
+
*
|
|
16
|
+
* @alpha
|
|
17
|
+
*/
|
|
18
|
+
export declare function yamlPublisherDocumentToDefinition(input: Report, errorContext?: IErrorContext): IPublisherDocumentDefinition;
|
|
19
|
+
/** @alpha */
|
|
20
|
+
export declare function yamlPublisherDocumentTemplateToDefinition(input: ReportTemplate, errorContext?: IErrorContext): IPublisherDocumentTemplateDefinition;
|
|
21
|
+
/** @alpha */
|
|
22
|
+
export declare function yamlPublisherPageLayoutToDefinition(input: ReportPageLayout, errorContext?: IErrorContext): IPublisherPageLayoutDefinition;
|
|
23
|
+
/** @alpha */
|
|
24
|
+
export declare function yamlPublisherPageLayoutToDeclarative(input: ReportPageLayout, errorContext?: IErrorContext): DeclarativeReportPageLayout;
|
|
25
|
+
//# sourceMappingURL=yamlPublisherDocumentToDeclarative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yamlPublisherDocumentToDeclarative.d.ts","sourceRoot":"","sources":["../../src/to/yamlPublisherDocumentToDeclarative.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAkB,MAAM,+BAA+B,CAAC;AAC9G,OAAO,EAEH,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,8BAA8B,EAItC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA4CxD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,aAAa,GAC7B,iBAAiB,CAWnB;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,aAAa,GAC7B,4BAA4B,CAY9B;AAED,aAAa;AACb,wBAAgB,yCAAyC,CACrD,KAAK,EAAE,cAAc,EACrB,YAAY,CAAC,EAAE,aAAa,GAC7B,oCAAoC,CAStC;AAED,aAAa;AACb,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,gBAAgB,EACvB,YAAY,CAAC,EAAE,aAAa,GAC7B,8BAA8B,CAYhC;AAED,aAAa;AACb,wBAAgB,oCAAoC,CAChD,KAAK,EAAE,gBAAgB,EACvB,YAAY,CAAC,EAAE,aAAa,GAC7B,2BAA2B,CAW7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { idRef, } from "@gooddata/sdk-model";
|
|
3
3
|
import { convertIdToTitle } from "../utils/sharedUtils.js";
|
|
4
|
-
import { filtersToDeclarative,
|
|
4
|
+
import { filtersToDeclarative, yamlPublisherDocumentPageToDeclarative, yamlPublisherPageBodyToDeclarative, } from "./yamlPublisherDocumentPageToDeclarative.js";
|
|
5
5
|
function variablesToDeclarative(variables) {
|
|
6
6
|
return variables?.map((variable) => ({
|
|
7
7
|
name: variable.name,
|
|
@@ -17,7 +17,7 @@ function contentToDeclarative(document, errorContext) {
|
|
|
17
17
|
const declaredVariables = variablesToDeclarative(document.variables);
|
|
18
18
|
return {
|
|
19
19
|
version: "1",
|
|
20
|
-
pages: document.pages?.map((body) =>
|
|
20
|
+
pages: document.pages?.map((body) => yamlPublisherDocumentPageToDeclarative(body, errorContext)) ?? [],
|
|
21
21
|
...(declared === undefined ? {} : { filters: declared }),
|
|
22
22
|
...(declaredVariables === undefined ? {} : { variables: declaredVariables }),
|
|
23
23
|
...(document.takeaways_instruction === undefined
|
|
@@ -31,7 +31,7 @@ function contentToDeclarative(document, errorContext) {
|
|
|
31
31
|
*
|
|
32
32
|
* @alpha
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function yamlPublisherDocumentToDeclarative(input, errorContext) {
|
|
35
35
|
return {
|
|
36
36
|
id: input.id,
|
|
37
37
|
title: input.title ?? convertIdToTitle(input.id ?? ""),
|
|
@@ -44,12 +44,12 @@ export function yamlReportDocumentToDeclarative(input, errorContext) {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* The same
|
|
48
|
-
*
|
|
47
|
+
* The same document, as the frontend holds it: an object reference in place of the bare id the
|
|
48
|
+
* YAML names it by.
|
|
49
49
|
*
|
|
50
50
|
* @alpha
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
52
|
+
export function yamlPublisherDocumentToDefinition(input, errorContext) {
|
|
53
53
|
return {
|
|
54
54
|
type: "report",
|
|
55
55
|
...(input.id === undefined ? {} : { ref: idRef(input.id) }),
|
|
@@ -63,7 +63,7 @@ export function yamlReportToDefinition(input, errorContext) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
/** @alpha */
|
|
66
|
-
export function
|
|
66
|
+
export function yamlPublisherDocumentTemplateToDefinition(input, errorContext) {
|
|
67
67
|
return {
|
|
68
68
|
type: "reportTemplate",
|
|
69
69
|
...(input.id === undefined ? {} : { ref: idRef(input.id) }),
|
|
@@ -74,7 +74,7 @@ export function yamlReportTemplateToDefinition(input, errorContext) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
/** @alpha */
|
|
77
|
-
export function
|
|
77
|
+
export function yamlPublisherPageLayoutToDefinition(input, errorContext) {
|
|
78
78
|
return {
|
|
79
79
|
type: "reportPageLayout",
|
|
80
80
|
...(input.id === undefined ? {} : { ref: idRef(input.id) }),
|
|
@@ -83,12 +83,12 @@ export function yamlReportPageLayoutToDefinition(input, errorContext) {
|
|
|
83
83
|
...(input.tags === undefined ? {} : { tags: input.tags }),
|
|
84
84
|
content: {
|
|
85
85
|
version: "1",
|
|
86
|
-
...
|
|
86
|
+
...yamlPublisherPageBodyToDeclarative(input, errorContext),
|
|
87
87
|
},
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
/** @alpha */
|
|
91
|
-
export function
|
|
91
|
+
export function yamlPublisherPageLayoutToDeclarative(input, errorContext) {
|
|
92
92
|
return {
|
|
93
93
|
id: input.id,
|
|
94
94
|
title: input.title ?? convertIdToTitle(input.id ?? ""),
|
|
@@ -96,7 +96,7 @@ export function yamlReportPageLayoutToDeclarative(input, errorContext) {
|
|
|
96
96
|
tags: input.tags ?? [],
|
|
97
97
|
content: {
|
|
98
98
|
version: "1",
|
|
99
|
-
...
|
|
99
|
+
...yamlPublisherPageBodyToDeclarative(input, errorContext),
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
102
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publisherFilterRefs.d.ts","sourceRoot":"","sources":["../../src/utils/publisherFilterRefs.ts"],"names":[],"mappings":"AAoDA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAQlD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAQjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
/**
|
|
3
|
-
* A
|
|
3
|
+
* A document stores its filters as the model holds them, while the convertor that writes and reads
|
|
4
4
|
* them is the dashboard's, which works on what the declarative API sends. The two agree on every
|
|
5
5
|
* field but one: how an object is referenced. The model names it by a type of its own and carries
|
|
6
6
|
* the id beside it, the API nests the two and names the object as the document's prefixes do.
|
package/esm/utils/texts.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const VISUALISATION_COMMENT: string;
|
|
|
7
7
|
export declare const DASHBOARD_COMMENT: string;
|
|
8
8
|
export declare const ATTRIBUTE_HIERARCHY_COMMENT: string;
|
|
9
9
|
export declare const PLUGIN_COMMENT: string;
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
10
|
+
export declare const PUBLISHER_DOCUMENT_COMMENT: string;
|
|
11
|
+
export declare const PUBLISHER_DOCUMENT_TEMPLATE_COMMENT: string;
|
|
12
|
+
export declare const PUBLISHER_PAGE_LAYOUT_COMMENT: string;
|
|
13
13
|
//# sourceMappingURL=texts.d.ts.map
|
package/esm/utils/texts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../../src/utils/texts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAKhB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAKtB,CAAC;AAEb,eAAO,MAAM,0BAA0B,QAK3B,CAAC;AAEb,eAAO,MAAM,cAAc,QAKf,CAAC;AAEb,eAAO,MAAM,iBAAiB,QAKlB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAOtB,CAAC;AAEb,eAAO,MAAM,iBAAiB,QAKlB,CAAC;AAEb,eAAO,MAAM,2BAA2B,QAM5B,CAAC;AAEb,eAAO,MAAM,cAAc,QAKf,CAAC;AAEb,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"texts.d.ts","sourceRoot":"","sources":["../../src/utils/texts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAKhB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAKtB,CAAC;AAEb,eAAO,MAAM,0BAA0B,QAK3B,CAAC;AAEb,eAAO,MAAM,cAAc,QAKf,CAAC;AAEb,eAAO,MAAM,iBAAiB,QAKlB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAOtB,CAAC;AAEb,eAAO,MAAM,iBAAiB,QAKlB,CAAC;AAEb,eAAO,MAAM,2BAA2B,QAM5B,CAAC;AAEb,eAAO,MAAM,cAAc,QAKf,CAAC;AAEb,eAAO,MAAM,0BAA0B,QAI3B,CAAC;AAEb,eAAO,MAAM,mCAAmC,QAIpC,CAAC;AAEb,eAAO,MAAM,6BAA6B,QAI9B,CAAC"}
|
package/esm/utils/texts.js
CHANGED
|
@@ -56,18 +56,18 @@ export const PLUGIN_COMMENT = [
|
|
|
56
56
|
" Read more about dashboard plugins:",
|
|
57
57
|
" https://www.gooddata.com/docs/gooddata-ui/latest/references/dashboard_component/dashboard_plugins/",
|
|
58
58
|
].join("\n");
|
|
59
|
-
export const
|
|
60
|
-
" A
|
|
59
|
+
export const PUBLISHER_DOCUMENT_COMMENT = [
|
|
60
|
+
" A document presents a finished period as pages of visualizations and text.",
|
|
61
61
|
" Its period becomes a date filter on every visualization that does not opt out,",
|
|
62
62
|
" and a page places what it draws in a tree of rows and columns.",
|
|
63
63
|
].join("\n");
|
|
64
|
-
export const
|
|
65
|
-
" A
|
|
66
|
-
" A
|
|
67
|
-
" so the
|
|
64
|
+
export const PUBLISHER_DOCUMENT_TEMPLATE_COMMENT = [
|
|
65
|
+
" A document template is the pages a document starts from.",
|
|
66
|
+
" A document made from it copies them and keeps no reference back,",
|
|
67
|
+
" so the document stays as it was made while the template moves on.",
|
|
68
68
|
].join("\n");
|
|
69
|
-
export const
|
|
70
|
-
" A
|
|
69
|
+
export const PUBLISHER_PAGE_LAYOUT_COMMENT = [
|
|
70
|
+
" A page layout is a page a template or a document can be built from.",
|
|
71
71
|
" It places what it draws in a tree of rows and columns, and a slot left",
|
|
72
72
|
" empty here is one whatever uses the page is expected to fill.",
|
|
73
73
|
].join("\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-code-convertors",
|
|
3
|
-
"version": "11.62.0-alpha.
|
|
3
|
+
"version": "11.62.0-alpha.1",
|
|
4
4
|
"description": "GoodData AAC declarative converters",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"uuid": "11.1.1",
|
|
28
28
|
"yaml": "2.8.3",
|
|
29
|
-
"@gooddata/api-client-tiger": "11.62.0-alpha.
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/sdk-
|
|
29
|
+
"@gooddata/api-client-tiger": "11.62.0-alpha.1",
|
|
30
|
+
"@gooddata/sdk-code-schemas": "11.62.0-alpha.1",
|
|
31
|
+
"@gooddata/sdk-model": "11.62.0-alpha.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-extractor": "7.59.2",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"oxlint-tsgolint": "7.0.2001",
|
|
49
49
|
"typescript": "7.0.2",
|
|
50
50
|
"vitest": "4.1.11",
|
|
51
|
-
"@gooddata/
|
|
52
|
-
"@gooddata/
|
|
51
|
+
"@gooddata/oxlint-config": "11.62.0-alpha.1",
|
|
52
|
+
"@gooddata/eslint-config": "11.62.0-alpha.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"_phase:build": "npm run build",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarativeReportPageToYaml.d.ts","sourceRoot":"","sources":["../../src/from/declarativeReportPageToYaml.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,OAAO,EAAW,MAAM,MAAM,CAAC;AAG9C,OAAO,EACH,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EAevB,MAAM,qBAAqB,CAAC;AAQ7B;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAQ3F;AAoBD,gBAAgB;AAChB,wBAAgB,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,OAAO,CAMhE;AAkOD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,eAAe,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAmBrF;AAED,gBAAgB;AAChB,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAE7E"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type DeclarativeReport, type DeclarativeReportPageLayout } from "@gooddata/api-client-tiger";
|
|
2
|
-
import type { Report, ReportPageBody, ReportPageLayout, ReportTemplate } from "@gooddata/sdk-code-schemas/v1";
|
|
3
|
-
import { type IReportContentPage, type IReportDefinition, type IReportPageLayout, type IReportPageLayoutDefinition, type IReportTemplate, type IReportTemplateDefinition } from "@gooddata/sdk-model";
|
|
4
|
-
/** @alpha */
|
|
5
|
-
export declare function declarativeReportToYaml(report: DeclarativeReport): {
|
|
6
|
-
content: string;
|
|
7
|
-
json: Report;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* The same report, written from what the frontend holds: the object reference it is identified by
|
|
11
|
-
* becomes the bare id a document names it with.
|
|
12
|
-
*
|
|
13
|
-
* @alpha
|
|
14
|
-
*/
|
|
15
|
-
export declare function reportDefinitionToYaml(report: IReportDefinition): {
|
|
16
|
-
content: string;
|
|
17
|
-
json: Report;
|
|
18
|
-
};
|
|
19
|
-
/** @alpha */
|
|
20
|
-
export declare function reportTemplateDefinitionToYaml(template: IReportTemplate | IReportTemplateDefinition): {
|
|
21
|
-
content: string;
|
|
22
|
-
json: ReportTemplate;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* A reusable page. Its body is written at the top level, because the object it is already names it -
|
|
26
|
-
* a page written into a report names itself instead.
|
|
27
|
-
*
|
|
28
|
-
* @alpha
|
|
29
|
-
*/
|
|
30
|
-
export declare function reportPageLayoutDefinitionToYaml(layout: IReportPageLayout | IReportPageLayoutDefinition): {
|
|
31
|
-
content: string;
|
|
32
|
-
json: ReportPageLayout;
|
|
33
|
-
};
|
|
34
|
-
/** @alpha */
|
|
35
|
-
export declare function declarativeReportPageLayoutToYaml(layout: DeclarativeReportPageLayout): {
|
|
36
|
-
content: string;
|
|
37
|
-
json: ReportPageLayout;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* One page of a report or a template, as a document writes it down.
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare function reportPageToAacPage(page: IReportContentPage): ReportPageBody;
|
|
45
|
-
//# sourceMappingURL=declarativeReportToYaml.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarativeReportToYaml.d.ts","sourceRoot":"","sources":["../../src/from/declarativeReportToYaml.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC9G,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAEtB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAGjC,MAAM,qBAAqB,CAAC;AAuE7B,aAAa;AACb,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAoBpG;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAoBnG;AAED,aAAa;AACb,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,eAAe,GAAG,yBAAyB,GAAG;IACnG,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,cAAc,CAAC;CACxB,CAYA;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,iBAAiB,GAAG,2BAA2B,GAAG;IACvG,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;CAC1B,CAYA;AAED,aAAa;AACb,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,2BAA2B,GAAG;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;CAC1B,CAYA;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAE5E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yamlReportPageToDeclarative.d.ts","sourceRoot":"","sources":["../../src/to/yamlReportPageToDeclarative.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,gBAAgB,EAKhB,cAAc,EAIjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,KAAK,iBAAiB,EAItB,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EAQvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAiB,KAAK,aAAa,EAAgC,MAAM,oBAAoB,CAAC;AAQrG;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,EAAE,GAAG,SAAS,CAS3G;AAoND;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACvC,IAAI,EAAE,cAAc,EACpB,YAAY,CAAC,EAAE,aAAa,GAC7B,kBAAkB,CAEpB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC3C,IAAI,EAAE,cAAc,EACpB,YAAY,CAAC,EAAE,aAAa,GAC7B,eAAe,CAcjB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type DeclarativeReport, type DeclarativeReportPageLayout } from "@gooddata/api-client-tiger";
|
|
2
|
-
import type { Report, ReportPageLayout, ReportTemplate } from "@gooddata/sdk-code-schemas/v1";
|
|
3
|
-
import { type IReportDefinition, type IReportPageLayoutDefinition, type IReportTemplateDefinition } from "@gooddata/sdk-model";
|
|
4
|
-
import { type IErrorContext } from "../utils/errors.js";
|
|
5
|
-
/**
|
|
6
|
-
* Named for the document it reads, because a visualisation's query convertor already owns the
|
|
7
|
-
* shorter name.
|
|
8
|
-
*
|
|
9
|
-
* @alpha
|
|
10
|
-
*/
|
|
11
|
-
export declare function yamlReportDocumentToDeclarative(input: Report, errorContext?: IErrorContext): DeclarativeReport;
|
|
12
|
-
/**
|
|
13
|
-
* The same report, as the frontend holds it: an object reference in place of the bare id the
|
|
14
|
-
* document names it by.
|
|
15
|
-
*
|
|
16
|
-
* @alpha
|
|
17
|
-
*/
|
|
18
|
-
export declare function yamlReportToDefinition(input: Report, errorContext?: IErrorContext): IReportDefinition;
|
|
19
|
-
/** @alpha */
|
|
20
|
-
export declare function yamlReportTemplateToDefinition(input: ReportTemplate, errorContext?: IErrorContext): IReportTemplateDefinition;
|
|
21
|
-
/** @alpha */
|
|
22
|
-
export declare function yamlReportPageLayoutToDefinition(input: ReportPageLayout, errorContext?: IErrorContext): IReportPageLayoutDefinition;
|
|
23
|
-
/** @alpha */
|
|
24
|
-
export declare function yamlReportPageLayoutToDeclarative(input: ReportPageLayout, errorContext?: IErrorContext): DeclarativeReportPageLayout;
|
|
25
|
-
//# sourceMappingURL=yamlReportToDeclarative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yamlReportToDeclarative.d.ts","sourceRoot":"","sources":["../../src/to/yamlReportToDeclarative.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAkB,MAAM,+BAA+B,CAAC;AAC9G,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAIjC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAwCxD;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,aAAa,GAC7B,iBAAiB,CAWnB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAYrG;AAED,aAAa;AACb,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,cAAc,EACrB,YAAY,CAAC,EAAE,aAAa,GAC7B,yBAAyB,CAS3B;AAED,aAAa;AACb,wBAAgB,gCAAgC,CAC5C,KAAK,EAAE,gBAAgB,EACvB,YAAY,CAAC,EAAE,aAAa,GAC7B,2BAA2B,CAY7B;AAED,aAAa;AACb,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,gBAAgB,EACvB,YAAY,CAAC,EAAE,aAAa,GAC7B,2BAA2B,CAW7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportFilterRefs.d.ts","sourceRoot":"","sources":["../../src/utils/reportFilterRefs.ts"],"names":[],"mappings":"AAoDA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAQlD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAQjD"}
|