@gooddata/sdk-maql-language-server 11.65.0-alpha.5 → 11.65.0-alpha.6

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.
@@ -5,6 +5,8 @@ import { type ITigerMetadataObject, type LdmObjects } from "./metadata/model.js"
5
5
  */
6
6
  /**
7
7
  * A decoration in the model.
8
+ *
9
+ * @internal
8
10
  */
9
11
  export interface IDecoration {
10
12
  /**
@@ -18,6 +20,8 @@ export interface IDecoration {
18
20
  }
19
21
  /**
20
22
  * Options for a decoration.
23
+ *
24
+ * @internal
21
25
  */
22
26
  export interface IDecorationOptions {
23
27
  /**
@@ -33,6 +37,9 @@ export interface IDecorationOptions {
33
37
  */
34
38
  type: DecorationType;
35
39
  }
40
+ /**
41
+ * @internal
42
+ */
36
43
  export type DecorationType = ITigerMetadataObject["tigerType"] | "dateAttribute" | "dateLabel";
37
44
  export declare function decorate(query: string, ldmObjects?: LdmObjects): IDecoration[];
38
45
  export declare function createDecoration(range: Range, label: string, type: DecorationType): IDecoration;
@@ -1 +1 @@
1
- {"version":3,"file":"decorations.d.ts","sourceRoot":"","sources":["../src/decorations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,UAAU,EAGlB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAC/C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;CACxB;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CP 47 language tags for supported locales in documentation
3
+ *
4
+ * @internal
3
5
  */
4
6
  export declare const locales: readonly ["en-us"];
7
+ /**
8
+ * @internal
9
+ */
5
10
  export type Locale = (typeof locales)[number];
6
11
  export declare const docsIndex: {
7
12
  readonly "en-us": {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAqEA;;GAEG;AACH,eAAO,MAAM,OAAO,YAAI,OAAO,CAAU,CAAC;AAC1C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C,eAAO,MAAM,SAAS;aAClB,OAAO;iBACH,iBAAiB;iBACjB,GAAG;iBACH,KAAK;iBACL,KAAK;iBACL,IAAI;iBACJ,GAAG;iBACH,MAAM;iBACN,GAAG;iBACH,GAAG;iBACH,IAAI;iBACJ,cAAc;iBACd,MAAM;iBACN,gCAAgC;iBAChC,kCAAkC;iBAClC,gCAAgC;iBAChC,iCAAiC;iBACjC,qDAAqD;iBAErD,gCAAgC;iBAChC,QAAQ;iBACR,0CAA0C;iBAC1C,EAAE;iBACF,oBAAoB;iBACpB,oBAAoB;iBACpB,uBAAuB;iBACvB,uBAAuB;iBACvB,GAAG;iBACH,GAAG;iBACH,EAAE;iBACF,8BAA8B;iBAC9B,GAAG;iBACH,uBAAuB;iBACvB,OAAO;iBACP,GAAG;iBACH,KAAK;iBACL,QAAQ;iBACR,KAAK;iBACL,EAAE;iBACF,GAAG;iBACH,KAAK;iBACL,KAAK;iBACL,IAAI;iBACJ,IAAI;iBACJ,KAAK;iBACL,UAAU;iBACV,iBAAiB;iBACjB,wBAAwB;iBACxB,wBAAwB;iBACxB,eAAe;iBACf,sBAAsB;iBACtB,gBAAgB;iBAChB,qCAAqC;iBACrC,mCAAmC;iBACnC,MAAM;iBACN,sBAAsB;iBACtB,yBAAyB;iBACzB,8BAA8B;iBAC9B,oBAAoB;iBACpB,cAAc;iBACd,eAAe;iBACf,aAAa;iBACb,UAAU;iBACV,iBAAiB;iBACjB,UAAU;iBACV,qBAAqB;iBACrB,cAAc;iBACd,8CAA8C;;CAE5C,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAqEA;;;;GAIG;AACH,eAAO,MAAM,OAAO,YAAI,OAAO,CAAU,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C,eAAO,MAAM,SAAS;aAClB,OAAO;iBACH,iBAAiB;iBACjB,GAAG;iBACH,KAAK;iBACL,KAAK;iBACL,IAAI;iBACJ,GAAG;iBACH,MAAM;iBACN,GAAG;iBACH,GAAG;iBACH,IAAI;iBACJ,cAAc;iBACd,MAAM;iBACN,gCAAgC;iBAChC,kCAAkC;iBAClC,gCAAgC;iBAChC,iCAAiC;iBACjC,qDAAqD;iBAErD,gCAAgC;iBAChC,QAAQ;iBACR,0CAA0C;iBAC1C,EAAE;iBACF,oBAAoB;iBACpB,oBAAoB;iBACpB,uBAAuB;iBACvB,uBAAuB;iBACvB,GAAG;iBACH,GAAG;iBACH,EAAE;iBACF,8BAA8B;iBAC9B,GAAG;iBACH,uBAAuB;iBACvB,OAAO;iBACP,GAAG;iBACH,KAAK;iBACL,QAAQ;iBACR,KAAK;iBACL,EAAE;iBACF,GAAG;iBACH,KAAK;iBACL,KAAK;iBACL,IAAI;iBACJ,IAAI;iBACJ,KAAK;iBACL,UAAU;iBACV,iBAAiB;iBACjB,wBAAwB;iBACxB,wBAAwB;iBACxB,eAAe;iBACf,sBAAsB;iBACtB,gBAAgB;iBAChB,qCAAqC;iBACrC,mCAAmC;iBACnC,MAAM;iBACN,sBAAsB;iBACtB,yBAAyB;iBACzB,8BAA8B;iBAC9B,oBAAoB;iBACpB,cAAc;iBACd,eAAe;iBACf,aAAa;iBACb,UAAU;iBACV,iBAAiB;iBACjB,UAAU;iBACV,qBAAqB;iBACrB,cAAc;iBACd,8CAA8C;;CAE5C,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC"}
package/esm/docs/index.js CHANGED
@@ -67,6 +67,8 @@ import { content as cont__for_previous } from "./en/docs/create-metrics/maql/tim
67
67
  import { content as cont__functions_for_referring_to_past_time_periods } from "./en/docs/create-metrics/maql/time/functions-for-referring-to-past-time-periods.js";
68
68
  /**
69
69
  * IETF BCP 47 language tags for supported locales in documentation
70
+ *
71
+ * @internal
70
72
  */
71
73
  export const locales = ["en-us"];
72
74
  export const docsIndex = {
@@ -1,4 +1,7 @@
1
1
  import { type Range, type SemanticTokensLegend } from "vscode-languageserver";
2
+ /**
3
+ * @internal
4
+ */
2
5
  export declare enum TokenTypes {
3
6
  Type = 0,
4
7
  Keyword = 1,
@@ -13,14 +16,29 @@ export declare enum TokenTypes {
13
16
  Metric = 10,
14
17
  Dataset = 11
15
18
  }
19
+ /**
20
+ * @internal
21
+ */
16
22
  export declare enum ModifierTypes {
17
23
  Deprecated = 0
18
24
  }
25
+ /**
26
+ * @internal
27
+ */
19
28
  export declare const TokenTypesList: string[];
29
+ /**
30
+ * @internal
31
+ */
20
32
  export declare const ModifierTypesList: string[];
33
+ /**
34
+ * @internal
35
+ */
21
36
  export declare const semanticTokensLegend: SemanticTokensLegend;
22
37
  export declare const tokenTypeMap: Map<number, number>;
23
38
  export declare function semanticsFull(query: string): HighlightToken[];
39
+ /**
40
+ * @internal
41
+ */
24
42
  export type HighlightToken = {
25
43
  position: Range;
26
44
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"semanticsHighlight.d.ts","sourceRoot":"","sources":["../../src/highlight/semanticsHighlight.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAgB9E,oBAAY,UAAU;IAClB,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,OAAO,IAAA;IACP,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,MAAM,KAAA;IACN,OAAO,KAAA;CACV;AAED,oBAAY,aAAa;IACrB,UAAU,IAAA;CACb;AAED,eAAO,MAAM,cAAc,UAE1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAE7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,oBAGlC,CAAC;AAoKF,eAAO,MAAM,YAAY,qBAA4B,CAAC;AA2CtD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAG7D;AAQD,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"semanticsHighlight.d.ts","sourceRoot":"","sources":["../../src/highlight/semanticsHighlight.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAgB9E;;GAEG;AACH,oBAAY,UAAU;IAClB,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,OAAO,IAAA;IACP,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,MAAM,KAAA;IACN,OAAO,KAAA;CACV;AAED;;GAEG;AACH,oBAAY,aAAa;IACrB,UAAU,IAAA;CACb;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,UAE1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAE7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAGlC,CAAC;AAoKF,eAAO,MAAM,YAAY,qBAA4B,CAAC;AA2CtD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAG7D;AAQD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
@@ -5,6 +5,9 @@ const { AttributeTypeContext, MaqlLexer, NumericTypeContext } = MaqlPkg;
5
5
  import { LanguageId } from "../constants.js";
6
6
  import { MaqlMetric } from "../parseMaql.js";
7
7
  import { antlrContextRange } from "../tokenRanges.js";
8
+ /**
9
+ * @internal
10
+ */
8
11
  export var TokenTypes;
9
12
  (function (TokenTypes) {
10
13
  TokenTypes[TokenTypes["Type"] = 0] = "Type";
@@ -20,12 +23,24 @@ export var TokenTypes;
20
23
  TokenTypes[TokenTypes["Metric"] = 10] = "Metric";
21
24
  TokenTypes[TokenTypes["Dataset"] = 11] = "Dataset";
22
25
  })(TokenTypes || (TokenTypes = {}));
26
+ /**
27
+ * @internal
28
+ */
23
29
  export var ModifierTypes;
24
30
  (function (ModifierTypes) {
25
31
  ModifierTypes[ModifierTypes["Deprecated"] = 0] = "Deprecated";
26
32
  })(ModifierTypes || (ModifierTypes = {}));
33
+ /**
34
+ * @internal
35
+ */
27
36
  export const TokenTypesList = Object.values(TokenTypes).filter((value) => typeof value === "string");
37
+ /**
38
+ * @internal
39
+ */
28
40
  export const ModifierTypesList = Object.values(ModifierTypes).filter((value) => typeof value === "string");
41
+ /**
42
+ * @internal
43
+ */
29
44
  export const semanticTokensLegend = {
30
45
  tokenTypes: TokenTypesList.map(mapToken),
31
46
  tokenModifiers: ModifierTypesList.map(mapToken),
package/esm/hover.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { type Hover, type Position } from "vscode-languageserver";
2
2
  import { type ObjRef } from "@gooddata/sdk-model";
3
3
  import { type LdmObjects } from "./metadata/model.js";
4
+ /**
5
+ * @internal
6
+ */
4
7
  export type ObjectContent = {
5
8
  id: string;
6
9
  ref: ObjRef;
@@ -10,6 +13,9 @@ export type ObjectContent = {
10
13
  format: string;
11
14
  isLocked?: boolean;
12
15
  };
16
+ /**
17
+ * @internal
18
+ */
13
19
  export type HoverWithData = Hover & {
14
20
  object: ObjectContent | null;
15
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../src/hover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAc,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,UAAU,EAGlB,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,aAAa,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG;IAChC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAChC,CAAC;AACF,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,IAAI,CAmBtG"}
1
+ {"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../src/hover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAc,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,UAAU,EAGlB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG;IAChC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAChC,CAAC;AACF,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,IAAI,CAmBtG"}
package/esm/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- export { MaqlLanguageService } from "./maqlLanguageService.js";
1
+ export { type Locale, locales } from "./docs/index.js";
2
+ export { MaqlLanguageService, type ILanguageService } from "./maqlLanguageService.js";
2
3
  export { type IMetadataServiceOptions, MetadataService } from "./metadataService.js";
3
- export { LdmObjects, isITigerParameter, type ITigerParameter, type LabelElementsFunc, } from "./metadata/model.js";
4
- export type { IDecoration, IDecorationOptions } from "./decorations.js";
4
+ export { type ILabelElementList, type ILabelElementsFuncResult, type ILdmDataset, type IMetadataObjectStruct, type ITigerAttribute, type ITigerComputedAttribute, type ITigerDataset, type ITigerFact, type ITigerLabel, type ITigerMetadataObject, type ITigerMetadataObjectStub, type ITigerMetric, type ITigerParameter, type LabelElementsFunc, LdmObjects, type TypeModifiers, isITigerParameter, } from "./metadata/model.js";
5
+ export type { DecorationType, IDecoration, IDecorationOptions } from "./decorations.js";
5
6
  export { renderParameterDefaults, resolveParameterValues, type IRenderedMaql, type IResolvedParameter, } from "./renderParameters.js";
6
7
  export type { ObjectContent, HoverWithData } from "./hover.js";
8
+ export { normalizeMaqlObjectType } from "./maqlObjectTypes.js";
7
9
  export type { IMetadataInterface } from "./metadata/types.js";
8
- export { TokenTypesList, ModifierTypesList, semanticTokensLegend, type TokenTypes, type ModifierTypes, } from "./highlight/semanticsHighlight.js";
10
+ export { type HighlightToken, type ModifierTypes, ModifierTypesList, type TokenTypes, TokenTypesList, semanticTokensLegend, } from "./highlight/semanticsHighlight.js";
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,KAAK,uBAAuB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EACH,UAAU,EACV,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,UAAU,EACf,KAAK,aAAa,GACrB,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,KAAK,uBAAuB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,UAAU,EACV,KAAK,aAAa,EAClB,iBAAiB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,iBAAiB,EACjB,KAAK,UAAU,EACf,cAAc,EACd,oBAAoB,GACvB,MAAM,mCAAmC,CAAC"}
package/esm/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
2
  // oxlint-disable no-barrel-files/no-barrel-files
3
+ export { locales } from "./docs/index.js";
3
4
  export { MaqlLanguageService } from "./maqlLanguageService.js";
4
5
  export { MetadataService } from "./metadataService.js";
5
6
  export { LdmObjects, isITigerParameter, } from "./metadata/model.js";
6
7
  export { renderParameterDefaults, resolveParameterValues, } from "./renderParameters.js";
7
- export { TokenTypesList, ModifierTypesList, semanticTokensLegend, } from "./highlight/semanticsHighlight.js";
8
+ export { normalizeMaqlObjectType } from "./maqlObjectTypes.js";
9
+ export { ModifierTypesList, TokenTypesList, semanticTokensLegend, } from "./highlight/semanticsHighlight.js";
@@ -5,6 +5,9 @@ import { type Locale } from "./docs/index.js";
5
5
  import { type HighlightToken } from "./highlight/semanticsHighlight.js";
6
6
  import { type HoverWithData } from "./hover.js";
7
7
  import { type IMetadataInterface } from "./metadata/types.js";
8
+ /**
9
+ * @internal
10
+ */
8
11
  export interface ILanguageService {
9
12
  initialize(): InitializeResult;
10
13
  doValidation(textDocument: TextDocument): Promise<Diagnostic[]>;
@@ -21,6 +24,8 @@ export interface ILanguageService {
21
24
  * A service to manage the capabilities of the MAQL language server
22
25
  * Can be supplied by Metadata API credentials to automatically
23
26
  * retrieve typed ldmObjects from the Logical Data Model (LDM)
27
+ *
28
+ * @internal
24
29
  */
25
30
  export declare class MaqlLanguageService implements ILanguageService {
26
31
  constructor(locale?: Locale, metadataService?: IMetadataInterface);
@@ -1 +1 @@
1
- {"version":3,"file":"maqlLanguageService.d.ts","sourceRoot":"","sources":["../src/maqlLanguageService.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAEnB,KAAK,QAAQ,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAGlG,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,KAAK,MAAM,EAAsB,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,KAAK,cAAc,EAAuC,MAAM,mCAAmC,CAAC;AAC7G,OAAO,EAAE,KAAK,aA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KAAK,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAEvG;IAED,OAAO,CAAC,0BAA0B;CAGrC"}
@@ -13,6 +13,8 @@ import { hover } from "./hover.js";
13
13
  * A service to manage the capabilities of the MAQL language server
14
14
  * Can be supplied by Metadata API credentials to automatically
15
15
  * retrieve typed ldmObjects from the Logical Data Model (LDM)
16
+ *
17
+ * @internal
16
18
  */
17
19
  export class MaqlLanguageService {
18
20
  constructor(locale = "en-us", metadataService) {
@@ -4,6 +4,8 @@
4
4
  * `{type/id}` token before looking the type up.
5
5
  *
6
6
  * Keep the MAQL spelling for anything user-facing (diagnostics quote what the author wrote).
7
+ *
8
+ * @internal
7
9
  */
8
10
  export declare function normalizeMaqlObjectType(maqlObjectType: string): string;
9
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"maqlObjectTypes.d.ts","sourceRoot":"","sources":["../src/maqlObjectTypes.ts"],"names":[],"mappings":"AAeA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D"}
1
+ {"version":3,"file":"maqlObjectTypes.d.ts","sourceRoot":"","sources":["../src/maqlObjectTypes.ts"],"names":[],"mappings":"AAeA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D"}
@@ -14,6 +14,8 @@ const TIGER_TYPE_TO_MAQL_OBJECT_TYPE = Object.fromEntries(Object.entries(MAQL_OB
14
14
  * `{type/id}` token before looking the type up.
15
15
  *
16
16
  * Keep the MAQL spelling for anything user-facing (diagnostics quote what the author wrote).
17
+ *
18
+ * @internal
17
19
  */
18
20
  export function normalizeMaqlObjectType(maqlObjectType) {
19
21
  return MAQL_OBJECT_TYPE_TO_TIGER_TYPE[maqlObjectType] ?? maqlObjectType;
@@ -1,16 +1,28 @@
1
1
  import { type IElementsQueryOptions } from "@gooddata/sdk-backend-spi";
2
2
  import { type TigerObjectType } from "@gooddata/sdk-backend-tiger";
3
3
  import { type DateAttributeGranularity, type IAttributeDisplayFormMetadataObject, type IAttributeElement, type IAttributeMetadataObject, type ICatalogAttribute, type ICatalogDateDataset, type ICatalogFact, type ICatalogMeasure, type IComputedAttributeMetadataObject, type IFactMetadataObject, type IMeasureMetadataObject, type IMetadataObject, type IParameterMetadataObject } from "@gooddata/sdk-model";
4
+ /**
5
+ * @internal
6
+ */
4
7
  export interface ITigerMetadataObject extends IMetadataObject {
5
8
  tigerType: TigerObjectType;
6
9
  }
10
+ /**
11
+ * @internal
12
+ */
7
13
  export type ITigerMetadataObjectStub = Pick<ITigerMetadataObject, "id" | "ref"> & Partial<ITigerMetadataObject>;
14
+ /**
15
+ * @internal
16
+ */
8
17
  export interface ITigerAttribute extends IAttributeMetadataObject, ITigerMetadataObject {
9
18
  type: "attribute";
10
19
  tigerType: "attribute";
11
20
  tigerTypeModifier?: "date";
12
21
  granularity?: DateAttributeGranularity;
13
22
  }
23
+ /**
24
+ * @internal
25
+ */
14
26
  export interface ITigerLabel extends IAttributeDisplayFormMetadataObject, ITigerMetadataObject {
15
27
  type: "displayForm";
16
28
  tigerType: "label";
@@ -20,14 +32,23 @@ export interface ITigerLabel extends IAttributeDisplayFormMetadataObject, ITiger
20
32
  export interface ITigerDateLabel extends ITigerLabel {
21
33
  tigerTypeModifier: "date";
22
34
  }
35
+ /**
36
+ * @internal
37
+ */
23
38
  export interface ITigerFact extends IFactMetadataObject, ITigerMetadataObject {
24
39
  type: "fact";
25
40
  tigerType: "fact";
26
41
  }
42
+ /**
43
+ * @internal
44
+ */
27
45
  export interface ITigerDataset extends ITigerMetadataObject {
28
46
  type: "dataSet";
29
47
  tigerType: "dataset";
30
48
  }
49
+ /**
50
+ * @internal
51
+ */
31
52
  export interface ITigerMetric extends IMeasureMetadataObject, ITigerMetadataObject {
32
53
  type: "measure";
33
54
  tigerType: "metric";
@@ -36,11 +57,16 @@ export interface ITigerMetric extends IMeasureMetadataObject, ITigerMetadataObje
36
57
  * A computed attribute is referenced from MAQL by its own type rather than through a label - it has
37
58
  * no real labels. In MAQL text the type is spelled `computed_attribute`, which
38
59
  * {@link normalizeMaqlObjectType} translates into the `computedAttribute` Tiger type used here.
60
+ *
61
+ * @internal
39
62
  */
40
63
  export interface ITigerComputedAttribute extends IComputedAttributeMetadataObject, ITigerMetadataObject {
41
64
  type: "computedAttribute";
42
65
  tigerType: "computedAttribute";
43
66
  }
67
+ /**
68
+ * @internal
69
+ */
44
70
  export interface ITigerParameter extends IParameterMetadataObject, ITigerMetadataObject {
45
71
  type: "parameter";
46
72
  tigerType: "parameter";
@@ -51,16 +77,24 @@ export declare function isITigerDateLabel(object: ITigerMetadataObject): object
51
77
  export declare function isITigerFact(object: ITigerMetadataObject): object is ITigerFact;
52
78
  export declare function isITigerMetric(object: ITigerMetadataObject): object is ITigerMetric;
53
79
  export declare function isITigerComputedAttribute(object: ITigerMetadataObject): object is ITigerComputedAttribute;
80
+ /**
81
+ * @internal
82
+ */
54
83
  export declare function isITigerParameter(object: ITigerMetadataObject): object is ITigerParameter;
55
84
  /**
56
85
  * The dataset fields that MAQL completion uses. SPI dataset metadata objects and declarative
57
86
  * datasets both have them.
87
+ *
88
+ * @internal
58
89
  */
59
90
  export interface ILdmDataset {
60
91
  id: string;
61
92
  title: string;
62
93
  description?: string;
63
94
  }
95
+ /**
96
+ * @internal
97
+ */
64
98
  export declare class LdmObjects {
65
99
  private readonly attributes;
66
100
  private readonly labels;
@@ -88,18 +122,28 @@ export declare class LdmObjects {
88
122
  private static toTigerMetadataObject;
89
123
  private static toTigerDataset;
90
124
  }
91
- interface IMetadataObjectStruct<T extends IMetadataObject> {
125
+ /**
126
+ * @internal
127
+ */
128
+ export interface IMetadataObjectStruct<T extends IMetadataObject> {
92
129
  regular: T[];
93
130
  date: T[];
94
131
  all: T[];
95
132
  }
96
- type TypeModifiers = keyof IMetadataObjectStruct<IMetadataObject>;
133
+ /**
134
+ * @internal
135
+ */
136
+ export type TypeModifiers = keyof IMetadataObjectStruct<IMetadataObject>;
97
137
  /**
98
138
  * @param labels - label objects for which to get elements
99
139
  * @param excluded - label elements which should be filtered out from the result
100
140
  * @param options - label elements API advanced query options
141
+ * @internal
101
142
  */
102
143
  export type LabelElementsFunc = <T extends ITigerMetadataObjectStub>(labels: T[], excluded: string[], options: IElementsQueryOptions, limit?: number, offset?: number) => Promise<ILabelElementsFuncResult<T>>;
144
+ /**
145
+ * @internal
146
+ */
103
147
  export interface ILabelElementsFuncResult<T extends ITigerMetadataObjectStub> {
104
148
  list: ILabelElementList;
105
149
  rejected: T[];
@@ -108,9 +152,11 @@ export interface ILabelElementsFuncResult<T extends ITigerMetadataObjectStub> {
108
152
  */
109
153
  rejectionReasons?: Map<T, unknown>;
110
154
  }
155
+ /**
156
+ * @internal
157
+ */
111
158
  export interface ILabelElementList {
112
159
  elements: IAttributeElement[];
113
160
  isIncomplete: boolean;
114
161
  }
115
- export {};
116
162
  //# sourceMappingURL=model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/metadata/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,KAAK,eAAe,EAA2B,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,eA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CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,YAAY,EAAE,OAAO,CAAC;CACzB"}
@@ -19,9 +19,15 @@ export function isITigerMetric(object) {
19
19
  export function isITigerComputedAttribute(object) {
20
20
  return object.tigerType === "computedAttribute";
21
21
  }
22
+ /**
23
+ * @internal
24
+ */
22
25
  export function isITigerParameter(object) {
23
26
  return object.tigerType === "parameter";
24
27
  }
28
+ /**
29
+ * @internal
30
+ */
25
31
  export class LdmObjects {
26
32
  attributes;
27
33
  labels;
@@ -5,6 +5,8 @@ import { type LabelElementsFunc, type LdmObjects } from "./model.js";
5
5
  * Internals do not matter for the service, only needed is the fact that
6
6
  * the language service can asynchronously get typed identifiers and that it is able
7
7
  * to force a refresh of the stored model
8
+ *
9
+ * @internal
8
10
  */
9
11
  export interface IMetadataInterface {
10
12
  updateModel(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/metadata/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,WAAW,IAAI,IAAI,CAAC;IAEpB,aAAa,CAAC,KAAK,CAAC,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAElE,wBAAwB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1D"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/metadata/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B,WAAW,IAAI,IAAI,CAAC;IAEpB,aAAa,CAAC,KAAK,CAAC,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAElE,wBAAwB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1D"}
@@ -2,6 +2,9 @@ import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
2
2
  import { type IAttributeOrMeasure } from "@gooddata/sdk-model";
3
3
  import { type LabelElementsFunc, LdmObjects } from "./metadata/model.js";
4
4
  import { type IMetadataInterface } from "./metadata/types.js";
5
+ /**
6
+ * @internal
7
+ */
5
8
  export interface IMetadataServiceOptions {
6
9
  /**
7
10
  * Resolved value of the enableComputedAttributes workspace setting. The computed-attributes
@@ -11,6 +14,9 @@ export interface IMetadataServiceOptions {
11
14
  */
12
15
  enableComputedAttributes?: boolean;
13
16
  }
17
+ /**
18
+ * @internal
19
+ */
14
20
  export declare class MetadataService implements IMetadataInterface {
15
21
  readonly workspaceId: string;
16
22
  readonly backend: IAnalyticalBackend;
@@ -1 +1 @@
1
- {"version":3,"file":"metadataService.d.ts","sourceRoot":"","sources":["../src/metadataService.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,kBAAkB,EAI1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAIH,KAAK,iBAAiB,EACtB,UAAU,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,WAAW,uBAAuB;IACpC;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,qBAAa,eAAgB,YAAW,kBAAkB;IAmBlD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,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AAC,QAAQ,CAAC,OAAO;IApB5B,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,UAAU,CAAkC;IAEpD;;;OAGG;IACH,OAAc,WAAW,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,GAAE,uBAA4B,mBAGxC;IAED,OAAO,eASN;IAED;;;OAGG;IACU,aAAa,CAAC,KAAK,CAAC,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAE7E;IAED;;;OAGG;IACI,WAAW,IAAI,IAAI,CAEzB;IAED;;;;OAIG;IACI,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAqBnE;YAEa,eAAe;IAkE7B;;OAEG;IACI,wBAAwB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAgD5D;CACJ"}
@@ -1,6 +1,9 @@
1
1
  // (C) 2021-2026 GoodData Corporation
2
2
  import { DefaultWorkspaceCatalogTypes, } from "@gooddata/sdk-backend-spi";
3
3
  import { LdmObjects, } from "./metadata/model.js";
4
+ /**
5
+ * @internal
6
+ */
4
7
  export class MetadataService {
5
8
  workspaceId;
6
9
  backend;
@@ -2,6 +2,8 @@ import { type LdmObjects } from "./metadata/model.js";
2
2
  /**
3
3
  * A MAQL template rendered with its parameters' defaults. `unresolved` lists the ids of references
4
4
  * that could not be turned into a literal; those are left untouched in `maql`.
5
+ *
6
+ * @internal
5
7
  */
6
8
  export interface IRenderedMaql {
7
9
  maql: string;
@@ -13,11 +15,15 @@ export interface IRenderedMaql {
13
15
  * and numeric ones bare. Unresolvable references are reported and left in place rather than guessed.
14
16
  *
15
17
  * Returns undefined when the template references no parameter at all.
18
+ *
19
+ * @internal
16
20
  */
17
21
  export declare function renderParameterDefaults(maql: string, ldmObjects: LdmObjects): IRenderedMaql | undefined;
18
22
  /**
19
23
  * A parameter resolved to its default value. `value` is absent when the default cannot be
20
24
  * determined; `title` is absent when the parameter is unknown.
25
+ *
26
+ * @internal
21
27
  */
22
28
  export interface IResolvedParameter {
23
29
  id: string;
@@ -28,6 +34,8 @@ export interface IResolvedParameter {
28
34
  * Resolves every parameter the given MAQL templates and metrics depend on to its default value,
29
35
  * following `{metric/id}` references into metric expressions. Each parameter is reported once, in
30
36
  * order of first appearance.
37
+ *
38
+ * @internal
31
39
  */
32
40
  export declare function resolveParameterValues(maqls: string[], metricIds: string[], ldmObjects: LdmObjects): IResolvedParameter[];
33
41
  //# sourceMappingURL=renderParameters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderParameters.d.ts","sourceRoot":"","sources":["../src/renderParameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,qBAAqB,CAAC;AAIzE;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,aAAa,GAAG,SAAS,CAyBvG;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,UAAU,EAAE,UAAU,GACvB,kBAAkB,EAAE,CA6BtB"}
1
+ {"version":3,"file":"renderParameters.d.ts","sourceRoot":"","sources":["../src/renderParameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,qBAAqB,CAAC;AAIzE;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,aAAa,GAAG,SAAS,CAyBvG;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,UAAU,EAAE,UAAU,GACvB,kBAAkB,EAAE,CA6BtB"}
@@ -9,6 +9,8 @@ import { MaqlMetric } from "./parseMaql.js";
9
9
  * and numeric ones bare. Unresolvable references are reported and left in place rather than guessed.
10
10
  *
11
11
  * Returns undefined when the template references no parameter at all.
12
+ *
13
+ * @internal
12
14
  */
13
15
  export function renderParameterDefaults(maql, ldmObjects) {
14
16
  const parameters = findAllObjects(new MaqlMetric(maql)).filter((object) => object.tigerType === "parameter");
@@ -33,6 +35,8 @@ export function renderParameterDefaults(maql, ldmObjects) {
33
35
  * Resolves every parameter the given MAQL templates and metrics depend on to its default value,
34
36
  * following `{metric/id}` references into metric expressions. Each parameter is reported once, in
35
37
  * order of first appearance.
38
+ *
39
+ * @internal
36
40
  */
37
41
  export function resolveParameterValues(maqls, metricIds, ldmObjects) {
38
42
  const parameters = new Map();
@@ -0,0 +1,496 @@
1
+ import { CompletionItem } from 'vscode-languageserver';
2
+ import { CompletionList } from 'vscode-languageserver';
3
+ import { DateAttributeGranularity } from '@gooddata/sdk-model';
4
+ import { Diagnostic } from 'vscode-languageserver';
5
+ import { FormattingOptions } from 'vscode-languageserver';
6
+ import { Hover } from 'vscode-languageserver';
7
+ import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
8
+ import { IAttributeDisplayFormMetadataObject } from '@gooddata/sdk-model';
9
+ import { IAttributeElement } from '@gooddata/sdk-model';
10
+ import { IAttributeMetadataObject } from '@gooddata/sdk-model';
11
+ import { IAttributeOrMeasure } from '@gooddata/sdk-model';
12
+ import { ICatalogAttribute } from '@gooddata/sdk-model';
13
+ import { ICatalogDateDataset } from '@gooddata/sdk-model';
14
+ import { ICatalogFact } from '@gooddata/sdk-model';
15
+ import { ICatalogMeasure } from '@gooddata/sdk-model';
16
+ import { IComputedAttributeMetadataObject } from '@gooddata/sdk-model';
17
+ import { IElementsQueryOptions } from '@gooddata/sdk-backend-spi';
18
+ import { IFactMetadataObject } from '@gooddata/sdk-model';
19
+ import { IMeasureMetadataObject } from '@gooddata/sdk-model';
20
+ import { IMetadataObject } from '@gooddata/sdk-model';
21
+ import { InitializeResult } from 'vscode-languageserver';
22
+ import { IParameterMetadataObject } from '@gooddata/sdk-model';
23
+ import { MarkupContent } from 'vscode-languageserver';
24
+ import { ObjRef } from '@gooddata/sdk-model';
25
+ import { Position } from 'vscode-languageserver-textdocument';
26
+ import { Range as Range_2 } from 'vscode-languageserver';
27
+ import { Range as Range_3 } from 'vscode-languageserver-textdocument';
28
+ import { SemanticTokens } from 'vscode-languageserver';
29
+ import { SemanticTokensLegend } from 'vscode-languageserver';
30
+ import { TextDocument } from 'vscode-languageserver-textdocument';
31
+ import { TextEdit } from 'vscode-languageserver';
32
+ import { TigerObjectType } from '@gooddata/sdk-backend-tiger';
33
+
34
+ /**
35
+ * @internal
36
+ */
37
+ export declare type DecorationType = ITigerMetadataObject["tigerType"] | "dateAttribute" | "dateLabel";
38
+
39
+ /**
40
+ * @internal
41
+ */
42
+ export declare type HighlightToken = {
43
+ position: Range_2;
44
+ type: string;
45
+ modifiers: string[];
46
+ };
47
+
48
+ /**
49
+ * @internal
50
+ */
51
+ export declare type HoverWithData = Hover & {
52
+ object: ObjectContent | null;
53
+ };
54
+
55
+ /**
56
+ * The decorations as defined in this file are heavily inspired by Monaco editor decorations.
57
+ */
58
+ /**
59
+ * A decoration in the model.
60
+ *
61
+ * @internal
62
+ */
63
+ export declare interface IDecoration {
64
+ /**
65
+ * Range that this decoration covers.
66
+ */
67
+ range: Range_2;
68
+ /**
69
+ * Options associated with this decoration.
70
+ */
71
+ options: IDecorationOptions;
72
+ }
73
+
74
+ /**
75
+ * Options for a decoration.
76
+ *
77
+ * @internal
78
+ */
79
+ export declare interface IDecorationOptions {
80
+ /**
81
+ * Array of MarkdownString to render as the decoration message.
82
+ */
83
+ hoverMessage?: MarkupContent | MarkupContent[];
84
+ /**
85
+ * If set, text will be injected in the view after the range.
86
+ */
87
+ label: string;
88
+ /**
89
+ * Type of current decorator
90
+ */
91
+ type: DecorationType;
92
+ }
93
+
94
+ /**
95
+ * @internal
96
+ */
97
+ export declare interface ILabelElementList {
98
+ elements: IAttributeElement[];
99
+ isIncomplete: boolean;
100
+ }
101
+
102
+ /**
103
+ * @internal
104
+ */
105
+ export declare interface ILabelElementsFuncResult<T extends ITigerMetadataObjectStub> {
106
+ list: ILabelElementList;
107
+ rejected: T[];
108
+ /**
109
+ * Errors the elements queries of the rejected labels failed with
110
+ */
111
+ rejectionReasons?: Map<T, unknown>;
112
+ }
113
+
114
+ /**
115
+ * @internal
116
+ */
117
+ export declare interface ILanguageService {
118
+ initialize(): InitializeResult;
119
+ doValidation(textDocument: TextDocument): Promise<Diagnostic[]>;
120
+ doCompletion(textDocument: TextDocument, position: Position): Promise<CompletionList>;
121
+ doCompletionResolve(item: CompletionItem): Promise<CompletionItem>;
122
+ doHighlightTokens(textDocument: TextDocument): Promise<HighlightToken[]>;
123
+ doSemanticTokens(textDocument: TextDocument): Promise<SemanticTokens>;
124
+ doDecoration(textDocument: TextDocument): Promise<IDecoration[]>;
125
+ doFormat(textDocument: TextDocument, options: FormattingOptions): Promise<TextEdit[]>;
126
+ doFormatRange(textDocument: TextDocument, range: Range_3, options: FormattingOptions): Promise<TextEdit[]>;
127
+ }
128
+
129
+ /**
130
+ * The dataset fields that MAQL completion uses. SPI dataset metadata objects and declarative
131
+ * datasets both have them.
132
+ *
133
+ * @internal
134
+ */
135
+ export declare interface ILdmDataset {
136
+ id: string;
137
+ title: string;
138
+ description?: string;
139
+ }
140
+
141
+ /**
142
+ * Interface to connect to Metadata API
143
+ * Internals do not matter for the service, only needed is the fact that
144
+ * the language service can asynchronously get typed identifiers and that it is able
145
+ * to force a refresh of the stored model
146
+ *
147
+ * @internal
148
+ */
149
+ export declare interface IMetadataInterface {
150
+ updateModel(): void;
151
+ getLdmObjects(items?: IAttributeOrMeasure[]): Promise<LdmObjects>;
152
+ getLabelElementsFunction(): Promise<LabelElementsFunc>;
153
+ }
154
+
155
+ /**
156
+ * @internal
157
+ */
158
+ export declare interface IMetadataObjectStruct<T extends IMetadataObject> {
159
+ regular: T[];
160
+ date: T[];
161
+ all: T[];
162
+ }
163
+
164
+ /**
165
+ * @internal
166
+ */
167
+ export declare interface IMetadataServiceOptions {
168
+ /**
169
+ * Resolved value of the enableComputedAttributes workspace setting. The computed-attributes
170
+ * catalog listing is gated by it on the backend, so when the host knows the setting is off the
171
+ * service does not request the type at all. Leave undefined when the setting is unknown: the
172
+ * service then requests computed attributes and degrades to the default type set on refusal.
173
+ */
174
+ enableComputedAttributes?: boolean;
175
+ }
176
+
177
+ /**
178
+ * A MAQL template rendered with its parameters' defaults. `unresolved` lists the ids of references
179
+ * that could not be turned into a literal; those are left untouched in `maql`.
180
+ *
181
+ * @internal
182
+ */
183
+ export declare interface IRenderedMaql {
184
+ maql: string;
185
+ unresolved: string[];
186
+ }
187
+
188
+ /**
189
+ * A parameter resolved to its default value. `value` is absent when the default cannot be
190
+ * determined; `title` is absent when the parameter is unknown.
191
+ *
192
+ * @internal
193
+ */
194
+ export declare interface IResolvedParameter {
195
+ id: string;
196
+ title?: string;
197
+ value?: string | number;
198
+ }
199
+
200
+ /**
201
+ * @internal
202
+ */
203
+ export declare function isITigerParameter(object: ITigerMetadataObject): object is ITigerParameter;
204
+
205
+ /**
206
+ * @internal
207
+ */
208
+ export declare interface ITigerAttribute extends IAttributeMetadataObject, ITigerMetadataObject {
209
+ type: "attribute";
210
+ tigerType: "attribute";
211
+ tigerTypeModifier?: "date";
212
+ granularity?: DateAttributeGranularity;
213
+ }
214
+
215
+ /**
216
+ * A computed attribute is referenced from MAQL by its own type rather than through a label - it has
217
+ * no real labels. In MAQL text the type is spelled `computed_attribute`, which
218
+ * {@link normalizeMaqlObjectType} translates into the `computedAttribute` Tiger type used here.
219
+ *
220
+ * @internal
221
+ */
222
+ export declare interface ITigerComputedAttribute extends IComputedAttributeMetadataObject, ITigerMetadataObject {
223
+ type: "computedAttribute";
224
+ tigerType: "computedAttribute";
225
+ }
226
+
227
+ /**
228
+ * @internal
229
+ */
230
+ export declare interface ITigerDataset extends ITigerMetadataObject {
231
+ type: "dataSet";
232
+ tigerType: "dataset";
233
+ }
234
+
235
+ /**
236
+ * @internal
237
+ */
238
+ export declare interface ITigerFact extends IFactMetadataObject, ITigerMetadataObject {
239
+ type: "fact";
240
+ tigerType: "fact";
241
+ }
242
+
243
+ /**
244
+ * @internal
245
+ */
246
+ export declare interface ITigerLabel extends IAttributeDisplayFormMetadataObject, ITigerMetadataObject {
247
+ type: "displayForm";
248
+ tigerType: "label";
249
+ tigerTypeModifier?: "date";
250
+ granularity?: DateAttributeGranularity;
251
+ }
252
+
253
+ /**
254
+ * @internal
255
+ */
256
+ export declare interface ITigerMetadataObject extends IMetadataObject {
257
+ tigerType: TigerObjectType;
258
+ }
259
+
260
+ /**
261
+ * @internal
262
+ */
263
+ export declare type ITigerMetadataObjectStub = Pick<ITigerMetadataObject, "id" | "ref"> & Partial<ITigerMetadataObject>;
264
+
265
+ /**
266
+ * @internal
267
+ */
268
+ export declare interface ITigerMetric extends IMeasureMetadataObject, ITigerMetadataObject {
269
+ type: "measure";
270
+ tigerType: "metric";
271
+ }
272
+
273
+ /**
274
+ * @internal
275
+ */
276
+ export declare interface ITigerParameter extends IParameterMetadataObject, ITigerMetadataObject {
277
+ type: "parameter";
278
+ tigerType: "parameter";
279
+ }
280
+
281
+ /**
282
+ * @param labels - label objects for which to get elements
283
+ * @param excluded - label elements which should be filtered out from the result
284
+ * @param options - label elements API advanced query options
285
+ * @internal
286
+ */
287
+ export declare type LabelElementsFunc = <T extends ITigerMetadataObjectStub>(labels: T[], excluded: string[], options: IElementsQueryOptions, limit?: number, offset?: number) => Promise<ILabelElementsFuncResult<T>>;
288
+
289
+ /**
290
+ * @internal
291
+ */
292
+ export declare class LdmObjects {
293
+ private readonly attributes;
294
+ private readonly labels;
295
+ private readonly facts;
296
+ private readonly metrics;
297
+ private readonly computedAttributes;
298
+ private readonly parameters;
299
+ private readonly datasets;
300
+ readonly size: number;
301
+ constructor(attributes: ICatalogAttribute[], facts: ICatalogFact[], metrics: ICatalogMeasure[], parameters: IParameterMetadataObject[], dates: ICatalogDateDataset[], datasets: ILdmDataset[], computedAttributes?: IComputedAttributeMetadataObject[]);
302
+ get(type: "attribute", typeModifier?: TypeModifiers): ITigerAttribute[];
303
+ get(type: "label", typeModifier?: TypeModifiers): ITigerLabel[];
304
+ get(type: "fact", typeModifier?: undefined): ITigerFact[];
305
+ get(type: "dataset", typeModifier?: undefined): ITigerDataset[];
306
+ get(type: "metric", typeModifier?: undefined): ITigerMetric[];
307
+ get(type: "computedAttribute", typeModifier?: undefined): ITigerComputedAttribute[];
308
+ get(type: "parameter", typeModifier?: undefined): ITigerParameter[];
309
+ get(type: TigerObjectType, typeModifier?: TypeModifiers): ITigerMetadataObject[] | undefined;
310
+ findObject(object: ITigerMetadataObjectStub): ITigerMetadataObject | undefined;
311
+ findById(type: "metric", id: string): ITigerMetric | undefined;
312
+ findById(type: "parameter", id: string): ITigerParameter | undefined;
313
+ findById(type: TigerObjectType, id: string): ITigerMetadataObject | undefined;
314
+ private processAttributes;
315
+ private processDates;
316
+ private static toTigerMetadataObject;
317
+ private static toTigerDataset;
318
+ }
319
+
320
+ /**
321
+ * @internal
322
+ */
323
+ export declare type Locale = (typeof locales)[number];
324
+
325
+ /**
326
+ * IETF BCP 47 language tags for supported locales in documentation
327
+ *
328
+ * @internal
329
+ */
330
+ export declare const locales: readonly ["en-us"];
331
+
332
+ /**
333
+ * MAQL Language Service class
334
+ * A service to manage the capabilities of the MAQL language server
335
+ * Can be supplied by Metadata API credentials to automatically
336
+ * retrieve typed ldmObjects from the Logical Data Model (LDM)
337
+ *
338
+ * @internal
339
+ */
340
+ export declare class MaqlLanguageService implements ILanguageService {
341
+ constructor(locale?: Locale, metadataService?: IMetadataInterface);
342
+ private _locale;
343
+ get locale(): Locale;
344
+ set locale(locale: string);
345
+ private metadataService?;
346
+ private ldmObjects;
347
+ private labelElementsFunc?;
348
+ private docs;
349
+ private isValidLocale;
350
+ private setMetadataServiceMethods;
351
+ /**
352
+ * A method to get information about the capabilities of the service
353
+ */
354
+ initialize(): InitializeResult;
355
+ doCompletion(textDocument: TextDocument, position: Position): Promise<CompletionList>;
356
+ doCompletionResolve(item: CompletionItem): Promise<CompletionItem>;
357
+ doHighlightTokens(textDocument: TextDocument): Promise<HighlightToken[]>;
358
+ doSemanticTokens(textDocument: TextDocument): Promise<SemanticTokens>;
359
+ doValidation(textDocument: TextDocument): Promise<Diagnostic[]>;
360
+ doDecoration(textDocument: TextDocument): Promise<IDecoration[]>;
361
+ doHover(textDocument: TextDocument, position: Position): Promise<HoverWithData | null>;
362
+ doFormat(textDocument: TextDocument, options: FormattingOptions): Promise<TextEdit[]>;
363
+ doFormatRange(textDocument: TextDocument, range: Range_3, options: FormattingOptions): Promise<TextEdit[]>;
364
+ private handleMetadataServiceError;
365
+ }
366
+
367
+ /**
368
+ * @internal
369
+ */
370
+ export declare class MetadataService implements IMetadataInterface {
371
+ readonly workspaceId: string;
372
+ readonly backend: IAnalyticalBackend;
373
+ private readonly options;
374
+ private catalog?;
375
+ private ldmObjects;
376
+ private datasets;
377
+ private parameters;
378
+ /**
379
+ * The only construction path: the service runs on the backend injected by the host — the same
380
+ * instance (auth provider, caches and all) every other consumer of the host uses.
381
+ */
382
+ static withBackend(workspaceId: string, backend: IAnalyticalBackend, options?: IMetadataServiceOptions): MetadataService;
383
+ private constructor();
384
+ /**
385
+ * Gets all objects (facts, metrics, attributes and labels) from the
386
+ * declarative model retrieved from Metadata API.
387
+ */
388
+ getLdmObjects(items?: IAttributeOrMeasure[]): Promise<LdmObjects>;
389
+ /**
390
+ * Makes a new request to Metadata API for an updated declarative model.
391
+ * Refreshes stored objects from the received model.
392
+ */
393
+ updateModel(): void;
394
+ /**
395
+ * Makes a request to Catalog API to slice datasets for
396
+ * available items; doesn't update model with fresh data!
397
+ * Only updates ldmObjects.
398
+ */
399
+ sliceModel(items: IAttributeOrMeasure[]): Promise<LdmObjects>;
400
+ private getWholeCatalog;
401
+ /**
402
+ * Returns a function to later retrieve label elements
403
+ */
404
+ getLabelElementsFunction(): Promise<LabelElementsFunc>;
405
+ }
406
+
407
+ /**
408
+ * @internal
409
+ */
410
+ export declare enum ModifierTypes {
411
+ Deprecated = 0
412
+ }
413
+
414
+ /**
415
+ * @internal
416
+ */
417
+ export declare const ModifierTypesList: string[];
418
+
419
+ /**
420
+ * Translates an object type as written in MAQL into the Tiger entity type it denotes. Types that
421
+ * are spelled identically on both sides are returned unchanged, so this is safe to apply to any
422
+ * `{type/id}` token before looking the type up.
423
+ *
424
+ * Keep the MAQL spelling for anything user-facing (diagnostics quote what the author wrote).
425
+ *
426
+ * @internal
427
+ */
428
+ export declare function normalizeMaqlObjectType(maqlObjectType: string): string;
429
+
430
+ /**
431
+ * @internal
432
+ */
433
+ export declare type ObjectContent = {
434
+ id: string;
435
+ ref: ObjRef;
436
+ title: string;
437
+ description: string;
438
+ maql: string;
439
+ format: string;
440
+ isLocked?: boolean;
441
+ };
442
+
443
+ /**
444
+ * Replaces every `{parameter/id}` reference in `maql` with its default value, so the template can be
445
+ * previewed as the MAQL that would actually execute. String defaults are rendered as quoted literals
446
+ * and numeric ones bare. Unresolvable references are reported and left in place rather than guessed.
447
+ *
448
+ * Returns undefined when the template references no parameter at all.
449
+ *
450
+ * @internal
451
+ */
452
+ export declare function renderParameterDefaults(maql: string, ldmObjects: LdmObjects): IRenderedMaql | undefined;
453
+
454
+ /**
455
+ * Resolves every parameter the given MAQL templates and metrics depend on to its default value,
456
+ * following `{metric/id}` references into metric expressions. Each parameter is reported once, in
457
+ * order of first appearance.
458
+ *
459
+ * @internal
460
+ */
461
+ export declare function resolveParameterValues(maqls: string[], metricIds: string[], ldmObjects: LdmObjects): IResolvedParameter[];
462
+
463
+ /**
464
+ * @internal
465
+ */
466
+ export declare const semanticTokensLegend: SemanticTokensLegend;
467
+
468
+ /**
469
+ * @internal
470
+ */
471
+ export declare enum TokenTypes {
472
+ Type = 0,
473
+ Keyword = 1,
474
+ Function = 2,
475
+ Operator = 3,
476
+ Number = 4,
477
+ Variable = 5,
478
+ String = 6,
479
+ Comment = 7,
480
+ Label = 8,
481
+ Fact = 9,
482
+ Metric = 10,
483
+ Dataset = 11
484
+ }
485
+
486
+ /**
487
+ * @internal
488
+ */
489
+ export declare const TokenTypesList: string[];
490
+
491
+ /**
492
+ * @internal
493
+ */
494
+ export declare type TypeModifiers = keyof IMetadataObjectStruct<IMetadataObject>;
495
+
496
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.59.2"
9
+ }
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-maql-language-server",
3
- "version": "11.65.0-alpha.5",
3
+ "version": "11.65.0-alpha.6",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Stellar",
@@ -16,9 +16,9 @@
16
16
  "README.md"
17
17
  ],
18
18
  "type": "module",
19
- "main": "esm/index.js",
20
19
  "browser": "esm/index.js",
21
20
  "types": "esm/index.d.ts",
21
+ "exports": "./esm/index.js",
22
22
  "dependencies": {
23
23
  "@gooddata/maql-antlr4ts": "0.5.1-02977c25.0",
24
24
  "antlr4-c3": "1.1.16",
@@ -28,18 +28,18 @@
28
28
  "util": "0.12.5",
29
29
  "vscode-languageserver": "8.1.0",
30
30
  "vscode-languageserver-textdocument": "1.0.12",
31
- "@gooddata/sdk-backend-base": "11.65.0-alpha.5",
32
- "@gooddata/sdk-backend-spi": "11.65.0-alpha.5",
33
- "@gooddata/sdk-backend-tiger": "11.65.0-alpha.5",
34
- "@gooddata/sdk-model": "11.65.0-alpha.5"
31
+ "@gooddata/sdk-backend-base": "11.65.0-alpha.6",
32
+ "@gooddata/sdk-backend-spi": "11.65.0-alpha.6",
33
+ "@gooddata/sdk-backend-tiger": "11.65.0-alpha.6",
34
+ "@gooddata/sdk-model": "11.65.0-alpha.6"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/isomorphic-fetch": "0.0.39",
37
+ "@microsoft/api-documenter": "7.30.16",
38
+ "@microsoft/api-extractor": "7.59.2",
38
39
  "@types/lodash-es": "4.17.12",
39
40
  "@types/node": "24.12.0",
40
41
  "@typescript-eslint/eslint-plugin": "8.58.0",
41
42
  "@typescript-eslint/parser": "8.58.0",
42
- "@vitest/coverage-v8": "5.0.4",
43
43
  "colors": "1.4.0",
44
44
  "eslint": "^9.39.2",
45
45
  "eslint-plugin-headers": "1.3.3",
@@ -52,41 +52,38 @@
52
52
  "eslint-plugin-tsdoc": "0.2.14",
53
53
  "glob": "13.0.2",
54
54
  "jiti": "2.6.1",
55
- "lint-staged": "10.5.4",
56
55
  "npm-run-all": "4.1.5",
57
56
  "oxfmt": "0.68.0",
58
57
  "oxlint": "1.83.0",
59
58
  "oxlint-plugin-eslint": "1.82.0",
60
59
  "oxlint-tsgolint": "7.0.2001",
61
60
  "process": "0.11.10",
62
- "rolldown": "1.0.3",
63
61
  "ts-dedent": "2.3.0",
64
- "ts-node": "10.9.2",
65
- "tslib": "2.8.1",
66
62
  "typescript": "7.0.2",
67
- "vite": "8.0.16",
68
63
  "vitest": "5.0.4",
69
- "@gooddata/api-client-tiger": "11.65.0-alpha.5",
70
- "@gooddata/oxlint-config": "11.65.0-alpha.5",
71
- "@gooddata/eslint-config": "11.65.0-alpha.5",
72
- "@gooddata/stylelint-config": "11.65.0-alpha.5"
64
+ "@gooddata/api-client-tiger": "11.65.0-alpha.6",
65
+ "@gooddata/eslint-config": "11.65.0-alpha.6",
66
+ "@gooddata/stylelint-config": "11.65.0-alpha.6",
67
+ "@gooddata/oxlint-config": "11.65.0-alpha.6"
73
68
  },
74
69
  "scripts": {
75
70
  "_phase:build": "npm run build",
76
71
  "_phase:test": "npm run test-once",
77
72
  "_phase:validate": "npm run validate",
78
- "build": "npm-run-all -p build-check build-ts",
79
- "build-check": "tsc -p tsconfig.check.json",
73
+ "api-extractor": "mkdir -p api && [ -z \"${CI}\" ] && (api-extractor run -l) || (api-extractor run)",
74
+ "build": "npm-run-all -p build-check build-ts && npm run api-extractor",
75
+ "build-check": "tsc",
80
76
  "build-ts": "tsc -p ./tsconfig.build.json",
81
77
  "clean": "../../common/scripts/clean-command-state.sh && rm -rf esm *.log",
82
78
  "format-check": "oxfmt --check .",
83
79
  "format-write": "oxfmt .",
84
80
  "lint": "oxlint . --quiet && eslint .",
85
81
  "lint-fix": "oxlint . --quiet --fix && eslint . --fix",
86
- "test": "vitest",
82
+ "test": "vitest watch",
87
83
  "test-once": "vitest run",
88
84
  "update-docs": "tsc -p ./scripts && node scripts/build/docsParser.js src/docs",
89
85
  "validate": "npm run lint && npm run format-check",
86
+ "validate-esm": "node --input-type=module --eval 'import \"@gooddata/sdk-maql-language-server\"'",
90
87
  "watch": "tsc -watch -p ./tsconfig.build.json"
91
88
  }
92
89
  }