@gooddata/api-client-tiger 11.65.0-alpha.0 → 11.65.0-alpha.10

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.
@@ -532,6 +532,11 @@ export const AiLayoutDirection = {
532
532
  ROW: 'row',
533
533
  COLUMN: 'column'
534
534
  };
535
+ export const AiLineShape = {
536
+ LINEAR: 'linear',
537
+ SPLINE: 'spline',
538
+ STEPPED: 'stepped'
539
+ };
535
540
  export const AiLlmModelFamily = {
536
541
  OPENAI: 'OPENAI',
537
542
  ANTHROPIC: 'ANTHROPIC',
@@ -882,6 +887,21 @@ export const AiTemplate = {
882
887
  export const AiType1 = {
883
888
  DATE_FILTER: 'date_filter'
884
889
  };
890
+ export const AiType100 = {
891
+ COMBO_CHART: 'combo_chart'
892
+ };
893
+ export const AiType101 = {
894
+ GEO_CHART: 'geo_chart'
895
+ };
896
+ export const AiType102 = {
897
+ GEO_AREA_CHART: 'geo_area_chart'
898
+ };
899
+ export const AiType103 = {
900
+ REPEATER_CHART: 'repeater_chart'
901
+ };
902
+ export const AiType104 = {
903
+ RADAR_CHART: 'radar_chart'
904
+ };
885
905
  export const AiType11 = {
886
906
  ATTRIBUTE_FILTER: 'attribute_filter'
887
907
  };
@@ -900,88 +920,88 @@ export const AiType3 = {
900
920
  ATTRIBUTE_FILTER: 'attribute_filter',
901
921
  ATTRIBUTE_FILTER2: 'attribute_filter'
902
922
  };
903
- export const AiType34 = {
923
+ export const AiType44 = {
904
924
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
905
925
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD'
906
926
  };
907
- export const AiType35 = {
927
+ export const AiType45 = {
908
928
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
909
929
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
910
930
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
911
931
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
912
932
  };
913
- export const AiType36 = {
933
+ export const AiType46 = {
914
934
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
915
935
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD'
916
936
  };
917
- export const AiType37 = {
937
+ export const AiType47 = {
918
938
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
919
939
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
920
940
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
921
941
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
922
942
  };
923
- export const AiType38 = {
943
+ export const AiType48 = {
924
944
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
925
945
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD'
926
946
  };
927
- export const AiType39 = {
947
+ export const AiType49 = {
928
948
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
929
949
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
930
950
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
931
951
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
932
952
  };
933
- export const AiType40 = {
953
+ export const AiType5 = {
954
+ TEXT_FILTER: 'text_filter'
955
+ };
956
+ export const AiType50 = {
934
957
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
935
958
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD'
936
959
  };
937
- export const AiType41 = {
960
+ export const AiType51 = {
938
961
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
939
962
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
940
963
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
941
964
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
942
965
  };
943
- export const AiType42 = {
966
+ export const AiType52 = {
944
967
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
945
968
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD'
946
969
  };
947
- export const AiType43 = {
970
+ export const AiType53 = {
948
971
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
949
972
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
950
973
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
951
974
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
952
975
  };
953
- export const AiType44 = {
976
+ export const AiType54 = {
954
977
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
955
978
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
956
979
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR'
957
980
  };
958
- export const AiType45 = {
981
+ export const AiType55 = {
959
982
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
960
983
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
961
984
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
962
985
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
963
986
  };
964
- export const AiType46 = {
987
+ export const AiType56 = {
965
988
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
966
989
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
967
990
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
968
991
  };
969
- export const AiType47 = {
992
+ export const AiType57 = {
970
993
  PREVIOUS_YEAR: 'PREVIOUS_YEAR',
971
994
  PREVIOUS_PERIOD: 'PREVIOUS_PERIOD',
972
995
  PREVIOUS_YEAR2: 'PREVIOUS_YEAR',
973
996
  PREVIOUS_PERIOD2: 'PREVIOUS_PERIOD'
974
997
  };
975
- export const AiType48 = {
998
+ export const AiType58 = {
976
999
  ATTRIBUTE_SORT: 'attribute_sort'
977
1000
  };
978
- export const AiType49 = {
1001
+ export const AiType59 = {
979
1002
  METRIC_SORT: 'metric_sort'
980
1003
  };
981
- export const AiType5 = {
982
- TEXT_FILTER: 'text_filter'
983
- };
984
- export const AiType53 = {
1004
+ export const AiType63 = {
985
1005
  SUM: 'SUM',
986
1006
  AVG: 'AVG',
987
1007
  MAX: 'MAX',
@@ -989,97 +1009,82 @@ export const AiType53 = {
989
1009
  MED: 'MED',
990
1010
  NAT: 'NAT'
991
1011
  };
992
- export const AiType54 = {
1012
+ export const AiType64 = {
993
1013
  PUSHPIN: 'pushpin',
994
1014
  AREA: 'area'
995
1015
  };
996
- export const AiType57 = {
1016
+ export const AiType67 = {
997
1017
  SOLID: 'solid',
998
1018
  PATTERN: 'pattern',
999
1019
  OUTLINE: 'outline'
1000
1020
  };
1001
- export const AiType58 = {
1021
+ export const AiType68 = {
1002
1022
  DASHBOARD: 'dashboard'
1003
1023
  };
1004
- export const AiType69 = {
1005
- TABLE: 'table'
1006
- };
1007
1024
  export const AiType7 = {
1008
1025
  METRIC_VALUE_FILTER: 'metric_value_filter'
1009
1026
  };
1010
- export const AiType70 = {
1027
+ export const AiType8 = {
1028
+ FILTER_GROUP: 'filter_group'
1029
+ };
1030
+ export const AiType82 = {
1031
+ TABLE: 'table'
1032
+ };
1033
+ export const AiType83 = {
1011
1034
  BAR_CHART: 'bar_chart'
1012
1035
  };
1013
- export const AiType71 = {
1036
+ export const AiType84 = {
1014
1037
  COLUMN_CHART: 'column_chart'
1015
1038
  };
1016
- export const AiType72 = {
1039
+ export const AiType85 = {
1017
1040
  LINE_CHART: 'line_chart'
1018
1041
  };
1019
- export const AiType73 = {
1042
+ export const AiType86 = {
1020
1043
  AREA_CHART: 'area_chart'
1021
1044
  };
1022
- export const AiType74 = {
1045
+ export const AiType87 = {
1023
1046
  SCATTER_CHART: 'scatter_chart'
1024
1047
  };
1025
- export const AiType75 = {
1048
+ export const AiType88 = {
1026
1049
  BUBBLE_CHART: 'bubble_chart'
1027
1050
  };
1028
- export const AiType76 = {
1051
+ export const AiType89 = {
1029
1052
  PIE_CHART: 'pie_chart'
1030
1053
  };
1031
- export const AiType77 = {
1054
+ export const AiType9 = {
1055
+ DATE_FILTER: 'date_filter'
1056
+ };
1057
+ export const AiType90 = {
1032
1058
  DONUT_CHART: 'donut_chart'
1033
1059
  };
1034
- export const AiType78 = {
1060
+ export const AiType91 = {
1035
1061
  TREEMAP_CHART: 'treemap_chart'
1036
1062
  };
1037
- export const AiType79 = {
1063
+ export const AiType92 = {
1038
1064
  PYRAMID_CHART: 'pyramid_chart'
1039
1065
  };
1040
- export const AiType8 = {
1041
- FILTER_GROUP: 'filter_group'
1042
- };
1043
- export const AiType80 = {
1066
+ export const AiType93 = {
1044
1067
  FUNNEL_CHART: 'funnel_chart'
1045
1068
  };
1046
- export const AiType81 = {
1069
+ export const AiType94 = {
1047
1070
  HEATMAP_CHART: 'heatmap_chart'
1048
1071
  };
1049
- export const AiType82 = {
1072
+ export const AiType95 = {
1050
1073
  BULLET_CHART: 'bullet_chart'
1051
1074
  };
1052
- export const AiType83 = {
1075
+ export const AiType96 = {
1053
1076
  WATERFALL_CHART: 'waterfall_chart'
1054
1077
  };
1055
- export const AiType84 = {
1078
+ export const AiType97 = {
1056
1079
  DEPENDENCY_WHEEL_CHART: 'dependency_wheel_chart'
1057
1080
  };
1058
- export const AiType85 = {
1081
+ export const AiType98 = {
1059
1082
  SANKEY_CHART: 'sankey_chart'
1060
1083
  };
1061
- export const AiType86 = {
1084
+ export const AiType99 = {
1062
1085
  HEADLINE_CHART: 'headline_chart'
1063
1086
  };
1064
- export const AiType87 = {
1065
- COMBO_CHART: 'combo_chart'
1066
- };
1067
- export const AiType88 = {
1068
- GEO_CHART: 'geo_chart'
1069
- };
1070
- export const AiType89 = {
1071
- GEO_AREA_CHART: 'geo_area_chart'
1072
- };
1073
- export const AiType9 = {
1074
- DATE_FILTER: 'date_filter'
1075
- };
1076
- export const AiType90 = {
1077
- REPEATER_CHART: 'repeater_chart'
1078
- };
1079
- export const AiType91 = {
1080
- RADAR_CHART: 'radar_chart'
1081
- };
1082
- export const AiVersion = {
1087
+ export const AiVersion4 = {
1083
1088
  _2: '2',
1084
1089
  _3: '3'
1085
1090
  };
@@ -2751,6 +2756,90 @@ export class DashboardSummaryAi extends BaseAPI {
2751
2756
  return DashboardSummaryAi_SummarizeVisualizations(this.axios, this.basePath, requestParameters, options, this.configuration);
2752
2757
  }
2753
2758
  }
2759
+ // DocumentTakeawayAi FP - DocumentTakeawayAiAxiosParamCreator
2760
+ /**
2761
+ * Note: This API is an experimental and is going to change. Please, use it accordingly. Writes a short takeaway for one slot of a document, based on the data of the given visualizations. The text is written as the given AI Hub agent, or as the user\'s default agent. Without either agent, the request fails. When no visualization has data, the response sets `noData`, carries no text and no model is called.
2762
+ * @summary (EXPERIMENTAL) Generate a document takeaway
2763
+ * @param {string} workspaceId
2764
+ * @param {AiTakeawayRequest} aiTakeawayRequest
2765
+ * @param {*} [options] Override http request option.
2766
+ * @param {Configuration} [configuration] Optional configuration.
2767
+ * @throws {RequiredError}
2768
+ */
2769
+ export async function DocumentTakeawayAiAxiosParamCreator_GenerateTakeaway(workspaceId, aiTakeawayRequest, options = {}, configuration) {
2770
+ // verify required parameter 'workspaceId' is not null or undefined
2771
+ assertParamExists('generateTakeaway', 'workspaceId', workspaceId);
2772
+ // verify required parameter 'aiTakeawayRequest' is not null or undefined
2773
+ assertParamExists('generateTakeaway', 'aiTakeawayRequest', aiTakeawayRequest);
2774
+ const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/takeaway`
2775
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
2776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2778
+ let baseOptions;
2779
+ if (configuration) {
2780
+ baseOptions = configuration.baseOptions;
2781
+ }
2782
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2783
+ const localVarHeaderParameter = {};
2784
+ const localVarQueryParameter = {};
2785
+ const consumes = [
2786
+ 'application/json'
2787
+ ];
2788
+ // use application/json if present, otherwise fallback to the first one
2789
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
2790
+ ? 'application/json'
2791
+ : consumes[0];
2792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2793
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
2794
+ localVarRequestOptions.headers = {
2795
+ ...localVarHeaderParameter,
2796
+ ...headersFromBaseOptions,
2797
+ ...options.headers,
2798
+ };
2799
+ const needsSerialization = typeof aiTakeawayRequest !== "string" ||
2800
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
2801
+ localVarRequestOptions.data = needsSerialization
2802
+ ? JSON.stringify(aiTakeawayRequest !== undefined ? aiTakeawayRequest : {})
2803
+ : aiTakeawayRequest || "";
2804
+ return {
2805
+ url: toPathString(localVarUrlObj),
2806
+ options: localVarRequestOptions,
2807
+ };
2808
+ }
2809
+ // DocumentTakeawayAi Api FP
2810
+ /**
2811
+ * Note: This API is an experimental and is going to change. Please, use it accordingly. Writes a short takeaway for one slot of a document, based on the data of the given visualizations. The text is written as the given AI Hub agent, or as the user\'s default agent. Without either agent, the request fails. When no visualization has data, the response sets `noData`, carries no text and no model is called.
2812
+ * @summary (EXPERIMENTAL) Generate a document takeaway
2813
+ * @param {AxiosInstance} axios Axios instance.
2814
+ * @param {string} basePath Base path.
2815
+ * @param {DocumentTakeawayAiGenerateTakeawayRequest} requestParameters Request parameters.
2816
+ * @param {*} [options] Override http request option.
2817
+ * @param {Configuration} [configuration] Optional configuration.
2818
+ * @throws {RequiredError}
2819
+ */
2820
+ export async function DocumentTakeawayAi_GenerateTakeaway(axios, basePath, requestParameters, options, configuration) {
2821
+ const localVarAxiosArgs = await DocumentTakeawayAiAxiosParamCreator_GenerateTakeaway(requestParameters.workspaceId, requestParameters.aiTakeawayRequest, options || {}, configuration);
2822
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
2823
+ }
2824
+ /**
2825
+ * DocumentTakeawayAi - object-oriented interface
2826
+ * @export
2827
+ * @class DocumentTakeawayAi
2828
+ * @extends {BaseAPI}
2829
+ */
2830
+ export class DocumentTakeawayAi extends BaseAPI {
2831
+ /**
2832
+ * Note: This API is an experimental and is going to change. Please, use it accordingly. Writes a short takeaway for one slot of a document, based on the data of the given visualizations. The text is written as the given AI Hub agent, or as the user\'s default agent. Without either agent, the request fails. When no visualization has data, the response sets `noData`, carries no text and no model is called.
2833
+ * @summary (EXPERIMENTAL) Generate a document takeaway
2834
+ * @param {DocumentTakeawayAiGenerateTakeawayRequest} requestParameters Request parameters.
2835
+ * @param {*} [options] Override http request option.
2836
+ * @throws {RequiredError}
2837
+ * @memberof DocumentTakeawayAi
2838
+ */
2839
+ generateTakeaway(requestParameters, options) {
2840
+ return DocumentTakeawayAi_GenerateTakeaway(this.axios, this.basePath, requestParameters, options, this.configuration);
2841
+ }
2842
+ }
2754
2843
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
2755
2844
  /**
2756
2845
  * Upload a new knowledge document. Returns 409 if filename already exists.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/api-client-tiger",
3
- "version": "11.65.0-alpha.0",
3
+ "version": "11.65.0-alpha.10",
4
4
  "description": "API Client for GoodData Cloud and GoodData.CN",
5
5
  "license": "MIT",
6
6
  "author": "GoodData",
@@ -45,7 +45,7 @@
45
45
  "axios-cache-interceptor": "1.12.3",
46
46
  "lodash-es": "^4.17.23",
47
47
  "tslib": "2.8.1",
48
- "@gooddata/sdk-model": "11.65.0-alpha.0"
48
+ "@gooddata/sdk-model": "11.65.0-alpha.10"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-documenter": "7.30.16",
@@ -72,8 +72,8 @@
72
72
  "oxlint-tsgolint": "7.0.2001",
73
73
  "typescript": "7.0.2",
74
74
  "vitest": "5.0.4",
75
- "@gooddata/eslint-config": "11.65.0-alpha.0",
76
- "@gooddata/oxlint-config": "11.65.0-alpha.0"
75
+ "@gooddata/eslint-config": "11.65.0-alpha.10",
76
+ "@gooddata/oxlint-config": "11.65.0-alpha.10"
77
77
  },
78
78
  "scripts": {
79
79
  "_phase:build": "npm run build",