@cirrobio/api-client 0.1.23 → 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.
@@ -0,0 +1,151 @@
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 { CloudAccount } from './CloudAccount';
17
+ import {
18
+ CloudAccountFromJSON,
19
+ CloudAccountFromJSONTyped,
20
+ CloudAccountToJSON,
21
+ } from './CloudAccount';
22
+ import type { Contact } from './Contact';
23
+ import {
24
+ ContactFromJSON,
25
+ ContactFromJSONTyped,
26
+ ContactToJSON,
27
+ } from './Contact';
28
+ import type { ProjectSettings } from './ProjectSettings';
29
+ import {
30
+ ProjectSettingsFromJSON,
31
+ ProjectSettingsFromJSONTyped,
32
+ ProjectSettingsToJSON,
33
+ } from './ProjectSettings';
34
+ import type { Tag } from './Tag';
35
+ import {
36
+ TagFromJSON,
37
+ TagFromJSONTyped,
38
+ TagToJSON,
39
+ } from './Tag';
40
+
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface ProjectInput
45
+ */
46
+ export interface ProjectInput {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ProjectInput
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ProjectInput
57
+ */
58
+ description: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ProjectInput
63
+ */
64
+ billingAccountId: string;
65
+ /**
66
+ *
67
+ * @type {ProjectSettings}
68
+ * @memberof ProjectInput
69
+ */
70
+ settings: ProjectSettings;
71
+ /**
72
+ *
73
+ * @type {Array<Contact>}
74
+ * @memberof ProjectInput
75
+ */
76
+ contacts: Array<Contact>;
77
+ /**
78
+ *
79
+ * @type {CloudAccount}
80
+ * @memberof ProjectInput
81
+ */
82
+ account?: CloudAccount | null;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof ProjectInput
87
+ */
88
+ classificationIds?: Array<string> | null;
89
+ /**
90
+ *
91
+ * @type {Array<Tag>}
92
+ * @memberof ProjectInput
93
+ */
94
+ tags?: Array<Tag> | null;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the ProjectInput interface.
99
+ */
100
+ export function instanceOfProjectInput(value: object): boolean {
101
+ let isInstance = true;
102
+ isInstance = isInstance && "name" in value;
103
+ isInstance = isInstance && "description" in value;
104
+ isInstance = isInstance && "billingAccountId" in value;
105
+ isInstance = isInstance && "settings" in value;
106
+ isInstance = isInstance && "contacts" in value;
107
+
108
+ return isInstance;
109
+ }
110
+
111
+ export function ProjectInputFromJSON(json: any): ProjectInput {
112
+ return ProjectInputFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function ProjectInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInput {
116
+ if ((json === undefined) || (json === null)) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'name': json['name'],
122
+ 'description': json['description'],
123
+ 'billingAccountId': json['billingAccountId'],
124
+ 'settings': ProjectSettingsFromJSON(json['settings']),
125
+ 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
126
+ 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
127
+ 'classificationIds': !exists(json, 'classificationIds') ? undefined : json['classificationIds'],
128
+ 'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
129
+ };
130
+ }
131
+
132
+ export function ProjectInputToJSON(value?: ProjectInput | null): any {
133
+ if (value === undefined) {
134
+ return undefined;
135
+ }
136
+ if (value === null) {
137
+ return null;
138
+ }
139
+ return {
140
+
141
+ 'name': value.name,
142
+ 'description': value.description,
143
+ 'billingAccountId': value.billingAccountId,
144
+ 'settings': ProjectSettingsToJSON(value.settings),
145
+ 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
146
+ 'account': CloudAccountToJSON(value.account),
147
+ 'classificationIds': value.classificationIds,
148
+ 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
149
+ };
150
+ }
151
+
@@ -13,31 +13,6 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { CloudAccount } from './CloudAccount';
17
- import {
18
- CloudAccountFromJSON,
19
- CloudAccountFromJSONTyped,
20
- CloudAccountToJSON,
21
- } from './CloudAccount';
22
- import type { Contact } from './Contact';
23
- import {
24
- ContactFromJSON,
25
- ContactFromJSONTyped,
26
- ContactToJSON,
27
- } from './Contact';
28
- import type { ProjectSettings } from './ProjectSettings';
29
- import {
30
- ProjectSettingsFromJSON,
31
- ProjectSettingsFromJSONTyped,
32
- ProjectSettingsToJSON,
33
- } from './ProjectSettings';
34
- import type { Tag } from './Tag';
35
- import {
36
- TagFromJSON,
37
- TagFromJSONTyped,
38
- TagToJSON,
39
- } from './Tag';
40
-
41
16
  /**
42
17
  *
43
18
  * @export
@@ -58,34 +33,28 @@ export interface ProjectRequest {
58
33
  description: string;
59
34
  /**
60
35
  *
61
- * @type {string}
36
+ * @type {Array<string>}
62
37
  * @memberof ProjectRequest
63
38
  */
64
- billingAccountId: string;
39
+ classificationIds: Array<string>;
65
40
  /**
66
41
  *
67
- * @type {ProjectSettings}
68
- * @memberof ProjectRequest
69
- */
70
- settings: ProjectSettings;
71
- /**
72
- *
73
- * @type {Array<Contact>}
42
+ * @type {string}
74
43
  * @memberof ProjectRequest
75
44
  */
76
- contacts: Array<Contact>;
45
+ billingInfo: string;
77
46
  /**
78
47
  *
79
- * @type {CloudAccount}
48
+ * @type {string}
80
49
  * @memberof ProjectRequest
81
50
  */
82
- account?: CloudAccount | null;
51
+ adminUsername: string;
83
52
  /**
84
53
  *
85
- * @type {Array<Tag>}
54
+ * @type {string}
86
55
  * @memberof ProjectRequest
87
56
  */
88
- tags?: Array<Tag> | null;
57
+ message: string;
89
58
  }
90
59
 
91
60
  /**
@@ -95,9 +64,10 @@ export function instanceOfProjectRequest(value: object): boolean {
95
64
  let isInstance = true;
96
65
  isInstance = isInstance && "name" in value;
97
66
  isInstance = isInstance && "description" in value;
98
- isInstance = isInstance && "billingAccountId" in value;
99
- isInstance = isInstance && "settings" in value;
100
- isInstance = isInstance && "contacts" in value;
67
+ isInstance = isInstance && "classificationIds" in value;
68
+ isInstance = isInstance && "billingInfo" in value;
69
+ isInstance = isInstance && "adminUsername" in value;
70
+ isInstance = isInstance && "message" in value;
101
71
 
102
72
  return isInstance;
103
73
  }
@@ -114,11 +84,10 @@ export function ProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
114
84
 
115
85
  'name': json['name'],
116
86
  'description': json['description'],
117
- 'billingAccountId': json['billingAccountId'],
118
- 'settings': ProjectSettingsFromJSON(json['settings']),
119
- 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
120
- 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
121
- 'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
87
+ 'classificationIds': json['classificationIds'],
88
+ 'billingInfo': json['billingInfo'],
89
+ 'adminUsername': json['adminUsername'],
90
+ 'message': json['message'],
122
91
  };
123
92
  }
124
93
 
@@ -133,11 +102,10 @@ export function ProjectRequestToJSON(value?: ProjectRequest | null): any {
133
102
 
134
103
  'name': value.name,
135
104
  'description': value.description,
136
- 'billingAccountId': value.billingAccountId,
137
- 'settings': ProjectSettingsToJSON(value.settings),
138
- 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
139
- 'account': CloudAccountToJSON(value.account),
140
- 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
105
+ 'classificationIds': value.classificationIds,
106
+ 'billingInfo': value.billingInfo,
107
+ 'adminUsername': value.adminUsername,
108
+ 'message': value.message,
141
109
  };
142
110
  }
143
111
 
@@ -12,6 +12,7 @@ export * from './BillingAccount';
12
12
  export * from './BillingAccountRequest';
13
13
  export * from './BillingMethod';
14
14
  export * from './BudgetPeriod';
15
+ export * from './ClassificationInput';
15
16
  export * from './CloudAccount';
16
17
  export * from './CloudAccountType';
17
18
  export * from './ColumnDefinition';
@@ -41,6 +42,7 @@ export * from './FileRequirements';
41
42
  export * from './FormSchema';
42
43
  export * from './GenerateSftpCredentialsRequest';
43
44
  export * from './GetExecutionLogsResponse';
45
+ export * from './GovernanceClassification';
44
46
  export * from './ImportDataRequest';
45
47
  export * from './InviteUserRequest';
46
48
  export * from './InviteUserResponse';
@@ -61,6 +63,7 @@ export * from './Project';
61
63
  export * from './ProjectAccessRequest';
62
64
  export * from './ProjectCreateOptions';
63
65
  export * from './ProjectDetail';
66
+ export * from './ProjectInput';
64
67
  export * from './ProjectMetrics';
65
68
  export * from './ProjectRequest';
66
69
  export * from './ProjectRole';