@cirrobio/api-client 0.1.22 → 0.1.24
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 +5 -0
- package/README.md +1 -1
- package/dist/apis/GovernanceApi.d.ts +81 -0
- package/dist/apis/GovernanceApi.js +357 -0
- package/dist/apis/ProjectRequestsApi.d.ts +31 -0
- package/dist/apis/ProjectRequestsApi.js +137 -0
- package/dist/apis/ProjectsApi.d.ts +13 -3
- package/dist/apis/ProjectsApi.js +58 -6
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/ClassificationInput.d.ts +37 -0
- package/dist/models/ClassificationInput.js +53 -0
- package/dist/models/GovernanceClassification.d.ts +61 -0
- package/dist/models/GovernanceClassification.js +65 -0
- package/dist/models/ProjectDetail.d.ts +6 -0
- package/dist/models/ProjectDetail.js +3 -0
- package/dist/models/ProjectInput.d.ts +77 -0
- package/dist/models/ProjectInput.js +73 -0
- package/dist/models/ProjectRequest.d.ts +8 -18
- package/dist/models/ProjectRequest.js +12 -18
- package/dist/models/Status.d.ts +2 -1
- package/dist/models/Status.js +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/GovernanceApi.ts +255 -0
- package/src/apis/ProjectRequestsApi.ts +80 -0
- package/src/apis/ProjectsApi.ts +50 -11
- package/src/apis/index.ts +2 -0
- package/src/models/ClassificationInput.ts +75 -0
- package/src/models/GovernanceClassification.ts +111 -0
- package/src/models/ProjectDetail.ts +9 -0
- package/src/models/ProjectInput.ts +151 -0
- package/src/models/ProjectRequest.ts +20 -52
- package/src/models/Status.ts +2 -1
- package/src/models/index.ts +3 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectDetail,
|
|
13
|
+
import type { ApproveProjectAccessRequest, CreateProjectAccessRequest, CreateResponse, Project, ProjectAccessRequest, ProjectCreateOptions, ProjectDetail, ProjectInput, ProjectUser, SetUserProjectRoleRequest, Tag } from '../models/index';
|
|
14
14
|
export interface ApproveAccessRequestRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
accessRequestId: string;
|
|
@@ -24,7 +24,7 @@ export interface CreateAccessRequestRequest {
|
|
|
24
24
|
createProjectAccessRequest: CreateProjectAccessRequest;
|
|
25
25
|
}
|
|
26
26
|
export interface CreateProjectRequest {
|
|
27
|
-
|
|
27
|
+
projectInput: ProjectInput;
|
|
28
28
|
}
|
|
29
29
|
export interface DenyAccessRequestRequest {
|
|
30
30
|
projectId: string;
|
|
@@ -52,7 +52,7 @@ export interface UnarchiveProjectRequest {
|
|
|
52
52
|
}
|
|
53
53
|
export interface UpdateProjectRequest {
|
|
54
54
|
projectId: string;
|
|
55
|
-
|
|
55
|
+
projectInput: ProjectInput;
|
|
56
56
|
}
|
|
57
57
|
export interface UpdateProjectTagsRequest {
|
|
58
58
|
projectId: string;
|
|
@@ -142,6 +142,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
142
142
|
* Get project
|
|
143
143
|
*/
|
|
144
144
|
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectDetail>;
|
|
145
|
+
/**
|
|
146
|
+
* Get allowed options for creating a project
|
|
147
|
+
* Get project create options
|
|
148
|
+
*/
|
|
149
|
+
getProjectCreateOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectCreateOptions>>;
|
|
150
|
+
/**
|
|
151
|
+
* Get allowed options for creating a project
|
|
152
|
+
* Get project create options
|
|
153
|
+
*/
|
|
154
|
+
getProjectCreateOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectCreateOptions>;
|
|
145
155
|
/**
|
|
146
156
|
* Gets users who have access to the project
|
|
147
157
|
* Get project permissions
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -259,8 +259,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
259
259
|
return __generator(this, function (_a) {
|
|
260
260
|
switch (_a.label) {
|
|
261
261
|
case 0:
|
|
262
|
-
if (requestParameters.
|
|
263
|
-
throw new runtime.RequiredError('
|
|
262
|
+
if (requestParameters.projectInput === null || requestParameters.projectInput === undefined) {
|
|
263
|
+
throw new runtime.RequiredError('projectInput', 'Required parameter requestParameters.projectInput was null or undefined when calling createProject.');
|
|
264
264
|
}
|
|
265
265
|
queryParameters = {};
|
|
266
266
|
headerParameters = {};
|
|
@@ -279,7 +279,7 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
279
279
|
method: 'POST',
|
|
280
280
|
headers: headerParameters,
|
|
281
281
|
query: queryParameters,
|
|
282
|
-
body: (0, index_1.
|
|
282
|
+
body: (0, index_1.ProjectInputToJSON)(requestParameters.projectInput),
|
|
283
283
|
}, initOverrides)];
|
|
284
284
|
case 3:
|
|
285
285
|
response = _a.sent();
|
|
@@ -527,6 +527,58 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
527
527
|
});
|
|
528
528
|
});
|
|
529
529
|
};
|
|
530
|
+
/**
|
|
531
|
+
* Get allowed options for creating a project
|
|
532
|
+
* Get project create options
|
|
533
|
+
*/
|
|
534
|
+
ProjectsApi.prototype.getProjectCreateOptionsRaw = function (initOverrides) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
536
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
537
|
+
return __generator(this, function (_a) {
|
|
538
|
+
switch (_a.label) {
|
|
539
|
+
case 0:
|
|
540
|
+
queryParameters = {};
|
|
541
|
+
headerParameters = {};
|
|
542
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
543
|
+
token = this.configuration.accessToken;
|
|
544
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
545
|
+
case 1:
|
|
546
|
+
tokenString = _a.sent();
|
|
547
|
+
if (tokenString) {
|
|
548
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
549
|
+
}
|
|
550
|
+
_a.label = 2;
|
|
551
|
+
case 2: return [4 /*yield*/, this.request({
|
|
552
|
+
path: "/projects",
|
|
553
|
+
method: 'OPTIONS',
|
|
554
|
+
headers: headerParameters,
|
|
555
|
+
query: queryParameters,
|
|
556
|
+
}, initOverrides)];
|
|
557
|
+
case 3:
|
|
558
|
+
response = _a.sent();
|
|
559
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectCreateOptionsFromJSON)(jsonValue); })];
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Get allowed options for creating a project
|
|
566
|
+
* Get project create options
|
|
567
|
+
*/
|
|
568
|
+
ProjectsApi.prototype.getProjectCreateOptions = function (initOverrides) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
570
|
+
var response;
|
|
571
|
+
return __generator(this, function (_a) {
|
|
572
|
+
switch (_a.label) {
|
|
573
|
+
case 0: return [4 /*yield*/, this.getProjectCreateOptionsRaw(initOverrides)];
|
|
574
|
+
case 1:
|
|
575
|
+
response = _a.sent();
|
|
576
|
+
return [4 /*yield*/, response.value()];
|
|
577
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
});
|
|
581
|
+
};
|
|
530
582
|
/**
|
|
531
583
|
* Gets users who have access to the project
|
|
532
584
|
* Get project permissions
|
|
@@ -811,8 +863,8 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
811
863
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
812
864
|
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
|
|
813
865
|
}
|
|
814
|
-
if (requestParameters.
|
|
815
|
-
throw new runtime.RequiredError('
|
|
866
|
+
if (requestParameters.projectInput === null || requestParameters.projectInput === undefined) {
|
|
867
|
+
throw new runtime.RequiredError('projectInput', 'Required parameter requestParameters.projectInput was null or undefined when calling updateProject.');
|
|
816
868
|
}
|
|
817
869
|
queryParameters = {};
|
|
818
870
|
headerParameters = {};
|
|
@@ -831,7 +883,7 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
831
883
|
method: 'PUT',
|
|
832
884
|
headers: headerParameters,
|
|
833
885
|
query: queryParameters,
|
|
834
|
-
body: (0, index_1.
|
|
886
|
+
body: (0, index_1.ProjectInputToJSON)(requestParameters.projectInput),
|
|
835
887
|
}, initOverrides)];
|
|
836
888
|
case 3:
|
|
837
889
|
response = _a.sent();
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,10 +5,12 @@ export * from './DashboardsApi';
|
|
|
5
5
|
export * from './DatasetsApi';
|
|
6
6
|
export * from './ExecutionApi';
|
|
7
7
|
export * from './FileApi';
|
|
8
|
+
export * from './GovernanceApi';
|
|
8
9
|
export * from './MetadataApi';
|
|
9
10
|
export * from './MetricsApi';
|
|
10
11
|
export * from './NotebooksApi';
|
|
11
12
|
export * from './ProcessesApi';
|
|
13
|
+
export * from './ProjectRequestsApi';
|
|
12
14
|
export * from './ProjectsApi';
|
|
13
15
|
export * from './ReferencesApi';
|
|
14
16
|
export * from './SystemApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,10 +23,12 @@ __exportStar(require("./DashboardsApi"), exports);
|
|
|
23
23
|
__exportStar(require("./DatasetsApi"), exports);
|
|
24
24
|
__exportStar(require("./ExecutionApi"), exports);
|
|
25
25
|
__exportStar(require("./FileApi"), exports);
|
|
26
|
+
__exportStar(require("./GovernanceApi"), exports);
|
|
26
27
|
__exportStar(require("./MetadataApi"), exports);
|
|
27
28
|
__exportStar(require("./MetricsApi"), exports);
|
|
28
29
|
__exportStar(require("./NotebooksApi"), exports);
|
|
29
30
|
__exportStar(require("./ProcessesApi"), exports);
|
|
31
|
+
__exportStar(require("./ProjectRequestsApi"), exports);
|
|
30
32
|
__exportStar(require("./ProjectsApi"), exports);
|
|
31
33
|
__exportStar(require("./ReferencesApi"), exports);
|
|
32
34
|
__exportStar(require("./SystemApi"), exports);
|
|
@@ -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 ClassificationInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ClassificationInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ClassificationInput
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ClassificationInput
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ClassificationInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfClassificationInput(value: object): boolean;
|
|
35
|
+
export declare function ClassificationInputFromJSON(json: any): ClassificationInput;
|
|
36
|
+
export declare function ClassificationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassificationInput;
|
|
37
|
+
export declare function ClassificationInputToJSON(value?: ClassificationInput | 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.ClassificationInputToJSON = exports.ClassificationInputFromJSONTyped = exports.ClassificationInputFromJSON = exports.instanceOfClassificationInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ClassificationInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfClassificationInput(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "description" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfClassificationInput = instanceOfClassificationInput;
|
|
27
|
+
function ClassificationInputFromJSON(json) {
|
|
28
|
+
return ClassificationInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ClassificationInputFromJSON = ClassificationInputFromJSON;
|
|
31
|
+
function ClassificationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'description': json['description'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ClassificationInputFromJSONTyped = ClassificationInputFromJSONTyped;
|
|
41
|
+
function ClassificationInputToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value.name,
|
|
50
|
+
'description': value.description,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ClassificationInputToJSON = ClassificationInputToJSON;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 GovernanceClassification
|
|
16
|
+
*/
|
|
17
|
+
export interface GovernanceClassification {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GovernanceClassification
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GovernanceClassification
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GovernanceClassification
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GovernanceClassification
|
|
40
|
+
*/
|
|
41
|
+
createdBy: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof GovernanceClassification
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof GovernanceClassification
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GovernanceClassification interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGovernanceClassification(value: object): boolean;
|
|
59
|
+
export declare function GovernanceClassificationFromJSON(json: any): GovernanceClassification;
|
|
60
|
+
export declare function GovernanceClassificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceClassification;
|
|
61
|
+
export declare function GovernanceClassificationToJSON(value?: GovernanceClassification | 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.GovernanceClassificationToJSON = exports.GovernanceClassificationFromJSONTyped = exports.GovernanceClassificationFromJSON = exports.instanceOfGovernanceClassification = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GovernanceClassification interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfGovernanceClassification(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "description" in value;
|
|
25
|
+
isInstance = isInstance && "createdBy" in value;
|
|
26
|
+
isInstance = isInstance && "createdAt" in value;
|
|
27
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfGovernanceClassification = instanceOfGovernanceClassification;
|
|
31
|
+
function GovernanceClassificationFromJSON(json) {
|
|
32
|
+
return GovernanceClassificationFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.GovernanceClassificationFromJSON = GovernanceClassificationFromJSON;
|
|
35
|
+
function GovernanceClassificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'description': json['description'],
|
|
43
|
+
'createdBy': json['createdBy'],
|
|
44
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
45
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.GovernanceClassificationFromJSONTyped = GovernanceClassificationFromJSONTyped;
|
|
49
|
+
function GovernanceClassificationToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value.id,
|
|
58
|
+
'name': value.name,
|
|
59
|
+
'description': value.description,
|
|
60
|
+
'createdBy': value.createdBy,
|
|
61
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
62
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.GovernanceClassificationToJSON = GovernanceClassificationToJSON;
|
|
@@ -34,6 +34,7 @@ function instanceOfProjectDetail(value) {
|
|
|
34
34
|
isInstance = isInstance && "settings" in value;
|
|
35
35
|
isInstance = isInstance && "statusMessage" in value;
|
|
36
36
|
isInstance = isInstance && "tags" in value;
|
|
37
|
+
isInstance = isInstance && "classificationIds" in value;
|
|
37
38
|
isInstance = isInstance && "createdBy" in value;
|
|
38
39
|
isInstance = isInstance && "createdAt" in value;
|
|
39
40
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -59,6 +60,7 @@ function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'account': !(0, runtime_1.exists)(json, 'account') ? undefined : (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
|
|
60
61
|
'statusMessage': json['statusMessage'],
|
|
61
62
|
'tags': (json['tags'].map(Tag_1.TagFromJSON)),
|
|
63
|
+
'classificationIds': json['classificationIds'],
|
|
62
64
|
'createdBy': json['createdBy'],
|
|
63
65
|
'createdAt': (new Date(json['createdAt'])),
|
|
64
66
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -83,6 +85,7 @@ function ProjectDetailToJSON(value) {
|
|
|
83
85
|
'account': (0, CloudAccount_1.CloudAccountToJSON)(value.account),
|
|
84
86
|
'statusMessage': value.statusMessage,
|
|
85
87
|
'tags': (value.tags.map(Tag_1.TagToJSON)),
|
|
88
|
+
'classificationIds': value.classificationIds,
|
|
86
89
|
'createdBy': value.createdBy,
|
|
87
90
|
'createdAt': (value.createdAt.toISOString()),
|
|
88
91
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { CloudAccount } from './CloudAccount';
|
|
13
|
+
import type { Contact } from './Contact';
|
|
14
|
+
import type { ProjectSettings } from './ProjectSettings';
|
|
15
|
+
import type { Tag } from './Tag';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProjectInput
|
|
20
|
+
*/
|
|
21
|
+
export interface ProjectInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProjectInput
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProjectInput
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProjectInput
|
|
38
|
+
*/
|
|
39
|
+
billingAccountId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {ProjectSettings}
|
|
43
|
+
* @memberof ProjectInput
|
|
44
|
+
*/
|
|
45
|
+
settings: ProjectSettings;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<Contact>}
|
|
49
|
+
* @memberof ProjectInput
|
|
50
|
+
*/
|
|
51
|
+
contacts: Array<Contact>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {CloudAccount}
|
|
55
|
+
* @memberof ProjectInput
|
|
56
|
+
*/
|
|
57
|
+
account?: CloudAccount | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof ProjectInput
|
|
62
|
+
*/
|
|
63
|
+
classificationIds?: Array<string> | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<Tag>}
|
|
67
|
+
* @memberof ProjectInput
|
|
68
|
+
*/
|
|
69
|
+
tags?: Array<Tag> | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the ProjectInput interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfProjectInput(value: object): boolean;
|
|
75
|
+
export declare function ProjectInputFromJSON(json: any): ProjectInput;
|
|
76
|
+
export declare function ProjectInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInput;
|
|
77
|
+
export declare function ProjectInputToJSON(value?: ProjectInput | null): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.ProjectInputToJSON = exports.ProjectInputFromJSONTyped = exports.ProjectInputFromJSON = exports.instanceOfProjectInput = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CloudAccount_1 = require("./CloudAccount");
|
|
19
|
+
var Contact_1 = require("./Contact");
|
|
20
|
+
var ProjectSettings_1 = require("./ProjectSettings");
|
|
21
|
+
var Tag_1 = require("./Tag");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProjectInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProjectInput(value) {
|
|
26
|
+
var isInstance = true;
|
|
27
|
+
isInstance = isInstance && "name" in value;
|
|
28
|
+
isInstance = isInstance && "description" in value;
|
|
29
|
+
isInstance = isInstance && "billingAccountId" in value;
|
|
30
|
+
isInstance = isInstance && "settings" in value;
|
|
31
|
+
isInstance = isInstance && "contacts" in value;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfProjectInput = instanceOfProjectInput;
|
|
35
|
+
function ProjectInputFromJSON(json) {
|
|
36
|
+
return ProjectInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.ProjectInputFromJSON = ProjectInputFromJSON;
|
|
39
|
+
function ProjectInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'description': json['description'],
|
|
46
|
+
'billingAccountId': json['billingAccountId'],
|
|
47
|
+
'settings': (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
|
|
48
|
+
'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
|
|
49
|
+
'account': !(0, runtime_1.exists)(json, 'account') ? undefined : (0, CloudAccount_1.CloudAccountFromJSON)(json['account']),
|
|
50
|
+
'classificationIds': !(0, runtime_1.exists)(json, 'classificationIds') ? undefined : json['classificationIds'],
|
|
51
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : (json['tags'] === null ? null : json['tags'].map(Tag_1.TagFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ProjectInputFromJSONTyped = ProjectInputFromJSONTyped;
|
|
55
|
+
function ProjectInputToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value.name,
|
|
64
|
+
'description': value.description,
|
|
65
|
+
'billingAccountId': value.billingAccountId,
|
|
66
|
+
'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value.settings),
|
|
67
|
+
'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
|
|
68
|
+
'account': (0, CloudAccount_1.CloudAccountToJSON)(value.account),
|
|
69
|
+
'classificationIds': value.classificationIds,
|
|
70
|
+
'tags': value.tags === undefined ? undefined : (value.tags === null ? null : value.tags.map(Tag_1.TagToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.ProjectInputToJSON = ProjectInputToJSON;
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { CloudAccount } from './CloudAccount';
|
|
13
|
-
import type { Contact } from './Contact';
|
|
14
|
-
import type { ProjectSettings } from './ProjectSettings';
|
|
15
|
-
import type { Tag } from './Tag';
|
|
16
12
|
/**
|
|
17
13
|
*
|
|
18
14
|
* @export
|
|
@@ -33,34 +29,28 @@ export interface ProjectRequest {
|
|
|
33
29
|
description: string;
|
|
34
30
|
/**
|
|
35
31
|
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ProjectRequest
|
|
38
|
-
*/
|
|
39
|
-
billingAccountId: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {ProjectSettings}
|
|
32
|
+
* @type {Array<string>}
|
|
43
33
|
* @memberof ProjectRequest
|
|
44
34
|
*/
|
|
45
|
-
|
|
35
|
+
classificationIds: Array<string>;
|
|
46
36
|
/**
|
|
47
37
|
*
|
|
48
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
49
39
|
* @memberof ProjectRequest
|
|
50
40
|
*/
|
|
51
|
-
|
|
41
|
+
billingInfo: string;
|
|
52
42
|
/**
|
|
53
43
|
*
|
|
54
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
55
45
|
* @memberof ProjectRequest
|
|
56
46
|
*/
|
|
57
|
-
|
|
47
|
+
adminUsername: string;
|
|
58
48
|
/**
|
|
59
49
|
*
|
|
60
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
61
51
|
* @memberof ProjectRequest
|
|
62
52
|
*/
|
|
63
|
-
|
|
53
|
+
message: string;
|
|
64
54
|
}
|
|
65
55
|
/**
|
|
66
56
|
* Check if a given object implements the ProjectRequest interface.
|