@gooddata/api-client-tiger 11.63.0-alpha.3 → 11.63.0-alpha.5
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.js +1 -1
- package/esm/api-client-tiger.d.ts +380 -256
- package/esm/endpoints/actions/index.d.ts +1 -1
- package/esm/endpoints/actions/index.d.ts.map +1 -1
- package/esm/endpoints/actions/index.js +1 -1
- package/esm/endpoints/result/index.d.ts +1 -1
- package/esm/endpoints/result/index.d.ts.map +1 -1
- package/esm/endpoints/result/index.js +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +18 -334
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +0 -347
- package/esm/generated/ai-json-api/api.d.ts +53 -2
- package/esm/generated/ai-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +175 -5
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +110 -0
- package/esm/generated/result-json-api/api.d.ts +347 -9
- package/esm/generated/result-json-api/api.d.ts.map +1 -1
- package/esm/generated/result-json-api/api.js +302 -6
- package/esm/index.d.ts +3 -3
- package/esm/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -51,6 +51,52 @@ export async function ActionsApiAxiosParamCreator_AnalyzeCsv(analyzeCsvRequest,
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
54
|
+
/**
|
|
55
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
56
|
+
* @summary Analyze SPSS files
|
|
57
|
+
* @param {AnalyzeSavRequest} analyzeSavRequest
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
export async function ActionsApiAxiosParamCreator_AnalyzeSav(analyzeSavRequest, options = {}, configuration) {
|
|
63
|
+
// verify required parameter 'analyzeSavRequest' is not null or undefined
|
|
64
|
+
assertParamExists('analyzeSav', 'analyzeSavRequest', analyzeSavRequest);
|
|
65
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/analyzeSav`;
|
|
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: 'POST', ...baseOptions, ...options };
|
|
73
|
+
const localVarHeaderParameter = {};
|
|
74
|
+
const localVarQueryParameter = {};
|
|
75
|
+
const consumes = [
|
|
76
|
+
'application/json'
|
|
77
|
+
];
|
|
78
|
+
// use application/json if present, otherwise fallback to the first one
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
80
|
+
? 'application/json'
|
|
81
|
+
: consumes[0];
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {
|
|
85
|
+
...localVarHeaderParameter,
|
|
86
|
+
...headersFromBaseOptions,
|
|
87
|
+
...options.headers,
|
|
88
|
+
};
|
|
89
|
+
const needsSerialization = typeof analyzeSavRequest !== "string" ||
|
|
90
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
91
|
+
localVarRequestOptions.data = needsSerialization
|
|
92
|
+
? JSON.stringify(analyzeSavRequest !== undefined ? analyzeSavRequest : {})
|
|
93
|
+
: analyzeSavRequest || "";
|
|
94
|
+
return {
|
|
95
|
+
url: toPathString(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
54
100
|
/**
|
|
55
101
|
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
56
102
|
* @summary Collect data about the current cache usage
|
|
@@ -219,7 +265,7 @@ export async function ActionsApiAxiosParamCreator_DeleteFiles(dataSourceId, dele
|
|
|
219
265
|
}
|
|
220
266
|
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
221
267
|
/**
|
|
222
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
268
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
223
269
|
* @summary Import CSV
|
|
224
270
|
* @param {string} dataSourceId
|
|
225
271
|
* @param {ImportCsvRequest} importCsvRequest
|
|
@@ -318,6 +364,56 @@ export async function ActionsApiAxiosParamCreator_ImportCustomGeoCollection(coll
|
|
|
318
364
|
};
|
|
319
365
|
}
|
|
320
366
|
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
367
|
+
/**
|
|
368
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
369
|
+
* @summary Import SPSS files
|
|
370
|
+
* @param {string} dataSourceId
|
|
371
|
+
* @param {ImportSavRequest} importSavRequest
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
export async function ActionsApiAxiosParamCreator_ImportSav(dataSourceId, importSavRequest, options = {}, configuration) {
|
|
377
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
378
|
+
assertParamExists('importSav', 'dataSourceId', dataSourceId);
|
|
379
|
+
// verify required parameter 'importSavRequest' is not null or undefined
|
|
380
|
+
assertParamExists('importSav', 'importSavRequest', importSavRequest);
|
|
381
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/importSav`
|
|
382
|
+
.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
385
|
+
let baseOptions;
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
390
|
+
const localVarHeaderParameter = {};
|
|
391
|
+
const localVarQueryParameter = {};
|
|
392
|
+
const consumes = [
|
|
393
|
+
'application/json'
|
|
394
|
+
];
|
|
395
|
+
// use application/json if present, otherwise fallback to the first one
|
|
396
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
397
|
+
? 'application/json'
|
|
398
|
+
: consumes[0];
|
|
399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
400
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
401
|
+
localVarRequestOptions.headers = {
|
|
402
|
+
...localVarHeaderParameter,
|
|
403
|
+
...headersFromBaseOptions,
|
|
404
|
+
...options.headers,
|
|
405
|
+
};
|
|
406
|
+
const needsSerialization = typeof importSavRequest !== "string" ||
|
|
407
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
408
|
+
localVarRequestOptions.data = needsSerialization
|
|
409
|
+
? JSON.stringify(importSavRequest !== undefined ? importSavRequest : {})
|
|
410
|
+
: importSavRequest || "";
|
|
411
|
+
return {
|
|
412
|
+
url: toPathString(localVarUrlObj),
|
|
413
|
+
options: localVarRequestOptions,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
321
417
|
/**
|
|
322
418
|
* List all the files in the given data source.
|
|
323
419
|
* @summary List datasource files
|
|
@@ -458,6 +554,21 @@ export async function ActionsApi_AnalyzeCsv(axios, basePath, requestParameters,
|
|
|
458
554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
459
555
|
}
|
|
460
556
|
// ActionsApi Api FP
|
|
557
|
+
/**
|
|
558
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
559
|
+
* @summary Analyze SPSS files
|
|
560
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
561
|
+
* @param {string} basePath Base path.
|
|
562
|
+
* @param {ActionsApiAnalyzeSavRequest} requestParameters Request parameters.
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
export async function ActionsApi_AnalyzeSav(axios, basePath, requestParameters, options, configuration) {
|
|
568
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_AnalyzeSav(requestParameters.analyzeSavRequest, options || {}, configuration);
|
|
569
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
570
|
+
}
|
|
571
|
+
// ActionsApi Api FP
|
|
461
572
|
/**
|
|
462
573
|
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
463
574
|
* @summary Collect data about the current cache usage
|
|
@@ -518,7 +629,7 @@ export async function ActionsApi_DeleteFiles(axios, basePath, requestParameters,
|
|
|
518
629
|
}
|
|
519
630
|
// ActionsApi Api FP
|
|
520
631
|
/**
|
|
521
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
632
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
522
633
|
* @summary Import CSV
|
|
523
634
|
* @param {AxiosInstance} axios Axios instance.
|
|
524
635
|
* @param {string} basePath Base path.
|
|
@@ -547,6 +658,21 @@ export async function ActionsApi_ImportCustomGeoCollection(axios, basePath, requ
|
|
|
547
658
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
548
659
|
}
|
|
549
660
|
// ActionsApi Api FP
|
|
661
|
+
/**
|
|
662
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
663
|
+
* @summary Import SPSS files
|
|
664
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
665
|
+
* @param {string} basePath Base path.
|
|
666
|
+
* @param {ActionsApiImportSavRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
export async function ActionsApi_ImportSav(axios, basePath, requestParameters, options, configuration) {
|
|
672
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ImportSav(requestParameters.dataSourceId, requestParameters.importSavRequest, options || {}, configuration);
|
|
673
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
674
|
+
}
|
|
675
|
+
// ActionsApi Api FP
|
|
550
676
|
/**
|
|
551
677
|
* List all the files in the given data source.
|
|
552
678
|
* @summary List datasource files
|
|
@@ -609,6 +735,17 @@ export class ActionsApi extends BaseAPI {
|
|
|
609
735
|
analyzeCsv(requestParameters, options) {
|
|
610
736
|
return ActionsApi_AnalyzeCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
611
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
740
|
+
* @summary Analyze SPSS files
|
|
741
|
+
* @param {ActionsApiAnalyzeSavRequest} requestParameters Request parameters.
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
* @memberof ActionsApi
|
|
745
|
+
*/
|
|
746
|
+
analyzeSav(requestParameters, options) {
|
|
747
|
+
return ActionsApi_AnalyzeSav(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
748
|
+
}
|
|
612
749
|
/**
|
|
613
750
|
* Get the detailed data about how much cache your organization is currently using, broken down by individual workspaces.
|
|
614
751
|
* @summary Collect data about the current cache usage
|
|
@@ -653,7 +790,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
653
790
|
return ActionsApi_DeleteFiles(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
654
791
|
}
|
|
655
792
|
/**
|
|
656
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
793
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
657
794
|
* @summary Import CSV
|
|
658
795
|
* @param {ActionsApiImportCsvRequest} requestParameters Request parameters.
|
|
659
796
|
* @param {*} [options] Override http request option.
|
|
@@ -674,6 +811,17 @@ export class ActionsApi extends BaseAPI {
|
|
|
674
811
|
importCustomGeoCollection(requestParameters, options) {
|
|
675
812
|
return ActionsApi_ImportCustomGeoCollection(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
676
813
|
}
|
|
814
|
+
/**
|
|
815
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
816
|
+
* @summary Import SPSS files
|
|
817
|
+
* @param {ActionsApiImportSavRequest} requestParameters Request parameters.
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
* @memberof ActionsApi
|
|
821
|
+
*/
|
|
822
|
+
importSav(requestParameters, options) {
|
|
823
|
+
return ActionsApi_ImportSav(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
824
|
+
}
|
|
677
825
|
/**
|
|
678
826
|
* List all the files in the given data source.
|
|
679
827
|
* @summary List datasource files
|
|
@@ -817,6 +965,52 @@ export async function DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeCsv(ana
|
|
|
817
965
|
options: localVarRequestOptions,
|
|
818
966
|
};
|
|
819
967
|
}
|
|
968
|
+
// DataSourceFilesAnalysisApi FP - DataSourceFilesAnalysisApiAxiosParamCreator
|
|
969
|
+
/**
|
|
970
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
971
|
+
* @summary Analyze SPSS files
|
|
972
|
+
* @param {AnalyzeSavRequest} analyzeSavRequest
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
975
|
+
* @throws {RequiredError}
|
|
976
|
+
*/
|
|
977
|
+
export async function DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeSav(analyzeSavRequest, options = {}, configuration) {
|
|
978
|
+
// verify required parameter 'analyzeSavRequest' is not null or undefined
|
|
979
|
+
assertParamExists('analyzeSav', 'analyzeSavRequest', analyzeSavRequest);
|
|
980
|
+
const localVarPath = `/api/v1/actions/fileStorage/staging/analyzeSav`;
|
|
981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
983
|
+
let baseOptions;
|
|
984
|
+
if (configuration) {
|
|
985
|
+
baseOptions = configuration.baseOptions;
|
|
986
|
+
}
|
|
987
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
988
|
+
const localVarHeaderParameter = {};
|
|
989
|
+
const localVarQueryParameter = {};
|
|
990
|
+
const consumes = [
|
|
991
|
+
'application/json'
|
|
992
|
+
];
|
|
993
|
+
// use application/json if present, otherwise fallback to the first one
|
|
994
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
995
|
+
? 'application/json'
|
|
996
|
+
: consumes[0];
|
|
997
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
998
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
999
|
+
localVarRequestOptions.headers = {
|
|
1000
|
+
...localVarHeaderParameter,
|
|
1001
|
+
...headersFromBaseOptions,
|
|
1002
|
+
...options.headers,
|
|
1003
|
+
};
|
|
1004
|
+
const needsSerialization = typeof analyzeSavRequest !== "string" ||
|
|
1005
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1006
|
+
localVarRequestOptions.data = needsSerialization
|
|
1007
|
+
? JSON.stringify(analyzeSavRequest !== undefined ? analyzeSavRequest : {})
|
|
1008
|
+
: analyzeSavRequest || "";
|
|
1009
|
+
return {
|
|
1010
|
+
url: toPathString(localVarUrlObj),
|
|
1011
|
+
options: localVarRequestOptions,
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
820
1014
|
// DataSourceFilesAnalysisApi Api FP
|
|
821
1015
|
/**
|
|
822
1016
|
* Analyzes CSV files at the given locations
|
|
@@ -832,6 +1026,21 @@ export async function DataSourceFilesAnalysisApi_AnalyzeCsv(axios, basePath, req
|
|
|
832
1026
|
const localVarAxiosArgs = await DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeCsv(requestParameters.analyzeCsvRequest, options || {}, configuration);
|
|
833
1027
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
834
1028
|
}
|
|
1029
|
+
// DataSourceFilesAnalysisApi Api FP
|
|
1030
|
+
/**
|
|
1031
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
1032
|
+
* @summary Analyze SPSS files
|
|
1033
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1034
|
+
* @param {string} basePath Base path.
|
|
1035
|
+
* @param {DataSourceFilesAnalysisApiAnalyzeSavRequest} requestParameters Request parameters.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
*/
|
|
1040
|
+
export async function DataSourceFilesAnalysisApi_AnalyzeSav(axios, basePath, requestParameters, options, configuration) {
|
|
1041
|
+
const localVarAxiosArgs = await DataSourceFilesAnalysisApiAxiosParamCreator_AnalyzeSav(requestParameters.analyzeSavRequest, options || {}, configuration);
|
|
1042
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1043
|
+
}
|
|
835
1044
|
/**
|
|
836
1045
|
* DataSourceFilesAnalysisApi - object-oriented interface
|
|
837
1046
|
* @export
|
|
@@ -850,6 +1059,17 @@ export class DataSourceFilesAnalysisApi extends BaseAPI {
|
|
|
850
1059
|
analyzeCsv(requestParameters, options) {
|
|
851
1060
|
return DataSourceFilesAnalysisApi_AnalyzeCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
852
1061
|
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Reads the columns, their labels and the first rows of the SPSS (.sav) files at the given locations.
|
|
1064
|
+
* @summary Analyze SPSS files
|
|
1065
|
+
* @param {DataSourceFilesAnalysisApiAnalyzeSavRequest} requestParameters Request parameters.
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
* @memberof DataSourceFilesAnalysisApi
|
|
1069
|
+
*/
|
|
1070
|
+
analyzeSav(requestParameters, options) {
|
|
1071
|
+
return DataSourceFilesAnalysisApi_AnalyzeSav(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1072
|
+
}
|
|
853
1073
|
}
|
|
854
1074
|
// DataSourceFilesDeletionApi FP - DataSourceFilesDeletionApiAxiosParamCreator
|
|
855
1075
|
/**
|
|
@@ -937,7 +1157,7 @@ export class DataSourceFilesDeletionApi extends BaseAPI {
|
|
|
937
1157
|
}
|
|
938
1158
|
// DataSourceFilesImportApi FP - DataSourceFilesImportApiAxiosParamCreator
|
|
939
1159
|
/**
|
|
940
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
1160
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
941
1161
|
* @summary Import CSV
|
|
942
1162
|
* @param {string} dataSourceId
|
|
943
1163
|
* @param {ImportCsvRequest} importCsvRequest
|
|
@@ -985,9 +1205,59 @@ export async function DataSourceFilesImportApiAxiosParamCreator_ImportCsv(dataSo
|
|
|
985
1205
|
options: localVarRequestOptions,
|
|
986
1206
|
};
|
|
987
1207
|
}
|
|
1208
|
+
// DataSourceFilesImportApi FP - DataSourceFilesImportApiAxiosParamCreator
|
|
1209
|
+
/**
|
|
1210
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
1211
|
+
* @summary Import SPSS files
|
|
1212
|
+
* @param {string} dataSourceId
|
|
1213
|
+
* @param {ImportSavRequest} importSavRequest
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
export async function DataSourceFilesImportApiAxiosParamCreator_ImportSav(dataSourceId, importSavRequest, options = {}, configuration) {
|
|
1219
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
1220
|
+
assertParamExists('importSav', 'dataSourceId', dataSourceId);
|
|
1221
|
+
// verify required parameter 'importSavRequest' is not null or undefined
|
|
1222
|
+
assertParamExists('importSav', 'importSavRequest', importSavRequest);
|
|
1223
|
+
const localVarPath = `/api/v1/actions/fileStorage/dataSources/{dataSourceId}/importSav`
|
|
1224
|
+
.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
1225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1227
|
+
let baseOptions;
|
|
1228
|
+
if (configuration) {
|
|
1229
|
+
baseOptions = configuration.baseOptions;
|
|
1230
|
+
}
|
|
1231
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1232
|
+
const localVarHeaderParameter = {};
|
|
1233
|
+
const localVarQueryParameter = {};
|
|
1234
|
+
const consumes = [
|
|
1235
|
+
'application/json'
|
|
1236
|
+
];
|
|
1237
|
+
// use application/json if present, otherwise fallback to the first one
|
|
1238
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
1239
|
+
? 'application/json'
|
|
1240
|
+
: consumes[0];
|
|
1241
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1242
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1243
|
+
localVarRequestOptions.headers = {
|
|
1244
|
+
...localVarHeaderParameter,
|
|
1245
|
+
...headersFromBaseOptions,
|
|
1246
|
+
...options.headers,
|
|
1247
|
+
};
|
|
1248
|
+
const needsSerialization = typeof importSavRequest !== "string" ||
|
|
1249
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1250
|
+
localVarRequestOptions.data = needsSerialization
|
|
1251
|
+
? JSON.stringify(importSavRequest !== undefined ? importSavRequest : {})
|
|
1252
|
+
: importSavRequest || "";
|
|
1253
|
+
return {
|
|
1254
|
+
url: toPathString(localVarUrlObj),
|
|
1255
|
+
options: localVarRequestOptions,
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
988
1258
|
// DataSourceFilesImportApi Api FP
|
|
989
1259
|
/**
|
|
990
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
1260
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
991
1261
|
* @summary Import CSV
|
|
992
1262
|
* @param {AxiosInstance} axios Axios instance.
|
|
993
1263
|
* @param {string} basePath Base path.
|
|
@@ -1000,6 +1270,21 @@ export async function DataSourceFilesImportApi_ImportCsv(axios, basePath, reques
|
|
|
1000
1270
|
const localVarAxiosArgs = await DataSourceFilesImportApiAxiosParamCreator_ImportCsv(requestParameters.dataSourceId, requestParameters.importCsvRequest, options || {}, configuration);
|
|
1001
1271
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1002
1272
|
}
|
|
1273
|
+
// DataSourceFilesImportApi Api FP
|
|
1274
|
+
/**
|
|
1275
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
1276
|
+
* @summary Import SPSS files
|
|
1277
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1278
|
+
* @param {string} basePath Base path.
|
|
1279
|
+
* @param {DataSourceFilesImportApiImportSavRequest} requestParameters Request parameters.
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1282
|
+
* @throws {RequiredError}
|
|
1283
|
+
*/
|
|
1284
|
+
export async function DataSourceFilesImportApi_ImportSav(axios, basePath, requestParameters, options, configuration) {
|
|
1285
|
+
const localVarAxiosArgs = await DataSourceFilesImportApiAxiosParamCreator_ImportSav(requestParameters.dataSourceId, requestParameters.importSavRequest, options || {}, configuration);
|
|
1286
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1287
|
+
}
|
|
1003
1288
|
/**
|
|
1004
1289
|
* DataSourceFilesImportApi - object-oriented interface
|
|
1005
1290
|
* @export
|
|
@@ -1008,7 +1293,7 @@ export async function DataSourceFilesImportApi_ImportCsv(axios, basePath, reques
|
|
|
1008
1293
|
*/
|
|
1009
1294
|
export class DataSourceFilesImportApi extends BaseAPI {
|
|
1010
1295
|
/**
|
|
1011
|
-
* Import the CSV files at the given locations in the staging area to the final location.
|
|
1296
|
+
* Import the CSV files at the given locations in the staging area to the final location. A table that holds an SPSS file cannot take a CSV file.
|
|
1012
1297
|
* @summary Import CSV
|
|
1013
1298
|
* @param {DataSourceFilesImportApiImportCsvRequest} requestParameters Request parameters.
|
|
1014
1299
|
* @param {*} [options] Override http request option.
|
|
@@ -1018,6 +1303,17 @@ export class DataSourceFilesImportApi extends BaseAPI {
|
|
|
1018
1303
|
importCsv(requestParameters, options) {
|
|
1019
1304
|
return DataSourceFilesImportApi_ImportCsv(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1020
1305
|
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Import the SPSS (.sav) files at the given locations in the staging area to the final location. A table that holds a CSV file cannot take an SPSS file.
|
|
1308
|
+
* @summary Import SPSS files
|
|
1309
|
+
* @param {DataSourceFilesImportApiImportSavRequest} requestParameters Request parameters.
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
* @memberof DataSourceFilesImportApi
|
|
1313
|
+
*/
|
|
1314
|
+
importSav(requestParameters, options) {
|
|
1315
|
+
return DataSourceFilesImportApi_ImportSav(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1316
|
+
}
|
|
1021
1317
|
}
|
|
1022
1318
|
// DataSourceFilesListingApi FP - DataSourceFilesListingApiAxiosParamCreator
|
|
1023
1319
|
/**
|