@gooddata/api-client-tiger 11.37.0-alpha.5 → 11.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- export declare const LIB_VERSION = "11.37.0-alpha.5";
1
+ export declare const LIB_VERSION = "11.38.0";
2
2
  export declare const LIB_DESCRIPTION = "API Client for GoodData Cloud and GoodData.CN";
3
3
  export declare const LIB_NAME = "@gooddata/api-client-tiger";
package/esm/__version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // (C) 2021 GoodData Corporation
2
2
  // DO NOT CHANGE THIS FILE, IT IS RE-GENERATED ON EVERY BUILD
3
- export const LIB_VERSION = "11.37.0-alpha.5";
3
+ export const LIB_VERSION = "11.38.0";
4
4
  export const LIB_DESCRIPTION = "API Client for GoodData Cloud and GoodData.CN";
5
5
  export const LIB_NAME = "@gooddata/api-client-tiger";
@@ -12,7 +12,6 @@ import { AxiosInstance } from 'axios';
12
12
  import { AxiosPromise } from 'axios';
13
13
  import { AxiosRequestConfig } from 'axios';
14
14
  import { GenericAbortSignal } from 'axios';
15
- import { MatchFilterOperator } from '@gooddata/sdk-model';
16
15
  import { ObjRef } from '@gooddata/sdk-model';
17
16
  import type { RawAxiosRequestConfig } from 'axios';
18
17
 
@@ -63372,18 +63371,7 @@ export declare interface ITigerCompoundCondition {
63372
63371
  * Tiger-specific dashboard arbitrary attribute filter
63373
63372
  * @public
63374
63373
  */
63375
- export declare interface ITigerDashboardArbitraryAttributeFilter {
63376
- arbitraryAttributeFilter: {
63377
- displayForm: ObjRef;
63378
- values: string[];
63379
- negativeSelection: boolean;
63380
- localIdentifier?: string;
63381
- filterElementsBy?: ITigerDashboardAttributeFilterParent[];
63382
- filterElementsByDate?: ITigerDashboardAttributeFilterByDate[];
63383
- validateElementsBy?: ObjRef[];
63384
- title?: string;
63385
- };
63386
- }
63374
+ export declare type ITigerDashboardArbitraryAttributeFilter = DashboardArbitraryAttributeFilter;
63387
63375
 
63388
63376
  /**
63389
63377
  * Tiger-specific dashboard attribute filter by date
@@ -63545,30 +63533,32 @@ export declare interface ITigerDashboardLayoutSizeByScreenSize {
63545
63533
  * Tiger-specific dashboard match attribute filter
63546
63534
  * @public
63547
63535
  */
63548
- export declare interface ITigerDashboardMatchAttributeFilter {
63549
- matchAttributeFilter: {
63550
- displayForm: ObjRef;
63551
- operator: MatchFilterOperator;
63552
- literal: string;
63553
- caseSensitive?: boolean;
63554
- negativeSelection?: boolean;
63555
- localIdentifier?: string;
63556
- title?: string;
63557
- };
63558
- }
63536
+ export declare type ITigerDashboardMatchAttributeFilter = DashboardMatchAttributeFilter;
63559
63537
 
63560
63538
  /**
63561
63539
  * Tiger-specific dashboard measure value filter (dashboard filter context level).
63562
63540
  * Conditions are OR-ed together; empty/undefined conditions mean "All" (no filtering).
63541
+ *
63542
+ * TODO INE: wait for BE type unification — once BE schema adds `treatNullValuesAs` to
63543
+ * `DashboardMeasureValueFilter` body and requires `localIdentifier`, this interface collapses to
63544
+ * `export type ITigerDashboardMeasureValueFilter = DashboardMeasureValueFilter` (matching how
63545
+ * arbitrary/match attribute filters are aliased today).
63546
+ *
63563
63547
  * @public
63564
63548
  */
63565
63549
  export declare interface ITigerDashboardMeasureValueFilter {
63566
63550
  dashboardMeasureValueFilter: {
63567
- measure: ObjRef;
63551
+ measure: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["measure"];
63552
+ conditions: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["conditions"];
63553
+ title?: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["title"];
63568
63554
  localIdentifier: string;
63569
- conditions?: Array<ITigerComparisonCondition | ITigerRangeCondition>;
63555
+ /**
63556
+ * Substitute value for null metric values when evaluating conditions. Applies to the whole filter
63557
+ * (OR-ed conditions). Extension on top of the generated BE type; not yet in the OpenAPI schema —
63558
+ * once BE lands the field on `dashboardMeasureValueFilter`, this declaration matches it without
63559
+ * further client changes.
63560
+ */
63570
63561
  treatNullValuesAs?: number;
63571
- title?: string;
63572
63562
  };
63573
63563
  }
63574
63564
 
@@ -63631,9 +63621,15 @@ export declare type ITigerFilter = ITigerAbsoluteDateFilter | ITigerRelativeDate
63631
63621
 
63632
63622
  /**
63633
63623
  * Tiger-specific filter context item
63624
+ *
63625
+ * TODO INE: wait for BE type unification — once `DashboardMeasureValueFilter` aligns with our manual
63626
+ * type (`localIdentifier` required, `treatNullValuesAs` on body), drop the `Exclude<DashboardFilter,
63627
+ * DashboardMeasureValueFilter>` and `ITigerDashboardMeasureValueFilter` members; the union becomes
63628
+ * just `DashboardFilter`.
63629
+ *
63634
63630
  * @public
63635
63631
  */
63636
- export declare type ITigerFilterContextItem = DashboardFilter | ITigerDashboardArbitraryAttributeFilter | ITigerDashboardMatchAttributeFilter | ITigerDashboardMeasureValueFilter;
63632
+ export declare type ITigerFilterContextItem = Exclude<DashboardFilter, DashboardMeasureValueFilter> | ITigerDashboardArbitraryAttributeFilter | ITigerDashboardMatchAttributeFilter | ITigerDashboardMeasureValueFilter;
63637
63633
 
63638
63634
  /**
63639
63635
  * Tiger-specific insight layer definition
@@ -25,8 +25,8 @@
25
25
  *
26
26
  * @public
27
27
  */
28
- import { type DateFilterGranularity, type MatchFilterOperator, type ObjRef } from "@gooddata/sdk-model";
29
- import { type DashboardFilter } from "../generated/metadata-json-api/index.js";
28
+ import { type DateFilterGranularity, type ObjRef } from "@gooddata/sdk-model";
29
+ import { type DashboardArbitraryAttributeFilter, type DashboardFilter, type DashboardMatchAttributeFilter, type DashboardMeasureValueFilter } from "../generated/metadata-json-api/index.js";
30
30
  /**
31
31
  * Tiger-specific attribute definition
32
32
  * @public
@@ -673,52 +673,49 @@ export interface ITigerDashboardDateFilter {
673
673
  * Tiger-specific dashboard arbitrary attribute filter
674
674
  * @public
675
675
  */
676
- export interface ITigerDashboardArbitraryAttributeFilter {
677
- arbitraryAttributeFilter: {
678
- displayForm: ObjRef;
679
- values: string[];
680
- negativeSelection: boolean;
681
- localIdentifier?: string;
682
- filterElementsBy?: ITigerDashboardAttributeFilterParent[];
683
- filterElementsByDate?: ITigerDashboardAttributeFilterByDate[];
684
- validateElementsBy?: ObjRef[];
685
- title?: string;
686
- };
687
- }
676
+ export type ITigerDashboardArbitraryAttributeFilter = DashboardArbitraryAttributeFilter;
688
677
  /**
689
678
  * Tiger-specific dashboard match attribute filter
690
679
  * @public
691
680
  */
692
- export interface ITigerDashboardMatchAttributeFilter {
693
- matchAttributeFilter: {
694
- displayForm: ObjRef;
695
- operator: MatchFilterOperator;
696
- literal: string;
697
- caseSensitive?: boolean;
698
- negativeSelection?: boolean;
699
- localIdentifier?: string;
700
- title?: string;
701
- };
702
- }
681
+ export type ITigerDashboardMatchAttributeFilter = DashboardMatchAttributeFilter;
703
682
  /**
704
683
  * Tiger-specific dashboard measure value filter (dashboard filter context level).
705
684
  * Conditions are OR-ed together; empty/undefined conditions mean "All" (no filtering).
685
+ *
686
+ * TODO INE: wait for BE type unification — once BE schema adds `treatNullValuesAs` to
687
+ * `DashboardMeasureValueFilter` body and requires `localIdentifier`, this interface collapses to
688
+ * `export type ITigerDashboardMeasureValueFilter = DashboardMeasureValueFilter` (matching how
689
+ * arbitrary/match attribute filters are aliased today).
690
+ *
706
691
  * @public
707
692
  */
708
693
  export interface ITigerDashboardMeasureValueFilter {
709
694
  dashboardMeasureValueFilter: {
710
- measure: ObjRef;
695
+ measure: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["measure"];
696
+ conditions: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["conditions"];
697
+ title?: DashboardMeasureValueFilter["dashboardMeasureValueFilter"]["title"];
711
698
  localIdentifier: string;
712
- conditions?: Array<ITigerComparisonCondition | ITigerRangeCondition>;
699
+ /**
700
+ * Substitute value for null metric values when evaluating conditions. Applies to the whole filter
701
+ * (OR-ed conditions). Extension on top of the generated BE type; not yet in the OpenAPI schema —
702
+ * once BE lands the field on `dashboardMeasureValueFilter`, this declaration matches it without
703
+ * further client changes.
704
+ */
713
705
  treatNullValuesAs?: number;
714
- title?: string;
715
706
  };
716
707
  }
717
708
  /**
718
709
  * Tiger-specific filter context item
710
+ *
711
+ * TODO INE: wait for BE type unification — once `DashboardMeasureValueFilter` aligns with our manual
712
+ * type (`localIdentifier` required, `treatNullValuesAs` on body), drop the `Exclude<DashboardFilter,
713
+ * DashboardMeasureValueFilter>` and `ITigerDashboardMeasureValueFilter` members; the union becomes
714
+ * just `DashboardFilter`.
715
+ *
719
716
  * @public
720
717
  */
721
- export type ITigerFilterContextItem = DashboardFilter | ITigerDashboardArbitraryAttributeFilter | ITigerDashboardMatchAttributeFilter | ITigerDashboardMeasureValueFilter;
718
+ export type ITigerFilterContextItem = Exclude<DashboardFilter, DashboardMeasureValueFilter> | ITigerDashboardArbitraryAttributeFilter | ITigerDashboardMatchAttributeFilter | ITigerDashboardMeasureValueFilter;
722
719
  /**
723
720
  * Tiger-specific dashboard tab
724
721
  * @public
@@ -35,16 +35,18 @@ describe("typeGuards", () => {
35
35
  };
36
36
  const arbitraryAttributeDashboardFilter = {
37
37
  arbitraryAttributeFilter: {
38
- displayForm: { identifier: "label.product.name", type: "displayForm" },
38
+ displayForm: { identifier: { id: "label.product.name", type: "label" } },
39
39
  values: ["North", "South"],
40
40
  negativeSelection: false,
41
41
  },
42
42
  };
43
43
  const matchAttributeDashboardFilter = {
44
44
  matchAttributeFilter: {
45
- displayForm: { identifier: "label.product.name", type: "displayForm" },
45
+ displayForm: { identifier: { id: "label.product.name", type: "label" } },
46
46
  operator: "contains",
47
47
  literal: "North",
48
+ caseSensitive: false,
49
+ negativeSelection: false,
48
50
  },
49
51
  };
50
52
  it("recognizes Tiger filter with compound measure value condition", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/api-client-tiger",
3
- "version": "11.37.0-alpha.5",
3
+ "version": "11.38.0",
4
4
  "description": "API Client for GoodData Cloud and GoodData.CN",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -46,7 +46,7 @@
46
46
  "axios-cache-interceptor": "^1.8.0",
47
47
  "lodash-es": "^4.17.23",
48
48
  "tslib": "2.8.1",
49
- "@gooddata/sdk-model": "11.37.0-alpha.5"
49
+ "@gooddata/sdk-model": "11.38.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@microsoft/api-documenter": "^7.17.0",
@@ -75,8 +75,8 @@
75
75
  "oxlint-tsgolint": "0.11.4",
76
76
  "typescript": "5.9.3",
77
77
  "vitest": "4.1.0",
78
- "@gooddata/eslint-config": "11.37.0-alpha.5",
79
- "@gooddata/oxlint-config": "11.37.0-alpha.5"
78
+ "@gooddata/oxlint-config": "11.38.0",
79
+ "@gooddata/eslint-config": "11.38.0"
80
80
  },
81
81
  "scripts": {
82
82
  "_phase:build": "npm run build",