@cirrobio/api-client 0.0.1

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 (155) hide show
  1. package/.openapi-generator/FILES +54 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/BillingApi.d.ts +68 -0
  6. package/dist/apis/BillingApi.js +264 -0
  7. package/dist/apis/DatasetsApi.d.ts +88 -0
  8. package/dist/apis/DatasetsApi.js +335 -0
  9. package/dist/apis/ExecutionApi.d.ts +96 -0
  10. package/dist/apis/ExecutionApi.js +394 -0
  11. package/dist/apis/MetricsApi.d.ts +31 -0
  12. package/dist/apis/MetricsApi.js +126 -0
  13. package/dist/apis/NotebooksApi.d.ts +77 -0
  14. package/dist/apis/NotebooksApi.js +351 -0
  15. package/dist/apis/ProcessesApi.d.ts +41 -0
  16. package/dist/apis/ProcessesApi.js +169 -0
  17. package/dist/apis/ProjectsApi.d.ts +97 -0
  18. package/dist/apis/ProjectsApi.js +369 -0
  19. package/dist/apis/SystemApi.d.ts +46 -0
  20. package/dist/apis/SystemApi.js +207 -0
  21. package/dist/apis/UsersApi.d.ts +58 -0
  22. package/dist/apis/UsersApi.js +226 -0
  23. package/dist/apis/index.d.ts +9 -0
  24. package/dist/apis/index.js +27 -0
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +21 -0
  27. package/dist/models/BillingAccount.d.ts +82 -0
  28. package/dist/models/BillingAccount.js +77 -0
  29. package/dist/models/BillingMethod.d.ts +24 -0
  30. package/dist/models/BillingMethod.js +37 -0
  31. package/dist/models/BudgetPeriod.d.ts +24 -0
  32. package/dist/models/BudgetPeriod.js +37 -0
  33. package/dist/models/CloudAccount.d.ts +50 -0
  34. package/dist/models/CloudAccount.js +57 -0
  35. package/dist/models/Contact.d.ts +49 -0
  36. package/dist/models/Contact.js +56 -0
  37. package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -0
  38. package/dist/models/CreateNotebookInstanceRequest.js +59 -0
  39. package/dist/models/CreateResponse.d.ts +37 -0
  40. package/dist/models/CreateResponse.js +53 -0
  41. package/dist/models/CustomerType.d.ts +25 -0
  42. package/dist/models/CustomerType.js +38 -0
  43. package/dist/models/Dataset.d.ts +86 -0
  44. package/dist/models/Dataset.js +78 -0
  45. package/dist/models/DatasetDetail.d.ts +114 -0
  46. package/dist/models/DatasetDetail.js +90 -0
  47. package/dist/models/DatasetType.d.ts +23 -0
  48. package/dist/models/DatasetType.js +36 -0
  49. package/dist/models/Executor.d.ts +24 -0
  50. package/dist/models/Executor.js +37 -0
  51. package/dist/models/FormSchema.d.ts +41 -0
  52. package/dist/models/FormSchema.js +52 -0
  53. package/dist/models/GetExecutionLogsResponse.d.ts +32 -0
  54. package/dist/models/GetExecutionLogsResponse.js +51 -0
  55. package/dist/models/LogEntry.d.ts +37 -0
  56. package/dist/models/LogEntry.js +53 -0
  57. package/dist/models/NotebookInstance.d.ts +43 -0
  58. package/dist/models/NotebookInstance.js +56 -0
  59. package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -0
  60. package/dist/models/OpenNotebookInstanceResponse.js +53 -0
  61. package/dist/models/Process.d.ts +68 -0
  62. package/dist/models/Process.js +63 -0
  63. package/dist/models/Project.d.ts +49 -0
  64. package/dist/models/Project.js +59 -0
  65. package/dist/models/ProjectDetail.d.ts +100 -0
  66. package/dist/models/ProjectDetail.js +86 -0
  67. package/dist/models/ProjectMetrics.d.ts +47 -0
  68. package/dist/models/ProjectMetrics.js +56 -0
  69. package/dist/models/ProjectRequest.d.ts +71 -0
  70. package/dist/models/ProjectRequest.js +72 -0
  71. package/dist/models/ProjectRole.d.ts +25 -0
  72. package/dist/models/ProjectRole.js +38 -0
  73. package/dist/models/ProjectSettings.d.ts +92 -0
  74. package/dist/models/ProjectSettings.js +71 -0
  75. package/dist/models/ReferenceType.d.ts +31 -0
  76. package/dist/models/ReferenceType.js +50 -0
  77. package/dist/models/Region.d.ts +31 -0
  78. package/dist/models/Region.js +50 -0
  79. package/dist/models/RegisterDatasetRequest.d.ts +31 -0
  80. package/dist/models/RegisterDatasetRequest.js +50 -0
  81. package/dist/models/ServiceConnection.d.ts +31 -0
  82. package/dist/models/ServiceConnection.js +50 -0
  83. package/dist/models/SetUserProjectRoleRequest.d.ts +31 -0
  84. package/dist/models/SetUserProjectRoleRequest.js +50 -0
  85. package/dist/models/StopExecutionResponse.d.ts +37 -0
  86. package/dist/models/StopExecutionResponse.js +52 -0
  87. package/dist/models/SystemInfoResponse.d.ts +55 -0
  88. package/dist/models/SystemInfoResponse.js +62 -0
  89. package/dist/models/Tag.d.ts +37 -0
  90. package/dist/models/Tag.js +53 -0
  91. package/dist/models/Task.d.ts +73 -0
  92. package/dist/models/Task.js +68 -0
  93. package/dist/models/UpdateDatasetRequest.d.ts +31 -0
  94. package/dist/models/UpdateDatasetRequest.js +50 -0
  95. package/dist/models/UpdateUserRequest.d.ts +57 -0
  96. package/dist/models/UpdateUserRequest.js +62 -0
  97. package/dist/models/User.d.ts +49 -0
  98. package/dist/models/User.js +59 -0
  99. package/dist/models/index.d.ts +36 -0
  100. package/dist/models/index.js +54 -0
  101. package/dist/runtime.d.ts +182 -0
  102. package/dist/runtime.js +562 -0
  103. package/package.json +22 -0
  104. package/src/apis/BillingApi.ts +178 -0
  105. package/src/apis/DatasetsApi.ts +257 -0
  106. package/src/apis/ExecutionApi.ts +317 -0
  107. package/src/apis/MetricsApi.ts +66 -0
  108. package/src/apis/NotebooksApi.ts +261 -0
  109. package/src/apis/ProcessesApi.ts +97 -0
  110. package/src/apis/ProjectsApi.ts +283 -0
  111. package/src/apis/SystemApi.ts +118 -0
  112. package/src/apis/UsersApi.ts +153 -0
  113. package/src/apis/index.ts +11 -0
  114. package/src/index.ts +5 -0
  115. package/src/models/BillingAccount.ts +157 -0
  116. package/src/models/BillingMethod.ts +39 -0
  117. package/src/models/BudgetPeriod.ts +39 -0
  118. package/src/models/CloudAccount.ts +96 -0
  119. package/src/models/Contact.ts +89 -0
  120. package/src/models/CreateNotebookInstanceRequest.ts +93 -0
  121. package/src/models/CreateResponse.ts +75 -0
  122. package/src/models/CustomerType.ts +40 -0
  123. package/src/models/Dataset.ts +154 -0
  124. package/src/models/DatasetDetail.ts +190 -0
  125. package/src/models/DatasetType.ts +38 -0
  126. package/src/models/Executor.ts +39 -0
  127. package/src/models/FormSchema.ts +73 -0
  128. package/src/models/GetExecutionLogsResponse.ts +73 -0
  129. package/src/models/LogEntry.ts +74 -0
  130. package/src/models/NotebookInstance.ts +84 -0
  131. package/src/models/OpenNotebookInstanceResponse.ts +75 -0
  132. package/src/models/Process.ts +120 -0
  133. package/src/models/Project.ts +93 -0
  134. package/src/models/ProjectDetail.ts +184 -0
  135. package/src/models/ProjectMetrics.ts +84 -0
  136. package/src/models/ProjectRequest.ts +145 -0
  137. package/src/models/ProjectRole.ts +40 -0
  138. package/src/models/ProjectSettings.ts +152 -0
  139. package/src/models/ReferenceType.ts +66 -0
  140. package/src/models/Region.ts +65 -0
  141. package/src/models/RegisterDatasetRequest.ts +65 -0
  142. package/src/models/ServiceConnection.ts +66 -0
  143. package/src/models/SetUserProjectRoleRequest.ts +65 -0
  144. package/src/models/StopExecutionResponse.ts +73 -0
  145. package/src/models/SystemInfoResponse.ts +102 -0
  146. package/src/models/Tag.ts +75 -0
  147. package/src/models/Task.ts +125 -0
  148. package/src/models/UpdateDatasetRequest.ts +65 -0
  149. package/src/models/UpdateUserRequest.ts +102 -0
  150. package/src/models/User.ts +93 -0
  151. package/src/models/index.ts +38 -0
  152. package/src/runtime.ts +431 -0
  153. package/templates/README.mustache +45 -0
  154. package/templates/package.mustache +43 -0
  155. package/tsconfig.json +20 -0
@@ -0,0 +1,73 @@
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 StopExecutionResponse
20
+ */
21
+ export interface StopExecutionResponse {
22
+ /**
23
+ * List of job IDs that were successful in termination
24
+ * @type {Array<string>}
25
+ * @memberof StopExecutionResponse
26
+ */
27
+ success?: Array<string>;
28
+ /**
29
+ * List of job IDs that were not successful in termination
30
+ * @type {Array<string>}
31
+ * @memberof StopExecutionResponse
32
+ */
33
+ failed?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the StopExecutionResponse interface.
38
+ */
39
+ export function instanceOfStopExecutionResponse(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function StopExecutionResponseFromJSON(json: any): StopExecutionResponse {
46
+ return StopExecutionResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function StopExecutionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopExecutionResponse {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'success': !exists(json, 'success') ? undefined : json['success'],
56
+ 'failed': !exists(json, 'failed') ? undefined : json['failed'],
57
+ };
58
+ }
59
+
60
+ export function StopExecutionResponseToJSON(value?: StopExecutionResponse | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'success': value.success,
70
+ 'failed': value.failed,
71
+ };
72
+ }
73
+
@@ -0,0 +1,102 @@
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 SystemInfoResponse
20
+ */
21
+ export interface SystemInfoResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SystemInfoResponse
26
+ */
27
+ sdkAppId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SystemInfoResponse
32
+ */
33
+ resourcesBucket: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SystemInfoResponse
38
+ */
39
+ dataEndpoint: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SystemInfoResponse
44
+ */
45
+ region: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof SystemInfoResponse
50
+ */
51
+ systemMessage: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the SystemInfoResponse interface.
56
+ */
57
+ export function instanceOfSystemInfoResponse(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "sdkAppId" in value;
60
+ isInstance = isInstance && "resourcesBucket" in value;
61
+ isInstance = isInstance && "dataEndpoint" in value;
62
+ isInstance = isInstance && "region" in value;
63
+ isInstance = isInstance && "systemMessage" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function SystemInfoResponseFromJSON(json: any): SystemInfoResponse {
69
+ return SystemInfoResponseFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function SystemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfoResponse {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'sdkAppId': json['sdkAppId'],
79
+ 'resourcesBucket': json['resourcesBucket'],
80
+ 'dataEndpoint': json['dataEndpoint'],
81
+ 'region': json['region'],
82
+ 'systemMessage': json['systemMessage'],
83
+ };
84
+ }
85
+
86
+ export function SystemInfoResponseToJSON(value?: SystemInfoResponse | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'sdkAppId': value.sdkAppId,
96
+ 'resourcesBucket': value.resourcesBucket,
97
+ 'dataEndpoint': value.dataEndpoint,
98
+ 'region': value.region,
99
+ 'systemMessage': value.systemMessage,
100
+ };
101
+ }
102
+
@@ -0,0 +1,75 @@
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 Tag
20
+ */
21
+ export interface Tag {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Tag
26
+ */
27
+ key: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Tag
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Tag interface.
38
+ */
39
+ export function instanceOfTag(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "key" in value;
42
+ isInstance = isInstance && "value" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TagFromJSON(json: any): Tag {
48
+ return TagFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'key': json['key'],
58
+ 'value': json['value'],
59
+ };
60
+ }
61
+
62
+ export function TagToJSON(value?: Tag | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'key': value.key,
72
+ 'value': value.value,
73
+ };
74
+ }
75
+
@@ -0,0 +1,125 @@
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 Task
20
+ */
21
+ export interface Task {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Task
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Task
32
+ */
33
+ nativeJobId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Task
38
+ */
39
+ status: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof Task
44
+ */
45
+ requestedAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof Task
50
+ */
51
+ stoppedAt?: Date;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Task
56
+ */
57
+ containerImage?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Task
62
+ */
63
+ commandLine?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Task
68
+ */
69
+ logLocation?: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the Task interface.
74
+ */
75
+ export function instanceOfTask(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "name" in value;
78
+ isInstance = isInstance && "nativeJobId" in value;
79
+ isInstance = isInstance && "status" in value;
80
+ isInstance = isInstance && "requestedAt" in value;
81
+
82
+ return isInstance;
83
+ }
84
+
85
+ export function TaskFromJSON(json: any): Task {
86
+ return TaskFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Task {
90
+ if ((json === undefined) || (json === null)) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'name': json['name'],
96
+ 'nativeJobId': json['nativeJobId'],
97
+ 'status': json['status'],
98
+ 'requestedAt': (new Date(json['requestedAt'])),
99
+ 'stoppedAt': !exists(json, 'stoppedAt') ? undefined : (new Date(json['stoppedAt'])),
100
+ 'containerImage': !exists(json, 'containerImage') ? undefined : json['containerImage'],
101
+ 'commandLine': !exists(json, 'commandLine') ? undefined : json['commandLine'],
102
+ 'logLocation': !exists(json, 'logLocation') ? undefined : json['logLocation'],
103
+ };
104
+ }
105
+
106
+ export function TaskToJSON(value?: Task | null): any {
107
+ if (value === undefined) {
108
+ return undefined;
109
+ }
110
+ if (value === null) {
111
+ return null;
112
+ }
113
+ return {
114
+
115
+ 'name': value.name,
116
+ 'nativeJobId': value.nativeJobId,
117
+ 'status': value.status,
118
+ 'requestedAt': (value.requestedAt.toISOString()),
119
+ 'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt.toISOString()),
120
+ 'containerImage': value.containerImage,
121
+ 'commandLine': value.commandLine,
122
+ 'logLocation': value.logLocation,
123
+ };
124
+ }
125
+
@@ -0,0 +1,65 @@
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 UpdateDatasetRequest
20
+ */
21
+ export interface UpdateDatasetRequest {
22
+ /**
23
+ *
24
+ * @type {UpdateDatasetRequest}
25
+ * @memberof UpdateDatasetRequest
26
+ */
27
+ updateDatasetRequest?: UpdateDatasetRequest;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the UpdateDatasetRequest interface.
32
+ */
33
+ export function instanceOfUpdateDatasetRequest(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function UpdateDatasetRequestFromJSON(json: any): UpdateDatasetRequest {
40
+ return UpdateDatasetRequestFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function UpdateDatasetRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDatasetRequest {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'updateDatasetRequest': !exists(json, 'updateDatasetRequest') ? undefined : UpdateDatasetRequestFromJSON(json['updateDatasetRequest']),
50
+ };
51
+ }
52
+
53
+ export function UpdateDatasetRequestToJSON(value?: UpdateDatasetRequest | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'updateDatasetRequest': UpdateDatasetRequestToJSON(value.updateDatasetRequest),
63
+ };
64
+ }
65
+
@@ -0,0 +1,102 @@
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 UpdateUserRequest
20
+ */
21
+ export interface UpdateUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateUserRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateUserRequest
32
+ */
33
+ email: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UpdateUserRequest
38
+ */
39
+ phone: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof UpdateUserRequest
44
+ */
45
+ department: string;
46
+ /**
47
+ *
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof UpdateUserRequest
50
+ */
51
+ settings: { [key: string]: any; };
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the UpdateUserRequest interface.
56
+ */
57
+ export function instanceOfUpdateUserRequest(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "name" in value;
60
+ isInstance = isInstance && "email" in value;
61
+ isInstance = isInstance && "phone" in value;
62
+ isInstance = isInstance && "department" in value;
63
+ isInstance = isInstance && "settings" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function UpdateUserRequestFromJSON(json: any): UpdateUserRequest {
69
+ return UpdateUserRequestFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserRequest {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'name': json['name'],
79
+ 'email': json['email'],
80
+ 'phone': json['phone'],
81
+ 'department': json['department'],
82
+ 'settings': json['settings'],
83
+ };
84
+ }
85
+
86
+ export function UpdateUserRequestToJSON(value?: UpdateUserRequest | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'name': value.name,
96
+ 'email': value.email,
97
+ 'phone': value.phone,
98
+ 'department': value.department,
99
+ 'settings': value.settings,
100
+ };
101
+ }
102
+
@@ -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 User
20
+ */
21
+ export interface User {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof User
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof User
32
+ */
33
+ username: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof User
38
+ */
39
+ organization: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof User
44
+ */
45
+ department: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the User interface.
50
+ */
51
+ export function instanceOfUser(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "name" in value;
54
+ isInstance = isInstance && "username" in value;
55
+ isInstance = isInstance && "organization" in value;
56
+ isInstance = isInstance && "department" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function UserFromJSON(json: any): User {
62
+ return UserFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'name': json['name'],
72
+ 'username': json['username'],
73
+ 'organization': json['organization'],
74
+ 'department': json['department'],
75
+ };
76
+ }
77
+
78
+ export function UserToJSON(value?: User | 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
+ 'username': value.username,
89
+ 'organization': value.organization,
90
+ 'department': value.department,
91
+ };
92
+ }
93
+
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './BillingAccount';
4
+ export * from './BillingMethod';
5
+ export * from './BudgetPeriod';
6
+ export * from './CloudAccount';
7
+ export * from './Contact';
8
+ export * from './CreateNotebookInstanceRequest';
9
+ export * from './CreateResponse';
10
+ export * from './CustomerType';
11
+ export * from './Dataset';
12
+ export * from './DatasetDetail';
13
+ export * from './DatasetType';
14
+ export * from './Executor';
15
+ export * from './FormSchema';
16
+ export * from './GetExecutionLogsResponse';
17
+ export * from './LogEntry';
18
+ export * from './NotebookInstance';
19
+ export * from './OpenNotebookInstanceResponse';
20
+ export * from './Process';
21
+ export * from './Project';
22
+ export * from './ProjectDetail';
23
+ export * from './ProjectMetrics';
24
+ export * from './ProjectRequest';
25
+ export * from './ProjectRole';
26
+ export * from './ProjectSettings';
27
+ export * from './ReferenceType';
28
+ export * from './Region';
29
+ export * from './RegisterDatasetRequest';
30
+ export * from './ServiceConnection';
31
+ export * from './SetUserProjectRoleRequest';
32
+ export * from './StopExecutionResponse';
33
+ export * from './SystemInfoResponse';
34
+ export * from './Tag';
35
+ export * from './Task';
36
+ export * from './UpdateDatasetRequest';
37
+ export * from './UpdateUserRequest';
38
+ export * from './User';