@gooddata/api-client-tiger 11.10.0-alpha.5 → 11.10.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.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/actions.d.ts.map +1 -1
- package/esm/actions.js +2 -2
- package/esm/actions.js.map +1 -1
- package/esm/api-client-tiger.d.ts +52852 -62434
- package/esm/api-endpoints/actions/index.d.ts +2 -0
- package/esm/api-endpoints/actions/index.d.ts.map +1 -0
- package/esm/api-endpoints/actions/index.js +4 -0
- package/esm/api-endpoints/actions/index.js.map +1 -0
- package/esm/api-endpoints/authActions/index.d.ts +2 -0
- package/esm/api-endpoints/authActions/index.d.ts.map +1 -0
- package/esm/api-endpoints/authActions/index.js +4 -0
- package/esm/api-endpoints/authActions/index.js.map +1 -0
- package/esm/api-endpoints/automation/index.d.ts +2 -0
- package/esm/api-endpoints/automation/index.d.ts.map +1 -0
- package/esm/api-endpoints/automation/index.js +4 -0
- package/esm/api-endpoints/automation/index.js.map +1 -0
- package/esm/api-endpoints/entitiesObjects/index.d.ts +33 -0
- package/esm/api-endpoints/entitiesObjects/index.d.ts.map +1 -0
- package/esm/api-endpoints/entitiesObjects/index.js +66 -0
- package/esm/api-endpoints/entitiesObjects/index.js.map +1 -0
- package/esm/api-endpoints/execution/index.d.ts +3 -0
- package/esm/api-endpoints/execution/index.d.ts.map +1 -0
- package/esm/api-endpoints/execution/index.js +6 -0
- package/esm/api-endpoints/execution/index.js.map +1 -0
- package/esm/api-endpoints/explain/index.d.ts +2 -0
- package/esm/api-endpoints/explain/index.d.ts.map +1 -0
- package/esm/api-endpoints/explain/index.js +4 -0
- package/esm/api-endpoints/explain/index.js.map +1 -0
- package/esm/api-endpoints/export/index.d.ts +2 -0
- package/esm/api-endpoints/export/index.d.ts.map +1 -0
- package/esm/api-endpoints/export/index.js +4 -0
- package/esm/api-endpoints/export/index.js.map +1 -0
- package/esm/api-endpoints/genAI/index.d.ts +2 -0
- package/esm/api-endpoints/genAI/index.d.ts.map +1 -0
- package/esm/api-endpoints/genAI/index.js +4 -0
- package/esm/api-endpoints/genAI/index.js.map +1 -0
- package/esm/api-endpoints/labelElements/index.d.ts +2 -0
- package/esm/api-endpoints/labelElements/index.d.ts.map +1 -0
- package/esm/api-endpoints/labelElements/index.js +4 -0
- package/esm/api-endpoints/labelElements/index.js.map +1 -0
- package/esm/api-endpoints/layout/index.d.ts +2 -0
- package/esm/api-endpoints/layout/index.d.ts.map +1 -0
- package/esm/api-endpoints/layout/index.js +4 -0
- package/esm/api-endpoints/layout/index.js.map +1 -0
- package/esm/api-endpoints/profile/index.d.ts +3 -0
- package/esm/api-endpoints/profile/index.d.ts.map +1 -0
- package/esm/api-endpoints/profile/index.js +3 -0
- package/esm/api-endpoints/profile/index.js.map +1 -0
- package/esm/api-endpoints/result/index.d.ts +2 -0
- package/esm/api-endpoints/result/index.d.ts.map +1 -0
- package/esm/api-endpoints/result/index.js +4 -0
- package/esm/api-endpoints/result/index.js.map +1 -0
- package/esm/api-endpoints/scanModel/index.d.ts +2 -0
- package/esm/api-endpoints/scanModel/index.d.ts.map +1 -0
- package/esm/api-endpoints/scanModel/index.js +4 -0
- package/esm/api-endpoints/scanModel/index.js.map +1 -0
- package/esm/api-endpoints/smartFunctions/index.d.ts +2 -0
- package/esm/api-endpoints/smartFunctions/index.d.ts.map +1 -0
- package/esm/api-endpoints/smartFunctions/index.js +4 -0
- package/esm/api-endpoints/smartFunctions/index.js.map +1 -0
- package/esm/api-endpoints/userManagement/index.d.ts +2 -0
- package/esm/api-endpoints/userManagement/index.d.ts.map +1 -0
- package/esm/api-endpoints/userManagement/index.js +4 -0
- package/esm/api-endpoints/userManagement/index.js.map +1 -0
- package/esm/api-endpoints/validDescendants/index.d.ts +2 -0
- package/esm/api-endpoints/validDescendants/index.d.ts.map +1 -0
- package/esm/api-endpoints/validDescendants/index.js +4 -0
- package/esm/api-endpoints/validDescendants/index.js.map +1 -0
- package/esm/api-endpoints/validObjects/index.d.ts +2 -0
- package/esm/api-endpoints/validObjects/index.d.ts.map +1 -0
- package/esm/api-endpoints/validObjects/index.js +4 -0
- package/esm/api-endpoints/validObjects/index.js.map +1 -0
- package/esm/authActions.d.ts.map +1 -1
- package/esm/authActions.js +2 -2
- package/esm/authActions.js.map +1 -1
- package/esm/client.d.ts +26 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +21 -1
- package/esm/client.js.map +1 -1
- package/esm/entitiesObjects.d.ts.map +1 -1
- package/esm/entitiesObjects.js +2 -2
- package/esm/entitiesObjects.js.map +1 -1
- package/esm/gd-tiger-model/typeGuards.d.ts.map +1 -1
- package/esm/gd-tiger-model/typeGuards.js +8 -11
- package/esm/gd-tiger-model/typeGuards.js.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +2527 -3252
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +3700 -4690
- package/esm/generated/afm-rest-api/api.js.map +1 -1
- package/esm/generated/afm-rest-api/base.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/base.js +13 -1
- package/esm/generated/afm-rest-api/base.js.map +1 -1
- package/esm/generated/afm-rest-api/configuration.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/configuration.js +13 -1
- package/esm/generated/afm-rest-api/configuration.js.map +1 -1
- package/esm/generated/auth-json-api/api.d.ts +283 -395
- package/esm/generated/auth-json-api/api.d.ts.map +1 -1
- package/esm/generated/auth-json-api/api.js +703 -880
- package/esm/generated/auth-json-api/api.js.map +1 -1
- package/esm/generated/auth-json-api/base.d.ts.map +1 -1
- package/esm/generated/auth-json-api/base.js +13 -1
- package/esm/generated/auth-json-api/base.js.map +1 -1
- package/esm/generated/auth-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/auth-json-api/configuration.js +13 -1
- package/esm/generated/auth-json-api/configuration.js.map +1 -1
- package/esm/generated/auth-json-api/template.d.ts +102 -0
- package/esm/generated/auth-json-api/template.d.ts.map +1 -0
- package/esm/generated/auth-json-api/template.js +154 -0
- package/esm/generated/auth-json-api/template.js.map +1 -0
- package/esm/generated/automation-json-api/api.d.ts +347 -757
- package/esm/generated/automation-json-api/api.d.ts.map +1 -1
- package/esm/generated/automation-json-api/api.js +768 -1251
- package/esm/generated/automation-json-api/api.js.map +1 -1
- package/esm/generated/automation-json-api/base.d.ts.map +1 -1
- package/esm/generated/automation-json-api/base.js +13 -1
- package/esm/generated/automation-json-api/base.js.map +1 -1
- package/esm/generated/automation-json-api/common.d.ts.map +1 -1
- package/esm/generated/automation-json-api/common.js +13 -1
- package/esm/generated/automation-json-api/common.js.map +1 -1
- package/esm/generated/automation-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/automation-json-api/configuration.js +13 -1
- package/esm/generated/automation-json-api/configuration.js.map +1 -1
- package/esm/generated/automation-json-api/index.d.ts.map +1 -1
- package/esm/generated/automation-json-api/index.js +1 -1
- package/esm/generated/automation-json-api/index.js.map +1 -1
- package/esm/generated/export-json-api/api.d.ts +662 -1134
- package/esm/generated/export-json-api/api.d.ts.map +1 -1
- package/esm/generated/export-json-api/api.js +1556 -2181
- package/esm/generated/export-json-api/api.js.map +1 -1
- package/esm/generated/export-json-api/base.d.ts.map +1 -1
- package/esm/generated/export-json-api/base.js +13 -1
- package/esm/generated/export-json-api/base.js.map +1 -1
- package/esm/generated/export-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/export-json-api/configuration.js +13 -1
- package/esm/generated/export-json-api/configuration.js.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +35920 -44004
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +54041 -65836
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/base.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/base.js +13 -1
- package/esm/generated/metadata-json-api/base.js.map +1 -1
- package/esm/generated/metadata-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/configuration.js +13 -1
- package/esm/generated/metadata-json-api/configuration.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +10318 -10318
- package/esm/generated/result-json-api/api.d.ts +290 -524
- package/esm/generated/result-json-api/api.d.ts.map +1 -1
- package/esm/generated/result-json-api/api.js +784 -1135
- package/esm/generated/result-json-api/api.js.map +1 -1
- package/esm/generated/result-json-api/base.d.ts.map +1 -1
- package/esm/generated/result-json-api/base.js +13 -1
- package/esm/generated/result-json-api/base.js.map +1 -1
- package/esm/generated/result-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/result-json-api/configuration.js +13 -1
- package/esm/generated/result-json-api/configuration.js.map +1 -1
- package/esm/generated/scan-json-api/api.d.ts +243 -441
- package/esm/generated/scan-json-api/api.d.ts.map +1 -1
- package/esm/generated/scan-json-api/api.js +655 -922
- package/esm/generated/scan-json-api/api.js.map +1 -1
- package/esm/generated/scan-json-api/base.d.ts.map +1 -1
- package/esm/generated/scan-json-api/base.js +13 -1
- package/esm/generated/scan-json-api/base.js.map +1 -1
- package/esm/generated/scan-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/scan-json-api/configuration.js +13 -1
- package/esm/generated/scan-json-api/configuration.js.map +1 -1
- package/esm/generated/scan-json-api/openapi-spec.json +1 -1
- package/esm/index.d.ts +4 -5
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -5
- package/esm/index.js.map +1 -1
- package/esm/metadataUtilities.d.ts +21 -4
- package/esm/metadataUtilities.d.ts.map +1 -1
- package/esm/metadataUtilities.js +83 -12
- package/esm/metadataUtilities.js.map +1 -1
- package/esm/organizationUtilities.d.ts +9 -18
- package/esm/organizationUtilities.d.ts.map +1 -1
- package/esm/organizationUtilities.js +1 -17
- package/esm/organizationUtilities.js.map +1 -1
- package/esm/profile.d.ts +34 -0
- package/esm/profile.d.ts.map +1 -1
- package/esm/profile.js +26 -20
- package/esm/profile.js.map +1 -1
- package/esm/scanModel.d.ts.map +1 -1
- package/esm/scanModel.js +2 -2
- package/esm/scanModel.js.map +1 -1
- package/esm/userManagement.d.ts.map +1 -1
- package/esm/userManagement.js +2 -2
- package/esm/userManagement.js.map +1 -1
- package/package.json +25 -6
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* OpenAPI definition
|
|
4
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: v0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
2
13
|
import globalAxios from "axios";
|
|
3
14
|
// Some imports not used depending on template conditions, we also need prettier-ignore so that the import does not get split and ts-ignore still works
|
|
4
15
|
// prettier-ignore
|
|
@@ -8,455 +19,384 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
|
|
|
8
19
|
// prettier-ignore
|
|
9
20
|
// @ts-ignore
|
|
10
21
|
import { BASE_PATH, BaseAPI } from './base.js';
|
|
11
|
-
|
|
12
|
-
CSV: "CSV",
|
|
13
|
-
};
|
|
22
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
14
23
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @
|
|
24
|
+
* Analyzes CSV files at the given locations
|
|
25
|
+
* @summary Analyze CSV
|
|
26
|
+
* @param {AnalyzeCsvRequest} analyzeCsvRequest
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
29
|
+
* @throws {RequiredError}
|
|
17
30
|
*/
|
|
18
|
-
export
|
|
31
|
+
export async function ActionsApiAxiosParamCreator_AnalyzeCsv(analyzeCsvRequest, options = {}, configuration) {
|
|
32
|
+
// verify required parameter 'analyzeCsvRequest' is not null or undefined
|
|
33
|
+
assertParamExists("analyzeCsv", "analyzeCsvRequest", analyzeCsvRequest);
|
|
34
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/analyzeCsv`;
|
|
35
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37
|
+
let baseOptions;
|
|
38
|
+
if (configuration) {
|
|
39
|
+
baseOptions = configuration.baseOptions;
|
|
40
|
+
}
|
|
41
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
42
|
+
const localVarHeaderParameter = {};
|
|
43
|
+
const localVarQueryParameter = {};
|
|
44
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
47
|
+
localVarRequestOptions.headers = {
|
|
48
|
+
...localVarHeaderParameter,
|
|
49
|
+
...headersFromBaseOptions,
|
|
50
|
+
...options.headers,
|
|
51
|
+
};
|
|
52
|
+
const needsSerialization = typeof analyzeCsvRequest !== "string" ||
|
|
53
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
54
|
+
localVarRequestOptions.data = needsSerialization
|
|
55
|
+
? JSON.stringify(analyzeCsvRequest !== undefined ? analyzeCsvRequest : {})
|
|
56
|
+
: analyzeCsvRequest || "";
|
|
19
57
|
return {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @summary Analyze CSV
|
|
23
|
-
* @param {AnalyzeCsvRequest} analyzeCsvRequest
|
|
24
|
-
* @param {*} [options] Override http request option.
|
|
25
|
-
* @throws {RequiredError}
|
|
26
|
-
*/
|
|
27
|
-
analyzeCsv: async (analyzeCsvRequest, options = {}) => {
|
|
28
|
-
// verify required parameter 'analyzeCsvRequest' is not null or undefined
|
|
29
|
-
assertParamExists("analyzeCsv", "analyzeCsvRequest", analyzeCsvRequest);
|
|
30
|
-
const localVarPath = `/api/v1/actions/fileStorage/staging/analyzeCsv`;
|
|
31
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33
|
-
let baseOptions;
|
|
34
|
-
if (configuration) {
|
|
35
|
-
baseOptions = configuration.baseOptions;
|
|
36
|
-
}
|
|
37
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
38
|
-
const localVarHeaderParameter = {};
|
|
39
|
-
const localVarQueryParameter = {};
|
|
40
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
41
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43
|
-
localVarRequestOptions.headers = {
|
|
44
|
-
...localVarHeaderParameter,
|
|
45
|
-
...headersFromBaseOptions,
|
|
46
|
-
...options.headers,
|
|
47
|
-
};
|
|
48
|
-
const needsSerialization = typeof analyzeCsvRequest !== "string" ||
|
|
49
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
50
|
-
localVarRequestOptions.data = needsSerialization
|
|
51
|
-
? JSON.stringify(analyzeCsvRequest !== undefined ? analyzeCsvRequest : {})
|
|
52
|
-
: analyzeCsvRequest || "";
|
|
53
|
-
return {
|
|
54
|
-
url: toPathString(localVarUrlObj),
|
|
55
|
-
options: localVarRequestOptions,
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
60
|
-
* @summary Collect data about the current cache usage
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
*/
|
|
64
|
-
collectCacheUsage: async (options = {}) => {
|
|
65
|
-
const localVarPath = `/api/v1/actions/collectCacheUsage`;
|
|
66
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
68
|
-
let baseOptions;
|
|
69
|
-
if (configuration) {
|
|
70
|
-
baseOptions = configuration.baseOptions;
|
|
71
|
-
}
|
|
72
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
73
|
-
const localVarHeaderParameter = {};
|
|
74
|
-
const localVarQueryParameter = {};
|
|
75
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
-
localVarRequestOptions.headers = {
|
|
78
|
-
...localVarHeaderParameter,
|
|
79
|
-
...headersFromBaseOptions,
|
|
80
|
-
...options.headers,
|
|
81
|
-
};
|
|
82
|
-
return {
|
|
83
|
-
url: toPathString(localVarUrlObj),
|
|
84
|
-
options: localVarRequestOptions,
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* Delete the files in the given data source.
|
|
89
|
-
* @summary Delete datasource files
|
|
90
|
-
* @param {string} dataSourceId
|
|
91
|
-
* @param {DeleteFilesRequest} deleteFilesRequest
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
deleteFiles: async (dataSourceId, deleteFilesRequest, options = {}) => {
|
|
96
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
97
|
-
assertParamExists("deleteFiles", "dataSourceId", dataSourceId);
|
|
98
|
-
// verify required parameter 'deleteFilesRequest' is not null or undefined
|
|
99
|
-
assertParamExists("deleteFiles", "deleteFilesRequest", deleteFilesRequest);
|
|
100
|
-
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/deleteFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
101
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
-
let baseOptions;
|
|
104
|
-
if (configuration) {
|
|
105
|
-
baseOptions = configuration.baseOptions;
|
|
106
|
-
}
|
|
107
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
108
|
-
const localVarHeaderParameter = {};
|
|
109
|
-
const localVarQueryParameter = {};
|
|
110
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
111
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
-
localVarRequestOptions.headers = {
|
|
114
|
-
...localVarHeaderParameter,
|
|
115
|
-
...headersFromBaseOptions,
|
|
116
|
-
...options.headers,
|
|
117
|
-
};
|
|
118
|
-
const needsSerialization = typeof deleteFilesRequest !== "string" ||
|
|
119
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
120
|
-
localVarRequestOptions.data = needsSerialization
|
|
121
|
-
? JSON.stringify(deleteFilesRequest !== undefined ? deleteFilesRequest : {})
|
|
122
|
-
: deleteFilesRequest || "";
|
|
123
|
-
return {
|
|
124
|
-
url: toPathString(localVarUrlObj),
|
|
125
|
-
options: localVarRequestOptions,
|
|
126
|
-
};
|
|
127
|
-
},
|
|
128
|
-
/**
|
|
129
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
130
|
-
* @summary Import CSV
|
|
131
|
-
* @param {string} dataSourceId
|
|
132
|
-
* @param {ImportCsvRequest} importCsvRequest
|
|
133
|
-
* @param {*} [options] Override http request option.
|
|
134
|
-
* @throws {RequiredError}
|
|
135
|
-
*/
|
|
136
|
-
importCsv: async (dataSourceId, importCsvRequest, options = {}) => {
|
|
137
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
138
|
-
assertParamExists("importCsv", "dataSourceId", dataSourceId);
|
|
139
|
-
// verify required parameter 'importCsvRequest' is not null or undefined
|
|
140
|
-
assertParamExists("importCsv", "importCsvRequest", importCsvRequest);
|
|
141
|
-
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/importCsv`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
142
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
|
-
let baseOptions;
|
|
145
|
-
if (configuration) {
|
|
146
|
-
baseOptions = configuration.baseOptions;
|
|
147
|
-
}
|
|
148
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
149
|
-
const localVarHeaderParameter = {};
|
|
150
|
-
const localVarQueryParameter = {};
|
|
151
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
152
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
-
localVarRequestOptions.headers = {
|
|
155
|
-
...localVarHeaderParameter,
|
|
156
|
-
...headersFromBaseOptions,
|
|
157
|
-
...options.headers,
|
|
158
|
-
};
|
|
159
|
-
const needsSerialization = typeof importCsvRequest !== "string" ||
|
|
160
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
161
|
-
localVarRequestOptions.data = needsSerialization
|
|
162
|
-
? JSON.stringify(importCsvRequest !== undefined ? importCsvRequest : {})
|
|
163
|
-
: importCsvRequest || "";
|
|
164
|
-
return {
|
|
165
|
-
url: toPathString(localVarUrlObj),
|
|
166
|
-
options: localVarRequestOptions,
|
|
167
|
-
};
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* List all the files in the given data source.
|
|
171
|
-
* @summary List datasource files
|
|
172
|
-
* @param {string} dataSourceId
|
|
173
|
-
* @param {*} [options] Override http request option.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
listFiles: async (dataSourceId, options = {}) => {
|
|
177
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
178
|
-
assertParamExists("listFiles", "dataSourceId", dataSourceId);
|
|
179
|
-
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/listFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
180
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
-
let baseOptions;
|
|
183
|
-
if (configuration) {
|
|
184
|
-
baseOptions = configuration.baseOptions;
|
|
185
|
-
}
|
|
186
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
187
|
-
const localVarHeaderParameter = {};
|
|
188
|
-
const localVarQueryParameter = {};
|
|
189
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
190
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
-
localVarRequestOptions.headers = {
|
|
192
|
-
...localVarHeaderParameter,
|
|
193
|
-
...headersFromBaseOptions,
|
|
194
|
-
...options.headers,
|
|
195
|
-
};
|
|
196
|
-
return {
|
|
197
|
-
url: toPathString(localVarUrlObj),
|
|
198
|
-
options: localVarRequestOptions,
|
|
199
|
-
};
|
|
200
|
-
},
|
|
201
|
-
/**
|
|
202
|
-
* Read the manifests of the CSV files in the given data source.
|
|
203
|
-
* @summary Read CSV file manifests
|
|
204
|
-
* @param {string} dataSourceId
|
|
205
|
-
* @param {ReadCsvFileManifestsRequest} readCsvFileManifestsRequest
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
readCsvFileManifests: async (dataSourceId, readCsvFileManifestsRequest, options = {}) => {
|
|
210
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
211
|
-
assertParamExists("readCsvFileManifests", "dataSourceId", dataSourceId);
|
|
212
|
-
// verify required parameter 'readCsvFileManifestsRequest' is not null or undefined
|
|
213
|
-
assertParamExists("readCsvFileManifests", "readCsvFileManifestsRequest", readCsvFileManifestsRequest);
|
|
214
|
-
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/readCsvFileManifests`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
215
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
-
let baseOptions;
|
|
218
|
-
if (configuration) {
|
|
219
|
-
baseOptions = configuration.baseOptions;
|
|
220
|
-
}
|
|
221
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
222
|
-
const localVarHeaderParameter = {};
|
|
223
|
-
const localVarQueryParameter = {};
|
|
224
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
225
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
-
localVarRequestOptions.headers = {
|
|
228
|
-
...localVarHeaderParameter,
|
|
229
|
-
...headersFromBaseOptions,
|
|
230
|
-
...options.headers,
|
|
231
|
-
};
|
|
232
|
-
const needsSerialization = typeof readCsvFileManifestsRequest !== "string" ||
|
|
233
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
234
|
-
localVarRequestOptions.data = needsSerialization
|
|
235
|
-
? JSON.stringify(readCsvFileManifestsRequest !== undefined ? readCsvFileManifestsRequest : {})
|
|
236
|
-
: readCsvFileManifestsRequest || "";
|
|
237
|
-
return {
|
|
238
|
-
url: toPathString(localVarUrlObj),
|
|
239
|
-
options: localVarRequestOptions,
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
/**
|
|
243
|
-
* Provides a location for uploading staging files.
|
|
244
|
-
* @summary Upload a file to the staging area
|
|
245
|
-
* @param {File} file The file to upload.
|
|
246
|
-
* @param {*} [options] Override http request option.
|
|
247
|
-
* @throws {RequiredError}
|
|
248
|
-
*/
|
|
249
|
-
stagingUpload: async (file, options = {}) => {
|
|
250
|
-
// verify required parameter 'file' is not null or undefined
|
|
251
|
-
assertParamExists("stagingUpload", "file", file);
|
|
252
|
-
const localVarPath = `/api/v1/actions/fileStorage/staging/upload`;
|
|
253
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
255
|
-
let baseOptions;
|
|
256
|
-
if (configuration) {
|
|
257
|
-
baseOptions = configuration.baseOptions;
|
|
258
|
-
}
|
|
259
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
260
|
-
const localVarHeaderParameter = {};
|
|
261
|
-
const localVarQueryParameter = {};
|
|
262
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
263
|
-
if (file !== undefined) {
|
|
264
|
-
localVarFormParams.append("file", file);
|
|
265
|
-
}
|
|
266
|
-
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
267
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers = {
|
|
270
|
-
...localVarHeaderParameter,
|
|
271
|
-
...headersFromBaseOptions,
|
|
272
|
-
...options.headers,
|
|
273
|
-
};
|
|
274
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
275
|
-
return {
|
|
276
|
-
url: toPathString(localVarUrlObj),
|
|
277
|
-
options: localVarRequestOptions,
|
|
278
|
-
};
|
|
279
|
-
},
|
|
58
|
+
url: toPathString(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
280
60
|
};
|
|
281
|
-
}
|
|
61
|
+
}
|
|
62
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
282
63
|
/**
|
|
283
|
-
*
|
|
284
|
-
* @
|
|
64
|
+
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
65
|
+
* @summary Collect data about the current cache usage
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
export async function ActionsApiAxiosParamCreator_CollectCacheUsage(options = {}, configuration) {
|
|
71
|
+
const localVarPath = `/api/v1/actions/collectCacheUsage`;
|
|
72
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
73
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
74
|
+
let baseOptions;
|
|
75
|
+
if (configuration) {
|
|
76
|
+
baseOptions = configuration.baseOptions;
|
|
77
|
+
}
|
|
78
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
79
|
+
const localVarHeaderParameter = {};
|
|
80
|
+
const localVarQueryParameter = {};
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {
|
|
84
|
+
...localVarHeaderParameter,
|
|
85
|
+
...headersFromBaseOptions,
|
|
86
|
+
...options.headers,
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
url: toPathString(localVarUrlObj),
|
|
90
|
+
options: localVarRequestOptions,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
94
|
+
/**
|
|
95
|
+
* Delete the files in the given data source.
|
|
96
|
+
* @summary Delete datasource files
|
|
97
|
+
* @param {string} dataSourceId
|
|
98
|
+
* @param {DeleteFilesRequest} deleteFilesRequest
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
101
|
+
* @throws {RequiredError}
|
|
285
102
|
*/
|
|
286
|
-
export
|
|
287
|
-
|
|
103
|
+
export async function ActionsApiAxiosParamCreator_DeleteFiles(dataSourceId, deleteFilesRequest, options = {}, configuration) {
|
|
104
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
105
|
+
assertParamExists("deleteFiles", "dataSourceId", dataSourceId);
|
|
106
|
+
// verify required parameter 'deleteFilesRequest' is not null or undefined
|
|
107
|
+
assertParamExists("deleteFiles", "deleteFilesRequest", deleteFilesRequest);
|
|
108
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/deleteFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
121
|
+
localVarRequestOptions.headers = {
|
|
122
|
+
...localVarHeaderParameter,
|
|
123
|
+
...headersFromBaseOptions,
|
|
124
|
+
...options.headers,
|
|
125
|
+
};
|
|
126
|
+
const needsSerialization = typeof deleteFilesRequest !== "string" ||
|
|
127
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
128
|
+
localVarRequestOptions.data = needsSerialization
|
|
129
|
+
? JSON.stringify(deleteFilesRequest !== undefined ? deleteFilesRequest : {})
|
|
130
|
+
: deleteFilesRequest || "";
|
|
288
131
|
return {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
* @summary Analyze CSV
|
|
292
|
-
* @param {AnalyzeCsvRequest} analyzeCsvRequest
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
*/
|
|
296
|
-
async analyzeCsv(analyzeCsvRequest, options) {
|
|
297
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.analyzeCsv(analyzeCsvRequest, options);
|
|
298
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
299
|
-
},
|
|
300
|
-
/**
|
|
301
|
-
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
302
|
-
* @summary Collect data about the current cache usage
|
|
303
|
-
* @param {*} [options] Override http request option.
|
|
304
|
-
* @throws {RequiredError}
|
|
305
|
-
*/
|
|
306
|
-
async collectCacheUsage(options) {
|
|
307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.collectCacheUsage(options);
|
|
308
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* Delete the files in the given data source.
|
|
312
|
-
* @summary Delete datasource files
|
|
313
|
-
* @param {string} dataSourceId
|
|
314
|
-
* @param {DeleteFilesRequest} deleteFilesRequest
|
|
315
|
-
* @param {*} [options] Override http request option.
|
|
316
|
-
* @throws {RequiredError}
|
|
317
|
-
*/
|
|
318
|
-
async deleteFiles(dataSourceId, deleteFilesRequest, options) {
|
|
319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFiles(dataSourceId, deleteFilesRequest, options);
|
|
320
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
|
-
},
|
|
322
|
-
/**
|
|
323
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
324
|
-
* @summary Import CSV
|
|
325
|
-
* @param {string} dataSourceId
|
|
326
|
-
* @param {ImportCsvRequest} importCsvRequest
|
|
327
|
-
* @param {*} [options] Override http request option.
|
|
328
|
-
* @throws {RequiredError}
|
|
329
|
-
*/
|
|
330
|
-
async importCsv(dataSourceId, importCsvRequest, options) {
|
|
331
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importCsv(dataSourceId, importCsvRequest, options);
|
|
332
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
|
-
},
|
|
334
|
-
/**
|
|
335
|
-
* List all the files in the given data source.
|
|
336
|
-
* @summary List datasource files
|
|
337
|
-
* @param {string} dataSourceId
|
|
338
|
-
* @param {*} [options] Override http request option.
|
|
339
|
-
* @throws {RequiredError}
|
|
340
|
-
*/
|
|
341
|
-
async listFiles(dataSourceId, options) {
|
|
342
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(dataSourceId, options);
|
|
343
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
344
|
-
},
|
|
345
|
-
/**
|
|
346
|
-
* Read the manifests of the CSV files in the given data source.
|
|
347
|
-
* @summary Read CSV file manifests
|
|
348
|
-
* @param {string} dataSourceId
|
|
349
|
-
* @param {ReadCsvFileManifestsRequest} readCsvFileManifestsRequest
|
|
350
|
-
* @param {*} [options] Override http request option.
|
|
351
|
-
* @throws {RequiredError}
|
|
352
|
-
*/
|
|
353
|
-
async readCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options) {
|
|
354
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.readCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options);
|
|
355
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
356
|
-
},
|
|
357
|
-
/**
|
|
358
|
-
* Provides a location for uploading staging files.
|
|
359
|
-
* @summary Upload a file to the staging area
|
|
360
|
-
* @param {File} file The file to upload.
|
|
361
|
-
* @param {*} [options] Override http request option.
|
|
362
|
-
* @throws {RequiredError}
|
|
363
|
-
*/
|
|
364
|
-
async stagingUpload(file, options) {
|
|
365
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.stagingUpload(file, options);
|
|
366
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
367
|
-
},
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
368
134
|
};
|
|
369
|
-
}
|
|
135
|
+
}
|
|
136
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
370
137
|
/**
|
|
371
|
-
*
|
|
372
|
-
* @
|
|
138
|
+
* Import the CSV files at the given locations in the staging area to the final location.
|
|
139
|
+
* @summary Import CSV
|
|
140
|
+
* @param {string} dataSourceId
|
|
141
|
+
* @param {ImportCsvRequest} importCsvRequest
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
export async function ActionsApiAxiosParamCreator_ImportCsv(dataSourceId, importCsvRequest, options = {}, configuration) {
|
|
147
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
148
|
+
assertParamExists("importCsv", "dataSourceId", dataSourceId);
|
|
149
|
+
// verify required parameter 'importCsvRequest' is not null or undefined
|
|
150
|
+
assertParamExists("importCsv", "importCsvRequest", importCsvRequest);
|
|
151
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/importCsv`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
}
|
|
158
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
159
|
+
const localVarHeaderParameter = {};
|
|
160
|
+
const localVarQueryParameter = {};
|
|
161
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
162
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
163
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
164
|
+
localVarRequestOptions.headers = {
|
|
165
|
+
...localVarHeaderParameter,
|
|
166
|
+
...headersFromBaseOptions,
|
|
167
|
+
...options.headers,
|
|
168
|
+
};
|
|
169
|
+
const needsSerialization = typeof importCsvRequest !== "string" ||
|
|
170
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
171
|
+
localVarRequestOptions.data = needsSerialization
|
|
172
|
+
? JSON.stringify(importCsvRequest !== undefined ? importCsvRequest : {})
|
|
173
|
+
: importCsvRequest || "";
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
180
|
+
/**
|
|
181
|
+
* List all the files in the given data source.
|
|
182
|
+
* @summary List datasource files
|
|
183
|
+
* @param {string} dataSourceId
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
export async function ActionsApiAxiosParamCreator_ListFiles(dataSourceId, options = {}, configuration) {
|
|
189
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
190
|
+
assertParamExists("listFiles", "dataSourceId", dataSourceId);
|
|
191
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/listFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
192
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
194
|
+
let baseOptions;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
}
|
|
198
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
199
|
+
const localVarHeaderParameter = {};
|
|
200
|
+
const localVarQueryParameter = {};
|
|
201
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
202
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
203
|
+
localVarRequestOptions.headers = {
|
|
204
|
+
...localVarHeaderParameter,
|
|
205
|
+
...headersFromBaseOptions,
|
|
206
|
+
...options.headers,
|
|
207
|
+
};
|
|
208
|
+
return {
|
|
209
|
+
url: toPathString(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
214
|
+
/**
|
|
215
|
+
* Read the manifests of the CSV files in the given data source.
|
|
216
|
+
* @summary Read CSV file manifests
|
|
217
|
+
* @param {string} dataSourceId
|
|
218
|
+
* @param {ReadCsvFileManifestsRequest} readCsvFileManifestsRequest
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
221
|
+
* @throws {RequiredError}
|
|
373
222
|
*/
|
|
374
|
-
export
|
|
375
|
-
|
|
223
|
+
export async function ActionsApiAxiosParamCreator_ReadCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options = {}, configuration) {
|
|
224
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
225
|
+
assertParamExists("readCsvFileManifests", "dataSourceId", dataSourceId);
|
|
226
|
+
// verify required parameter 'readCsvFileManifestsRequest' is not null or undefined
|
|
227
|
+
assertParamExists("readCsvFileManifests", "readCsvFileManifestsRequest", readCsvFileManifestsRequest);
|
|
228
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/readCsvFileManifests`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
231
|
+
let baseOptions;
|
|
232
|
+
if (configuration) {
|
|
233
|
+
baseOptions = configuration.baseOptions;
|
|
234
|
+
}
|
|
235
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
236
|
+
const localVarHeaderParameter = {};
|
|
237
|
+
const localVarQueryParameter = {};
|
|
238
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {
|
|
242
|
+
...localVarHeaderParameter,
|
|
243
|
+
...headersFromBaseOptions,
|
|
244
|
+
...options.headers,
|
|
245
|
+
};
|
|
246
|
+
const needsSerialization = typeof readCsvFileManifestsRequest !== "string" ||
|
|
247
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
248
|
+
localVarRequestOptions.data = needsSerialization
|
|
249
|
+
? JSON.stringify(readCsvFileManifestsRequest !== undefined ? readCsvFileManifestsRequest : {})
|
|
250
|
+
: readCsvFileManifestsRequest || "";
|
|
376
251
|
return {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
* @summary Analyze CSV
|
|
380
|
-
* @param {ActionsApiAnalyzeCsvRequest} requestParameters Request parameters.
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
analyzeCsv(requestParameters, options) {
|
|
385
|
-
return localVarFp
|
|
386
|
-
.analyzeCsv(requestParameters.analyzeCsvRequest, options)
|
|
387
|
-
.then((request) => request(axios, basePath));
|
|
388
|
-
},
|
|
389
|
-
/**
|
|
390
|
-
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
391
|
-
* @summary Collect data about the current cache usage
|
|
392
|
-
* @param {*} [options] Override http request option.
|
|
393
|
-
* @throws {RequiredError}
|
|
394
|
-
*/
|
|
395
|
-
collectCacheUsage(options) {
|
|
396
|
-
return localVarFp.collectCacheUsage(options).then((request) => request(axios, basePath));
|
|
397
|
-
},
|
|
398
|
-
/**
|
|
399
|
-
* Delete the files in the given data source.
|
|
400
|
-
* @summary Delete datasource files
|
|
401
|
-
* @param {ActionsApiDeleteFilesRequest} requestParameters Request parameters.
|
|
402
|
-
* @param {*} [options] Override http request option.
|
|
403
|
-
* @throws {RequiredError}
|
|
404
|
-
*/
|
|
405
|
-
deleteFiles(requestParameters, options) {
|
|
406
|
-
return localVarFp
|
|
407
|
-
.deleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options)
|
|
408
|
-
.then((request) => request(axios, basePath));
|
|
409
|
-
},
|
|
410
|
-
/**
|
|
411
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
412
|
-
* @summary Import CSV
|
|
413
|
-
* @param {ActionsApiImportCsvRequest} requestParameters Request parameters.
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
importCsv(requestParameters, options) {
|
|
418
|
-
return localVarFp
|
|
419
|
-
.importCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options)
|
|
420
|
-
.then((request) => request(axios, basePath));
|
|
421
|
-
},
|
|
422
|
-
/**
|
|
423
|
-
* List all the files in the given data source.
|
|
424
|
-
* @summary List datasource files
|
|
425
|
-
* @param {ActionsApiListFilesRequest} requestParameters Request parameters.
|
|
426
|
-
* @param {*} [options] Override http request option.
|
|
427
|
-
* @throws {RequiredError}
|
|
428
|
-
*/
|
|
429
|
-
listFiles(requestParameters, options) {
|
|
430
|
-
return localVarFp
|
|
431
|
-
.listFiles(requestParameters.dataSourceId, options)
|
|
432
|
-
.then((request) => request(axios, basePath));
|
|
433
|
-
},
|
|
434
|
-
/**
|
|
435
|
-
* Read the manifests of the CSV files in the given data source.
|
|
436
|
-
* @summary Read CSV file manifests
|
|
437
|
-
* @param {ActionsApiReadCsvFileManifestsRequest} requestParameters Request parameters.
|
|
438
|
-
* @param {*} [options] Override http request option.
|
|
439
|
-
* @throws {RequiredError}
|
|
440
|
-
*/
|
|
441
|
-
readCsvFileManifests(requestParameters, options) {
|
|
442
|
-
return localVarFp
|
|
443
|
-
.readCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options)
|
|
444
|
-
.then((request) => request(axios, basePath));
|
|
445
|
-
},
|
|
446
|
-
/**
|
|
447
|
-
* Provides a location for uploading staging files.
|
|
448
|
-
* @summary Upload a file to the staging area
|
|
449
|
-
* @param {ActionsApiStagingUploadRequest} requestParameters Request parameters.
|
|
450
|
-
* @param {*} [options] Override http request option.
|
|
451
|
-
* @throws {RequiredError}
|
|
452
|
-
*/
|
|
453
|
-
stagingUpload(requestParameters, options) {
|
|
454
|
-
return localVarFp
|
|
455
|
-
.stagingUpload(requestParameters.file, options)
|
|
456
|
-
.then((request) => request(axios, basePath));
|
|
457
|
-
},
|
|
252
|
+
url: toPathString(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
458
254
|
};
|
|
459
|
-
}
|
|
255
|
+
}
|
|
256
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
257
|
+
/**
|
|
258
|
+
* Provides a location for uploading staging files.
|
|
259
|
+
* @summary Upload a file to the staging area
|
|
260
|
+
* @param {File} file The file to upload.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
export async function ActionsApiAxiosParamCreator_StagingUpload(file, options = {}, configuration) {
|
|
266
|
+
// verify required parameter 'file' is not null or undefined
|
|
267
|
+
assertParamExists("stagingUpload", "file", file);
|
|
268
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/upload`;
|
|
269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
+
let baseOptions;
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
}
|
|
275
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
276
|
+
const localVarHeaderParameter = {};
|
|
277
|
+
const localVarQueryParameter = {};
|
|
278
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
279
|
+
if (file !== undefined) {
|
|
280
|
+
localVarFormParams.append("file", file);
|
|
281
|
+
}
|
|
282
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
283
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = {
|
|
286
|
+
...localVarHeaderParameter,
|
|
287
|
+
...headersFromBaseOptions,
|
|
288
|
+
...options.headers,
|
|
289
|
+
};
|
|
290
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
291
|
+
return {
|
|
292
|
+
url: toPathString(localVarUrlObj),
|
|
293
|
+
options: localVarRequestOptions,
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
// ActionsApi Api FP
|
|
297
|
+
/**
|
|
298
|
+
* Analyzes CSV files at the given locations
|
|
299
|
+
* @summary Analyze CSV
|
|
300
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
301
|
+
* @param {string} basePath Base path.
|
|
302
|
+
* @param {ActionsApiAnalyzeCsvRequest} requestParameters Request parameters.
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
export async function ActionsApi_AnalyzeCsv(axios, basePath, requestParameters, options, configuration) {
|
|
308
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_AnalyzeCsv(requestParameters.analyzeCsvRequest, options || {}, configuration);
|
|
309
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
310
|
+
}
|
|
311
|
+
// ActionsApi Api FP
|
|
312
|
+
/**
|
|
313
|
+
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
314
|
+
* @summary Collect data about the current cache usage
|
|
315
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
316
|
+
* @param {string} basePath Base path.
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
export async function ActionsApi_CollectCacheUsage(axios, basePath, options, configuration) {
|
|
322
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_CollectCacheUsage(options || {}, configuration);
|
|
323
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
324
|
+
}
|
|
325
|
+
// ActionsApi Api FP
|
|
326
|
+
/**
|
|
327
|
+
* Delete the files in the given data source.
|
|
328
|
+
* @summary Delete datasource files
|
|
329
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
330
|
+
* @param {string} basePath Base path.
|
|
331
|
+
* @param {ActionsApiDeleteFilesRequest} requestParameters Request parameters.
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
export async function ActionsApi_DeleteFiles(axios, basePath, requestParameters, options, configuration) {
|
|
337
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_DeleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options || {}, configuration);
|
|
338
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
339
|
+
}
|
|
340
|
+
// ActionsApi Api FP
|
|
341
|
+
/**
|
|
342
|
+
* Import the CSV files at the given locations in the staging area to the final location.
|
|
343
|
+
* @summary Import CSV
|
|
344
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
345
|
+
* @param {string} basePath Base path.
|
|
346
|
+
* @param {ActionsApiImportCsvRequest} requestParameters Request parameters.
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
export async function ActionsApi_ImportCsv(axios, basePath, requestParameters, options, configuration) {
|
|
352
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ImportCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options || {}, configuration);
|
|
353
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
354
|
+
}
|
|
355
|
+
// ActionsApi Api FP
|
|
356
|
+
/**
|
|
357
|
+
* List all the files in the given data source.
|
|
358
|
+
* @summary List datasource files
|
|
359
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
360
|
+
* @param {string} basePath Base path.
|
|
361
|
+
* @param {ActionsApiListFilesRequest} requestParameters Request parameters.
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
export async function ActionsApi_ListFiles(axios, basePath, requestParameters, options, configuration) {
|
|
367
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ListFiles(requestParameters.dataSourceId, options || {}, configuration);
|
|
368
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
369
|
+
}
|
|
370
|
+
// ActionsApi Api FP
|
|
371
|
+
/**
|
|
372
|
+
* Read the manifests of the CSV files in the given data source.
|
|
373
|
+
* @summary Read CSV file manifests
|
|
374
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
375
|
+
* @param {string} basePath Base path.
|
|
376
|
+
* @param {ActionsApiReadCsvFileManifestsRequest} requestParameters Request parameters.
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
export async function ActionsApi_ReadCsvFileManifests(axios, basePath, requestParameters, options, configuration) {
|
|
382
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ReadCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options || {}, configuration);
|
|
383
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
384
|
+
}
|
|
385
|
+
// ActionsApi Api FP
|
|
386
|
+
/**
|
|
387
|
+
* Provides a location for uploading staging files.
|
|
388
|
+
* @summary Upload a file to the staging area
|
|
389
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
390
|
+
* @param {string} basePath Base path.
|
|
391
|
+
* @param {ActionsApiStagingUploadRequest} requestParameters Request parameters.
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
export async function ActionsApi_StagingUpload(axios, basePath, requestParameters, options, configuration) {
|
|
397
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_StagingUpload(requestParameters.file, options || {}, configuration);
|
|
398
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
399
|
+
}
|
|
460
400
|
/**
|
|
461
401
|
* ActionsApi - object-oriented interface
|
|
462
402
|
* @export
|
|
@@ -473,9 +413,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
473
413
|
* @memberof ActionsApi
|
|
474
414
|
*/
|
|
475
415
|
analyzeCsv(requestParameters, options) {
|
|
476
|
-
return
|
|
477
|
-
.analyzeCsv(requestParameters.analyzeCsvRequest, options)
|
|
478
|
-
.then((request) => request(this.axios, this.basePath));
|
|
416
|
+
return ActionsApi_AnalyzeCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
479
417
|
}
|
|
480
418
|
/**
|
|
481
419
|
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
@@ -485,9 +423,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
485
423
|
* @memberof ActionsApi
|
|
486
424
|
*/
|
|
487
425
|
collectCacheUsage(options) {
|
|
488
|
-
return
|
|
489
|
-
.collectCacheUsage(options)
|
|
490
|
-
.then((request) => request(this.axios, this.basePath));
|
|
426
|
+
return ActionsApi_CollectCacheUsage(this.axios, this.basePath, options, this.configuration);
|
|
491
427
|
}
|
|
492
428
|
/**
|
|
493
429
|
* Delete the files in the given data source.
|
|
@@ -498,9 +434,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
498
434
|
* @memberof ActionsApi
|
|
499
435
|
*/
|
|
500
436
|
deleteFiles(requestParameters, options) {
|
|
501
|
-
return
|
|
502
|
-
.deleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options)
|
|
503
|
-
.then((request) => request(this.axios, this.basePath));
|
|
437
|
+
return ActionsApi_DeleteFiles(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
504
438
|
}
|
|
505
439
|
/**
|
|
506
440
|
* Import the CSV files at the given locations in the staging area to the final location.
|
|
@@ -511,9 +445,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
511
445
|
* @memberof ActionsApi
|
|
512
446
|
*/
|
|
513
447
|
importCsv(requestParameters, options) {
|
|
514
|
-
return
|
|
515
|
-
.importCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options)
|
|
516
|
-
.then((request) => request(this.axios, this.basePath));
|
|
448
|
+
return ActionsApi_ImportCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
517
449
|
}
|
|
518
450
|
/**
|
|
519
451
|
* List all the files in the given data source.
|
|
@@ -524,9 +456,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
524
456
|
* @memberof ActionsApi
|
|
525
457
|
*/
|
|
526
458
|
listFiles(requestParameters, options) {
|
|
527
|
-
return
|
|
528
|
-
.listFiles(requestParameters.dataSourceId, options)
|
|
529
|
-
.then((request) => request(this.axios, this.basePath));
|
|
459
|
+
return ActionsApi_ListFiles(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
530
460
|
}
|
|
531
461
|
/**
|
|
532
462
|
* Read the manifests of the CSV files in the given data source.
|
|
@@ -537,9 +467,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
537
467
|
* @memberof ActionsApi
|
|
538
468
|
*/
|
|
539
469
|
readCsvFileManifests(requestParameters, options) {
|
|
540
|
-
return
|
|
541
|
-
.readCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options)
|
|
542
|
-
.then((request) => request(this.axios, this.basePath));
|
|
470
|
+
return ActionsApi_ReadCsvFileManifests(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
543
471
|
}
|
|
544
472
|
/**
|
|
545
473
|
* Provides a location for uploading staging files.
|
|
@@ -550,85 +478,54 @@ export class ActionsApi extends BaseAPI {
|
|
|
550
478
|
* @memberof ActionsApi
|
|
551
479
|
*/
|
|
552
480
|
stagingUpload(requestParameters, options) {
|
|
553
|
-
return
|
|
554
|
-
.stagingUpload(requestParameters.file, options)
|
|
555
|
-
.then((request) => request(this.axios, this.basePath));
|
|
481
|
+
return ActionsApi_StagingUpload(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
556
482
|
}
|
|
557
483
|
}
|
|
484
|
+
// CacheUsageApi FP - CacheUsageApiAxiosParamCreator
|
|
558
485
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @
|
|
486
|
+
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
487
|
+
* @summary Collect data about the current cache usage
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
490
|
+
* @throws {RequiredError}
|
|
561
491
|
*/
|
|
562
|
-
export
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
const localVarHeaderParameter = {};
|
|
580
|
-
const localVarQueryParameter = {};
|
|
581
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
582
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
-
localVarRequestOptions.headers = {
|
|
584
|
-
...localVarHeaderParameter,
|
|
585
|
-
...headersFromBaseOptions,
|
|
586
|
-
...options.headers,
|
|
587
|
-
};
|
|
588
|
-
return {
|
|
589
|
-
url: toPathString(localVarUrlObj),
|
|
590
|
-
options: localVarRequestOptions,
|
|
591
|
-
};
|
|
592
|
-
},
|
|
492
|
+
export async function CacheUsageApiAxiosParamCreator_CollectCacheUsage(options = {}, configuration) {
|
|
493
|
+
const localVarPath = `/api/v1/actions/collectCacheUsage`;
|
|
494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
495
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
496
|
+
let baseOptions;
|
|
497
|
+
if (configuration) {
|
|
498
|
+
baseOptions = configuration.baseOptions;
|
|
499
|
+
}
|
|
500
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
501
|
+
const localVarHeaderParameter = {};
|
|
502
|
+
const localVarQueryParameter = {};
|
|
503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
504
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
505
|
+
localVarRequestOptions.headers = {
|
|
506
|
+
...localVarHeaderParameter,
|
|
507
|
+
...headersFromBaseOptions,
|
|
508
|
+
...options.headers,
|
|
593
509
|
};
|
|
594
|
-
};
|
|
595
|
-
/**
|
|
596
|
-
* CacheUsageApi - functional programming interface
|
|
597
|
-
* @export
|
|
598
|
-
*/
|
|
599
|
-
export const CacheUsageApiFp = function (configuration) {
|
|
600
|
-
const localVarAxiosParamCreator = CacheUsageApiAxiosParamCreator(configuration);
|
|
601
510
|
return {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
* @summary Collect data about the current cache usage
|
|
605
|
-
* @param {*} [options] Override http request option.
|
|
606
|
-
* @throws {RequiredError}
|
|
607
|
-
*/
|
|
608
|
-
async collectCacheUsage(options) {
|
|
609
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.collectCacheUsage(options);
|
|
610
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
611
|
-
},
|
|
511
|
+
url: toPathString(localVarUrlObj),
|
|
512
|
+
options: localVarRequestOptions,
|
|
612
513
|
};
|
|
613
|
-
}
|
|
514
|
+
}
|
|
515
|
+
// CacheUsageApi Api FP
|
|
614
516
|
/**
|
|
615
|
-
*
|
|
616
|
-
* @
|
|
517
|
+
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
518
|
+
* @summary Collect data about the current cache usage
|
|
519
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
520
|
+
* @param {string} basePath Base path.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
523
|
+
* @throws {RequiredError}
|
|
617
524
|
*/
|
|
618
|
-
export
|
|
619
|
-
const
|
|
620
|
-
return
|
|
621
|
-
|
|
622
|
-
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
623
|
-
* @summary Collect data about the current cache usage
|
|
624
|
-
* @param {*} [options] Override http request option.
|
|
625
|
-
* @throws {RequiredError}
|
|
626
|
-
*/
|
|
627
|
-
collectCacheUsage(options) {
|
|
628
|
-
return localVarFp.collectCacheUsage(options).then((request) => request(axios, basePath));
|
|
629
|
-
},
|
|
630
|
-
};
|
|
631
|
-
};
|
|
525
|
+
export async function CacheUsageApi_CollectCacheUsage(axios, basePath, options, configuration) {
|
|
526
|
+
const localVarAxiosArgs = await CacheUsageApiAxiosParamCreator_CollectCacheUsage(options || {}, configuration);
|
|
527
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
528
|
+
}
|
|
632
529
|
/**
|
|
633
530
|
* CacheUsageApi - object-oriented interface
|
|
634
531
|
* @export
|
|
@@ -644,98 +541,64 @@ export class CacheUsageApi extends BaseAPI {
|
|
|
644
541
|
* @memberof CacheUsageApi
|
|
645
542
|
*/
|
|
646
543
|
collectCacheUsage(options) {
|
|
647
|
-
return
|
|
648
|
-
.collectCacheUsage(options)
|
|
649
|
-
.then((request) => request(this.axios, this.basePath));
|
|
544
|
+
return CacheUsageApi_CollectCacheUsage(this.axios, this.basePath, options, this.configuration);
|
|
650
545
|
}
|
|
651
546
|
}
|
|
547
|
+
// DataSourceFilesAnalysisApi FP - DataSourceFilesAnalysisApiAxiosParamCreator
|
|
652
548
|
/**
|
|
653
|
-
*
|
|
654
|
-
* @
|
|
549
|
+
* Analyzes CSV files at the given locations
|
|
550
|
+
* @summary Analyze CSV
|
|
551
|
+
* @param {AnalyzeCsvRequest} analyzeCsvRequest
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
554
|
+
* @throws {RequiredError}
|
|
655
555
|
*/
|
|
656
|
-
export
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
const localVarHeaderParameter = {};
|
|
677
|
-
const localVarQueryParameter = {};
|
|
678
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
679
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
680
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
681
|
-
localVarRequestOptions.headers = {
|
|
682
|
-
...localVarHeaderParameter,
|
|
683
|
-
...headersFromBaseOptions,
|
|
684
|
-
...options.headers,
|
|
685
|
-
};
|
|
686
|
-
const needsSerialization = typeof analyzeCsvRequest !== "string" ||
|
|
687
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
688
|
-
localVarRequestOptions.data = needsSerialization
|
|
689
|
-
? JSON.stringify(analyzeCsvRequest !== undefined ? analyzeCsvRequest : {})
|
|
690
|
-
: analyzeCsvRequest || "";
|
|
691
|
-
return {
|
|
692
|
-
url: toPathString(localVarUrlObj),
|
|
693
|
-
options: localVarRequestOptions,
|
|
694
|
-
};
|
|
695
|
-
},
|
|
556
|
+
export async function DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeCsv(analyzeCsvRequest, options = {}, configuration) {
|
|
557
|
+
// verify required parameter 'analyzeCsvRequest' is not null or undefined
|
|
558
|
+
assertParamExists("analyzeCsv", "analyzeCsvRequest", analyzeCsvRequest);
|
|
559
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/analyzeCsv`;
|
|
560
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
561
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
562
|
+
let baseOptions;
|
|
563
|
+
if (configuration) {
|
|
564
|
+
baseOptions = configuration.baseOptions;
|
|
565
|
+
}
|
|
566
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
567
|
+
const localVarHeaderParameter = {};
|
|
568
|
+
const localVarQueryParameter = {};
|
|
569
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
570
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
571
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
572
|
+
localVarRequestOptions.headers = {
|
|
573
|
+
...localVarHeaderParameter,
|
|
574
|
+
...headersFromBaseOptions,
|
|
575
|
+
...options.headers,
|
|
696
576
|
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
export const DataSourceFilesAnalysisApiFp = function (configuration) {
|
|
703
|
-
const localVarAxiosParamCreator = DataSourceFilesAnalysisApiAxiosParamCreator(configuration);
|
|
577
|
+
const needsSerialization = typeof analyzeCsvRequest !== "string" ||
|
|
578
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
579
|
+
localVarRequestOptions.data = needsSerialization
|
|
580
|
+
? JSON.stringify(analyzeCsvRequest !== undefined ? analyzeCsvRequest : {})
|
|
581
|
+
: analyzeCsvRequest || "";
|
|
704
582
|
return {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
* @summary Analyze CSV
|
|
708
|
-
* @param {AnalyzeCsvRequest} analyzeCsvRequest
|
|
709
|
-
* @param {*} [options] Override http request option.
|
|
710
|
-
* @throws {RequiredError}
|
|
711
|
-
*/
|
|
712
|
-
async analyzeCsv(analyzeCsvRequest, options) {
|
|
713
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.analyzeCsv(analyzeCsvRequest, options);
|
|
714
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
715
|
-
},
|
|
583
|
+
url: toPathString(localVarUrlObj),
|
|
584
|
+
options: localVarRequestOptions,
|
|
716
585
|
};
|
|
717
|
-
}
|
|
586
|
+
}
|
|
587
|
+
// DataSourceFilesAnalysisApi Api FP
|
|
718
588
|
/**
|
|
719
|
-
*
|
|
720
|
-
* @
|
|
589
|
+
* Analyzes CSV files at the given locations
|
|
590
|
+
* @summary Analyze CSV
|
|
591
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
592
|
+
* @param {string} basePath Base path.
|
|
593
|
+
* @param {DataSourceFilesAnalysisApiAnalyzeCsvRequest} requestParameters Request parameters.
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
596
|
+
* @throws {RequiredError}
|
|
721
597
|
*/
|
|
722
|
-
export
|
|
723
|
-
const
|
|
724
|
-
return
|
|
725
|
-
|
|
726
|
-
* Analyzes CSV files at the given locations
|
|
727
|
-
* @summary Analyze CSV
|
|
728
|
-
* @param {DataSourceFilesAnalysisApiAnalyzeCsvRequest} requestParameters Request parameters.
|
|
729
|
-
* @param {*} [options] Override http request option.
|
|
730
|
-
* @throws {RequiredError}
|
|
731
|
-
*/
|
|
732
|
-
analyzeCsv(requestParameters, options) {
|
|
733
|
-
return localVarFp
|
|
734
|
-
.analyzeCsv(requestParameters.analyzeCsvRequest, options)
|
|
735
|
-
.then((request) => request(axios, basePath));
|
|
736
|
-
},
|
|
737
|
-
};
|
|
738
|
-
};
|
|
598
|
+
export async function DataSourceFilesAnalysisApi_AnalyzeCsv(axios, basePath, requestParameters, options, configuration) {
|
|
599
|
+
const localVarAxiosArgs = await DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeCsv(requestParameters.analyzeCsvRequest, options || {}, configuration);
|
|
600
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
601
|
+
}
|
|
739
602
|
/**
|
|
740
603
|
* DataSourceFilesAnalysisApi - object-oriented interface
|
|
741
604
|
* @export
|
|
@@ -752,102 +615,67 @@ export class DataSourceFilesAnalysisApi extends BaseAPI {
|
|
|
752
615
|
* @memberof DataSourceFilesAnalysisApi
|
|
753
616
|
*/
|
|
754
617
|
analyzeCsv(requestParameters, options) {
|
|
755
|
-
return
|
|
756
|
-
.analyzeCsv(requestParameters.analyzeCsvRequest, options)
|
|
757
|
-
.then((request) => request(this.axios, this.basePath));
|
|
618
|
+
return DataSourceFilesAnalysisApi_AnalyzeCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
758
619
|
}
|
|
759
620
|
}
|
|
621
|
+
// DataSourceFilesDeletionApi FP - DataSourceFilesDeletionApiAxiosParamCreator
|
|
760
622
|
/**
|
|
761
|
-
*
|
|
762
|
-
* @
|
|
623
|
+
* Delete the files in the given data source.
|
|
624
|
+
* @summary Delete datasource files
|
|
625
|
+
* @param {string} dataSourceId
|
|
626
|
+
* @param {DeleteFilesRequest} deleteFilesRequest
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
629
|
+
* @throws {RequiredError}
|
|
763
630
|
*/
|
|
764
|
-
export
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
787
|
-
const localVarHeaderParameter = {};
|
|
788
|
-
const localVarQueryParameter = {};
|
|
789
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
790
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
791
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
792
|
-
localVarRequestOptions.headers = {
|
|
793
|
-
...localVarHeaderParameter,
|
|
794
|
-
...headersFromBaseOptions,
|
|
795
|
-
...options.headers,
|
|
796
|
-
};
|
|
797
|
-
const needsSerialization = typeof deleteFilesRequest !== "string" ||
|
|
798
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
799
|
-
localVarRequestOptions.data = needsSerialization
|
|
800
|
-
? JSON.stringify(deleteFilesRequest !== undefined ? deleteFilesRequest : {})
|
|
801
|
-
: deleteFilesRequest || "";
|
|
802
|
-
return {
|
|
803
|
-
url: toPathString(localVarUrlObj),
|
|
804
|
-
options: localVarRequestOptions,
|
|
805
|
-
};
|
|
806
|
-
},
|
|
631
|
+
export async function DataSourceFilesDeletionApiAxiosParamCreator_DeleteFiles(dataSourceId, deleteFilesRequest, options = {}, configuration) {
|
|
632
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
633
|
+
assertParamExists("deleteFiles", "dataSourceId", dataSourceId);
|
|
634
|
+
// verify required parameter 'deleteFilesRequest' is not null or undefined
|
|
635
|
+
assertParamExists("deleteFiles", "deleteFilesRequest", deleteFilesRequest);
|
|
636
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/deleteFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
637
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
638
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
639
|
+
let baseOptions;
|
|
640
|
+
if (configuration) {
|
|
641
|
+
baseOptions = configuration.baseOptions;
|
|
642
|
+
}
|
|
643
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
644
|
+
const localVarHeaderParameter = {};
|
|
645
|
+
const localVarQueryParameter = {};
|
|
646
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
647
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
648
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
649
|
+
localVarRequestOptions.headers = {
|
|
650
|
+
...localVarHeaderParameter,
|
|
651
|
+
...headersFromBaseOptions,
|
|
652
|
+
...options.headers,
|
|
807
653
|
};
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
export const DataSourceFilesDeletionApiFp = function (configuration) {
|
|
814
|
-
const localVarAxiosParamCreator = DataSourceFilesDeletionApiAxiosParamCreator(configuration);
|
|
654
|
+
const needsSerialization = typeof deleteFilesRequest !== "string" ||
|
|
655
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
656
|
+
localVarRequestOptions.data = needsSerialization
|
|
657
|
+
? JSON.stringify(deleteFilesRequest !== undefined ? deleteFilesRequest : {})
|
|
658
|
+
: deleteFilesRequest || "";
|
|
815
659
|
return {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
* @summary Delete datasource files
|
|
819
|
-
* @param {string} dataSourceId
|
|
820
|
-
* @param {DeleteFilesRequest} deleteFilesRequest
|
|
821
|
-
* @param {*} [options] Override http request option.
|
|
822
|
-
* @throws {RequiredError}
|
|
823
|
-
*/
|
|
824
|
-
async deleteFiles(dataSourceId, deleteFilesRequest, options) {
|
|
825
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFiles(dataSourceId, deleteFilesRequest, options);
|
|
826
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
827
|
-
},
|
|
660
|
+
url: toPathString(localVarUrlObj),
|
|
661
|
+
options: localVarRequestOptions,
|
|
828
662
|
};
|
|
829
|
-
}
|
|
663
|
+
}
|
|
664
|
+
// DataSourceFilesDeletionApi Api FP
|
|
830
665
|
/**
|
|
831
|
-
*
|
|
832
|
-
* @
|
|
666
|
+
* Delete the files in the given data source.
|
|
667
|
+
* @summary Delete datasource files
|
|
668
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
669
|
+
* @param {string} basePath Base path.
|
|
670
|
+
* @param {DataSourceFilesDeletionApiDeleteFilesRequest} requestParameters Request parameters.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
673
|
+
* @throws {RequiredError}
|
|
833
674
|
*/
|
|
834
|
-
export
|
|
835
|
-
const
|
|
836
|
-
return
|
|
837
|
-
|
|
838
|
-
* Delete the files in the given data source.
|
|
839
|
-
* @summary Delete datasource files
|
|
840
|
-
* @param {DataSourceFilesDeletionApiDeleteFilesRequest} requestParameters Request parameters.
|
|
841
|
-
* @param {*} [options] Override http request option.
|
|
842
|
-
* @throws {RequiredError}
|
|
843
|
-
*/
|
|
844
|
-
deleteFiles(requestParameters, options) {
|
|
845
|
-
return localVarFp
|
|
846
|
-
.deleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options)
|
|
847
|
-
.then((request) => request(axios, basePath));
|
|
848
|
-
},
|
|
849
|
-
};
|
|
850
|
-
};
|
|
675
|
+
export async function DataSourceFilesDeletionApi_DeleteFiles(axios, basePath, requestParameters, options, configuration) {
|
|
676
|
+
const localVarAxiosArgs = await DataSourceFilesDeletionApiAxiosParamCreator_DeleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options || {}, configuration);
|
|
677
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
678
|
+
}
|
|
851
679
|
/**
|
|
852
680
|
* DataSourceFilesDeletionApi - object-oriented interface
|
|
853
681
|
* @export
|
|
@@ -864,102 +692,67 @@ export class DataSourceFilesDeletionApi extends BaseAPI {
|
|
|
864
692
|
* @memberof DataSourceFilesDeletionApi
|
|
865
693
|
*/
|
|
866
694
|
deleteFiles(requestParameters, options) {
|
|
867
|
-
return
|
|
868
|
-
.deleteFiles(requestParameters.dataSourceId, requestParameters.deleteFilesRequest, options)
|
|
869
|
-
.then((request) => request(this.axios, this.basePath));
|
|
695
|
+
return DataSourceFilesDeletionApi_DeleteFiles(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
870
696
|
}
|
|
871
697
|
}
|
|
698
|
+
// DataSourceFilesImportApi FP - DataSourceFilesImportApiAxiosParamCreator
|
|
872
699
|
/**
|
|
873
|
-
*
|
|
874
|
-
* @
|
|
700
|
+
* Import the CSV files at the given locations in the staging area to the final location.
|
|
701
|
+
* @summary Import CSV
|
|
702
|
+
* @param {string} dataSourceId
|
|
703
|
+
* @param {ImportCsvRequest} importCsvRequest
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
706
|
+
* @throws {RequiredError}
|
|
875
707
|
*/
|
|
876
|
-
export
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
899
|
-
const localVarHeaderParameter = {};
|
|
900
|
-
const localVarQueryParameter = {};
|
|
901
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
902
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
903
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
904
|
-
localVarRequestOptions.headers = {
|
|
905
|
-
...localVarHeaderParameter,
|
|
906
|
-
...headersFromBaseOptions,
|
|
907
|
-
...options.headers,
|
|
908
|
-
};
|
|
909
|
-
const needsSerialization = typeof importCsvRequest !== "string" ||
|
|
910
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
911
|
-
localVarRequestOptions.data = needsSerialization
|
|
912
|
-
? JSON.stringify(importCsvRequest !== undefined ? importCsvRequest : {})
|
|
913
|
-
: importCsvRequest || "";
|
|
914
|
-
return {
|
|
915
|
-
url: toPathString(localVarUrlObj),
|
|
916
|
-
options: localVarRequestOptions,
|
|
917
|
-
};
|
|
918
|
-
},
|
|
708
|
+
export async function DataSourceFilesImportApiAxiosParamCreator_ImportCsv(dataSourceId, importCsvRequest, options = {}, configuration) {
|
|
709
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
710
|
+
assertParamExists("importCsv", "dataSourceId", dataSourceId);
|
|
711
|
+
// verify required parameter 'importCsvRequest' is not null or undefined
|
|
712
|
+
assertParamExists("importCsv", "importCsvRequest", importCsvRequest);
|
|
713
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/importCsv`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
715
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
716
|
+
let baseOptions;
|
|
717
|
+
if (configuration) {
|
|
718
|
+
baseOptions = configuration.baseOptions;
|
|
719
|
+
}
|
|
720
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
721
|
+
const localVarHeaderParameter = {};
|
|
722
|
+
const localVarQueryParameter = {};
|
|
723
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
724
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
725
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
726
|
+
localVarRequestOptions.headers = {
|
|
727
|
+
...localVarHeaderParameter,
|
|
728
|
+
...headersFromBaseOptions,
|
|
729
|
+
...options.headers,
|
|
919
730
|
};
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
export const DataSourceFilesImportApiFp = function (configuration) {
|
|
926
|
-
const localVarAxiosParamCreator = DataSourceFilesImportApiAxiosParamCreator(configuration);
|
|
731
|
+
const needsSerialization = typeof importCsvRequest !== "string" ||
|
|
732
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
733
|
+
localVarRequestOptions.data = needsSerialization
|
|
734
|
+
? JSON.stringify(importCsvRequest !== undefined ? importCsvRequest : {})
|
|
735
|
+
: importCsvRequest || "";
|
|
927
736
|
return {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
* @summary Import CSV
|
|
931
|
-
* @param {string} dataSourceId
|
|
932
|
-
* @param {ImportCsvRequest} importCsvRequest
|
|
933
|
-
* @param {*} [options] Override http request option.
|
|
934
|
-
* @throws {RequiredError}
|
|
935
|
-
*/
|
|
936
|
-
async importCsv(dataSourceId, importCsvRequest, options) {
|
|
937
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importCsv(dataSourceId, importCsvRequest, options);
|
|
938
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
939
|
-
},
|
|
737
|
+
url: toPathString(localVarUrlObj),
|
|
738
|
+
options: localVarRequestOptions,
|
|
940
739
|
};
|
|
941
|
-
}
|
|
740
|
+
}
|
|
741
|
+
// DataSourceFilesImportApi Api FP
|
|
942
742
|
/**
|
|
943
|
-
*
|
|
944
|
-
* @
|
|
743
|
+
* Import the CSV files at the given locations in the staging area to the final location.
|
|
744
|
+
* @summary Import CSV
|
|
745
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
746
|
+
* @param {string} basePath Base path.
|
|
747
|
+
* @param {DataSourceFilesImportApiImportCsvRequest} requestParameters Request parameters.
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
750
|
+
* @throws {RequiredError}
|
|
945
751
|
*/
|
|
946
|
-
export
|
|
947
|
-
const
|
|
948
|
-
return
|
|
949
|
-
|
|
950
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
951
|
-
* @summary Import CSV
|
|
952
|
-
* @param {DataSourceFilesImportApiImportCsvRequest} requestParameters Request parameters.
|
|
953
|
-
* @param {*} [options] Override http request option.
|
|
954
|
-
* @throws {RequiredError}
|
|
955
|
-
*/
|
|
956
|
-
importCsv(requestParameters, options) {
|
|
957
|
-
return localVarFp
|
|
958
|
-
.importCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options)
|
|
959
|
-
.then((request) => request(axios, basePath));
|
|
960
|
-
},
|
|
961
|
-
};
|
|
962
|
-
};
|
|
752
|
+
export async function DataSourceFilesImportApi_ImportCsv(axios, basePath, requestParameters, options, configuration) {
|
|
753
|
+
const localVarAxiosArgs = await DataSourceFilesImportApiAxiosParamCreator_ImportCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options || {}, configuration);
|
|
754
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
755
|
+
}
|
|
963
756
|
/**
|
|
964
757
|
* DataSourceFilesImportApi - object-oriented interface
|
|
965
758
|
* @export
|
|
@@ -976,92 +769,58 @@ export class DataSourceFilesImportApi extends BaseAPI {
|
|
|
976
769
|
* @memberof DataSourceFilesImportApi
|
|
977
770
|
*/
|
|
978
771
|
importCsv(requestParameters, options) {
|
|
979
|
-
return
|
|
980
|
-
.importCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options)
|
|
981
|
-
.then((request) => request(this.axios, this.basePath));
|
|
772
|
+
return DataSourceFilesImportApi_ImportCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
982
773
|
}
|
|
983
774
|
}
|
|
775
|
+
// DataSourceFilesListingApi FP - DataSourceFilesListingApiAxiosParamCreator
|
|
984
776
|
/**
|
|
985
|
-
*
|
|
986
|
-
* @
|
|
777
|
+
* List all the files in the given data source.
|
|
778
|
+
* @summary List datasource files
|
|
779
|
+
* @param {string} dataSourceId
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
782
|
+
* @throws {RequiredError}
|
|
987
783
|
*/
|
|
988
|
-
export
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1008
|
-
const localVarHeaderParameter = {};
|
|
1009
|
-
const localVarQueryParameter = {};
|
|
1010
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1011
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1012
|
-
localVarRequestOptions.headers = {
|
|
1013
|
-
...localVarHeaderParameter,
|
|
1014
|
-
...headersFromBaseOptions,
|
|
1015
|
-
...options.headers,
|
|
1016
|
-
};
|
|
1017
|
-
return {
|
|
1018
|
-
url: toPathString(localVarUrlObj),
|
|
1019
|
-
options: localVarRequestOptions,
|
|
1020
|
-
};
|
|
1021
|
-
},
|
|
784
|
+
export async function DataSourceFilesListingApiAxiosParamCreator_ListFiles(dataSourceId, options = {}, configuration) {
|
|
785
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
786
|
+
assertParamExists("listFiles", "dataSourceId", dataSourceId);
|
|
787
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/listFiles`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
790
|
+
let baseOptions;
|
|
791
|
+
if (configuration) {
|
|
792
|
+
baseOptions = configuration.baseOptions;
|
|
793
|
+
}
|
|
794
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
795
|
+
const localVarHeaderParameter = {};
|
|
796
|
+
const localVarQueryParameter = {};
|
|
797
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
798
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
799
|
+
localVarRequestOptions.headers = {
|
|
800
|
+
...localVarHeaderParameter,
|
|
801
|
+
...headersFromBaseOptions,
|
|
802
|
+
...options.headers,
|
|
1022
803
|
};
|
|
1023
|
-
};
|
|
1024
|
-
/**
|
|
1025
|
-
* DataSourceFilesListingApi - functional programming interface
|
|
1026
|
-
* @export
|
|
1027
|
-
*/
|
|
1028
|
-
export const DataSourceFilesListingApiFp = function (configuration) {
|
|
1029
|
-
const localVarAxiosParamCreator = DataSourceFilesListingApiAxiosParamCreator(configuration);
|
|
1030
804
|
return {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
* @summary List datasource files
|
|
1034
|
-
* @param {string} dataSourceId
|
|
1035
|
-
* @param {*} [options] Override http request option.
|
|
1036
|
-
* @throws {RequiredError}
|
|
1037
|
-
*/
|
|
1038
|
-
async listFiles(dataSourceId, options) {
|
|
1039
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(dataSourceId, options);
|
|
1040
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1041
|
-
},
|
|
805
|
+
url: toPathString(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
1042
807
|
};
|
|
1043
|
-
}
|
|
808
|
+
}
|
|
809
|
+
// DataSourceFilesListingApi Api FP
|
|
1044
810
|
/**
|
|
1045
|
-
*
|
|
1046
|
-
* @
|
|
811
|
+
* List all the files in the given data source.
|
|
812
|
+
* @summary List datasource files
|
|
813
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
814
|
+
* @param {string} basePath Base path.
|
|
815
|
+
* @param {DataSourceFilesListingApiListFilesRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
818
|
+
* @throws {RequiredError}
|
|
1047
819
|
*/
|
|
1048
|
-
export
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1051
|
-
|
|
1052
|
-
* List all the files in the given data source.
|
|
1053
|
-
* @summary List datasource files
|
|
1054
|
-
* @param {DataSourceFilesListingApiListFilesRequest} requestParameters Request parameters.
|
|
1055
|
-
* @param {*} [options] Override http request option.
|
|
1056
|
-
* @throws {RequiredError}
|
|
1057
|
-
*/
|
|
1058
|
-
listFiles(requestParameters, options) {
|
|
1059
|
-
return localVarFp
|
|
1060
|
-
.listFiles(requestParameters.dataSourceId, options)
|
|
1061
|
-
.then((request) => request(axios, basePath));
|
|
1062
|
-
},
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
820
|
+
export async function DataSourceFilesListingApi_ListFiles(axios, basePath, requestParameters, options, configuration) {
|
|
821
|
+
const localVarAxiosArgs = await DataSourceFilesListingApiAxiosParamCreator_ListFiles(requestParameters.dataSourceId, options || {}, configuration);
|
|
822
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
823
|
+
}
|
|
1065
824
|
/**
|
|
1066
825
|
* DataSourceFilesListingApi - object-oriented interface
|
|
1067
826
|
* @export
|
|
@@ -1078,102 +837,67 @@ export class DataSourceFilesListingApi extends BaseAPI {
|
|
|
1078
837
|
* @memberof DataSourceFilesListingApi
|
|
1079
838
|
*/
|
|
1080
839
|
listFiles(requestParameters, options) {
|
|
1081
|
-
return
|
|
1082
|
-
.listFiles(requestParameters.dataSourceId, options)
|
|
1083
|
-
.then((request) => request(this.axios, this.basePath));
|
|
840
|
+
return DataSourceFilesListingApi_ListFiles(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1084
841
|
}
|
|
1085
842
|
}
|
|
843
|
+
// DataSourceFilesManifestReadApi FP - DataSourceFilesManifestReadApiAxiosParamCreator
|
|
1086
844
|
/**
|
|
1087
|
-
*
|
|
1088
|
-
* @
|
|
845
|
+
* Read the manifests of the CSV files in the given data source.
|
|
846
|
+
* @summary Read CSV file manifests
|
|
847
|
+
* @param {string} dataSourceId
|
|
848
|
+
* @param {ReadCsvFileManifestsRequest} readCsvFileManifestsRequest
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
851
|
+
* @throws {RequiredError}
|
|
1089
852
|
*/
|
|
1090
|
-
export
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1113
|
-
const localVarHeaderParameter = {};
|
|
1114
|
-
const localVarQueryParameter = {};
|
|
1115
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1116
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1117
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1118
|
-
localVarRequestOptions.headers = {
|
|
1119
|
-
...localVarHeaderParameter,
|
|
1120
|
-
...headersFromBaseOptions,
|
|
1121
|
-
...options.headers,
|
|
1122
|
-
};
|
|
1123
|
-
const needsSerialization = typeof readCsvFileManifestsRequest !== "string" ||
|
|
1124
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1125
|
-
localVarRequestOptions.data = needsSerialization
|
|
1126
|
-
? JSON.stringify(readCsvFileManifestsRequest !== undefined ? readCsvFileManifestsRequest : {})
|
|
1127
|
-
: readCsvFileManifestsRequest || "";
|
|
1128
|
-
return {
|
|
1129
|
-
url: toPathString(localVarUrlObj),
|
|
1130
|
-
options: localVarRequestOptions,
|
|
1131
|
-
};
|
|
1132
|
-
},
|
|
853
|
+
export async function DataSourceFilesManifestReadApiAxiosParamCreator_ReadCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options = {}, configuration) {
|
|
854
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
855
|
+
assertParamExists("readCsvFileManifests", "dataSourceId", dataSourceId);
|
|
856
|
+
// verify required parameter 'readCsvFileManifestsRequest' is not null or undefined
|
|
857
|
+
assertParamExists("readCsvFileManifests", "readCsvFileManifestsRequest", readCsvFileManifestsRequest);
|
|
858
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/readCsvFileManifests`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
860
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
861
|
+
let baseOptions;
|
|
862
|
+
if (configuration) {
|
|
863
|
+
baseOptions = configuration.baseOptions;
|
|
864
|
+
}
|
|
865
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
866
|
+
const localVarHeaderParameter = {};
|
|
867
|
+
const localVarQueryParameter = {};
|
|
868
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
870
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
871
|
+
localVarRequestOptions.headers = {
|
|
872
|
+
...localVarHeaderParameter,
|
|
873
|
+
...headersFromBaseOptions,
|
|
874
|
+
...options.headers,
|
|
1133
875
|
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
export const DataSourceFilesManifestReadApiFp = function (configuration) {
|
|
1140
|
-
const localVarAxiosParamCreator = DataSourceFilesManifestReadApiAxiosParamCreator(configuration);
|
|
876
|
+
const needsSerialization = typeof readCsvFileManifestsRequest !== "string" ||
|
|
877
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
878
|
+
localVarRequestOptions.data = needsSerialization
|
|
879
|
+
? JSON.stringify(readCsvFileManifestsRequest !== undefined ? readCsvFileManifestsRequest : {})
|
|
880
|
+
: readCsvFileManifestsRequest || "";
|
|
1141
881
|
return {
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
* @summary Read CSV file manifests
|
|
1145
|
-
* @param {string} dataSourceId
|
|
1146
|
-
* @param {ReadCsvFileManifestsRequest} readCsvFileManifestsRequest
|
|
1147
|
-
* @param {*} [options] Override http request option.
|
|
1148
|
-
* @throws {RequiredError}
|
|
1149
|
-
*/
|
|
1150
|
-
async readCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options) {
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.readCsvFileManifests(dataSourceId, readCsvFileManifestsRequest, options);
|
|
1152
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
|
-
},
|
|
882
|
+
url: toPathString(localVarUrlObj),
|
|
883
|
+
options: localVarRequestOptions,
|
|
1154
884
|
};
|
|
1155
|
-
}
|
|
885
|
+
}
|
|
886
|
+
// DataSourceFilesManifestReadApi Api FP
|
|
1156
887
|
/**
|
|
1157
|
-
*
|
|
1158
|
-
* @
|
|
888
|
+
* Read the manifests of the CSV files in the given data source.
|
|
889
|
+
* @summary Read CSV file manifests
|
|
890
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
891
|
+
* @param {string} basePath Base path.
|
|
892
|
+
* @param {DataSourceFilesManifestReadApiReadCsvFileManifestsRequest} requestParameters Request parameters.
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
895
|
+
* @throws {RequiredError}
|
|
1159
896
|
*/
|
|
1160
|
-
export
|
|
1161
|
-
const
|
|
1162
|
-
return
|
|
1163
|
-
|
|
1164
|
-
* Read the manifests of the CSV files in the given data source.
|
|
1165
|
-
* @summary Read CSV file manifests
|
|
1166
|
-
* @param {DataSourceFilesManifestReadApiReadCsvFileManifestsRequest} requestParameters Request parameters.
|
|
1167
|
-
* @param {*} [options] Override http request option.
|
|
1168
|
-
* @throws {RequiredError}
|
|
1169
|
-
*/
|
|
1170
|
-
readCsvFileManifests(requestParameters, options) {
|
|
1171
|
-
return localVarFp
|
|
1172
|
-
.readCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options)
|
|
1173
|
-
.then((request) => request(axios, basePath));
|
|
1174
|
-
},
|
|
1175
|
-
};
|
|
1176
|
-
};
|
|
897
|
+
export async function DataSourceFilesManifestReadApi_ReadCsvFileManifests(axios, basePath, requestParameters, options, configuration) {
|
|
898
|
+
const localVarAxiosArgs = await DataSourceFilesManifestReadApiAxiosParamCreator_ReadCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options || {}, configuration);
|
|
899
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
900
|
+
}
|
|
1177
901
|
/**
|
|
1178
902
|
* DataSourceFilesManifestReadApi - object-oriented interface
|
|
1179
903
|
* @export
|
|
@@ -1190,98 +914,64 @@ export class DataSourceFilesManifestReadApi extends BaseAPI {
|
|
|
1190
914
|
* @memberof DataSourceFilesManifestReadApi
|
|
1191
915
|
*/
|
|
1192
916
|
readCsvFileManifests(requestParameters, options) {
|
|
1193
|
-
return
|
|
1194
|
-
.readCsvFileManifests(requestParameters.dataSourceId, requestParameters.readCsvFileManifestsRequest, options)
|
|
1195
|
-
.then((request) => request(this.axios, this.basePath));
|
|
917
|
+
return DataSourceFilesManifestReadApi_ReadCsvFileManifests(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1196
918
|
}
|
|
1197
919
|
}
|
|
920
|
+
// DataSourceStagingLocationApi FP - DataSourceStagingLocationApiAxiosParamCreator
|
|
1198
921
|
/**
|
|
1199
|
-
*
|
|
1200
|
-
* @
|
|
922
|
+
* Provides a location for uploading staging files.
|
|
923
|
+
* @summary Upload a file to the staging area
|
|
924
|
+
* @param {File} file The file to upload.
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
927
|
+
* @throws {RequiredError}
|
|
1201
928
|
*/
|
|
1202
|
-
export
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
localVarFormParams.append("file", file);
|
|
1227
|
-
}
|
|
1228
|
-
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
1229
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1230
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1231
|
-
localVarRequestOptions.headers = {
|
|
1232
|
-
...localVarHeaderParameter,
|
|
1233
|
-
...headersFromBaseOptions,
|
|
1234
|
-
...options.headers,
|
|
1235
|
-
};
|
|
1236
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1237
|
-
return {
|
|
1238
|
-
url: toPathString(localVarUrlObj),
|
|
1239
|
-
options: localVarRequestOptions,
|
|
1240
|
-
};
|
|
1241
|
-
},
|
|
929
|
+
export async function DataSourceStagingLocationApiAxiosParamCreator_StagingUpload(file, options = {}, configuration) {
|
|
930
|
+
// verify required parameter 'file' is not null or undefined
|
|
931
|
+
assertParamExists("stagingUpload", "file", file);
|
|
932
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/upload`;
|
|
933
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
934
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
935
|
+
let baseOptions;
|
|
936
|
+
if (configuration) {
|
|
937
|
+
baseOptions = configuration.baseOptions;
|
|
938
|
+
}
|
|
939
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
940
|
+
const localVarHeaderParameter = {};
|
|
941
|
+
const localVarQueryParameter = {};
|
|
942
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
943
|
+
if (file !== undefined) {
|
|
944
|
+
localVarFormParams.append("file", file);
|
|
945
|
+
}
|
|
946
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
948
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
949
|
+
localVarRequestOptions.headers = {
|
|
950
|
+
...localVarHeaderParameter,
|
|
951
|
+
...headersFromBaseOptions,
|
|
952
|
+
...options.headers,
|
|
1242
953
|
};
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* DataSourceStagingLocationApi - functional programming interface
|
|
1246
|
-
* @export
|
|
1247
|
-
*/
|
|
1248
|
-
export const DataSourceStagingLocationApiFp = function (configuration) {
|
|
1249
|
-
const localVarAxiosParamCreator = DataSourceStagingLocationApiAxiosParamCreator(configuration);
|
|
954
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1250
955
|
return {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
* @summary Upload a file to the staging area
|
|
1254
|
-
* @param {File} file The file to upload.
|
|
1255
|
-
* @param {*} [options] Override http request option.
|
|
1256
|
-
* @throws {RequiredError}
|
|
1257
|
-
*/
|
|
1258
|
-
async stagingUpload(file, options) {
|
|
1259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.stagingUpload(file, options);
|
|
1260
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1261
|
-
},
|
|
956
|
+
url: toPathString(localVarUrlObj),
|
|
957
|
+
options: localVarRequestOptions,
|
|
1262
958
|
};
|
|
1263
|
-
}
|
|
959
|
+
}
|
|
960
|
+
// DataSourceStagingLocationApi Api FP
|
|
1264
961
|
/**
|
|
1265
|
-
*
|
|
1266
|
-
* @
|
|
962
|
+
* Provides a location for uploading staging files.
|
|
963
|
+
* @summary Upload a file to the staging area
|
|
964
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
965
|
+
* @param {string} basePath Base path.
|
|
966
|
+
* @param {DataSourceStagingLocationApiStagingUploadRequest} requestParameters Request parameters.
|
|
967
|
+
* @param {*} [options] Override http request option.
|
|
968
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
969
|
+
* @throws {RequiredError}
|
|
1267
970
|
*/
|
|
1268
|
-
export
|
|
1269
|
-
const
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1272
|
-
* Provides a location for uploading staging files.
|
|
1273
|
-
* @summary Upload a file to the staging area
|
|
1274
|
-
* @param {DataSourceStagingLocationApiStagingUploadRequest} requestParameters Request parameters.
|
|
1275
|
-
* @param {*} [options] Override http request option.
|
|
1276
|
-
* @throws {RequiredError}
|
|
1277
|
-
*/
|
|
1278
|
-
stagingUpload(requestParameters, options) {
|
|
1279
|
-
return localVarFp
|
|
1280
|
-
.stagingUpload(requestParameters.file, options)
|
|
1281
|
-
.then((request) => request(axios, basePath));
|
|
1282
|
-
},
|
|
1283
|
-
};
|
|
1284
|
-
};
|
|
971
|
+
export async function DataSourceStagingLocationApi_StagingUpload(axios, basePath, requestParameters, options, configuration) {
|
|
972
|
+
const localVarAxiosArgs = await DataSourceStagingLocationApiAxiosParamCreator_StagingUpload(requestParameters.file, options || {}, configuration);
|
|
973
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
974
|
+
}
|
|
1285
975
|
/**
|
|
1286
976
|
* DataSourceStagingLocationApi - object-oriented interface
|
|
1287
977
|
* @export
|
|
@@ -1298,117 +988,78 @@ export class DataSourceStagingLocationApi extends BaseAPI {
|
|
|
1298
988
|
* @memberof DataSourceStagingLocationApi
|
|
1299
989
|
*/
|
|
1300
990
|
stagingUpload(requestParameters, options) {
|
|
1301
|
-
return
|
|
1302
|
-
.stagingUpload(requestParameters.file, options)
|
|
1303
|
-
.then((request) => request(this.axios, this.basePath));
|
|
991
|
+
return DataSourceStagingLocationApi_StagingUpload(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1304
992
|
}
|
|
1305
993
|
}
|
|
994
|
+
// OGCAPIFeaturesApi FP - OGCAPIFeaturesApiAxiosParamCreator
|
|
1306
995
|
/**
|
|
1307
|
-
*
|
|
1308
|
-
* @
|
|
996
|
+
* Retrieve features from a GeoParquet collection as GeoJSON
|
|
997
|
+
* @summary Get collection features
|
|
998
|
+
* @param {string} collectionId Collection identifier
|
|
999
|
+
* @param {number} [limit] Maximum number of features to return
|
|
1000
|
+
* @param {string} [bbox] Bounding box filter (minx,miny,maxx,maxy)
|
|
1001
|
+
* @param {string} [datetime] Datetime filter (ISO 8601)
|
|
1002
|
+
* @param {string} [matchingProperty] Property to match against collection features
|
|
1003
|
+
* @param {Array<string>} [values] List of values to filter features by
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1309
1007
|
*/
|
|
1310
|
-
export
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
localVarQueryParameter["datetime"] = datetime;
|
|
1345
|
-
}
|
|
1346
|
-
if (matchingProperty !== undefined) {
|
|
1347
|
-
localVarQueryParameter["matchingProperty"] = matchingProperty;
|
|
1348
|
-
}
|
|
1349
|
-
if (values) {
|
|
1350
|
-
localVarQueryParameter["values"] = values;
|
|
1351
|
-
}
|
|
1352
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1353
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1354
|
-
localVarRequestOptions.headers = {
|
|
1355
|
-
...localVarHeaderParameter,
|
|
1356
|
-
...headersFromBaseOptions,
|
|
1357
|
-
...options.headers,
|
|
1358
|
-
};
|
|
1359
|
-
return {
|
|
1360
|
-
url: toPathString(localVarUrlObj),
|
|
1361
|
-
options: localVarRequestOptions,
|
|
1362
|
-
};
|
|
1363
|
-
},
|
|
1008
|
+
export async function OGCAPIFeaturesApiAxiosParamCreator_GetCollectionItems(collectionId, limit, bbox, datetime, matchingProperty, values, options = {}, configuration) {
|
|
1009
|
+
// verify required parameter 'collectionId' is not null or undefined
|
|
1010
|
+
assertParamExists("getCollectionItems", "collectionId", collectionId);
|
|
1011
|
+
const localVarPath = `/api/v1/location/collections/{collectionId}/items`.replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
|
|
1012
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1013
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1014
|
+
let baseOptions;
|
|
1015
|
+
if (configuration) {
|
|
1016
|
+
baseOptions = configuration.baseOptions;
|
|
1017
|
+
}
|
|
1018
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1019
|
+
const localVarHeaderParameter = {};
|
|
1020
|
+
const localVarQueryParameter = {};
|
|
1021
|
+
if (limit !== undefined) {
|
|
1022
|
+
localVarQueryParameter["limit"] = limit;
|
|
1023
|
+
}
|
|
1024
|
+
if (bbox !== undefined) {
|
|
1025
|
+
localVarQueryParameter["bbox"] = bbox;
|
|
1026
|
+
}
|
|
1027
|
+
if (datetime !== undefined) {
|
|
1028
|
+
localVarQueryParameter["datetime"] = datetime;
|
|
1029
|
+
}
|
|
1030
|
+
if (matchingProperty !== undefined) {
|
|
1031
|
+
localVarQueryParameter["matchingProperty"] = matchingProperty;
|
|
1032
|
+
}
|
|
1033
|
+
if (values) {
|
|
1034
|
+
localVarQueryParameter["values"] = values;
|
|
1035
|
+
}
|
|
1036
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1037
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1038
|
+
localVarRequestOptions.headers = {
|
|
1039
|
+
...localVarHeaderParameter,
|
|
1040
|
+
...headersFromBaseOptions,
|
|
1041
|
+
...options.headers,
|
|
1364
1042
|
};
|
|
1365
|
-
};
|
|
1366
|
-
/**
|
|
1367
|
-
* OGCAPIFeaturesApi - functional programming interface
|
|
1368
|
-
* @export
|
|
1369
|
-
*/
|
|
1370
|
-
export const OGCAPIFeaturesApiFp = function (configuration) {
|
|
1371
|
-
const localVarAxiosParamCreator = OGCAPIFeaturesApiAxiosParamCreator(configuration);
|
|
1372
1043
|
return {
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
* @summary Get collection features
|
|
1376
|
-
* @param {string} collectionId Collection identifier
|
|
1377
|
-
* @param {number} [limit] Maximum number of features to return
|
|
1378
|
-
* @param {string} [bbox] Bounding box filter (minx,miny,maxx,maxy)
|
|
1379
|
-
* @param {string} [datetime] Datetime filter (ISO 8601)
|
|
1380
|
-
* @param {string} [matchingProperty] Property to match against collection features
|
|
1381
|
-
* @param {Array<string>} [values] List of values to filter features by
|
|
1382
|
-
* @param {*} [options] Override http request option.
|
|
1383
|
-
* @throws {RequiredError}
|
|
1384
|
-
*/
|
|
1385
|
-
async getCollectionItems(collectionId, limit, bbox, datetime, matchingProperty, values, options) {
|
|
1386
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollectionItems(collectionId, limit, bbox, datetime, matchingProperty, values, options);
|
|
1387
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1388
|
-
},
|
|
1044
|
+
url: toPathString(localVarUrlObj),
|
|
1045
|
+
options: localVarRequestOptions,
|
|
1389
1046
|
};
|
|
1390
|
-
}
|
|
1047
|
+
}
|
|
1048
|
+
// OGCAPIFeaturesApi Api FP
|
|
1391
1049
|
/**
|
|
1392
|
-
*
|
|
1393
|
-
* @
|
|
1050
|
+
* Retrieve features from a GeoParquet collection as GeoJSON
|
|
1051
|
+
* @summary Get collection features
|
|
1052
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1053
|
+
* @param {string} basePath Base path.
|
|
1054
|
+
* @param {OGCAPIFeaturesApiGetCollectionItemsRequest} requestParameters Request parameters.
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1394
1058
|
*/
|
|
1395
|
-
export
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1399
|
-
* Retrieve features from a GeoParquet collection as GeoJSON
|
|
1400
|
-
* @summary Get collection features
|
|
1401
|
-
* @param {OGCAPIFeaturesApiGetCollectionItemsRequest} requestParameters Request parameters.
|
|
1402
|
-
* @param {*} [options] Override http request option.
|
|
1403
|
-
* @throws {RequiredError}
|
|
1404
|
-
*/
|
|
1405
|
-
getCollectionItems(requestParameters, options) {
|
|
1406
|
-
return localVarFp
|
|
1407
|
-
.getCollectionItems(requestParameters.collectionId, requestParameters.limit, requestParameters.bbox, requestParameters.datetime, requestParameters.matchingProperty, requestParameters.values, options)
|
|
1408
|
-
.then((request) => request(axios, basePath));
|
|
1409
|
-
},
|
|
1410
|
-
};
|
|
1411
|
-
};
|
|
1059
|
+
export async function OGCAPIFeaturesApi_GetCollectionItems(axios, basePath, requestParameters, options, configuration) {
|
|
1060
|
+
const localVarAxiosArgs = await OGCAPIFeaturesApiAxiosParamCreator_GetCollectionItems(requestParameters.collectionId, requestParameters.limit, requestParameters.bbox, requestParameters.datetime, requestParameters.matchingProperty, requestParameters.values, options || {}, configuration);
|
|
1061
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1062
|
+
}
|
|
1412
1063
|
/**
|
|
1413
1064
|
* OGCAPIFeaturesApi - object-oriented interface
|
|
1414
1065
|
* @export
|
|
@@ -1425,9 +1076,7 @@ export class OGCAPIFeaturesApi extends BaseAPI {
|
|
|
1425
1076
|
* @memberof OGCAPIFeaturesApi
|
|
1426
1077
|
*/
|
|
1427
1078
|
getCollectionItems(requestParameters, options) {
|
|
1428
|
-
return
|
|
1429
|
-
.getCollectionItems(requestParameters.collectionId, requestParameters.limit, requestParameters.bbox, requestParameters.datetime, requestParameters.matchingProperty, requestParameters.values, options)
|
|
1430
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1079
|
+
return OGCAPIFeaturesApi_GetCollectionItems(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1431
1080
|
}
|
|
1432
1081
|
}
|
|
1433
1082
|
//# sourceMappingURL=api.js.map
|