@cirrobio/api-client 0.2.1 → 0.2.3
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/README.md +1 -1
- package/dist/apis/DatasetsApi.d.ts +6 -6
- package/dist/apis/DatasetsApi.js +6 -6
- package/dist/apis/SharingApi.d.ts +14 -0
- package/dist/apis/SharingApi.js +56 -0
- package/dist/models/CreateNotebookInstanceRequest.d.ts +6 -0
- package/dist/models/CreateNotebookInstanceRequest.js +3 -0
- package/dist/models/DatasetDetail.d.ts +13 -0
- package/dist/models/DatasetDetail.js +7 -0
- package/dist/models/GovernanceContact.d.ts +18 -0
- package/dist/models/GovernanceContact.js +9 -0
- package/dist/models/GovernanceRequirement.d.ts +33 -9
- package/dist/models/GovernanceRequirement.js +23 -6
- package/dist/models/GovernanceType.d.ts +1 -3
- package/dist/models/GovernanceType.js +0 -2
- package/dist/models/NotebookInstance.d.ts +6 -0
- package/dist/models/NotebookInstance.js +3 -0
- package/dist/models/RequirementInput.d.ts +8 -2
- package/dist/models/RequirementInput.js +5 -3
- package/dist/models/Share.d.ts +7 -0
- package/dist/models/Share.js +4 -0
- package/package.json +1 -1
- package/src/apis/DatasetsApi.ts +6 -6
- package/src/apis/SharingApi.ts +48 -0
- package/src/models/CreateNotebookInstanceRequest.ts +8 -0
- package/src/models/DatasetDetail.ts +23 -0
- package/src/models/GovernanceContact.ts +27 -0
- package/src/models/GovernanceRequirement.ts +56 -15
- package/src/models/GovernanceType.ts +1 -3
- package/src/models/NotebookInstance.ts +9 -0
- package/src/models/RequirementInput.ts +13 -5
- package/src/models/Share.ts +15 -0
package/README.md
CHANGED
|
@@ -110,32 +110,32 @@ export declare class DatasetsApi extends runtime.BaseAPI {
|
|
|
110
110
|
*/
|
|
111
111
|
importPublicDataset(requestParameters: ImportPublicDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
|
|
112
112
|
/**
|
|
113
|
-
* Rerun sample ingest
|
|
113
|
+
* Rerun sample ingest.
|
|
114
114
|
* Rerun sample ingest
|
|
115
115
|
*/
|
|
116
116
|
ingestSamplesRaw(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
117
117
|
/**
|
|
118
|
-
* Rerun sample ingest
|
|
118
|
+
* Rerun sample ingest.
|
|
119
119
|
* Rerun sample ingest
|
|
120
120
|
*/
|
|
121
121
|
ingestSamples(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
122
|
/**
|
|
123
|
-
* Regenerate dataset
|
|
123
|
+
* Regenerate dataset file listing.
|
|
124
124
|
* Regenerate dataset manifest
|
|
125
125
|
*/
|
|
126
126
|
regenerateManifestRaw(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
127
127
|
/**
|
|
128
|
-
* Regenerate dataset
|
|
128
|
+
* Regenerate dataset file listing.
|
|
129
129
|
* Regenerate dataset manifest
|
|
130
130
|
*/
|
|
131
131
|
regenerateManifest(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
132
132
|
/**
|
|
133
|
-
* Rerun data transforms
|
|
133
|
+
* Rerun data transforms and web optimization.
|
|
134
134
|
* Rerun data transforms
|
|
135
135
|
*/
|
|
136
136
|
rerunTransformRaw(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
137
137
|
/**
|
|
138
|
-
* Rerun data transforms
|
|
138
|
+
* Rerun data transforms and web optimization.
|
|
139
139
|
* Rerun data transforms
|
|
140
140
|
*/
|
|
141
141
|
rerunTransform(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
package/dist/apis/DatasetsApi.js
CHANGED
|
@@ -375,7 +375,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
/**
|
|
378
|
-
* Rerun sample ingest
|
|
378
|
+
* Rerun sample ingest.
|
|
379
379
|
* Rerun sample ingest
|
|
380
380
|
*/
|
|
381
381
|
DatasetsApi.prototype.ingestSamplesRaw = function (requestParameters, initOverrides) {
|
|
@@ -415,7 +415,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
415
415
|
});
|
|
416
416
|
};
|
|
417
417
|
/**
|
|
418
|
-
* Rerun sample ingest
|
|
418
|
+
* Rerun sample ingest.
|
|
419
419
|
* Rerun sample ingest
|
|
420
420
|
*/
|
|
421
421
|
DatasetsApi.prototype.ingestSamples = function (requestParameters, initOverrides) {
|
|
@@ -431,7 +431,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
/**
|
|
434
|
-
* Regenerate dataset
|
|
434
|
+
* Regenerate dataset file listing.
|
|
435
435
|
* Regenerate dataset manifest
|
|
436
436
|
*/
|
|
437
437
|
DatasetsApi.prototype.regenerateManifestRaw = function (requestParameters, initOverrides) {
|
|
@@ -471,7 +471,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
471
471
|
});
|
|
472
472
|
};
|
|
473
473
|
/**
|
|
474
|
-
* Regenerate dataset
|
|
474
|
+
* Regenerate dataset file listing.
|
|
475
475
|
* Regenerate dataset manifest
|
|
476
476
|
*/
|
|
477
477
|
DatasetsApi.prototype.regenerateManifest = function (requestParameters, initOverrides) {
|
|
@@ -487,7 +487,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
487
487
|
});
|
|
488
488
|
};
|
|
489
489
|
/**
|
|
490
|
-
* Rerun data transforms
|
|
490
|
+
* Rerun data transforms and web optimization.
|
|
491
491
|
* Rerun data transforms
|
|
492
492
|
*/
|
|
493
493
|
DatasetsApi.prototype.rerunTransformRaw = function (requestParameters, initOverrides) {
|
|
@@ -527,7 +527,7 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
527
527
|
});
|
|
528
528
|
};
|
|
529
529
|
/**
|
|
530
|
-
* Rerun data transforms
|
|
530
|
+
* Rerun data transforms and web optimization.
|
|
531
531
|
* Rerun data transforms
|
|
532
532
|
*/
|
|
533
533
|
DatasetsApi.prototype.rerunTransform = function (requestParameters, initOverrides) {
|
|
@@ -39,6 +39,10 @@ export interface SubscribeShareRequest {
|
|
|
39
39
|
projectId: string;
|
|
40
40
|
shareId: string;
|
|
41
41
|
}
|
|
42
|
+
export interface UnsubscribeShareRequest {
|
|
43
|
+
projectId: string;
|
|
44
|
+
shareId: string;
|
|
45
|
+
}
|
|
42
46
|
export interface UpdateShareRequest {
|
|
43
47
|
projectId: string;
|
|
44
48
|
shareId: string;
|
|
@@ -118,6 +122,16 @@ export declare class SharingApi extends runtime.BaseAPI {
|
|
|
118
122
|
* Subscribe to share
|
|
119
123
|
*/
|
|
120
124
|
subscribeShare(requestParameters: SubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Unsubscribe from a share that has been shared with your project
|
|
127
|
+
* Unsubscribe from share
|
|
128
|
+
*/
|
|
129
|
+
unsubscribeShareRaw(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
130
|
+
/**
|
|
131
|
+
* Unsubscribe from a share that has been shared with your project
|
|
132
|
+
* Unsubscribe from share
|
|
133
|
+
*/
|
|
134
|
+
unsubscribeShare(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
121
135
|
/**
|
|
122
136
|
* Update a share that you\'ve published
|
|
123
137
|
* Update share
|
package/dist/apis/SharingApi.js
CHANGED
|
@@ -479,6 +479,62 @@ var SharingApi = /** @class */ (function (_super) {
|
|
|
479
479
|
});
|
|
480
480
|
});
|
|
481
481
|
};
|
|
482
|
+
/**
|
|
483
|
+
* Unsubscribe from a share that has been shared with your project
|
|
484
|
+
* Unsubscribe from share
|
|
485
|
+
*/
|
|
486
|
+
SharingApi.prototype.unsubscribeShareRaw = function (requestParameters, initOverrides) {
|
|
487
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
488
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
489
|
+
return __generator(this, function (_a) {
|
|
490
|
+
switch (_a.label) {
|
|
491
|
+
case 0:
|
|
492
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
493
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling unsubscribeShare.');
|
|
494
|
+
}
|
|
495
|
+
if (requestParameters.shareId === null || requestParameters.shareId === undefined) {
|
|
496
|
+
throw new runtime.RequiredError('shareId', 'Required parameter requestParameters.shareId was null or undefined when calling unsubscribeShare.');
|
|
497
|
+
}
|
|
498
|
+
queryParameters = {};
|
|
499
|
+
headerParameters = {};
|
|
500
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
501
|
+
token = this.configuration.accessToken;
|
|
502
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
503
|
+
case 1:
|
|
504
|
+
tokenString = _a.sent();
|
|
505
|
+
if (tokenString) {
|
|
506
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
507
|
+
}
|
|
508
|
+
_a.label = 2;
|
|
509
|
+
case 2: return [4 /*yield*/, this.request({
|
|
510
|
+
path: "/projects/{projectId}/shares/{shareId}:unsubscribe".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("shareId", "}"), encodeURIComponent(String(requestParameters.shareId))),
|
|
511
|
+
method: 'PUT',
|
|
512
|
+
headers: headerParameters,
|
|
513
|
+
query: queryParameters,
|
|
514
|
+
}, initOverrides)];
|
|
515
|
+
case 3:
|
|
516
|
+
response = _a.sent();
|
|
517
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Unsubscribe from a share that has been shared with your project
|
|
524
|
+
* Unsubscribe from share
|
|
525
|
+
*/
|
|
526
|
+
SharingApi.prototype.unsubscribeShare = function (requestParameters, initOverrides) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0: return [4 /*yield*/, this.unsubscribeShareRaw(requestParameters, initOverrides)];
|
|
531
|
+
case 1:
|
|
532
|
+
_a.sent();
|
|
533
|
+
return [2 /*return*/];
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
};
|
|
482
538
|
/**
|
|
483
539
|
* Update a share that you\'ve published
|
|
484
540
|
* Update share
|
|
@@ -39,6 +39,12 @@ export interface CreateNotebookInstanceRequest {
|
|
|
39
39
|
* @memberof CreateNotebookInstanceRequest
|
|
40
40
|
*/
|
|
41
41
|
volumeSizeGB: number;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the notebook is shared with the project
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CreateNotebookInstanceRequest
|
|
46
|
+
*/
|
|
47
|
+
isSharedWithProject?: boolean;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the CreateNotebookInstanceRequest interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateNotebookInstanceRequestToJSON = exports.CreateNotebookInstanceRequestFromJSONTyped = exports.CreateNotebookInstanceRequestFromJSON = exports.instanceOfCreateNotebookInstanceRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CreateNotebookInstanceRequest interface.
|
|
19
20
|
*/
|
|
@@ -39,6 +40,7 @@ function CreateNotebookInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'instanceType': json['instanceType'],
|
|
40
41
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
41
42
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
43
|
+
'isSharedWithProject': !(0, runtime_1.exists)(json, 'isSharedWithProject') ? undefined : json['isSharedWithProject'],
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
exports.CreateNotebookInstanceRequestFromJSONTyped = CreateNotebookInstanceRequestFromJSONTyped;
|
|
@@ -54,6 +56,7 @@ function CreateNotebookInstanceRequestToJSON(value) {
|
|
|
54
56
|
'instanceType': value.instanceType,
|
|
55
57
|
'acceleratorTypes': value.acceleratorTypes,
|
|
56
58
|
'volumeSizeGB': value.volumeSizeGB,
|
|
59
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
exports.CreateNotebookInstanceRequestToJSON = CreateNotebookInstanceRequestToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { NamedItem } from './NamedItem';
|
|
12
13
|
import type { Status } from './Status';
|
|
13
14
|
import type { Tag } from './Tag';
|
|
14
15
|
/**
|
|
@@ -59,6 +60,12 @@ export interface DatasetDetail {
|
|
|
59
60
|
* @memberof DatasetDetail
|
|
60
61
|
*/
|
|
61
62
|
sourceDatasetIds: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<NamedItem>}
|
|
66
|
+
* @memberof DatasetDetail
|
|
67
|
+
*/
|
|
68
|
+
sourceDatasets: Array<NamedItem>;
|
|
62
69
|
/**
|
|
63
70
|
*
|
|
64
71
|
* @type {Status}
|
|
@@ -93,6 +100,12 @@ export interface DatasetDetail {
|
|
|
93
100
|
info: {
|
|
94
101
|
[key: string]: any;
|
|
95
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {NamedItem}
|
|
106
|
+
* @memberof DatasetDetail
|
|
107
|
+
*/
|
|
108
|
+
share?: NamedItem | null;
|
|
96
109
|
/**
|
|
97
110
|
*
|
|
98
111
|
* @type {string}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.DatasetDetailToJSON = exports.DatasetDetailFromJSONTyped = exports.DatasetDetailFromJSON = exports.instanceOfDatasetDetail = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var NamedItem_1 = require("./NamedItem");
|
|
17
19
|
var Status_1 = require("./Status");
|
|
18
20
|
var Tag_1 = require("./Tag");
|
|
19
21
|
/**
|
|
@@ -28,6 +30,7 @@ function instanceOfDatasetDetail(value) {
|
|
|
28
30
|
isInstance = isInstance && "processId" in value;
|
|
29
31
|
isInstance = isInstance && "projectId" in value;
|
|
30
32
|
isInstance = isInstance && "sourceDatasetIds" in value;
|
|
33
|
+
isInstance = isInstance && "sourceDatasets" in value;
|
|
31
34
|
isInstance = isInstance && "status" in value;
|
|
32
35
|
isInstance = isInstance && "statusMessage" in value;
|
|
33
36
|
isInstance = isInstance && "tags" in value;
|
|
@@ -55,11 +58,13 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
58
|
'processId': json['processId'],
|
|
56
59
|
'projectId': json['projectId'],
|
|
57
60
|
'sourceDatasetIds': json['sourceDatasetIds'],
|
|
61
|
+
'sourceDatasets': (json['sourceDatasets'].map(NamedItem_1.NamedItemFromJSON)),
|
|
58
62
|
'status': (0, Status_1.StatusFromJSON)(json['status']),
|
|
59
63
|
'statusMessage': json['statusMessage'],
|
|
60
64
|
'tags': (json['tags'].map(Tag_1.TagFromJSON)),
|
|
61
65
|
'params': json['params'],
|
|
62
66
|
'info': json['info'],
|
|
67
|
+
'share': !(0, runtime_1.exists)(json, 'share') ? undefined : (0, NamedItem_1.NamedItemFromJSON)(json['share']),
|
|
63
68
|
'createdBy': json['createdBy'],
|
|
64
69
|
'createdAt': (new Date(json['createdAt'])),
|
|
65
70
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -81,11 +86,13 @@ function DatasetDetailToJSON(value) {
|
|
|
81
86
|
'processId': value.processId,
|
|
82
87
|
'projectId': value.projectId,
|
|
83
88
|
'sourceDatasetIds': value.sourceDatasetIds,
|
|
89
|
+
'sourceDatasets': (value.sourceDatasets.map(NamedItem_1.NamedItemToJSON)),
|
|
84
90
|
'status': (0, Status_1.StatusToJSON)(value.status),
|
|
85
91
|
'statusMessage': value.statusMessage,
|
|
86
92
|
'tags': (value.tags.map(Tag_1.TagToJSON)),
|
|
87
93
|
'params': value.params,
|
|
88
94
|
'info': value.info,
|
|
95
|
+
'share': (0, NamedItem_1.NamedItemToJSON)(value.share),
|
|
89
96
|
'createdBy': value.createdBy,
|
|
90
97
|
'createdAt': (value.createdAt.toISOString()),
|
|
91
98
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -51,6 +51,24 @@ export interface GovernanceContact {
|
|
|
51
51
|
* @memberof GovernanceContact
|
|
52
52
|
*/
|
|
53
53
|
email: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GovernanceContact
|
|
58
|
+
*/
|
|
59
|
+
createdBy: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof GovernanceContact
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof GovernanceContact
|
|
70
|
+
*/
|
|
71
|
+
updatedAt: Date;
|
|
54
72
|
}
|
|
55
73
|
/**
|
|
56
74
|
* Check if a given object implements the GovernanceContact interface.
|
|
@@ -25,6 +25,9 @@ function instanceOfGovernanceContact(value) {
|
|
|
25
25
|
isInstance = isInstance && "name" in value;
|
|
26
26
|
isInstance = isInstance && "phone" in value;
|
|
27
27
|
isInstance = isInstance && "email" in value;
|
|
28
|
+
isInstance = isInstance && "createdBy" in value;
|
|
29
|
+
isInstance = isInstance && "createdAt" in value;
|
|
30
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
28
31
|
return isInstance;
|
|
29
32
|
}
|
|
30
33
|
exports.instanceOfGovernanceContact = instanceOfGovernanceContact;
|
|
@@ -43,6 +46,9 @@ function GovernanceContactFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
46
|
'name': json['name'],
|
|
44
47
|
'phone': json['phone'],
|
|
45
48
|
'email': json['email'],
|
|
49
|
+
'createdBy': json['createdBy'],
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
46
52
|
};
|
|
47
53
|
}
|
|
48
54
|
exports.GovernanceContactFromJSONTyped = GovernanceContactFromJSONTyped;
|
|
@@ -60,6 +66,9 @@ function GovernanceContactToJSON(value) {
|
|
|
60
66
|
'name': value.name,
|
|
61
67
|
'phone': value.phone,
|
|
62
68
|
'email': value.email,
|
|
69
|
+
'createdBy': value.createdBy,
|
|
70
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
71
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
63
72
|
};
|
|
64
73
|
}
|
|
65
74
|
exports.GovernanceContactToJSON = GovernanceContactToJSON;
|
|
@@ -31,49 +31,55 @@ export interface GovernanceRequirement {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof GovernanceRequirement
|
|
33
33
|
*/
|
|
34
|
-
name
|
|
34
|
+
name: string;
|
|
35
35
|
/**
|
|
36
36
|
* A brief description of the requirement
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof GovernanceRequirement
|
|
39
39
|
*/
|
|
40
|
-
description
|
|
40
|
+
description: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {GovernanceType}
|
|
44
44
|
* @memberof GovernanceRequirement
|
|
45
45
|
*/
|
|
46
|
-
type
|
|
46
|
+
type: GovernanceType;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* S3 prefix where files for the requirement are saved
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof GovernanceRequirement
|
|
51
51
|
*/
|
|
52
|
-
path
|
|
52
|
+
path: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {GovernanceScope}
|
|
56
56
|
* @memberof GovernanceRequirement
|
|
57
57
|
*/
|
|
58
|
-
scope
|
|
58
|
+
scope: GovernanceScope;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {GovernanceScope}
|
|
62
62
|
* @memberof GovernanceRequirement
|
|
63
63
|
*/
|
|
64
|
-
acceptance?: GovernanceScope;
|
|
64
|
+
acceptance?: GovernanceScope | null;
|
|
65
65
|
/**
|
|
66
|
-
* The IDs of governance contacts assigned
|
|
66
|
+
* The IDs of governance contacts assigned to the requirement.
|
|
67
67
|
* @type {Array<string>}
|
|
68
68
|
* @memberof GovernanceRequirement
|
|
69
69
|
*/
|
|
70
|
-
contactIds
|
|
70
|
+
contactIds: Array<string>;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {GovernanceExpiry}
|
|
74
74
|
* @memberof GovernanceRequirement
|
|
75
75
|
*/
|
|
76
76
|
expiration: GovernanceExpiry;
|
|
77
|
+
/**
|
|
78
|
+
* The date of enactment for a requirement
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof GovernanceRequirement
|
|
81
|
+
*/
|
|
82
|
+
enactmentDate?: Date | null;
|
|
77
83
|
/**
|
|
78
84
|
* Optional files with extra information, e.g. templates for documents, links, etc
|
|
79
85
|
* @type {Array<GovernanceFile>}
|
|
@@ -98,6 +104,24 @@ export interface GovernanceRequirement {
|
|
|
98
104
|
* @memberof GovernanceRequirement
|
|
99
105
|
*/
|
|
100
106
|
verification?: GovernanceTrainingVerification | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof GovernanceRequirement
|
|
111
|
+
*/
|
|
112
|
+
createdBy: string;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {Date}
|
|
116
|
+
* @memberof GovernanceRequirement
|
|
117
|
+
*/
|
|
118
|
+
createdAt: Date;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Date}
|
|
122
|
+
* @memberof GovernanceRequirement
|
|
123
|
+
*/
|
|
124
|
+
updatedAt: Date;
|
|
101
125
|
}
|
|
102
126
|
/**
|
|
103
127
|
* Check if a given object implements the GovernanceRequirement interface.
|
|
@@ -26,7 +26,16 @@ var GovernanceType_1 = require("./GovernanceType");
|
|
|
26
26
|
function instanceOfGovernanceRequirement(value) {
|
|
27
27
|
var isInstance = true;
|
|
28
28
|
isInstance = isInstance && "id" in value;
|
|
29
|
+
isInstance = isInstance && "name" in value;
|
|
30
|
+
isInstance = isInstance && "description" in value;
|
|
31
|
+
isInstance = isInstance && "type" in value;
|
|
32
|
+
isInstance = isInstance && "path" in value;
|
|
33
|
+
isInstance = isInstance && "scope" in value;
|
|
34
|
+
isInstance = isInstance && "contactIds" in value;
|
|
29
35
|
isInstance = isInstance && "expiration" in value;
|
|
36
|
+
isInstance = isInstance && "createdBy" in value;
|
|
37
|
+
isInstance = isInstance && "createdAt" in value;
|
|
38
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
30
39
|
return isInstance;
|
|
31
40
|
}
|
|
32
41
|
exports.instanceOfGovernanceRequirement = instanceOfGovernanceRequirement;
|
|
@@ -40,18 +49,22 @@ function GovernanceRequirementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
49
|
}
|
|
41
50
|
return {
|
|
42
51
|
'id': json['id'],
|
|
43
|
-
'name':
|
|
44
|
-
'description':
|
|
45
|
-
'type':
|
|
46
|
-
'path':
|
|
47
|
-
'scope':
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'description': json['description'],
|
|
54
|
+
'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
|
|
55
|
+
'path': json['path'],
|
|
56
|
+
'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
|
|
48
57
|
'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
|
|
49
|
-
'contactIds':
|
|
58
|
+
'contactIds': json['contactIds'],
|
|
50
59
|
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
|
|
60
|
+
'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
|
|
51
61
|
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
52
62
|
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
53
63
|
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
54
64
|
'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
|
|
65
|
+
'createdBy': json['createdBy'],
|
|
66
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
67
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
55
68
|
};
|
|
56
69
|
}
|
|
57
70
|
exports.GovernanceRequirementFromJSONTyped = GovernanceRequirementFromJSONTyped;
|
|
@@ -72,10 +85,14 @@ function GovernanceRequirementToJSON(value) {
|
|
|
72
85
|
'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
|
|
73
86
|
'contactIds': value.contactIds,
|
|
74
87
|
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
|
|
88
|
+
'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
|
|
75
89
|
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
76
90
|
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
77
91
|
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
|
78
92
|
'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
|
|
93
|
+
'createdBy': value.createdBy,
|
|
94
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
95
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
79
96
|
};
|
|
80
97
|
}
|
|
81
98
|
exports.GovernanceRequirementToJSON = GovernanceRequirementToJSON;
|
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
export declare enum GovernanceType {
|
|
18
18
|
Document = "DOCUMENT",
|
|
19
19
|
Agreement = "AGREEMENT",
|
|
20
|
-
Training = "TRAINING"
|
|
21
|
-
Contact = "CONTACT",
|
|
22
|
-
Classification = "CLASSIFICATION"
|
|
20
|
+
Training = "TRAINING"
|
|
23
21
|
}
|
|
24
22
|
export declare function GovernanceTypeFromJSON(json: any): GovernanceType;
|
|
25
23
|
export declare function GovernanceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceType;
|
|
@@ -24,8 +24,6 @@ var GovernanceType;
|
|
|
24
24
|
GovernanceType["Document"] = "DOCUMENT";
|
|
25
25
|
GovernanceType["Agreement"] = "AGREEMENT";
|
|
26
26
|
GovernanceType["Training"] = "TRAINING";
|
|
27
|
-
GovernanceType["Contact"] = "CONTACT";
|
|
28
|
-
GovernanceType["Classification"] = "CLASSIFICATION";
|
|
29
27
|
})(GovernanceType = exports.GovernanceType || (exports.GovernanceType = {}));
|
|
30
28
|
function GovernanceTypeFromJSON(json) {
|
|
31
29
|
return GovernanceTypeFromJSONTyped(json, false);
|
|
@@ -27,6 +27,7 @@ function instanceOfNotebookInstance(value) {
|
|
|
27
27
|
isInstance = isInstance && "instanceType" in value;
|
|
28
28
|
isInstance = isInstance && "acceleratorTypes" in value;
|
|
29
29
|
isInstance = isInstance && "volumeSizeGB" in value;
|
|
30
|
+
isInstance = isInstance && "isSharedWithProject" in value;
|
|
30
31
|
isInstance = isInstance && "createdBy" in value;
|
|
31
32
|
isInstance = isInstance && "createdAt" in value;
|
|
32
33
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -49,6 +50,7 @@ function NotebookInstanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'instanceType': json['instanceType'],
|
|
50
51
|
'acceleratorTypes': json['acceleratorTypes'],
|
|
51
52
|
'volumeSizeGB': json['volumeSizeGB'],
|
|
53
|
+
'isSharedWithProject': json['isSharedWithProject'],
|
|
52
54
|
'createdBy': json['createdBy'],
|
|
53
55
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
56
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -70,6 +72,7 @@ function NotebookInstanceToJSON(value) {
|
|
|
70
72
|
'instanceType': value.instanceType,
|
|
71
73
|
'acceleratorTypes': value.acceleratorTypes,
|
|
72
74
|
'volumeSizeGB': value.volumeSizeGB,
|
|
75
|
+
'isSharedWithProject': value.isSharedWithProject,
|
|
73
76
|
'createdBy': value.createdBy,
|
|
74
77
|
'createdAt': (value.createdAt.toISOString()),
|
|
75
78
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -49,19 +49,25 @@ export interface RequirementInput {
|
|
|
49
49
|
* @type {GovernanceScope}
|
|
50
50
|
* @memberof RequirementInput
|
|
51
51
|
*/
|
|
52
|
-
acceptance
|
|
52
|
+
acceptance?: GovernanceScope | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {Array<string>}
|
|
56
56
|
* @memberof RequirementInput
|
|
57
57
|
*/
|
|
58
|
-
contactIds
|
|
58
|
+
contactIds: Array<string>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {GovernanceExpiry}
|
|
62
62
|
* @memberof RequirementInput
|
|
63
63
|
*/
|
|
64
64
|
expiration: GovernanceExpiry;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof RequirementInput
|
|
69
|
+
*/
|
|
70
|
+
enactmentDate?: Date | null;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {Array<GovernanceFile>}
|
|
@@ -29,7 +29,7 @@ function instanceOfRequirementInput(value) {
|
|
|
29
29
|
isInstance = isInstance && "description" in value;
|
|
30
30
|
isInstance = isInstance && "type" in value;
|
|
31
31
|
isInstance = isInstance && "scope" in value;
|
|
32
|
-
isInstance = isInstance && "
|
|
32
|
+
isInstance = isInstance && "contactIds" in value;
|
|
33
33
|
isInstance = isInstance && "expiration" in value;
|
|
34
34
|
return isInstance;
|
|
35
35
|
}
|
|
@@ -47,9 +47,10 @@ function RequirementInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'description': json['description'],
|
|
48
48
|
'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
|
|
49
49
|
'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
|
|
50
|
-
'acceptance': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
|
|
51
|
-
'contactIds':
|
|
50
|
+
'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
|
|
51
|
+
'contactIds': json['contactIds'],
|
|
52
52
|
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
|
|
53
|
+
'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
|
|
53
54
|
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
54
55
|
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
55
56
|
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
@@ -72,6 +73,7 @@ function RequirementInputToJSON(value) {
|
|
|
72
73
|
'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
|
|
73
74
|
'contactIds': value.contactIds,
|
|
74
75
|
'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
|
|
76
|
+
'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
|
|
75
77
|
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
76
78
|
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
77
79
|
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
package/dist/models/Share.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DatasetCondition } from './DatasetCondition';
|
|
12
13
|
import type { ShareType } from './ShareType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -46,6 +47,12 @@ export interface Share {
|
|
|
46
47
|
* @memberof Share
|
|
47
48
|
*/
|
|
48
49
|
shareType: ShareType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<DatasetCondition>}
|
|
53
|
+
* @memberof Share
|
|
54
|
+
*/
|
|
55
|
+
conditions: Array<DatasetCondition>;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {Array<string>}
|