@cirrobio/api-client 0.0.6-alpha → 0.0.8-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +1 -1
  3. package/dist/apis/MetricsApi.d.ts +10 -0
  4. package/dist/apis/MetricsApi.js +52 -0
  5. package/dist/apis/ProjectsApi.d.ts +14 -1
  6. package/dist/apis/ProjectsApi.js +55 -0
  7. package/dist/models/BillingMethod.d.ts +6 -6
  8. package/dist/models/BillingMethod.js +7 -5
  9. package/dist/models/BudgetPeriod.d.ts +6 -6
  10. package/dist/models/BudgetPeriod.js +7 -5
  11. package/dist/models/CustomerType.d.ts +7 -7
  12. package/dist/models/CustomerType.js +8 -6
  13. package/dist/models/DatasetType.d.ts +5 -5
  14. package/dist/models/DatasetType.js +6 -4
  15. package/dist/models/Executor.d.ts +6 -6
  16. package/dist/models/Executor.js +7 -5
  17. package/dist/models/MetricRecord.d.ts +45 -0
  18. package/dist/models/MetricRecord.js +56 -0
  19. package/dist/models/ProjectMetrics.d.ts +5 -10
  20. package/dist/models/ProjectMetrics.js +5 -4
  21. package/dist/models/ProjectRequest.d.ts +2 -2
  22. package/dist/models/ProjectRequest.js +2 -2
  23. package/dist/models/ProjectRole.d.ts +7 -7
  24. package/dist/models/ProjectRole.js +8 -6
  25. package/dist/models/ProjectUser.d.ts +62 -0
  26. package/dist/models/ProjectUser.js +66 -0
  27. package/dist/models/Tag.d.ts +6 -0
  28. package/dist/models/Tag.js +3 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/package.json +1 -1
  32. package/src/apis/MetricsApi.ts +36 -0
  33. package/src/apis/ProjectsApi.ts +47 -0
  34. package/src/models/BillingMethod.ts +6 -7
  35. package/src/models/BudgetPeriod.ts +6 -7
  36. package/src/models/CustomerType.ts +7 -8
  37. package/src/models/DatasetType.ts +5 -6
  38. package/src/models/Executor.ts +6 -7
  39. package/src/models/MetricRecord.ts +83 -0
  40. package/src/models/ProjectMetrics.ts +15 -8
  41. package/src/models/ProjectRequest.ts +4 -4
  42. package/src/models/ProjectRole.ts +7 -8
  43. package/src/models/ProjectUser.ts +118 -0
  44. package/src/models/Tag.ts +9 -0
  45. package/src/models/index.ts +2 -0
@@ -0,0 +1,118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { ProjectRole } from './ProjectRole';
17
+ import {
18
+ ProjectRoleFromJSON,
19
+ ProjectRoleFromJSONTyped,
20
+ ProjectRoleToJSON,
21
+ } from './ProjectRole';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ProjectUser
27
+ */
28
+ export interface ProjectUser {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ProjectUser
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ProjectUser
39
+ */
40
+ username: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ProjectUser
45
+ */
46
+ organization: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ProjectUser
51
+ */
52
+ department: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ProjectUser
57
+ */
58
+ email: string;
59
+ /**
60
+ *
61
+ * @type {ProjectRole}
62
+ * @memberof ProjectUser
63
+ */
64
+ role: ProjectRole;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the ProjectUser interface.
69
+ */
70
+ export function instanceOfProjectUser(value: object): boolean {
71
+ let isInstance = true;
72
+ isInstance = isInstance && "name" in value;
73
+ isInstance = isInstance && "username" in value;
74
+ isInstance = isInstance && "organization" in value;
75
+ isInstance = isInstance && "department" in value;
76
+ isInstance = isInstance && "email" in value;
77
+ isInstance = isInstance && "role" in value;
78
+
79
+ return isInstance;
80
+ }
81
+
82
+ export function ProjectUserFromJSON(json: any): ProjectUser {
83
+ return ProjectUserFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectUser {
87
+ if ((json === undefined) || (json === null)) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'name': json['name'],
93
+ 'username': json['username'],
94
+ 'organization': json['organization'],
95
+ 'department': json['department'],
96
+ 'email': json['email'],
97
+ 'role': ProjectRoleFromJSON(json['role']),
98
+ };
99
+ }
100
+
101
+ export function ProjectUserToJSON(value?: ProjectUser | null): any {
102
+ if (value === undefined) {
103
+ return undefined;
104
+ }
105
+ if (value === null) {
106
+ return null;
107
+ }
108
+ return {
109
+
110
+ 'name': value.name,
111
+ 'username': value.username,
112
+ 'organization': value.organization,
113
+ 'department': value.department,
114
+ 'email': value.email,
115
+ 'role': ProjectRoleToJSON(value.role),
116
+ };
117
+ }
118
+
package/src/models/Tag.ts CHANGED
@@ -31,6 +31,12 @@ export interface Tag {
31
31
  * @memberof Tag
32
32
  */
33
33
  value: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof Tag
38
+ */
39
+ editable: boolean;
34
40
  }
35
41
 
36
42
  /**
@@ -40,6 +46,7 @@ export function instanceOfTag(value: object): boolean {
40
46
  let isInstance = true;
41
47
  isInstance = isInstance && "key" in value;
42
48
  isInstance = isInstance && "value" in value;
49
+ isInstance = isInstance && "editable" in value;
43
50
 
44
51
  return isInstance;
45
52
  }
@@ -56,6 +63,7 @@ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
56
63
 
57
64
  'key': json['key'],
58
65
  'value': json['value'],
66
+ 'editable': json['editable'],
59
67
  };
60
68
  }
61
69
 
@@ -70,6 +78,7 @@ export function TagToJSON(value?: Tag | null): any {
70
78
 
71
79
  'key': value.key,
72
80
  'value': value.value,
81
+ 'editable': value.editable,
73
82
  };
74
83
  }
75
84
 
@@ -16,6 +16,7 @@ export * from './Executor';
16
16
  export * from './FormSchema';
17
17
  export * from './GetExecutionLogsResponse';
18
18
  export * from './LogEntry';
19
+ export * from './MetricRecord';
19
20
  export * from './NotebookInstance';
20
21
  export * from './OpenNotebookInstanceResponse';
21
22
  export * from './Process';
@@ -26,6 +27,7 @@ export * from './ProjectMetrics';
26
27
  export * from './ProjectRequest';
27
28
  export * from './ProjectRole';
28
29
  export * from './ProjectSettings';
30
+ export * from './ProjectUser';
29
31
  export * from './Reference';
30
32
  export * from './ReferenceType';
31
33
  export * from './Region';