@gooddata/api-client-tiger 10.1.0-alpha.9 → 10.2.0-alpha.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.
@@ -200,6 +200,101 @@ export const TotalFunctionEnum = {
200
200
  */
201
201
  export const ActionsApiAxiosParamCreator = function (configuration) {
202
202
  return {
203
+ /**
204
+ * (EXPERIMENTAL) Computes anomaly detection.
205
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
206
+ * @param {string} workspaceId Workspace identifier
207
+ * @param {string} resultId Input result ID to be used in the computation
208
+ * @param {AnomalyDetectionRequest} anomalyDetectionRequest
209
+ * @param {boolean} [skipCache] Ignore all caches during execution of current request.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ anomalyDetection: async (workspaceId, resultId, anomalyDetectionRequest, skipCache, options = {}) => {
214
+ // verify required parameter 'workspaceId' is not null or undefined
215
+ assertParamExists("anomalyDetection", "workspaceId", workspaceId);
216
+ // verify required parameter 'resultId' is not null or undefined
217
+ assertParamExists("anomalyDetection", "resultId", resultId);
218
+ // verify required parameter 'anomalyDetectionRequest' is not null or undefined
219
+ assertParamExists("anomalyDetection", "anomalyDetectionRequest", anomalyDetectionRequest);
220
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/execution/functions/anomalyDetection/{resultId}`
221
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
222
+ .replace(`{${"resultId"}}`, encodeURIComponent(String(resultId)));
223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
225
+ let baseOptions;
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ }
229
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
230
+ const localVarHeaderParameter = {};
231
+ const localVarQueryParameter = {};
232
+ if (skipCache !== undefined && skipCache !== null) {
233
+ localVarHeaderParameter["skip-cache"] = String(JSON.stringify(skipCache));
234
+ }
235
+ localVarHeaderParameter["Content-Type"] = "application/json";
236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
+ localVarRequestOptions.headers = {
239
+ ...localVarHeaderParameter,
240
+ ...headersFromBaseOptions,
241
+ ...options.headers,
242
+ };
243
+ const needsSerialization = typeof anomalyDetectionRequest !== "string" ||
244
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
245
+ localVarRequestOptions.data = needsSerialization
246
+ ? JSON.stringify(anomalyDetectionRequest !== undefined ? anomalyDetectionRequest : {})
247
+ : anomalyDetectionRequest || "";
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ },
253
+ /**
254
+ * (EXPERIMENTAL) Gets anomalies.
255
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
256
+ * @param {string} workspaceId Workspace identifier
257
+ * @param {string} resultId Result ID
258
+ * @param {number} [offset]
259
+ * @param {number} [limit]
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ anomalyDetectionResult: async (workspaceId, resultId, offset, limit, options = {}) => {
264
+ // verify required parameter 'workspaceId' is not null or undefined
265
+ assertParamExists("anomalyDetectionResult", "workspaceId", workspaceId);
266
+ // verify required parameter 'resultId' is not null or undefined
267
+ assertParamExists("anomalyDetectionResult", "resultId", resultId);
268
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/execution/functions/anomalyDetection/result/{resultId}`
269
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
270
+ .replace(`{${"resultId"}}`, encodeURIComponent(String(resultId)));
271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
273
+ let baseOptions;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ }
277
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
278
+ const localVarHeaderParameter = {};
279
+ const localVarQueryParameter = {};
280
+ if (offset !== undefined) {
281
+ localVarQueryParameter["offset"] = offset;
282
+ }
283
+ if (limit !== undefined) {
284
+ localVarQueryParameter["limit"] = limit;
285
+ }
286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
+ localVarRequestOptions.headers = {
289
+ ...localVarHeaderParameter,
290
+ ...headersFromBaseOptions,
291
+ ...options.headers,
292
+ };
293
+ return {
294
+ url: toPathString(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ };
297
+ },
203
298
  /**
204
299
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
205
300
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -804,6 +899,34 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
804
899
  export const ActionsApiFp = function (configuration) {
805
900
  const localVarAxiosParamCreator = ActionsApiAxiosParamCreator(configuration);
806
901
  return {
902
+ /**
903
+ * (EXPERIMENTAL) Computes anomaly detection.
904
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
905
+ * @param {string} workspaceId Workspace identifier
906
+ * @param {string} resultId Input result ID to be used in the computation
907
+ * @param {AnomalyDetectionRequest} anomalyDetectionRequest
908
+ * @param {boolean} [skipCache] Ignore all caches during execution of current request.
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ async anomalyDetection(workspaceId, resultId, anomalyDetectionRequest, skipCache, options) {
913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.anomalyDetection(workspaceId, resultId, anomalyDetectionRequest, skipCache, options);
914
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
915
+ },
916
+ /**
917
+ * (EXPERIMENTAL) Gets anomalies.
918
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
919
+ * @param {string} workspaceId Workspace identifier
920
+ * @param {string} resultId Result ID
921
+ * @param {number} [offset]
922
+ * @param {number} [limit]
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ */
926
+ async anomalyDetectionResult(workspaceId, resultId, offset, limit, options) {
927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.anomalyDetectionResult(workspaceId, resultId, offset, limit, options);
928
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
929
+ },
807
930
  /**
808
931
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
809
932
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -989,6 +1112,30 @@ export const ActionsApiFp = function (configuration) {
989
1112
  export const ActionsApiFactory = function (configuration, basePath, axios) {
990
1113
  const localVarFp = ActionsApiFp(configuration);
991
1114
  return {
1115
+ /**
1116
+ * (EXPERIMENTAL) Computes anomaly detection.
1117
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
1118
+ * @param {ActionsApiAnomalyDetectionRequest} requestParameters Request parameters.
1119
+ * @param {*} [options] Override http request option.
1120
+ * @throws {RequiredError}
1121
+ */
1122
+ anomalyDetection(requestParameters, options) {
1123
+ return localVarFp
1124
+ .anomalyDetection(requestParameters.workspaceId, requestParameters.resultId, requestParameters.anomalyDetectionRequest, requestParameters.skipCache, options)
1125
+ .then((request) => request(axios, basePath));
1126
+ },
1127
+ /**
1128
+ * (EXPERIMENTAL) Gets anomalies.
1129
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
1130
+ * @param {ActionsApiAnomalyDetectionResultRequest} requestParameters Request parameters.
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
1134
+ anomalyDetectionResult(requestParameters, options) {
1135
+ return localVarFp
1136
+ .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
1137
+ .then((request) => request(axios, basePath));
1138
+ },
992
1139
  /**
993
1140
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
994
1141
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -1154,6 +1301,32 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1154
1301
  * @extends {BaseAPI}
1155
1302
  */
1156
1303
  export class ActionsApi extends BaseAPI {
1304
+ /**
1305
+ * (EXPERIMENTAL) Computes anomaly detection.
1306
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
1307
+ * @param {ActionsApiAnomalyDetectionRequest} requestParameters Request parameters.
1308
+ * @param {*} [options] Override http request option.
1309
+ * @throws {RequiredError}
1310
+ * @memberof ActionsApi
1311
+ */
1312
+ anomalyDetection(requestParameters, options) {
1313
+ return ActionsApiFp(this.configuration)
1314
+ .anomalyDetection(requestParameters.workspaceId, requestParameters.resultId, requestParameters.anomalyDetectionRequest, requestParameters.skipCache, options)
1315
+ .then((request) => request(this.axios, this.basePath));
1316
+ }
1317
+ /**
1318
+ * (EXPERIMENTAL) Gets anomalies.
1319
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
1320
+ * @param {ActionsApiAnomalyDetectionResultRequest} requestParameters Request parameters.
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ * @memberof ActionsApi
1324
+ */
1325
+ anomalyDetectionResult(requestParameters, options) {
1326
+ return ActionsApiFp(this.configuration)
1327
+ .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
1328
+ .then((request) => request(this.axios, this.basePath));
1329
+ }
1157
1330
  /**
1158
1331
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
1159
1332
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -2114,6 +2287,101 @@ export class ComputationApi extends BaseAPI {
2114
2287
  */
2115
2288
  export const SmartFunctionsApiAxiosParamCreator = function (configuration) {
2116
2289
  return {
2290
+ /**
2291
+ * (EXPERIMENTAL) Computes anomaly detection.
2292
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
2293
+ * @param {string} workspaceId Workspace identifier
2294
+ * @param {string} resultId Input result ID to be used in the computation
2295
+ * @param {AnomalyDetectionRequest} anomalyDetectionRequest
2296
+ * @param {boolean} [skipCache] Ignore all caches during execution of current request.
2297
+ * @param {*} [options] Override http request option.
2298
+ * @throws {RequiredError}
2299
+ */
2300
+ anomalyDetection: async (workspaceId, resultId, anomalyDetectionRequest, skipCache, options = {}) => {
2301
+ // verify required parameter 'workspaceId' is not null or undefined
2302
+ assertParamExists("anomalyDetection", "workspaceId", workspaceId);
2303
+ // verify required parameter 'resultId' is not null or undefined
2304
+ assertParamExists("anomalyDetection", "resultId", resultId);
2305
+ // verify required parameter 'anomalyDetectionRequest' is not null or undefined
2306
+ assertParamExists("anomalyDetection", "anomalyDetectionRequest", anomalyDetectionRequest);
2307
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/execution/functions/anomalyDetection/{resultId}`
2308
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
2309
+ .replace(`{${"resultId"}}`, encodeURIComponent(String(resultId)));
2310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2311
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2312
+ let baseOptions;
2313
+ if (configuration) {
2314
+ baseOptions = configuration.baseOptions;
2315
+ }
2316
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2317
+ const localVarHeaderParameter = {};
2318
+ const localVarQueryParameter = {};
2319
+ if (skipCache !== undefined && skipCache !== null) {
2320
+ localVarHeaderParameter["skip-cache"] = String(JSON.stringify(skipCache));
2321
+ }
2322
+ localVarHeaderParameter["Content-Type"] = "application/json";
2323
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2324
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2325
+ localVarRequestOptions.headers = {
2326
+ ...localVarHeaderParameter,
2327
+ ...headersFromBaseOptions,
2328
+ ...options.headers,
2329
+ };
2330
+ const needsSerialization = typeof anomalyDetectionRequest !== "string" ||
2331
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
2332
+ localVarRequestOptions.data = needsSerialization
2333
+ ? JSON.stringify(anomalyDetectionRequest !== undefined ? anomalyDetectionRequest : {})
2334
+ : anomalyDetectionRequest || "";
2335
+ return {
2336
+ url: toPathString(localVarUrlObj),
2337
+ options: localVarRequestOptions,
2338
+ };
2339
+ },
2340
+ /**
2341
+ * (EXPERIMENTAL) Gets anomalies.
2342
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
2343
+ * @param {string} workspaceId Workspace identifier
2344
+ * @param {string} resultId Result ID
2345
+ * @param {number} [offset]
2346
+ * @param {number} [limit]
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ */
2350
+ anomalyDetectionResult: async (workspaceId, resultId, offset, limit, options = {}) => {
2351
+ // verify required parameter 'workspaceId' is not null or undefined
2352
+ assertParamExists("anomalyDetectionResult", "workspaceId", workspaceId);
2353
+ // verify required parameter 'resultId' is not null or undefined
2354
+ assertParamExists("anomalyDetectionResult", "resultId", resultId);
2355
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/execution/functions/anomalyDetection/result/{resultId}`
2356
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
2357
+ .replace(`{${"resultId"}}`, encodeURIComponent(String(resultId)));
2358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2360
+ let baseOptions;
2361
+ if (configuration) {
2362
+ baseOptions = configuration.baseOptions;
2363
+ }
2364
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2365
+ const localVarHeaderParameter = {};
2366
+ const localVarQueryParameter = {};
2367
+ if (offset !== undefined) {
2368
+ localVarQueryParameter["offset"] = offset;
2369
+ }
2370
+ if (limit !== undefined) {
2371
+ localVarQueryParameter["limit"] = limit;
2372
+ }
2373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2375
+ localVarRequestOptions.headers = {
2376
+ ...localVarHeaderParameter,
2377
+ ...headersFromBaseOptions,
2378
+ ...options.headers,
2379
+ };
2380
+ return {
2381
+ url: toPathString(localVarUrlObj),
2382
+ options: localVarRequestOptions,
2383
+ };
2384
+ },
2117
2385
  /**
2118
2386
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
2119
2387
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -2313,6 +2581,34 @@ export const SmartFunctionsApiAxiosParamCreator = function (configuration) {
2313
2581
  export const SmartFunctionsApiFp = function (configuration) {
2314
2582
  const localVarAxiosParamCreator = SmartFunctionsApiAxiosParamCreator(configuration);
2315
2583
  return {
2584
+ /**
2585
+ * (EXPERIMENTAL) Computes anomaly detection.
2586
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
2587
+ * @param {string} workspaceId Workspace identifier
2588
+ * @param {string} resultId Input result ID to be used in the computation
2589
+ * @param {AnomalyDetectionRequest} anomalyDetectionRequest
2590
+ * @param {boolean} [skipCache] Ignore all caches during execution of current request.
2591
+ * @param {*} [options] Override http request option.
2592
+ * @throws {RequiredError}
2593
+ */
2594
+ async anomalyDetection(workspaceId, resultId, anomalyDetectionRequest, skipCache, options) {
2595
+ const localVarAxiosArgs = await localVarAxiosParamCreator.anomalyDetection(workspaceId, resultId, anomalyDetectionRequest, skipCache, options);
2596
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2597
+ },
2598
+ /**
2599
+ * (EXPERIMENTAL) Gets anomalies.
2600
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
2601
+ * @param {string} workspaceId Workspace identifier
2602
+ * @param {string} resultId Result ID
2603
+ * @param {number} [offset]
2604
+ * @param {number} [limit]
2605
+ * @param {*} [options] Override http request option.
2606
+ * @throws {RequiredError}
2607
+ */
2608
+ async anomalyDetectionResult(workspaceId, resultId, offset, limit, options) {
2609
+ const localVarAxiosArgs = await localVarAxiosParamCreator.anomalyDetectionResult(workspaceId, resultId, offset, limit, options);
2610
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2611
+ },
2316
2612
  /**
2317
2613
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
2318
2614
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -2378,6 +2674,30 @@ export const SmartFunctionsApiFp = function (configuration) {
2378
2674
  export const SmartFunctionsApiFactory = function (configuration, basePath, axios) {
2379
2675
  const localVarFp = SmartFunctionsApiFp(configuration);
2380
2676
  return {
2677
+ /**
2678
+ * (EXPERIMENTAL) Computes anomaly detection.
2679
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
2680
+ * @param {SmartFunctionsApiAnomalyDetectionRequest} requestParameters Request parameters.
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ anomalyDetection(requestParameters, options) {
2685
+ return localVarFp
2686
+ .anomalyDetection(requestParameters.workspaceId, requestParameters.resultId, requestParameters.anomalyDetectionRequest, requestParameters.skipCache, options)
2687
+ .then((request) => request(axios, basePath));
2688
+ },
2689
+ /**
2690
+ * (EXPERIMENTAL) Gets anomalies.
2691
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
2692
+ * @param {SmartFunctionsApiAnomalyDetectionResultRequest} requestParameters Request parameters.
2693
+ * @param {*} [options] Override http request option.
2694
+ * @throws {RequiredError}
2695
+ */
2696
+ anomalyDetectionResult(requestParameters, options) {
2697
+ return localVarFp
2698
+ .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
2699
+ .then((request) => request(axios, basePath));
2700
+ },
2381
2701
  /**
2382
2702
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
2383
2703
  * @summary (EXPERIMENTAL) Smart functions - Clustering
@@ -2435,6 +2755,32 @@ export const SmartFunctionsApiFactory = function (configuration, basePath, axios
2435
2755
  * @extends {BaseAPI}
2436
2756
  */
2437
2757
  export class SmartFunctionsApi extends BaseAPI {
2758
+ /**
2759
+ * (EXPERIMENTAL) Computes anomaly detection.
2760
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
2761
+ * @param {SmartFunctionsApiAnomalyDetectionRequest} requestParameters Request parameters.
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ * @memberof SmartFunctionsApi
2765
+ */
2766
+ anomalyDetection(requestParameters, options) {
2767
+ return SmartFunctionsApiFp(this.configuration)
2768
+ .anomalyDetection(requestParameters.workspaceId, requestParameters.resultId, requestParameters.anomalyDetectionRequest, requestParameters.skipCache, options)
2769
+ .then((request) => request(this.axios, this.basePath));
2770
+ }
2771
+ /**
2772
+ * (EXPERIMENTAL) Gets anomalies.
2773
+ * @summary (EXPERIMENTAL) Smart functions - Anomaly Detection Result
2774
+ * @param {SmartFunctionsApiAnomalyDetectionResultRequest} requestParameters Request parameters.
2775
+ * @param {*} [options] Override http request option.
2776
+ * @throws {RequiredError}
2777
+ * @memberof SmartFunctionsApi
2778
+ */
2779
+ anomalyDetectionResult(requestParameters, options) {
2780
+ return SmartFunctionsApiFp(this.configuration)
2781
+ .anomalyDetectionResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
2782
+ .then((request) => request(this.axios, this.basePath));
2783
+ }
2438
2784
  /**
2439
2785
  * (EXPERIMENTAL) Computes clusters for data points from the provided execution result and parameters.
2440
2786
  * @summary (EXPERIMENTAL) Smart functions - Clustering