@cirrobio/api-client 0.0.26-alpha → 0.0.27-alpha
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/.openapi-generator/FILES +2 -2
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +7 -7
- package/dist/apis/ProcessesApi.js +11 -11
- package/dist/models/FileRequirements.d.ts +44 -0
- package/dist/models/FileRequirements.js +57 -0
- package/dist/models/ValidateFileRequirementsRequest.d.ts +37 -0
- package/dist/models/ValidateFileRequirementsRequest.js +53 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +19 -19
- package/src/models/{ValidateDataInputsResponse.ts → FileRequirements.ts} +11 -11
- package/src/models/{ValidateDataInputsRequest.ts → ValidateFileRequirementsRequest.ts} +10 -10
- package/src/models/index.ts +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -37,6 +37,7 @@ src/models/DatasetFile.ts
|
|
|
37
37
|
src/models/DatasetViz.ts
|
|
38
38
|
src/models/Executor.ts
|
|
39
39
|
src/models/FileNamePattern.ts
|
|
40
|
+
src/models/FileRequirements.ts
|
|
40
41
|
src/models/FormSchema.ts
|
|
41
42
|
src/models/GenerateSftpCredentialsRequest.ts
|
|
42
43
|
src/models/GetExecutionLogsResponse.ts
|
|
@@ -78,8 +79,7 @@ src/models/UpdateUserRequest.ts
|
|
|
78
79
|
src/models/UploadDatasetCreateResponse.ts
|
|
79
80
|
src/models/UploadDatasetRequest.ts
|
|
80
81
|
src/models/User.ts
|
|
81
|
-
src/models/
|
|
82
|
-
src/models/ValidateDataInputsResponse.ts
|
|
82
|
+
src/models/ValidateFileRequirementsRequest.ts
|
|
83
83
|
src/models/index.ts
|
|
84
84
|
src/runtime.ts
|
|
85
85
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cirrobio/api-client@0.0.
|
|
39
|
+
npm install @cirrobio/api-client@0.0.27-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { FormSchema, Process, ProcessDetail,
|
|
13
|
+
import type { FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
14
14
|
export interface GetProcessRequest {
|
|
15
15
|
processId: string;
|
|
16
16
|
}
|
|
@@ -20,9 +20,9 @@ export interface GetProcessParametersRequest {
|
|
|
20
20
|
export interface GetProcessesRequest {
|
|
21
21
|
includeArchived?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface ValidateFileRequirementsOperationRequest {
|
|
24
24
|
processId: string;
|
|
25
|
-
|
|
25
|
+
validateFileRequirementsRequest: ValidateFileRequirementsRequest;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
@@ -60,12 +60,12 @@ export declare class ProcessesApi extends runtime.BaseAPI {
|
|
|
60
60
|
getProcesses(requestParameters?: GetProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Process>>;
|
|
61
61
|
/**
|
|
62
62
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
63
|
-
* Validate
|
|
63
|
+
* Validate file requirements
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
validateFileRequirementsRaw(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileRequirements>>;
|
|
66
66
|
/**
|
|
67
67
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
68
|
-
* Validate
|
|
68
|
+
* Validate file requirements
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
validateFileRequirements(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileRequirements>;
|
|
71
71
|
}
|
|
@@ -243,19 +243,19 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
243
243
|
};
|
|
244
244
|
/**
|
|
245
245
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
246
|
-
* Validate
|
|
246
|
+
* Validate file requirements
|
|
247
247
|
*/
|
|
248
|
-
ProcessesApi.prototype.
|
|
248
|
+
ProcessesApi.prototype.validateFileRequirementsRaw = function (requestParameters, initOverrides) {
|
|
249
249
|
return __awaiter(this, void 0, void 0, function () {
|
|
250
250
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
251
251
|
return __generator(this, function (_a) {
|
|
252
252
|
switch (_a.label) {
|
|
253
253
|
case 0:
|
|
254
254
|
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
255
|
-
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling
|
|
255
|
+
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling validateFileRequirements.');
|
|
256
256
|
}
|
|
257
|
-
if (requestParameters.
|
|
258
|
-
throw new runtime.RequiredError('
|
|
257
|
+
if (requestParameters.validateFileRequirementsRequest === null || requestParameters.validateFileRequirementsRequest === undefined) {
|
|
258
|
+
throw new runtime.RequiredError('validateFileRequirementsRequest', 'Required parameter requestParameters.validateFileRequirementsRequest was null or undefined when calling validateFileRequirements.');
|
|
259
259
|
}
|
|
260
260
|
queryParameters = {};
|
|
261
261
|
headerParameters = {};
|
|
@@ -270,29 +270,29 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
270
270
|
}
|
|
271
271
|
_a.label = 2;
|
|
272
272
|
case 2: return [4 /*yield*/, this.request({
|
|
273
|
-
path: "/processes/{processId}/validate-
|
|
273
|
+
path: "/processes/{processId}/validate-files".replace("{".concat("processId", "}"), encodeURIComponent(String(requestParameters.processId))),
|
|
274
274
|
method: 'POST',
|
|
275
275
|
headers: headerParameters,
|
|
276
276
|
query: queryParameters,
|
|
277
|
-
body: (0, index_1.
|
|
277
|
+
body: (0, index_1.ValidateFileRequirementsRequestToJSON)(requestParameters.validateFileRequirementsRequest),
|
|
278
278
|
}, initOverrides)];
|
|
279
279
|
case 3:
|
|
280
280
|
response = _a.sent();
|
|
281
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
281
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FileRequirementsFromJSON)(jsonValue); })];
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
286
|
/**
|
|
287
287
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
288
|
-
* Validate
|
|
288
|
+
* Validate file requirements
|
|
289
289
|
*/
|
|
290
|
-
ProcessesApi.prototype.
|
|
290
|
+
ProcessesApi.prototype.validateFileRequirements = function (requestParameters, initOverrides) {
|
|
291
291
|
return __awaiter(this, void 0, void 0, function () {
|
|
292
292
|
var response;
|
|
293
293
|
return __generator(this, function (_a) {
|
|
294
294
|
switch (_a.label) {
|
|
295
|
-
case 0: return [4 /*yield*/, this.
|
|
295
|
+
case 0: return [4 /*yield*/, this.validateFileRequirementsRaw(requestParameters, initOverrides)];
|
|
296
296
|
case 1:
|
|
297
297
|
response = _a.sent();
|
|
298
298
|
return [4 /*yield*/, response.value()];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AllowedDataType } from './AllowedDataType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FileRequirements
|
|
17
|
+
*/
|
|
18
|
+
export interface FileRequirements {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof FileRequirements
|
|
23
|
+
*/
|
|
24
|
+
files: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof FileRequirements
|
|
29
|
+
*/
|
|
30
|
+
errorMsg: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<AllowedDataType>}
|
|
34
|
+
* @memberof FileRequirements
|
|
35
|
+
*/
|
|
36
|
+
allowedDataTypes: Array<AllowedDataType>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the FileRequirements interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfFileRequirements(value: object): boolean;
|
|
42
|
+
export declare function FileRequirementsFromJSON(json: any): FileRequirements;
|
|
43
|
+
export declare function FileRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileRequirements;
|
|
44
|
+
export declare function FileRequirementsToJSON(value?: FileRequirements | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FileRequirementsToJSON = exports.FileRequirementsFromJSONTyped = exports.FileRequirementsFromJSON = exports.instanceOfFileRequirements = void 0;
|
|
17
|
+
var AllowedDataType_1 = require("./AllowedDataType");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the FileRequirements interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfFileRequirements(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "files" in value;
|
|
24
|
+
isInstance = isInstance && "errorMsg" in value;
|
|
25
|
+
isInstance = isInstance && "allowedDataTypes" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfFileRequirements = instanceOfFileRequirements;
|
|
29
|
+
function FileRequirementsFromJSON(json) {
|
|
30
|
+
return FileRequirementsFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.FileRequirementsFromJSON = FileRequirementsFromJSON;
|
|
33
|
+
function FileRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'files': json['files'],
|
|
39
|
+
'errorMsg': json['errorMsg'],
|
|
40
|
+
'allowedDataTypes': (json['allowedDataTypes'].map(AllowedDataType_1.AllowedDataTypeFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.FileRequirementsFromJSONTyped = FileRequirementsFromJSONTyped;
|
|
44
|
+
function FileRequirementsToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'files': value.files,
|
|
53
|
+
'errorMsg': value.errorMsg,
|
|
54
|
+
'allowedDataTypes': (value.allowedDataTypes.map(AllowedDataType_1.AllowedDataTypeToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.FileRequirementsToJSON = FileRequirementsToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidateFileRequirementsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidateFileRequirementsRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ValidateFileRequirementsRequest
|
|
22
|
+
*/
|
|
23
|
+
sampleSheet: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof ValidateFileRequirementsRequest
|
|
28
|
+
*/
|
|
29
|
+
fileNames: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ValidateFileRequirementsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfValidateFileRequirementsRequest(value: object): boolean;
|
|
35
|
+
export declare function ValidateFileRequirementsRequestFromJSON(json: any): ValidateFileRequirementsRequest;
|
|
36
|
+
export declare function ValidateFileRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateFileRequirementsRequest;
|
|
37
|
+
export declare function ValidateFileRequirementsRequestToJSON(value?: ValidateFileRequirementsRequest | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ValidateFileRequirementsRequestToJSON = exports.ValidateFileRequirementsRequestFromJSONTyped = exports.ValidateFileRequirementsRequestFromJSON = exports.instanceOfValidateFileRequirementsRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ValidateFileRequirementsRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfValidateFileRequirementsRequest(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "sampleSheet" in value;
|
|
23
|
+
isInstance = isInstance && "fileNames" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfValidateFileRequirementsRequest = instanceOfValidateFileRequirementsRequest;
|
|
27
|
+
function ValidateFileRequirementsRequestFromJSON(json) {
|
|
28
|
+
return ValidateFileRequirementsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ValidateFileRequirementsRequestFromJSON = ValidateFileRequirementsRequestFromJSON;
|
|
31
|
+
function ValidateFileRequirementsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'sampleSheet': json['sampleSheet'],
|
|
37
|
+
'fileNames': json['fileNames'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ValidateFileRequirementsRequestFromJSONTyped = ValidateFileRequirementsRequestFromJSONTyped;
|
|
41
|
+
function ValidateFileRequirementsRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'sampleSheet': value.sampleSheet,
|
|
50
|
+
'fileNames': value.fileNames,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ValidateFileRequirementsRequestToJSON = ValidateFileRequirementsRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './DatasetFile';
|
|
|
18
18
|
export * from './DatasetViz';
|
|
19
19
|
export * from './Executor';
|
|
20
20
|
export * from './FileNamePattern';
|
|
21
|
+
export * from './FileRequirements';
|
|
21
22
|
export * from './FormSchema';
|
|
22
23
|
export * from './GenerateSftpCredentialsRequest';
|
|
23
24
|
export * from './GetExecutionLogsResponse';
|
|
@@ -59,5 +60,4 @@ export * from './UpdateUserRequest';
|
|
|
59
60
|
export * from './UploadDatasetCreateResponse';
|
|
60
61
|
export * from './UploadDatasetRequest';
|
|
61
62
|
export * from './User';
|
|
62
|
-
export * from './
|
|
63
|
-
export * from './ValidateDataInputsResponse';
|
|
63
|
+
export * from './ValidateFileRequirementsRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __exportStar(require("./DatasetFile"), exports);
|
|
|
36
36
|
__exportStar(require("./DatasetViz"), exports);
|
|
37
37
|
__exportStar(require("./Executor"), exports);
|
|
38
38
|
__exportStar(require("./FileNamePattern"), exports);
|
|
39
|
+
__exportStar(require("./FileRequirements"), exports);
|
|
39
40
|
__exportStar(require("./FormSchema"), exports);
|
|
40
41
|
__exportStar(require("./GenerateSftpCredentialsRequest"), exports);
|
|
41
42
|
__exportStar(require("./GetExecutionLogsResponse"), exports);
|
|
@@ -77,5 +78,4 @@ __exportStar(require("./UpdateUserRequest"), exports);
|
|
|
77
78
|
__exportStar(require("./UploadDatasetCreateResponse"), exports);
|
|
78
79
|
__exportStar(require("./UploadDatasetRequest"), exports);
|
|
79
80
|
__exportStar(require("./User"), exports);
|
|
80
|
-
__exportStar(require("./
|
|
81
|
-
__exportStar(require("./ValidateDataInputsResponse"), exports);
|
|
81
|
+
__exportStar(require("./ValidateFileRequirementsRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/ProcessesApi.ts
CHANGED
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
FileRequirements,
|
|
18
19
|
FormSchema,
|
|
19
20
|
Process,
|
|
20
21
|
ProcessDetail,
|
|
21
|
-
|
|
22
|
-
ValidateDataInputsResponse,
|
|
22
|
+
ValidateFileRequirementsRequest,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
|
+
FileRequirementsFromJSON,
|
|
26
|
+
FileRequirementsToJSON,
|
|
25
27
|
FormSchemaFromJSON,
|
|
26
28
|
FormSchemaToJSON,
|
|
27
29
|
ProcessFromJSON,
|
|
28
30
|
ProcessToJSON,
|
|
29
31
|
ProcessDetailFromJSON,
|
|
30
32
|
ProcessDetailToJSON,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ValidateDataInputsResponseFromJSON,
|
|
34
|
-
ValidateDataInputsResponseToJSON,
|
|
33
|
+
ValidateFileRequirementsRequestFromJSON,
|
|
34
|
+
ValidateFileRequirementsRequestToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface GetProcessRequest {
|
|
@@ -46,9 +46,9 @@ export interface GetProcessesRequest {
|
|
|
46
46
|
includeArchived?: boolean;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export interface
|
|
49
|
+
export interface ValidateFileRequirementsOperationRequest {
|
|
50
50
|
processId: string;
|
|
51
|
-
|
|
51
|
+
validateFileRequirementsRequest: ValidateFileRequirementsRequest;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -178,15 +178,15 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
181
|
-
* Validate
|
|
181
|
+
* Validate file requirements
|
|
182
182
|
*/
|
|
183
|
-
async
|
|
183
|
+
async validateFileRequirementsRaw(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileRequirements>> {
|
|
184
184
|
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
185
|
-
throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling
|
|
185
|
+
throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling validateFileRequirements.');
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
if (requestParameters.
|
|
189
|
-
throw new runtime.RequiredError('
|
|
188
|
+
if (requestParameters.validateFileRequirementsRequest === null || requestParameters.validateFileRequirementsRequest === undefined) {
|
|
189
|
+
throw new runtime.RequiredError('validateFileRequirementsRequest','Required parameter requestParameters.validateFileRequirementsRequest was null or undefined when calling validateFileRequirements.');
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
const queryParameters: any = {};
|
|
@@ -204,22 +204,22 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
const response = await this.request({
|
|
207
|
-
path: `/processes/{processId}/validate-
|
|
207
|
+
path: `/processes/{processId}/validate-files`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
|
|
208
208
|
method: 'POST',
|
|
209
209
|
headers: headerParameters,
|
|
210
210
|
query: queryParameters,
|
|
211
|
-
body:
|
|
211
|
+
body: ValidateFileRequirementsRequestToJSON(requestParameters.validateFileRequirementsRequest),
|
|
212
212
|
}, initOverrides);
|
|
213
213
|
|
|
214
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileRequirementsFromJSON(jsonValue));
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Checks the input file names with the expected files for a data type (ingest processes only)
|
|
219
|
-
* Validate
|
|
219
|
+
* Validate file requirements
|
|
220
220
|
*/
|
|
221
|
-
async
|
|
222
|
-
const response = await this.
|
|
221
|
+
async validateFileRequirements(requestParameters: ValidateFileRequirementsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileRequirements> {
|
|
222
|
+
const response = await this.validateFileRequirementsRaw(requestParameters, initOverrides);
|
|
223
223
|
return await response.value();
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -23,33 +23,33 @@ import {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @export
|
|
26
|
-
* @interface
|
|
26
|
+
* @interface FileRequirements
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface FileRequirements {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {Array<string>}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof FileRequirements
|
|
33
33
|
*/
|
|
34
34
|
files: Array<string>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof FileRequirements
|
|
39
39
|
*/
|
|
40
40
|
errorMsg: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Array<AllowedDataType>}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof FileRequirements
|
|
45
45
|
*/
|
|
46
46
|
allowedDataTypes: Array<AllowedDataType>;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Check if a given object implements the
|
|
50
|
+
* Check if a given object implements the FileRequirements interface.
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
52
|
+
export function instanceOfFileRequirements(value: object): boolean {
|
|
53
53
|
let isInstance = true;
|
|
54
54
|
isInstance = isInstance && "files" in value;
|
|
55
55
|
isInstance = isInstance && "errorMsg" in value;
|
|
@@ -58,11 +58,11 @@ export function instanceOfValidateDataInputsResponse(value: object): boolean {
|
|
|
58
58
|
return isInstance;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export function
|
|
62
|
-
return
|
|
61
|
+
export function FileRequirementsFromJSON(json: any): FileRequirements {
|
|
62
|
+
return FileRequirementsFromJSONTyped(json, false);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export function
|
|
65
|
+
export function FileRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileRequirements {
|
|
66
66
|
if ((json === undefined) || (json === null)) {
|
|
67
67
|
return json;
|
|
68
68
|
}
|
|
@@ -74,7 +74,7 @@ export function ValidateDataInputsResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
export function
|
|
77
|
+
export function FileRequirementsToJSON(value?: FileRequirements | null): any {
|
|
78
78
|
if (value === undefined) {
|
|
79
79
|
return undefined;
|
|
80
80
|
}
|
|
@@ -16,27 +16,27 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ValidateFileRequirementsRequest
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ValidateFileRequirementsRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ValidateFileRequirementsRequest
|
|
26
26
|
*/
|
|
27
27
|
sampleSheet: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {Array<string>}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ValidateFileRequirementsRequest
|
|
32
32
|
*/
|
|
33
33
|
fileNames: Array<string>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the ValidateFileRequirementsRequest interface.
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
39
|
+
export function instanceOfValidateFileRequirementsRequest(value: object): boolean {
|
|
40
40
|
let isInstance = true;
|
|
41
41
|
isInstance = isInstance && "sampleSheet" in value;
|
|
42
42
|
isInstance = isInstance && "fileNames" in value;
|
|
@@ -44,11 +44,11 @@ export function instanceOfValidateDataInputsRequest(value: object): boolean {
|
|
|
44
44
|
return isInstance;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export function
|
|
48
|
-
return
|
|
47
|
+
export function ValidateFileRequirementsRequestFromJSON(json: any): ValidateFileRequirementsRequest {
|
|
48
|
+
return ValidateFileRequirementsRequestFromJSONTyped(json, false);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export function
|
|
51
|
+
export function ValidateFileRequirementsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateFileRequirementsRequest {
|
|
52
52
|
if ((json === undefined) || (json === null)) {
|
|
53
53
|
return json;
|
|
54
54
|
}
|
|
@@ -59,7 +59,7 @@ export function ValidateDataInputsRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export function
|
|
62
|
+
export function ValidateFileRequirementsRequestToJSON(value?: ValidateFileRequirementsRequest | null): any {
|
|
63
63
|
if (value === undefined) {
|
|
64
64
|
return undefined;
|
|
65
65
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './DatasetFile';
|
|
|
20
20
|
export * from './DatasetViz';
|
|
21
21
|
export * from './Executor';
|
|
22
22
|
export * from './FileNamePattern';
|
|
23
|
+
export * from './FileRequirements';
|
|
23
24
|
export * from './FormSchema';
|
|
24
25
|
export * from './GenerateSftpCredentialsRequest';
|
|
25
26
|
export * from './GetExecutionLogsResponse';
|
|
@@ -61,5 +62,4 @@ export * from './UpdateUserRequest';
|
|
|
61
62
|
export * from './UploadDatasetCreateResponse';
|
|
62
63
|
export * from './UploadDatasetRequest';
|
|
63
64
|
export * from './User';
|
|
64
|
-
export * from './
|
|
65
|
-
export * from './ValidateDataInputsResponse';
|
|
65
|
+
export * from './ValidateFileRequirementsRequest';
|