@cirrobio/api-client 0.0.28-alpha → 0.0.29-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 +1 -3
- package/README.md +1 -1
- package/dist/apis/ProcessesApi.d.ts +5 -5
- package/dist/apis/ProcessesApi.js +7 -7
- package/dist/models/CustomPipelineSettings.d.ts +8 -8
- package/dist/models/CustomPipelineSettings.js +7 -11
- package/dist/models/Executor.d.ts +1 -1
- package/dist/models/Executor.js +1 -1
- package/dist/models/Process.d.ts +3 -3
- package/dist/models/Process.js +2 -1
- package/dist/models/ProcessDetail.d.ts +9 -2
- package/dist/models/ProcessDetail.js +6 -2
- package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +50 -0
- package/dist/models/ProcessDetailAllOfPipelineCode.js +58 -0
- package/dist/models/index.d.ts +1 -3
- package/dist/models/index.js +1 -3
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +14 -17
- package/src/models/CustomPipelineSettings.ts +14 -19
- package/src/models/Executor.ts +1 -1
- package/src/models/Process.ts +5 -4
- package/src/models/ProcessDetail.ts +19 -3
- package/src/models/{CustomProcessRequestPipelineCode.ts → ProcessDetailAllOfPipelineCode.ts} +12 -12
- package/src/models/index.ts +1 -3
- package/src/models/CreateDashboardRequest.ts +0 -65
- package/src/models/CustomPipelineSettingsDto1.ts +0 -111
- package/src/models/CustomProcessRequest.ts +0 -175
- package/src/models/DatasetType.ts +0 -37
- package/src/models/Region.ts +0 -65
- package/src/models/RegisterDatasetRequest.ts +0 -92
- package/src/models/RegisterPublicDataRequest.ts +0 -83
package/.openapi-generator/FILES
CHANGED
|
@@ -27,9 +27,6 @@ src/models/Contact.ts
|
|
|
27
27
|
src/models/CreateNotebookInstanceRequest.ts
|
|
28
28
|
src/models/CreateResponse.ts
|
|
29
29
|
src/models/CustomPipelineSettings.ts
|
|
30
|
-
src/models/CustomPipelineSettingsDto1.ts
|
|
31
|
-
src/models/CustomProcessRequest.ts
|
|
32
|
-
src/models/CustomProcessRequestPipelineCode.ts
|
|
33
30
|
src/models/CustomerType.ts
|
|
34
31
|
src/models/Dashboard.ts
|
|
35
32
|
src/models/DashboardRequest.ts
|
|
@@ -57,6 +54,7 @@ src/models/PaginatedResponseSampleDto.ts
|
|
|
57
54
|
src/models/PipelineCode.ts
|
|
58
55
|
src/models/Process.ts
|
|
59
56
|
src/models/ProcessDetail.ts
|
|
57
|
+
src/models/ProcessDetailAllOfPipelineCode.ts
|
|
60
58
|
src/models/Project.ts
|
|
61
59
|
src/models/ProjectDetail.ts
|
|
62
60
|
src/models/ProjectMetrics.ts
|
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.29-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateResponse,
|
|
13
|
+
import type { CreateResponse, CustomPipelineSettings, FileRequirements, FormSchema, Process, ProcessDetail, ValidateFileRequirementsRequest } from '../models/index';
|
|
14
14
|
export interface ArchiveCustomProcessRequest {
|
|
15
15
|
processId: string;
|
|
16
16
|
}
|
|
17
17
|
export interface CreateCustomProcessRequest {
|
|
18
|
-
|
|
18
|
+
processDetail: ProcessDetail;
|
|
19
19
|
}
|
|
20
20
|
export interface GetProcessRequest {
|
|
21
21
|
processId: string;
|
|
@@ -31,7 +31,7 @@ export interface SyncCustomProcessRequest {
|
|
|
31
31
|
}
|
|
32
32
|
export interface UpdateCustomProcessRequest {
|
|
33
33
|
processId: string;
|
|
34
|
-
|
|
34
|
+
processDetail: ProcessDetail;
|
|
35
35
|
}
|
|
36
36
|
export interface ValidateFileRequirementsOperationRequest {
|
|
37
37
|
processId: string;
|
|
@@ -95,12 +95,12 @@ export declare class ProcessesApi extends runtime.BaseAPI {
|
|
|
95
95
|
* Updates the process definition from the repository
|
|
96
96
|
* Sync custom process
|
|
97
97
|
*/
|
|
98
|
-
syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
98
|
+
syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettings>>;
|
|
99
99
|
/**
|
|
100
100
|
* Updates the process definition from the repository
|
|
101
101
|
* Sync custom process
|
|
102
102
|
*/
|
|
103
|
-
syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
103
|
+
syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettings>;
|
|
104
104
|
/**
|
|
105
105
|
* Updates the custom process
|
|
106
106
|
* Update custom process
|
|
@@ -138,8 +138,8 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
138
138
|
return __generator(this, function (_a) {
|
|
139
139
|
switch (_a.label) {
|
|
140
140
|
case 0:
|
|
141
|
-
if (requestParameters.
|
|
142
|
-
throw new runtime.RequiredError('
|
|
141
|
+
if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
|
|
142
|
+
throw new runtime.RequiredError('processDetail', 'Required parameter requestParameters.processDetail was null or undefined when calling createCustomProcess.');
|
|
143
143
|
}
|
|
144
144
|
queryParameters = {};
|
|
145
145
|
headerParameters = {};
|
|
@@ -158,7 +158,7 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
158
158
|
method: 'POST',
|
|
159
159
|
headers: headerParameters,
|
|
160
160
|
query: queryParameters,
|
|
161
|
-
body: (0, index_1.
|
|
161
|
+
body: (0, index_1.ProcessDetailToJSON)(requestParameters.processDetail),
|
|
162
162
|
}, initOverrides)];
|
|
163
163
|
case 3:
|
|
164
164
|
response = _a.sent();
|
|
@@ -383,7 +383,7 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
383
383
|
}, initOverrides)];
|
|
384
384
|
case 3:
|
|
385
385
|
response = _a.sent();
|
|
386
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
386
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CustomPipelineSettingsFromJSON)(jsonValue); })];
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
});
|
|
@@ -419,8 +419,8 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
419
419
|
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
420
420
|
throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
|
|
421
421
|
}
|
|
422
|
-
if (requestParameters.
|
|
423
|
-
throw new runtime.RequiredError('
|
|
422
|
+
if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
|
|
423
|
+
throw new runtime.RequiredError('processDetail', 'Required parameter requestParameters.processDetail was null or undefined when calling updateCustomProcess.');
|
|
424
424
|
}
|
|
425
425
|
queryParameters = {};
|
|
426
426
|
headerParameters = {};
|
|
@@ -439,7 +439,7 @@ var ProcessesApi = /** @class */ (function (_super) {
|
|
|
439
439
|
method: 'PUT',
|
|
440
440
|
headers: headerParameters,
|
|
441
441
|
query: queryParameters,
|
|
442
|
-
body: (0, index_1.
|
|
442
|
+
body: (0, index_1.ProcessDetailToJSON)(requestParameters.processDetail),
|
|
443
443
|
}, initOverrides)];
|
|
444
444
|
case 3:
|
|
445
445
|
response = _a.sent();
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CustomPipelineSettings {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* GitHub repository that contains the process definition
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CustomPipelineSettings
|
|
22
22
|
*/
|
|
23
23
|
repository: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Branch, tag, or commit hash of the repo that contains the process definition
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CustomPipelineSettings
|
|
28
28
|
*/
|
|
29
|
-
branch
|
|
29
|
+
branch?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Folder within the repo that contains the process definition
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CustomPipelineSettings
|
|
34
34
|
*/
|
|
35
|
-
folder
|
|
35
|
+
folder?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {Date}
|
|
39
39
|
* @memberof CustomPipelineSettings
|
|
40
40
|
*/
|
|
41
|
-
lastSync
|
|
41
|
+
lastSync?: Date | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CustomPipelineSettings
|
|
46
46
|
*/
|
|
47
|
-
syncStatus
|
|
47
|
+
syncStatus?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CustomPipelineSettings
|
|
52
52
|
*/
|
|
53
|
-
commitHash
|
|
53
|
+
commitHash?: string | null;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the CustomPipelineSettings interface.
|
|
@@ -14,17 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CustomPipelineSettings interface.
|
|
19
20
|
*/
|
|
20
21
|
function instanceOfCustomPipelineSettings(value) {
|
|
21
22
|
var isInstance = true;
|
|
22
23
|
isInstance = isInstance && "repository" in value;
|
|
23
|
-
isInstance = isInstance && "branch" in value;
|
|
24
|
-
isInstance = isInstance && "folder" in value;
|
|
25
|
-
isInstance = isInstance && "lastSync" in value;
|
|
26
|
-
isInstance = isInstance && "syncStatus" in value;
|
|
27
|
-
isInstance = isInstance && "commitHash" in value;
|
|
28
24
|
return isInstance;
|
|
29
25
|
}
|
|
30
26
|
exports.instanceOfCustomPipelineSettings = instanceOfCustomPipelineSettings;
|
|
@@ -38,11 +34,11 @@ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
34
|
}
|
|
39
35
|
return {
|
|
40
36
|
'repository': json['repository'],
|
|
41
|
-
'branch': json['branch'],
|
|
42
|
-
'folder': json['folder'],
|
|
43
|
-
'lastSync': (new Date(json['lastSync'])),
|
|
44
|
-
'syncStatus': json['syncStatus'],
|
|
45
|
-
'commitHash': json['commitHash'],
|
|
37
|
+
'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
|
|
38
|
+
'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
|
|
39
|
+
'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
|
|
40
|
+
'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : json['syncStatus'],
|
|
41
|
+
'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
|
|
46
42
|
};
|
|
47
43
|
}
|
|
48
44
|
exports.CustomPipelineSettingsFromJSONTyped = CustomPipelineSettingsFromJSONTyped;
|
|
@@ -57,7 +53,7 @@ function CustomPipelineSettingsToJSON(value) {
|
|
|
57
53
|
'repository': value.repository,
|
|
58
54
|
'branch': value.branch,
|
|
59
55
|
'folder': value.folder,
|
|
60
|
-
'lastSync': (value.lastSync.toISOString()),
|
|
56
|
+
'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
|
|
61
57
|
'syncStatus': value.syncStatus,
|
|
62
58
|
'commitHash': value.commitHash,
|
|
63
59
|
};
|
package/dist/models/Executor.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ExecutorToJSON = exports.ExecutorFromJSONTyped = exports.ExecutorFromJSON = exports.Executor = void 0;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* How the workflow is executed
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
package/dist/models/Process.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface Process {
|
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Friendly name for the process
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof Process
|
|
29
29
|
*/
|
|
@@ -33,7 +33,7 @@ export interface Process {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof Process
|
|
35
35
|
*/
|
|
36
|
-
description
|
|
36
|
+
description: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Executor}
|
|
@@ -51,7 +51,7 @@ export interface Process {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof Process
|
|
53
53
|
*/
|
|
54
|
-
fileRequirementsMessage?: string;
|
|
54
|
+
fileRequirementsMessage?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
* IDs of pipelines that can be ran downstream
|
|
57
57
|
* @type {Array<string>}
|
package/dist/models/Process.js
CHANGED
|
@@ -22,6 +22,7 @@ var Executor_1 = require("./Executor");
|
|
|
22
22
|
function instanceOfProcess(value) {
|
|
23
23
|
var isInstance = true;
|
|
24
24
|
isInstance = isInstance && "id" in value;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
25
26
|
return isInstance;
|
|
26
27
|
}
|
|
27
28
|
exports.instanceOfProcess = instanceOfProcess;
|
|
@@ -36,7 +37,7 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'id': json['id'],
|
|
38
39
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
39
|
-
'description':
|
|
40
|
+
'description': json['description'],
|
|
40
41
|
'executor': !(0, runtime_1.exists)(json, 'executor') ? undefined : (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
41
42
|
'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
42
43
|
'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { CustomPipelineSettings } from './CustomPipelineSettings';
|
|
13
13
|
import type { Executor } from './Executor';
|
|
14
|
+
import type { ProcessDetailAllOfPipelineCode } from './ProcessDetailAllOfPipelineCode';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -48,11 +49,11 @@ export interface ProcessDetail {
|
|
|
48
49
|
*/
|
|
49
50
|
documentationUrl: string;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
*
|
|
52
53
|
* @type {string}
|
|
53
54
|
* @memberof ProcessDetail
|
|
54
55
|
*/
|
|
55
|
-
fileRequirementsMessage
|
|
56
|
+
fileRequirementsMessage: string;
|
|
56
57
|
/**
|
|
57
58
|
*
|
|
58
59
|
* @type {Array<string>}
|
|
@@ -77,6 +78,12 @@ export interface ProcessDetail {
|
|
|
77
78
|
* @memberof ProcessDetail
|
|
78
79
|
*/
|
|
79
80
|
linkedProjectIds: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {ProcessDetailAllOfPipelineCode}
|
|
84
|
+
* @memberof ProcessDetail
|
|
85
|
+
*/
|
|
86
|
+
pipelineCode: ProcessDetailAllOfPipelineCode;
|
|
80
87
|
/**
|
|
81
88
|
*
|
|
82
89
|
* @type {CustomPipelineSettings}
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProcessDetailToJSON = exports.ProcessDetailFromJSONTyped = exports.ProcessDetailFromJSON = exports.instanceOfProcessDetail = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
17
|
var CustomPipelineSettings_1 = require("./CustomPipelineSettings");
|
|
19
18
|
var Executor_1 = require("./Executor");
|
|
19
|
+
var ProcessDetailAllOfPipelineCode_1 = require("./ProcessDetailAllOfPipelineCode");
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the ProcessDetail interface.
|
|
22
22
|
*/
|
|
@@ -27,10 +27,12 @@ function instanceOfProcessDetail(value) {
|
|
|
27
27
|
isInstance = isInstance && "description" in value;
|
|
28
28
|
isInstance = isInstance && "executor" in value;
|
|
29
29
|
isInstance = isInstance && "documentationUrl" in value;
|
|
30
|
+
isInstance = isInstance && "fileRequirementsMessage" in value;
|
|
30
31
|
isInstance = isInstance && "childProcessIds" in value;
|
|
31
32
|
isInstance = isInstance && "parentProcessIds" in value;
|
|
32
33
|
isInstance = isInstance && "owner" in value;
|
|
33
34
|
isInstance = isInstance && "linkedProjectIds" in value;
|
|
35
|
+
isInstance = isInstance && "pipelineCode" in value;
|
|
34
36
|
isInstance = isInstance && "customSettings" in value;
|
|
35
37
|
isInstance = isInstance && "isArchived" in value;
|
|
36
38
|
return isInstance;
|
|
@@ -50,11 +52,12 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'description': json['description'],
|
|
51
53
|
'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
|
|
52
54
|
'documentationUrl': json['documentationUrl'],
|
|
53
|
-
'fileRequirementsMessage':
|
|
55
|
+
'fileRequirementsMessage': json['fileRequirementsMessage'],
|
|
54
56
|
'childProcessIds': json['childProcessIds'],
|
|
55
57
|
'parentProcessIds': json['parentProcessIds'],
|
|
56
58
|
'owner': json['owner'],
|
|
57
59
|
'linkedProjectIds': json['linkedProjectIds'],
|
|
60
|
+
'pipelineCode': (0, ProcessDetailAllOfPipelineCode_1.ProcessDetailAllOfPipelineCodeFromJSON)(json['pipelineCode']),
|
|
58
61
|
'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
|
|
59
62
|
'isArchived': json['isArchived'],
|
|
60
63
|
};
|
|
@@ -78,6 +81,7 @@ function ProcessDetailToJSON(value) {
|
|
|
78
81
|
'parentProcessIds': value.parentProcessIds,
|
|
79
82
|
'owner': value.owner,
|
|
80
83
|
'linkedProjectIds': value.linkedProjectIds,
|
|
84
|
+
'pipelineCode': (0, ProcessDetailAllOfPipelineCode_1.ProcessDetailAllOfPipelineCodeToJSON)(value.pipelineCode),
|
|
81
85
|
'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
|
|
82
86
|
'isArchived': value.isArchived,
|
|
83
87
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { RepositoryType } from './RepositoryType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProcessDetailAllOfPipelineCode
|
|
17
|
+
*/
|
|
18
|
+
export interface ProcessDetailAllOfPipelineCode {
|
|
19
|
+
/**
|
|
20
|
+
* GitHub repository which contains the workflow code
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
23
|
+
*/
|
|
24
|
+
repositoryPath: string;
|
|
25
|
+
/**
|
|
26
|
+
* Branch, tag, or commit hash of the pipeline code
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
29
|
+
*/
|
|
30
|
+
version?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RepositoryType}
|
|
34
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
35
|
+
*/
|
|
36
|
+
repositoryType?: RepositoryType;
|
|
37
|
+
/**
|
|
38
|
+
* Main script for running the pipeline
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ProcessDetailAllOfPipelineCode
|
|
41
|
+
*/
|
|
42
|
+
entryPoint?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ProcessDetailAllOfPipelineCode interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfProcessDetailAllOfPipelineCode(value: object): boolean;
|
|
48
|
+
export declare function ProcessDetailAllOfPipelineCodeFromJSON(json: any): ProcessDetailAllOfPipelineCode;
|
|
49
|
+
export declare function ProcessDetailAllOfPipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDetailAllOfPipelineCode;
|
|
50
|
+
export declare function ProcessDetailAllOfPipelineCodeToJSON(value?: ProcessDetailAllOfPipelineCode | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ProcessDetailAllOfPipelineCodeToJSON = exports.ProcessDetailAllOfPipelineCodeFromJSONTyped = exports.ProcessDetailAllOfPipelineCodeFromJSON = exports.instanceOfProcessDetailAllOfPipelineCode = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var RepositoryType_1 = require("./RepositoryType");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ProcessDetailAllOfPipelineCode interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfProcessDetailAllOfPipelineCode(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
isInstance = isInstance && "repositoryPath" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfProcessDetailAllOfPipelineCode = instanceOfProcessDetailAllOfPipelineCode;
|
|
28
|
+
function ProcessDetailAllOfPipelineCodeFromJSON(json) {
|
|
29
|
+
return ProcessDetailAllOfPipelineCodeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ProcessDetailAllOfPipelineCodeFromJSON = ProcessDetailAllOfPipelineCodeFromJSON;
|
|
32
|
+
function ProcessDetailAllOfPipelineCodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'repositoryPath': json['repositoryPath'],
|
|
38
|
+
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
39
|
+
'repositoryType': !(0, runtime_1.exists)(json, 'repositoryType') ? undefined : (0, RepositoryType_1.RepositoryTypeFromJSON)(json['repositoryType']),
|
|
40
|
+
'entryPoint': !(0, runtime_1.exists)(json, 'entryPoint') ? undefined : json['entryPoint'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ProcessDetailAllOfPipelineCodeFromJSONTyped = ProcessDetailAllOfPipelineCodeFromJSONTyped;
|
|
44
|
+
function ProcessDetailAllOfPipelineCodeToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'repositoryPath': value.repositoryPath,
|
|
53
|
+
'version': value.version,
|
|
54
|
+
'repositoryType': (0, RepositoryType_1.RepositoryTypeToJSON)(value.repositoryType),
|
|
55
|
+
'entryPoint': value.entryPoint,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.ProcessDetailAllOfPipelineCodeToJSON = ProcessDetailAllOfPipelineCodeToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ export * from './Contact';
|
|
|
8
8
|
export * from './CreateNotebookInstanceRequest';
|
|
9
9
|
export * from './CreateResponse';
|
|
10
10
|
export * from './CustomPipelineSettings';
|
|
11
|
-
export * from './CustomPipelineSettingsDto1';
|
|
12
|
-
export * from './CustomProcessRequest';
|
|
13
|
-
export * from './CustomProcessRequestPipelineCode';
|
|
14
11
|
export * from './CustomerType';
|
|
15
12
|
export * from './Dashboard';
|
|
16
13
|
export * from './DashboardRequest';
|
|
@@ -38,6 +35,7 @@ export * from './PaginatedResponseSampleDto';
|
|
|
38
35
|
export * from './PipelineCode';
|
|
39
36
|
export * from './Process';
|
|
40
37
|
export * from './ProcessDetail';
|
|
38
|
+
export * from './ProcessDetailAllOfPipelineCode';
|
|
41
39
|
export * from './Project';
|
|
42
40
|
export * from './ProjectDetail';
|
|
43
41
|
export * from './ProjectMetrics';
|
package/dist/models/index.js
CHANGED
|
@@ -26,9 +26,6 @@ __exportStar(require("./Contact"), exports);
|
|
|
26
26
|
__exportStar(require("./CreateNotebookInstanceRequest"), exports);
|
|
27
27
|
__exportStar(require("./CreateResponse"), exports);
|
|
28
28
|
__exportStar(require("./CustomPipelineSettings"), exports);
|
|
29
|
-
__exportStar(require("./CustomPipelineSettingsDto1"), exports);
|
|
30
|
-
__exportStar(require("./CustomProcessRequest"), exports);
|
|
31
|
-
__exportStar(require("./CustomProcessRequestPipelineCode"), exports);
|
|
32
29
|
__exportStar(require("./CustomerType"), exports);
|
|
33
30
|
__exportStar(require("./Dashboard"), exports);
|
|
34
31
|
__exportStar(require("./DashboardRequest"), exports);
|
|
@@ -56,6 +53,7 @@ __exportStar(require("./PaginatedResponseSampleDto"), exports);
|
|
|
56
53
|
__exportStar(require("./PipelineCode"), exports);
|
|
57
54
|
__exportStar(require("./Process"), exports);
|
|
58
55
|
__exportStar(require("./ProcessDetail"), exports);
|
|
56
|
+
__exportStar(require("./ProcessDetailAllOfPipelineCode"), exports);
|
|
59
57
|
__exportStar(require("./Project"), exports);
|
|
60
58
|
__exportStar(require("./ProjectDetail"), exports);
|
|
61
59
|
__exportStar(require("./ProjectMetrics"), exports);
|
package/package.json
CHANGED
package/src/apis/ProcessesApi.ts
CHANGED
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
CreateResponse,
|
|
19
|
-
|
|
20
|
-
CustomProcessRequest,
|
|
19
|
+
CustomPipelineSettings,
|
|
21
20
|
FileRequirements,
|
|
22
21
|
FormSchema,
|
|
23
22
|
Process,
|
|
@@ -27,10 +26,8 @@ import type {
|
|
|
27
26
|
import {
|
|
28
27
|
CreateResponseFromJSON,
|
|
29
28
|
CreateResponseToJSON,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
CustomProcessRequestFromJSON,
|
|
33
|
-
CustomProcessRequestToJSON,
|
|
29
|
+
CustomPipelineSettingsFromJSON,
|
|
30
|
+
CustomPipelineSettingsToJSON,
|
|
34
31
|
FileRequirementsFromJSON,
|
|
35
32
|
FileRequirementsToJSON,
|
|
36
33
|
FormSchemaFromJSON,
|
|
@@ -48,7 +45,7 @@ export interface ArchiveCustomProcessRequest {
|
|
|
48
45
|
}
|
|
49
46
|
|
|
50
47
|
export interface CreateCustomProcessRequest {
|
|
51
|
-
|
|
48
|
+
processDetail: ProcessDetail;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
export interface GetProcessRequest {
|
|
@@ -69,7 +66,7 @@ export interface SyncCustomProcessRequest {
|
|
|
69
66
|
|
|
70
67
|
export interface UpdateCustomProcessRequest {
|
|
71
68
|
processId: string;
|
|
72
|
-
|
|
69
|
+
processDetail: ProcessDetail;
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
export interface ValidateFileRequirementsOperationRequest {
|
|
@@ -126,8 +123,8 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
126
123
|
* Create custom process
|
|
127
124
|
*/
|
|
128
125
|
async createCustomProcessRaw(requestParameters: CreateCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
|
|
129
|
-
if (requestParameters.
|
|
130
|
-
throw new runtime.RequiredError('
|
|
126
|
+
if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
|
|
127
|
+
throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling createCustomProcess.');
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
const queryParameters: any = {};
|
|
@@ -149,7 +146,7 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
149
146
|
method: 'POST',
|
|
150
147
|
headers: headerParameters,
|
|
151
148
|
query: queryParameters,
|
|
152
|
-
body:
|
|
149
|
+
body: ProcessDetailToJSON(requestParameters.processDetail),
|
|
153
150
|
}, initOverrides);
|
|
154
151
|
|
|
155
152
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
|
|
@@ -288,7 +285,7 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
288
285
|
* Updates the process definition from the repository
|
|
289
286
|
* Sync custom process
|
|
290
287
|
*/
|
|
291
|
-
async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
288
|
+
async syncCustomProcessRaw(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomPipelineSettings>> {
|
|
292
289
|
if (requestParameters.processId === null || requestParameters.processId === undefined) {
|
|
293
290
|
throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling syncCustomProcess.');
|
|
294
291
|
}
|
|
@@ -312,14 +309,14 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
312
309
|
query: queryParameters,
|
|
313
310
|
}, initOverrides);
|
|
314
311
|
|
|
315
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
312
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CustomPipelineSettingsFromJSON(jsonValue));
|
|
316
313
|
}
|
|
317
314
|
|
|
318
315
|
/**
|
|
319
316
|
* Updates the process definition from the repository
|
|
320
317
|
* Sync custom process
|
|
321
318
|
*/
|
|
322
|
-
async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
319
|
+
async syncCustomProcess(requestParameters: SyncCustomProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomPipelineSettings> {
|
|
323
320
|
const response = await this.syncCustomProcessRaw(requestParameters, initOverrides);
|
|
324
321
|
return await response.value();
|
|
325
322
|
}
|
|
@@ -333,8 +330,8 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
333
330
|
throw new runtime.RequiredError('processId','Required parameter requestParameters.processId was null or undefined when calling updateCustomProcess.');
|
|
334
331
|
}
|
|
335
332
|
|
|
336
|
-
if (requestParameters.
|
|
337
|
-
throw new runtime.RequiredError('
|
|
333
|
+
if (requestParameters.processDetail === null || requestParameters.processDetail === undefined) {
|
|
334
|
+
throw new runtime.RequiredError('processDetail','Required parameter requestParameters.processDetail was null or undefined when calling updateCustomProcess.');
|
|
338
335
|
}
|
|
339
336
|
|
|
340
337
|
const queryParameters: any = {};
|
|
@@ -356,7 +353,7 @@ export class ProcessesApi extends runtime.BaseAPI {
|
|
|
356
353
|
method: 'PUT',
|
|
357
354
|
headers: headerParameters,
|
|
358
355
|
query: queryParameters,
|
|
359
|
-
body:
|
|
356
|
+
body: ProcessDetailToJSON(requestParameters.processDetail),
|
|
360
357
|
}, initOverrides);
|
|
361
358
|
|
|
362
359
|
return new runtime.VoidApiResponse(response);
|