@cirrobio/api-client 0.1.30 → 0.2.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/.openapi-generator/FILES +11 -0
- package/README.md +1 -1
- package/dist/apis/SharingApi.d.ts +129 -0
- package/dist/apis/SharingApi.js +539 -0
- package/dist/apis/ToolsApi.d.ts +31 -0
- package/dist/apis/ToolsApi.js +137 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/DatasetCondition.d.ts +38 -0
- package/dist/models/DatasetCondition.js +54 -0
- package/dist/models/DatasetConditionField.d.ts +24 -0
- package/dist/models/DatasetConditionField.js +39 -0
- package/dist/models/MoveDatasetInput.d.ts +43 -0
- package/dist/models/MoveDatasetInput.js +56 -0
- package/dist/models/MoveDatasetResponse.d.ts +43 -0
- package/dist/models/MoveDatasetResponse.js +56 -0
- package/dist/models/NamedItem.d.ts +37 -0
- package/dist/models/NamedItem.js +53 -0
- package/dist/models/ProjectSettings.d.ts +6 -0
- package/dist/models/ProjectSettings.js +2 -0
- package/dist/models/Share.d.ts +86 -0
- package/dist/models/Share.js +78 -0
- package/dist/models/ShareDetail.d.ts +106 -0
- package/dist/models/ShareDetail.js +89 -0
- package/dist/models/ShareInput.d.ts +62 -0
- package/dist/models/ShareInput.js +65 -0
- package/dist/models/ShareType.d.ts +24 -0
- package/dist/models/ShareType.js +39 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/SharingApi.ts +432 -0
- package/src/apis/ToolsApi.ts +80 -0
- package/src/apis/index.ts +2 -0
- package/src/models/DatasetCondition.ts +82 -0
- package/src/models/DatasetConditionField.ts +38 -0
- package/src/models/MoveDatasetInput.ts +84 -0
- package/src/models/MoveDatasetResponse.ts +84 -0
- package/src/models/NamedItem.ts +75 -0
- package/src/models/ProjectSettings.ts +8 -0
- package/src/models/Share.ts +154 -0
- package/src/models/ShareDetail.ts +192 -0
- package/src/models/ShareInput.ts +116 -0
- package/src/models/ShareType.ts +38 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ToolsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ToolsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ToolsApi, _super);
|
|
75
|
+
function ToolsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
|
|
80
|
+
* Move a dataset to a different project
|
|
81
|
+
*/
|
|
82
|
+
ToolsApi.prototype.moveDatasetRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.moveDatasetInput === null || requestParameters.moveDatasetInput === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('moveDatasetInput', 'Required parameter requestParameters.moveDatasetInput was null or undefined when calling moveDataset.');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
95
|
+
token = this.configuration.accessToken;
|
|
96
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
97
|
+
case 1:
|
|
98
|
+
tokenString = _a.sent();
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
101
|
+
}
|
|
102
|
+
_a.label = 2;
|
|
103
|
+
case 2: return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/tools/move-dataset",
|
|
105
|
+
method: 'PUT',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: (0, index_1.MoveDatasetInputToJSON)(requestParameters.moveDatasetInput),
|
|
109
|
+
}, initOverrides)];
|
|
110
|
+
case 3:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MoveDatasetResponseFromJSON)(jsonValue); })];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Moves a dataset to a different project. The underlying S3 data is not transferred and will need to be done manually. It is expected the user will also transfer all datasets in the lineage.
|
|
119
|
+
* Move a dataset to a different project
|
|
120
|
+
*/
|
|
121
|
+
ToolsApi.prototype.moveDataset = function (requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
var response;
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4 /*yield*/, this.moveDatasetRaw(requestParameters, initOverrides)];
|
|
127
|
+
case 1:
|
|
128
|
+
response = _a.sent();
|
|
129
|
+
return [4 /*yield*/, response.value()];
|
|
130
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
return ToolsApi;
|
|
136
|
+
}(runtime.BaseAPI));
|
|
137
|
+
exports.ToolsApi = ToolsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -13,5 +13,7 @@ export * from './ProcessesApi';
|
|
|
13
13
|
export * from './ProjectRequestsApi';
|
|
14
14
|
export * from './ProjectsApi';
|
|
15
15
|
export * from './ReferencesApi';
|
|
16
|
+
export * from './SharingApi';
|
|
16
17
|
export * from './SystemApi';
|
|
18
|
+
export * from './ToolsApi';
|
|
17
19
|
export * from './UsersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -31,5 +31,7 @@ __exportStar(require("./ProcessesApi"), exports);
|
|
|
31
31
|
__exportStar(require("./ProjectRequestsApi"), exports);
|
|
32
32
|
__exportStar(require("./ProjectsApi"), exports);
|
|
33
33
|
__exportStar(require("./ReferencesApi"), exports);
|
|
34
|
+
__exportStar(require("./SharingApi"), exports);
|
|
34
35
|
__exportStar(require("./SystemApi"), exports);
|
|
36
|
+
__exportStar(require("./ToolsApi"), exports);
|
|
35
37
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { DatasetConditionField } from './DatasetConditionField';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DatasetCondition
|
|
17
|
+
*/
|
|
18
|
+
export interface DatasetCondition {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {DatasetConditionField}
|
|
22
|
+
* @memberof DatasetCondition
|
|
23
|
+
*/
|
|
24
|
+
field: DatasetConditionField;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DatasetCondition
|
|
29
|
+
*/
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DatasetCondition interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDatasetCondition(value: object): boolean;
|
|
36
|
+
export declare function DatasetConditionFromJSON(json: any): DatasetCondition;
|
|
37
|
+
export declare function DatasetConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetCondition;
|
|
38
|
+
export declare function DatasetConditionToJSON(value?: DatasetCondition | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.DatasetConditionToJSON = exports.DatasetConditionFromJSONTyped = exports.DatasetConditionFromJSON = exports.instanceOfDatasetCondition = void 0;
|
|
17
|
+
var DatasetConditionField_1 = require("./DatasetConditionField");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the DatasetCondition interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDatasetCondition(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "field" in value;
|
|
24
|
+
isInstance = isInstance && "value" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfDatasetCondition = instanceOfDatasetCondition;
|
|
28
|
+
function DatasetConditionFromJSON(json) {
|
|
29
|
+
return DatasetConditionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DatasetConditionFromJSON = DatasetConditionFromJSON;
|
|
32
|
+
function DatasetConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'field': (0, DatasetConditionField_1.DatasetConditionFieldFromJSON)(json['field']),
|
|
38
|
+
'value': json['value'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.DatasetConditionFromJSONTyped = DatasetConditionFromJSONTyped;
|
|
42
|
+
function DatasetConditionToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'field': (0, DatasetConditionField_1.DatasetConditionFieldToJSON)(value.field),
|
|
51
|
+
'value': value.value,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.DatasetConditionToJSON = DatasetConditionToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum DatasetConditionField {
|
|
18
|
+
DatasetId = "DATASET_ID",
|
|
19
|
+
Tag = "TAG",
|
|
20
|
+
ProcessId = "PROCESS_ID"
|
|
21
|
+
}
|
|
22
|
+
export declare function DatasetConditionFieldFromJSON(json: any): DatasetConditionField;
|
|
23
|
+
export declare function DatasetConditionFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetConditionField;
|
|
24
|
+
export declare function DatasetConditionFieldToJSON(value?: DatasetConditionField | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.DatasetConditionFieldToJSON = exports.DatasetConditionFieldFromJSONTyped = exports.DatasetConditionFieldFromJSON = exports.DatasetConditionField = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var DatasetConditionField;
|
|
23
|
+
(function (DatasetConditionField) {
|
|
24
|
+
DatasetConditionField["DatasetId"] = "DATASET_ID";
|
|
25
|
+
DatasetConditionField["Tag"] = "TAG";
|
|
26
|
+
DatasetConditionField["ProcessId"] = "PROCESS_ID";
|
|
27
|
+
})(DatasetConditionField = exports.DatasetConditionField || (exports.DatasetConditionField = {}));
|
|
28
|
+
function DatasetConditionFieldFromJSON(json) {
|
|
29
|
+
return DatasetConditionFieldFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DatasetConditionFieldFromJSON = DatasetConditionFieldFromJSON;
|
|
32
|
+
function DatasetConditionFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.DatasetConditionFieldFromJSONTyped = DatasetConditionFieldFromJSONTyped;
|
|
36
|
+
function DatasetConditionFieldToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.DatasetConditionFieldToJSON = DatasetConditionFieldToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 MoveDatasetInput
|
|
16
|
+
*/
|
|
17
|
+
export interface MoveDatasetInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MoveDatasetInput
|
|
22
|
+
*/
|
|
23
|
+
datasetId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MoveDatasetInput
|
|
28
|
+
*/
|
|
29
|
+
sourceProjectId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MoveDatasetInput
|
|
34
|
+
*/
|
|
35
|
+
targetProjectId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the MoveDatasetInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfMoveDatasetInput(value: object): boolean;
|
|
41
|
+
export declare function MoveDatasetInputFromJSON(json: any): MoveDatasetInput;
|
|
42
|
+
export declare function MoveDatasetInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveDatasetInput;
|
|
43
|
+
export declare function MoveDatasetInputToJSON(value?: MoveDatasetInput | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.MoveDatasetInputToJSON = exports.MoveDatasetInputFromJSONTyped = exports.MoveDatasetInputFromJSON = exports.instanceOfMoveDatasetInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MoveDatasetInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMoveDatasetInput(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "datasetId" in value;
|
|
23
|
+
isInstance = isInstance && "sourceProjectId" in value;
|
|
24
|
+
isInstance = isInstance && "targetProjectId" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfMoveDatasetInput = instanceOfMoveDatasetInput;
|
|
28
|
+
function MoveDatasetInputFromJSON(json) {
|
|
29
|
+
return MoveDatasetInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.MoveDatasetInputFromJSON = MoveDatasetInputFromJSON;
|
|
32
|
+
function MoveDatasetInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'datasetId': json['datasetId'],
|
|
38
|
+
'sourceProjectId': json['sourceProjectId'],
|
|
39
|
+
'targetProjectId': json['targetProjectId'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.MoveDatasetInputFromJSONTyped = MoveDatasetInputFromJSONTyped;
|
|
43
|
+
function MoveDatasetInputToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'datasetId': value.datasetId,
|
|
52
|
+
'sourceProjectId': value.sourceProjectId,
|
|
53
|
+
'targetProjectId': value.targetProjectId,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.MoveDatasetInputToJSON = MoveDatasetInputToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 MoveDatasetResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface MoveDatasetResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MoveDatasetResponse
|
|
22
|
+
*/
|
|
23
|
+
s3CopyCommand: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MoveDatasetResponse
|
|
28
|
+
*/
|
|
29
|
+
s3DeleteCommand: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof MoveDatasetResponse
|
|
34
|
+
*/
|
|
35
|
+
samplesNotMoved: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the MoveDatasetResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfMoveDatasetResponse(value: object): boolean;
|
|
41
|
+
export declare function MoveDatasetResponseFromJSON(json: any): MoveDatasetResponse;
|
|
42
|
+
export declare function MoveDatasetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveDatasetResponse;
|
|
43
|
+
export declare function MoveDatasetResponseToJSON(value?: MoveDatasetResponse | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.MoveDatasetResponseToJSON = exports.MoveDatasetResponseFromJSONTyped = exports.MoveDatasetResponseFromJSON = exports.instanceOfMoveDatasetResponse = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MoveDatasetResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMoveDatasetResponse(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "s3CopyCommand" in value;
|
|
23
|
+
isInstance = isInstance && "s3DeleteCommand" in value;
|
|
24
|
+
isInstance = isInstance && "samplesNotMoved" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfMoveDatasetResponse = instanceOfMoveDatasetResponse;
|
|
28
|
+
function MoveDatasetResponseFromJSON(json) {
|
|
29
|
+
return MoveDatasetResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.MoveDatasetResponseFromJSON = MoveDatasetResponseFromJSON;
|
|
32
|
+
function MoveDatasetResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
's3CopyCommand': json['s3CopyCommand'],
|
|
38
|
+
's3DeleteCommand': json['s3DeleteCommand'],
|
|
39
|
+
'samplesNotMoved': json['samplesNotMoved'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.MoveDatasetResponseFromJSONTyped = MoveDatasetResponseFromJSONTyped;
|
|
43
|
+
function MoveDatasetResponseToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
's3CopyCommand': value.s3CopyCommand,
|
|
52
|
+
's3DeleteCommand': value.s3DeleteCommand,
|
|
53
|
+
'samplesNotMoved': value.samplesNotMoved,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.MoveDatasetResponseToJSON = MoveDatasetResponseToJSON;
|
|
@@ -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 NamedItem
|
|
16
|
+
*/
|
|
17
|
+
export interface NamedItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NamedItem
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NamedItem
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the NamedItem interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfNamedItem(value: object): boolean;
|
|
35
|
+
export declare function NamedItemFromJSON(json: any): NamedItem;
|
|
36
|
+
export declare function NamedItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): NamedItem;
|
|
37
|
+
export declare function NamedItemToJSON(value?: NamedItem | 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.NamedItemToJSON = exports.NamedItemFromJSONTyped = exports.NamedItemFromJSON = exports.instanceOfNamedItem = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the NamedItem interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfNamedItem(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNamedItem = instanceOfNamedItem;
|
|
27
|
+
function NamedItemFromJSON(json) {
|
|
28
|
+
return NamedItemFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NamedItemFromJSON = NamedItemFromJSON;
|
|
31
|
+
function NamedItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.NamedItemFromJSONTyped = NamedItemFromJSONTyped;
|
|
41
|
+
function NamedItemToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value.id,
|
|
50
|
+
'name': value.name,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.NamedItemToJSON = NamedItemToJSON;
|
|
@@ -118,6 +118,12 @@ export interface ProjectSettings {
|
|
|
118
118
|
* @memberof ProjectSettings
|
|
119
119
|
*/
|
|
120
120
|
isDiscoverable?: boolean | null;
|
|
121
|
+
/**
|
|
122
|
+
* Enables the project to be shared with other projects
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof ProjectSettings
|
|
125
|
+
*/
|
|
126
|
+
isShareable?: boolean | null;
|
|
121
127
|
}
|
|
122
128
|
/**
|
|
123
129
|
* Check if a given object implements the ProjectSettings interface.
|
|
@@ -52,6 +52,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'sagemakerSubnets': !(0, runtime_1.exists)(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
|
|
53
53
|
'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
|
|
54
54
|
'isDiscoverable': !(0, runtime_1.exists)(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
|
|
55
|
+
'isShareable': !(0, runtime_1.exists)(json, 'isShareable') ? undefined : json['isShareable'],
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
58
|
exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
|
|
@@ -80,6 +81,7 @@ function ProjectSettingsToJSON(value) {
|
|
|
80
81
|
'sagemakerSubnets': value.sagemakerSubnets,
|
|
81
82
|
'kmsArn': value.kmsArn,
|
|
82
83
|
'isDiscoverable': value.isDiscoverable,
|
|
84
|
+
'isShareable': value.isShareable,
|
|
83
85
|
};
|
|
84
86
|
}
|
|
85
87
|
exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
|