@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,86 @@
|
|
|
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 { ShareType } from './ShareType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Share
|
|
17
|
+
*/
|
|
18
|
+
export interface Share {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Share
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Share
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Share
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the project that owns the share
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Share
|
|
41
|
+
*/
|
|
42
|
+
originatingProjectId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ShareType}
|
|
46
|
+
* @memberof Share
|
|
47
|
+
*/
|
|
48
|
+
shareType: ShareType;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof Share
|
|
53
|
+
*/
|
|
54
|
+
classificationIds: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof Share
|
|
59
|
+
*/
|
|
60
|
+
keywords: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Share
|
|
65
|
+
*/
|
|
66
|
+
createdBy: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof Share
|
|
71
|
+
*/
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof Share
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: Date;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the Share interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfShare(value: object): boolean;
|
|
84
|
+
export declare function ShareFromJSON(json: any): Share;
|
|
85
|
+
export declare function ShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): Share;
|
|
86
|
+
export declare function ShareToJSON(value?: Share | null): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.ShareToJSON = exports.ShareFromJSONTyped = exports.ShareFromJSON = exports.instanceOfShare = void 0;
|
|
17
|
+
var ShareType_1 = require("./ShareType");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Share interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfShare(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "originatingProjectId" in value;
|
|
27
|
+
isInstance = isInstance && "shareType" in value;
|
|
28
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
29
|
+
isInstance = isInstance && "keywords" in value;
|
|
30
|
+
isInstance = isInstance && "createdBy" in value;
|
|
31
|
+
isInstance = isInstance && "createdAt" in value;
|
|
32
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfShare = instanceOfShare;
|
|
36
|
+
function ShareFromJSON(json) {
|
|
37
|
+
return ShareFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.ShareFromJSON = ShareFromJSON;
|
|
40
|
+
function ShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'description': json['description'],
|
|
48
|
+
'originatingProjectId': json['originatingProjectId'],
|
|
49
|
+
'shareType': (0, ShareType_1.ShareTypeFromJSON)(json['shareType']),
|
|
50
|
+
'classificationIds': json['classificationIds'],
|
|
51
|
+
'keywords': json['keywords'],
|
|
52
|
+
'createdBy': json['createdBy'],
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.ShareFromJSONTyped = ShareFromJSONTyped;
|
|
58
|
+
function ShareToJSON(value) {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value.id,
|
|
67
|
+
'name': value.name,
|
|
68
|
+
'description': value.description,
|
|
69
|
+
'originatingProjectId': value.originatingProjectId,
|
|
70
|
+
'shareType': (0, ShareType_1.ShareTypeToJSON)(value.shareType),
|
|
71
|
+
'classificationIds': value.classificationIds,
|
|
72
|
+
'keywords': value.keywords,
|
|
73
|
+
'createdBy': value.createdBy,
|
|
74
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
75
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.ShareToJSON = ShareToJSON;
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { DatasetCondition } from './DatasetCondition';
|
|
13
|
+
import type { NamedItem } from './NamedItem';
|
|
14
|
+
import type { ShareType } from './ShareType';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ShareDetail
|
|
19
|
+
*/
|
|
20
|
+
export interface ShareDetail {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ShareDetail
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ShareDetail
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ShareDetail
|
|
37
|
+
*/
|
|
38
|
+
description: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {NamedItem}
|
|
42
|
+
* @memberof ShareDetail
|
|
43
|
+
*/
|
|
44
|
+
originatingProject: NamedItem;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {ShareType}
|
|
48
|
+
* @memberof ShareDetail
|
|
49
|
+
*/
|
|
50
|
+
shareType: ShareType;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<NamedItem>}
|
|
54
|
+
* @memberof ShareDetail
|
|
55
|
+
*/
|
|
56
|
+
sharedProjects: Array<NamedItem>;
|
|
57
|
+
/**
|
|
58
|
+
* The conditions under which the dataset is shared
|
|
59
|
+
* @type {Array<DatasetCondition>}
|
|
60
|
+
* @memberof ShareDetail
|
|
61
|
+
*/
|
|
62
|
+
conditions?: Array<DatasetCondition>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<string>}
|
|
66
|
+
* @memberof ShareDetail
|
|
67
|
+
*/
|
|
68
|
+
keywords: Array<string>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof ShareDetail
|
|
73
|
+
*/
|
|
74
|
+
classificationIds: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof ShareDetail
|
|
79
|
+
*/
|
|
80
|
+
isSubscribed: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ShareDetail
|
|
85
|
+
*/
|
|
86
|
+
createdBy: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof ShareDetail
|
|
91
|
+
*/
|
|
92
|
+
createdAt: Date;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof ShareDetail
|
|
97
|
+
*/
|
|
98
|
+
updatedAt: Date;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the ShareDetail interface.
|
|
102
|
+
*/
|
|
103
|
+
export declare function instanceOfShareDetail(value: object): boolean;
|
|
104
|
+
export declare function ShareDetailFromJSON(json: any): ShareDetail;
|
|
105
|
+
export declare function ShareDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareDetail;
|
|
106
|
+
export declare function ShareDetailToJSON(value?: ShareDetail | null): any;
|
|
@@ -0,0 +1,89 @@
|
|
|
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.ShareDetailToJSON = exports.ShareDetailFromJSONTyped = exports.ShareDetailFromJSON = exports.instanceOfShareDetail = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var DatasetCondition_1 = require("./DatasetCondition");
|
|
19
|
+
var NamedItem_1 = require("./NamedItem");
|
|
20
|
+
var ShareType_1 = require("./ShareType");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ShareDetail interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfShareDetail(value) {
|
|
25
|
+
var isInstance = true;
|
|
26
|
+
isInstance = isInstance && "id" in value;
|
|
27
|
+
isInstance = isInstance && "name" in value;
|
|
28
|
+
isInstance = isInstance && "description" in value;
|
|
29
|
+
isInstance = isInstance && "originatingProject" in value;
|
|
30
|
+
isInstance = isInstance && "shareType" in value;
|
|
31
|
+
isInstance = isInstance && "sharedProjects" in value;
|
|
32
|
+
isInstance = isInstance && "keywords" in value;
|
|
33
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
34
|
+
isInstance = isInstance && "isSubscribed" in value;
|
|
35
|
+
isInstance = isInstance && "createdBy" in value;
|
|
36
|
+
isInstance = isInstance && "createdAt" in value;
|
|
37
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
38
|
+
return isInstance;
|
|
39
|
+
}
|
|
40
|
+
exports.instanceOfShareDetail = instanceOfShareDetail;
|
|
41
|
+
function ShareDetailFromJSON(json) {
|
|
42
|
+
return ShareDetailFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
exports.ShareDetailFromJSON = ShareDetailFromJSON;
|
|
45
|
+
function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if ((json === undefined) || (json === null)) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'description': json['description'],
|
|
53
|
+
'originatingProject': (0, NamedItem_1.NamedItemFromJSON)(json['originatingProject']),
|
|
54
|
+
'shareType': (0, ShareType_1.ShareTypeFromJSON)(json['shareType']),
|
|
55
|
+
'sharedProjects': (json['sharedProjects'].map(NamedItem_1.NamedItemFromJSON)),
|
|
56
|
+
'conditions': !(0, runtime_1.exists)(json, 'conditions') ? undefined : (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
|
|
57
|
+
'keywords': json['keywords'],
|
|
58
|
+
'classificationIds': json['classificationIds'],
|
|
59
|
+
'isSubscribed': json['isSubscribed'],
|
|
60
|
+
'createdBy': json['createdBy'],
|
|
61
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
62
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.ShareDetailFromJSONTyped = ShareDetailFromJSONTyped;
|
|
66
|
+
function ShareDetailToJSON(value) {
|
|
67
|
+
if (value === undefined) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
if (value === null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value.id,
|
|
75
|
+
'name': value.name,
|
|
76
|
+
'description': value.description,
|
|
77
|
+
'originatingProject': (0, NamedItem_1.NamedItemToJSON)(value.originatingProject),
|
|
78
|
+
'shareType': (0, ShareType_1.ShareTypeToJSON)(value.shareType),
|
|
79
|
+
'sharedProjects': (value.sharedProjects.map(NamedItem_1.NamedItemToJSON)),
|
|
80
|
+
'conditions': value.conditions === undefined ? undefined : (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
|
|
81
|
+
'keywords': value.keywords,
|
|
82
|
+
'classificationIds': value.classificationIds,
|
|
83
|
+
'isSubscribed': value.isSubscribed,
|
|
84
|
+
'createdBy': value.createdBy,
|
|
85
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
86
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
exports.ShareDetailToJSON = ShareDetailToJSON;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { DatasetCondition } from './DatasetCondition';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ShareInput
|
|
17
|
+
*/
|
|
18
|
+
export interface ShareInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ShareInput
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ShareInput
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
/**
|
|
32
|
+
* Data classification IDs for the share
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof ShareInput
|
|
35
|
+
*/
|
|
36
|
+
classificationIds: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* The conditions under which the dataset is shared
|
|
39
|
+
* @type {Array<DatasetCondition>}
|
|
40
|
+
* @memberof ShareInput
|
|
41
|
+
*/
|
|
42
|
+
conditions: Array<DatasetCondition>;
|
|
43
|
+
/**
|
|
44
|
+
* Search keywords for the share
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof ShareInput
|
|
47
|
+
*/
|
|
48
|
+
keywords?: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The project IDs that can access this share
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof ShareInput
|
|
53
|
+
*/
|
|
54
|
+
sharedProjectIds?: Array<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ShareInput interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfShareInput(value: object): boolean;
|
|
60
|
+
export declare function ShareInputFromJSON(json: any): ShareInput;
|
|
61
|
+
export declare function ShareInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareInput;
|
|
62
|
+
export declare function ShareInputToJSON(value?: ShareInput | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.ShareInputToJSON = exports.ShareInputFromJSONTyped = exports.ShareInputFromJSON = exports.instanceOfShareInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var DatasetCondition_1 = require("./DatasetCondition");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ShareInput interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfShareInput(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
27
|
+
isInstance = isInstance && "conditions" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfShareInput = instanceOfShareInput;
|
|
31
|
+
function ShareInputFromJSON(json) {
|
|
32
|
+
return ShareInputFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ShareInputFromJSON = ShareInputFromJSON;
|
|
35
|
+
function ShareInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'description': json['description'],
|
|
42
|
+
'classificationIds': json['classificationIds'],
|
|
43
|
+
'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
|
|
44
|
+
'keywords': !(0, runtime_1.exists)(json, 'keywords') ? undefined : json['keywords'],
|
|
45
|
+
'sharedProjectIds': !(0, runtime_1.exists)(json, 'sharedProjectIds') ? undefined : json['sharedProjectIds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.ShareInputFromJSONTyped = ShareInputFromJSONTyped;
|
|
49
|
+
function ShareInputToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value.name,
|
|
58
|
+
'description': value.description,
|
|
59
|
+
'classificationIds': value.classificationIds,
|
|
60
|
+
'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
|
|
61
|
+
'keywords': value.keywords,
|
|
62
|
+
'sharedProjectIds': value.sharedProjectIds,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.ShareInputToJSON = ShareInputToJSON;
|
|
@@ -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 ShareType {
|
|
18
|
+
Publisher = "PUBLISHER",
|
|
19
|
+
Subscriber = "SUBSCRIBER",
|
|
20
|
+
Available = "AVAILABLE"
|
|
21
|
+
}
|
|
22
|
+
export declare function ShareTypeFromJSON(json: any): ShareType;
|
|
23
|
+
export declare function ShareTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareType;
|
|
24
|
+
export declare function ShareTypeToJSON(value?: ShareType | 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.ShareTypeToJSON = exports.ShareTypeFromJSONTyped = exports.ShareTypeFromJSON = exports.ShareType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ShareType;
|
|
23
|
+
(function (ShareType) {
|
|
24
|
+
ShareType["Publisher"] = "PUBLISHER";
|
|
25
|
+
ShareType["Subscriber"] = "SUBSCRIBER";
|
|
26
|
+
ShareType["Available"] = "AVAILABLE";
|
|
27
|
+
})(ShareType = exports.ShareType || (exports.ShareType = {}));
|
|
28
|
+
function ShareTypeFromJSON(json) {
|
|
29
|
+
return ShareTypeFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ShareTypeFromJSON = ShareTypeFromJSON;
|
|
32
|
+
function ShareTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.ShareTypeFromJSONTyped = ShareTypeFromJSONTyped;
|
|
36
|
+
function ShareTypeToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.ShareTypeToJSON = ShareTypeToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export * from './Dashboard';
|
|
|
30
30
|
export * from './DashboardRequest';
|
|
31
31
|
export * from './Dataset';
|
|
32
32
|
export * from './DatasetAssetsManifest';
|
|
33
|
+
export * from './DatasetCondition';
|
|
34
|
+
export * from './DatasetConditionField';
|
|
33
35
|
export * from './DatasetDetail';
|
|
34
36
|
export * from './DatasetViz';
|
|
35
37
|
export * from './EnvironmentType';
|
|
@@ -51,6 +53,9 @@ export * from './InviteUserResponse';
|
|
|
51
53
|
export * from './LogEntry';
|
|
52
54
|
export * from './LoginProvider';
|
|
53
55
|
export * from './MetricRecord';
|
|
56
|
+
export * from './MoveDatasetInput';
|
|
57
|
+
export * from './MoveDatasetResponse';
|
|
58
|
+
export * from './NamedItem';
|
|
54
59
|
export * from './NotebookInstance';
|
|
55
60
|
export * from './NotebookInstanceStatusResponse';
|
|
56
61
|
export * from './OpenNotebookInstanceResponse';
|
|
@@ -83,6 +88,10 @@ export * from './SampleRequest';
|
|
|
83
88
|
export * from './ServiceConnection';
|
|
84
89
|
export * from './SetUserProjectRoleRequest';
|
|
85
90
|
export * from './SftpCredentials';
|
|
91
|
+
export * from './Share';
|
|
92
|
+
export * from './ShareDetail';
|
|
93
|
+
export * from './ShareInput';
|
|
94
|
+
export * from './ShareType';
|
|
86
95
|
export * from './Status';
|
|
87
96
|
export * from './StopExecutionResponse';
|
|
88
97
|
export * from './SyncStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -48,6 +48,8 @@ __exportStar(require("./Dashboard"), exports);
|
|
|
48
48
|
__exportStar(require("./DashboardRequest"), exports);
|
|
49
49
|
__exportStar(require("./Dataset"), exports);
|
|
50
50
|
__exportStar(require("./DatasetAssetsManifest"), exports);
|
|
51
|
+
__exportStar(require("./DatasetCondition"), exports);
|
|
52
|
+
__exportStar(require("./DatasetConditionField"), exports);
|
|
51
53
|
__exportStar(require("./DatasetDetail"), exports);
|
|
52
54
|
__exportStar(require("./DatasetViz"), exports);
|
|
53
55
|
__exportStar(require("./EnvironmentType"), exports);
|
|
@@ -69,6 +71,9 @@ __exportStar(require("./InviteUserResponse"), exports);
|
|
|
69
71
|
__exportStar(require("./LogEntry"), exports);
|
|
70
72
|
__exportStar(require("./LoginProvider"), exports);
|
|
71
73
|
__exportStar(require("./MetricRecord"), exports);
|
|
74
|
+
__exportStar(require("./MoveDatasetInput"), exports);
|
|
75
|
+
__exportStar(require("./MoveDatasetResponse"), exports);
|
|
76
|
+
__exportStar(require("./NamedItem"), exports);
|
|
72
77
|
__exportStar(require("./NotebookInstance"), exports);
|
|
73
78
|
__exportStar(require("./NotebookInstanceStatusResponse"), exports);
|
|
74
79
|
__exportStar(require("./OpenNotebookInstanceResponse"), exports);
|
|
@@ -101,6 +106,10 @@ __exportStar(require("./SampleRequest"), exports);
|
|
|
101
106
|
__exportStar(require("./ServiceConnection"), exports);
|
|
102
107
|
__exportStar(require("./SetUserProjectRoleRequest"), exports);
|
|
103
108
|
__exportStar(require("./SftpCredentials"), exports);
|
|
109
|
+
__exportStar(require("./Share"), exports);
|
|
110
|
+
__exportStar(require("./ShareDetail"), exports);
|
|
111
|
+
__exportStar(require("./ShareInput"), exports);
|
|
112
|
+
__exportStar(require("./ShareType"), exports);
|
|
104
113
|
__exportStar(require("./Status"), exports);
|
|
105
114
|
__exportStar(require("./StopExecutionResponse"), exports);
|
|
106
115
|
__exportStar(require("./SyncStatus"), exports);
|