@cirrobio/api-client 0.0.11-alpha → 0.0.13-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 (41) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +1 -1
  3. package/dist/apis/BillingApi.d.ts +3 -3
  4. package/dist/apis/BillingApi.js +6 -6
  5. package/dist/apis/DashboardsApi.d.ts +6 -6
  6. package/dist/apis/DashboardsApi.js +6 -6
  7. package/dist/apis/MetadataApi.d.ts +12 -1
  8. package/dist/apis/MetadataApi.js +53 -0
  9. package/dist/apis/NotebooksApi.d.ts +3 -3
  10. package/dist/apis/NotebooksApi.js +1 -7
  11. package/dist/apis/SystemApi.d.ts +8 -0
  12. package/dist/apis/SystemApi.js +41 -0
  13. package/dist/models/BillingAccountRequest.d.ts +70 -0
  14. package/dist/models/BillingAccountRequest.js +71 -0
  15. package/dist/models/Contact.d.ts +4 -4
  16. package/dist/models/Contact.js +5 -8
  17. package/dist/models/Dashboard.d.ts +8 -0
  18. package/dist/models/Dashboard.js +3 -0
  19. package/dist/models/DashboardRequest.d.ts +53 -0
  20. package/dist/models/DashboardRequest.js +59 -0
  21. package/dist/models/FormSchema.d.ts +1 -1
  22. package/dist/models/NotebookInstanceStatusResponse.d.ts +31 -0
  23. package/dist/models/NotebookInstanceStatusResponse.js +50 -0
  24. package/dist/models/Sample.d.ts +6 -0
  25. package/dist/models/Sample.js +3 -0
  26. package/dist/models/index.d.ts +3 -1
  27. package/dist/models/index.js +3 -1
  28. package/package.json +1 -1
  29. package/src/apis/BillingApi.ts +11 -8
  30. package/src/apis/DashboardsApi.ts +14 -14
  31. package/src/apis/MetadataApi.ts +45 -0
  32. package/src/apis/NotebooksApi.ts +6 -7
  33. package/src/apis/SystemApi.ts +26 -0
  34. package/src/models/BillingAccountRequest.ts +139 -0
  35. package/src/models/Contact.ts +8 -12
  36. package/src/models/Dashboard.ts +9 -0
  37. package/src/models/DashboardRequest.ts +93 -0
  38. package/src/models/FormSchema.ts +1 -1
  39. package/src/models/NotebookInstanceStatusResponse.ts +66 -0
  40. package/src/models/Sample.ts +9 -0
  41. package/src/models/index.ts +3 -1
@@ -0,0 +1,139 @@
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 { BillingMethod } from './BillingMethod';
17
+ import {
18
+ BillingMethodFromJSON,
19
+ BillingMethodFromJSONTyped,
20
+ BillingMethodToJSON,
21
+ } from './BillingMethod';
22
+ import type { Contact } from './Contact';
23
+ import {
24
+ ContactFromJSON,
25
+ ContactFromJSONTyped,
26
+ ContactToJSON,
27
+ } from './Contact';
28
+ import type { CustomerType } from './CustomerType';
29
+ import {
30
+ CustomerTypeFromJSON,
31
+ CustomerTypeFromJSONTyped,
32
+ CustomerTypeToJSON,
33
+ } from './CustomerType';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface BillingAccountRequest
39
+ */
40
+ export interface BillingAccountRequest {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof BillingAccountRequest
45
+ */
46
+ name: string;
47
+ /**
48
+ *
49
+ * @type {Array<Contact>}
50
+ * @memberof BillingAccountRequest
51
+ */
52
+ contacts: Array<Contact>;
53
+ /**
54
+ *
55
+ * @type {CustomerType}
56
+ * @memberof BillingAccountRequest
57
+ */
58
+ customerType: CustomerType;
59
+ /**
60
+ *
61
+ * @type {BillingMethod}
62
+ * @memberof BillingAccountRequest
63
+ */
64
+ billingMethod: BillingMethod;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof BillingAccountRequest
69
+ */
70
+ primaryBudgetNumber: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof BillingAccountRequest
75
+ */
76
+ owner: string;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof BillingAccountRequest
81
+ */
82
+ sharedWith: Array<string>;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the BillingAccountRequest interface.
87
+ */
88
+ export function instanceOfBillingAccountRequest(value: object): boolean {
89
+ let isInstance = true;
90
+ isInstance = isInstance && "name" in value;
91
+ isInstance = isInstance && "contacts" in value;
92
+ isInstance = isInstance && "customerType" in value;
93
+ isInstance = isInstance && "billingMethod" in value;
94
+ isInstance = isInstance && "primaryBudgetNumber" in value;
95
+ isInstance = isInstance && "owner" in value;
96
+ isInstance = isInstance && "sharedWith" in value;
97
+
98
+ return isInstance;
99
+ }
100
+
101
+ export function BillingAccountRequestFromJSON(json: any): BillingAccountRequest {
102
+ return BillingAccountRequestFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function BillingAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccountRequest {
106
+ if ((json === undefined) || (json === null)) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'name': json['name'],
112
+ 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
113
+ 'customerType': CustomerTypeFromJSON(json['customerType']),
114
+ 'billingMethod': BillingMethodFromJSON(json['billingMethod']),
115
+ 'primaryBudgetNumber': json['primaryBudgetNumber'],
116
+ 'owner': json['owner'],
117
+ 'sharedWith': json['sharedWith'],
118
+ };
119
+ }
120
+
121
+ export function BillingAccountRequestToJSON(value?: BillingAccountRequest | null): any {
122
+ if (value === undefined) {
123
+ return undefined;
124
+ }
125
+ if (value === null) {
126
+ return null;
127
+ }
128
+ return {
129
+
130
+ 'name': value.name,
131
+ 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
132
+ 'customerType': CustomerTypeToJSON(value.customerType),
133
+ 'billingMethod': BillingMethodToJSON(value.billingMethod),
134
+ 'primaryBudgetNumber': value.primaryBudgetNumber,
135
+ 'owner': value.owner,
136
+ 'sharedWith': value.sharedWith,
137
+ };
138
+ }
139
+
@@ -24,25 +24,25 @@ export interface Contact {
24
24
  * @type {string}
25
25
  * @memberof Contact
26
26
  */
27
- name: string;
27
+ name?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof Contact
32
32
  */
33
- organization: string;
33
+ organization?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof Contact
38
38
  */
39
- email: string;
39
+ email?: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof Contact
44
44
  */
45
- phone: string;
45
+ phone?: string;
46
46
  }
47
47
 
48
48
  /**
@@ -50,10 +50,6 @@ export interface Contact {
50
50
  */
51
51
  export function instanceOfContact(value: object): boolean {
52
52
  let isInstance = true;
53
- isInstance = isInstance && "name" in value;
54
- isInstance = isInstance && "organization" in value;
55
- isInstance = isInstance && "email" in value;
56
- isInstance = isInstance && "phone" in value;
57
53
 
58
54
  return isInstance;
59
55
  }
@@ -68,10 +64,10 @@ export function ContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
68
64
  }
69
65
  return {
70
66
 
71
- 'name': json['name'],
72
- 'organization': json['organization'],
73
- 'email': json['email'],
74
- 'phone': json['phone'],
67
+ 'name': !exists(json, 'name') ? undefined : json['name'],
68
+ 'organization': !exists(json, 'organization') ? undefined : json['organization'],
69
+ 'email': !exists(json, 'email') ? undefined : json['email'],
70
+ 'phone': !exists(json, 'phone') ? undefined : json['phone'],
75
71
  };
76
72
  }
77
73
 
@@ -43,6 +43,12 @@ export interface Dashboard {
43
43
  * @memberof Dashboard
44
44
  */
45
45
  dashboardData: { [key: string]: any; };
46
+ /**
47
+ *
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof Dashboard
50
+ */
51
+ info: { [key: string]: any; };
46
52
  /**
47
53
  *
48
54
  * @type {string}
@@ -72,6 +78,7 @@ export function instanceOfDashboard(value: object): boolean {
72
78
  isInstance = isInstance && "name" in value;
73
79
  isInstance = isInstance && "description" in value;
74
80
  isInstance = isInstance && "dashboardData" in value;
81
+ isInstance = isInstance && "info" in value;
75
82
  isInstance = isInstance && "createdBy" in value;
76
83
  isInstance = isInstance && "createdAt" in value;
77
84
  isInstance = isInstance && "updatedAt" in value;
@@ -93,6 +100,7 @@ export function DashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean):
93
100
  'name': json['name'],
94
101
  'description': json['description'],
95
102
  'dashboardData': json['dashboardData'],
103
+ 'info': json['info'],
96
104
  'createdBy': json['createdBy'],
97
105
  'createdAt': (new Date(json['createdAt'])),
98
106
  'updatedAt': (new Date(json['updatedAt'])),
@@ -112,6 +120,7 @@ export function DashboardToJSON(value?: Dashboard | null): any {
112
120
  'name': value.name,
113
121
  'description': value.description,
114
122
  'dashboardData': value.dashboardData,
123
+ 'info': value.info,
115
124
  'createdBy': value.createdBy,
116
125
  'createdAt': (value.createdAt.toISOString()),
117
126
  'updatedAt': (value.updatedAt.toISOString()),
@@ -0,0 +1,93 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface DashboardRequest
20
+ */
21
+ export interface DashboardRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DashboardRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof DashboardRequest
32
+ */
33
+ description: string;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: any; }}
37
+ * @memberof DashboardRequest
38
+ */
39
+ dashboardData: { [key: string]: any; };
40
+ /**
41
+ *
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof DashboardRequest
44
+ */
45
+ info: { [key: string]: any; };
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the DashboardRequest interface.
50
+ */
51
+ export function instanceOfDashboardRequest(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "name" in value;
54
+ isInstance = isInstance && "description" in value;
55
+ isInstance = isInstance && "dashboardData" in value;
56
+ isInstance = isInstance && "info" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function DashboardRequestFromJSON(json: any): DashboardRequest {
62
+ return DashboardRequestFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function DashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardRequest {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'name': json['name'],
72
+ 'description': json['description'],
73
+ 'dashboardData': json['dashboardData'],
74
+ 'info': json['info'],
75
+ };
76
+ }
77
+
78
+ export function DashboardRequestToJSON(value?: DashboardRequest | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'name': value.name,
88
+ 'description': value.description,
89
+ 'dashboardData': value.dashboardData,
90
+ 'info': value.info,
91
+ };
92
+ }
93
+
@@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface FormSchema {
22
22
  /**
23
- * JSONSchema representation of the pipeline parameters
23
+ * JSONSchema representation of the parameters
24
24
  * @type {{ [key: string]: any; }}
25
25
  * @memberof FormSchema
26
26
  */
@@ -0,0 +1,66 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface NotebookInstanceStatusResponse
20
+ */
21
+ export interface NotebookInstanceStatusResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof NotebookInstanceStatusResponse
26
+ */
27
+ status: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the NotebookInstanceStatusResponse interface.
32
+ */
33
+ export function instanceOfNotebookInstanceStatusResponse(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "status" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function NotebookInstanceStatusResponseFromJSON(json: any): NotebookInstanceStatusResponse {
41
+ return NotebookInstanceStatusResponseFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function NotebookInstanceStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookInstanceStatusResponse {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'status': json['status'],
51
+ };
52
+ }
53
+
54
+ export function NotebookInstanceStatusResponseToJSON(value?: NotebookInstanceStatusResponse | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'status': value.status,
64
+ };
65
+ }
66
+
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface Sample
20
20
  */
21
21
  export interface Sample {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Sample
26
+ */
27
+ id: string;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -50,6 +56,7 @@ export interface Sample {
50
56
  */
51
57
  export function instanceOfSample(value: object): boolean {
52
58
  let isInstance = true;
59
+ isInstance = isInstance && "id" in value;
53
60
  isInstance = isInstance && "name" in value;
54
61
  isInstance = isInstance && "metadata" in value;
55
62
  isInstance = isInstance && "createdAt" in value;
@@ -68,6 +75,7 @@ export function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sa
68
75
  }
69
76
  return {
70
77
 
78
+ 'id': json['id'],
71
79
  'name': json['name'],
72
80
  'metadata': json['metadata'],
73
81
  'createdAt': (new Date(json['createdAt'])),
@@ -84,6 +92,7 @@ export function SampleToJSON(value?: Sample | null): any {
84
92
  }
85
93
  return {
86
94
 
95
+ 'id': value.id,
87
96
  'name': value.name,
88
97
  'metadata': value.metadata,
89
98
  'createdAt': (value.createdAt.toISOString()),
@@ -1,16 +1,17 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './BillingAccount';
4
+ export * from './BillingAccountRequest';
4
5
  export * from './BillingMethod';
5
6
  export * from './BudgetPeriod';
6
7
  export * from './CloudAccount';
7
8
  export * from './Contact';
8
- export * from './CreateDashboardRequest';
9
9
  export * from './CreateNotebookInstanceRequest';
10
10
  export * from './CreateResponse';
11
11
  export * from './CustomPipelineSettings';
12
12
  export * from './CustomerType';
13
13
  export * from './Dashboard';
14
+ export * from './DashboardRequest';
14
15
  export * from './Dataset';
15
16
  export * from './DatasetDetail';
16
17
  export * from './Executor';
@@ -19,6 +20,7 @@ export * from './GetExecutionLogsResponse';
19
20
  export * from './LogEntry';
20
21
  export * from './MetricRecord';
21
22
  export * from './NotebookInstance';
23
+ export * from './NotebookInstanceStatusResponse';
22
24
  export * from './OpenNotebookInstanceResponse';
23
25
  export * from './PaginatedResponseDatasetListDto';
24
26
  export * from './Process';