@cirrobio/api-client 0.2.22 → 0.4.0

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.
@@ -21,7 +21,7 @@ import {
21
21
  } from './Executor';
22
22
 
23
23
  /**
24
- *
24
+ * Identifies a data type or pipeline in Cirro
25
25
  * @export
26
26
  * @interface Process
27
27
  */
@@ -39,17 +39,17 @@ export interface Process {
39
39
  */
40
40
  name: string;
41
41
  /**
42
- *
42
+ * Description of the process
43
43
  * @type {string}
44
44
  * @memberof Process
45
45
  */
46
- description?: string;
46
+ description: string;
47
47
  /**
48
48
  * Name of the data type this pipeline produces (if it is not defined, use the name)
49
49
  * @type {string}
50
50
  * @memberof Process
51
51
  */
52
- dataType?: string | null;
52
+ dataType: string;
53
53
  /**
54
54
  *
55
55
  * @type {Executor}
@@ -61,15 +61,15 @@ export interface Process {
61
61
  * @type {string}
62
62
  * @memberof Process
63
63
  */
64
- category: string;
64
+ category?: string;
65
65
  /**
66
66
  * Type of pipeline
67
67
  * @type {string}
68
68
  * @memberof Process
69
69
  */
70
- pipelineType: string;
70
+ pipelineType?: string;
71
71
  /**
72
- * Link to pipeline documentation
72
+ * Link to process documentation
73
73
  * @type {string}
74
74
  * @memberof Process
75
75
  */
@@ -85,43 +85,61 @@ export interface Process {
85
85
  * @type {Array<string>}
86
86
  * @memberof Process
87
87
  */
88
- childProcessIds?: Array<string>;
88
+ childProcessIds: Array<string>;
89
89
  /**
90
- * IDs of pipelines that can run this pipeline
90
+ * IDs of processes that can run this pipeline
91
91
  * @type {Array<string>}
92
92
  * @memberof Process
93
93
  */
94
- parentProcessIds?: Array<string>;
94
+ parentProcessIds: Array<string>;
95
95
  /**
96
96
  * Username of the pipeline creator (blank if Cirro curated)
97
97
  * @type {string}
98
98
  * @memberof Process
99
99
  */
100
- owner?: string;
100
+ owner?: string | null;
101
101
  /**
102
- * Projects that can run this pipeline
102
+ * Projects that can run this process
103
103
  * @type {Array<string>}
104
104
  * @memberof Process
105
105
  */
106
- linkedProjectIds?: Array<string>;
106
+ linkedProjectIds: Array<string>;
107
+ /**
108
+ * Whether the process is shared with the tenant
109
+ * @type {boolean}
110
+ * @memberof Process
111
+ */
112
+ isTenantWide: boolean;
107
113
  /**
108
114
  * Whether the pipeline is allowed to have multiple dataset sources
109
115
  * @type {boolean}
110
116
  * @memberof Process
111
117
  */
112
- allowMultipleSources?: boolean;
118
+ allowMultipleSources: boolean;
113
119
  /**
114
120
  * Whether the pipeline uses the Cirro-provided sample sheet
115
121
  * @type {boolean}
116
122
  * @memberof Process
117
123
  */
118
- usesSampleSheet?: boolean;
124
+ usesSampleSheet: boolean;
119
125
  /**
120
- * Whether the pipeline is marked as archived
126
+ * Whether the process is marked as archived
121
127
  * @type {boolean}
122
128
  * @memberof Process
123
129
  */
124
- isArchived?: boolean;
130
+ isArchived: boolean;
131
+ /**
132
+ * When the process was created (does not reflect the pipeline code)
133
+ * @type {Date}
134
+ * @memberof Process
135
+ */
136
+ createdAt?: Date;
137
+ /**
138
+ * When the process was updated (does not reflect the pipeline code)
139
+ * @type {Date}
140
+ * @memberof Process
141
+ */
142
+ updatedAt?: Date;
125
143
  }
126
144
 
127
145
  /**
@@ -131,9 +149,16 @@ export function instanceOfProcess(value: object): boolean {
131
149
  let isInstance = true;
132
150
  isInstance = isInstance && "id" in value;
133
151
  isInstance = isInstance && "name" in value;
152
+ isInstance = isInstance && "description" in value;
153
+ isInstance = isInstance && "dataType" in value;
134
154
  isInstance = isInstance && "executor" in value;
135
- isInstance = isInstance && "category" in value;
136
- isInstance = isInstance && "pipelineType" in value;
155
+ isInstance = isInstance && "childProcessIds" in value;
156
+ isInstance = isInstance && "parentProcessIds" in value;
157
+ isInstance = isInstance && "linkedProjectIds" in value;
158
+ isInstance = isInstance && "isTenantWide" in value;
159
+ isInstance = isInstance && "allowMultipleSources" in value;
160
+ isInstance = isInstance && "usesSampleSheet" in value;
161
+ isInstance = isInstance && "isArchived" in value;
137
162
 
138
163
  return isInstance;
139
164
  }
@@ -150,20 +175,23 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
150
175
 
151
176
  'id': json['id'],
152
177
  'name': json['name'],
153
- 'description': !exists(json, 'description') ? undefined : json['description'],
154
- 'dataType': !exists(json, 'dataType') ? undefined : json['dataType'],
178
+ 'description': json['description'],
179
+ 'dataType': json['dataType'],
155
180
  'executor': ExecutorFromJSON(json['executor']),
156
- 'category': json['category'],
157
- 'pipelineType': json['pipelineType'],
181
+ 'category': !exists(json, 'category') ? undefined : json['category'],
182
+ 'pipelineType': !exists(json, 'pipelineType') ? undefined : json['pipelineType'],
158
183
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
159
184
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
160
- 'childProcessIds': !exists(json, 'childProcessIds') ? undefined : json['childProcessIds'],
161
- 'parentProcessIds': !exists(json, 'parentProcessIds') ? undefined : json['parentProcessIds'],
185
+ 'childProcessIds': json['childProcessIds'],
186
+ 'parentProcessIds': json['parentProcessIds'],
162
187
  'owner': !exists(json, 'owner') ? undefined : json['owner'],
163
- 'linkedProjectIds': !exists(json, 'linkedProjectIds') ? undefined : json['linkedProjectIds'],
164
- 'allowMultipleSources': !exists(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
165
- 'usesSampleSheet': !exists(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
166
- 'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
188
+ 'linkedProjectIds': json['linkedProjectIds'],
189
+ 'isTenantWide': json['isTenantWide'],
190
+ 'allowMultipleSources': json['allowMultipleSources'],
191
+ 'usesSampleSheet': json['usesSampleSheet'],
192
+ 'isArchived': json['isArchived'],
193
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
194
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
167
195
  };
168
196
  }
169
197
 
@@ -189,9 +217,12 @@ export function ProcessToJSON(value?: Process | null): any {
189
217
  'parentProcessIds': value.parentProcessIds,
190
218
  'owner': value.owner,
191
219
  'linkedProjectIds': value.linkedProjectIds,
220
+ 'isTenantWide': value.isTenantWide,
192
221
  'allowMultipleSources': value.allowMultipleSources,
193
222
  'usesSampleSheet': value.usesSampleSheet,
194
223
  'isArchived': value.isArchived,
224
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
225
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
195
226
  };
196
227
  }
197
228
 
@@ -39,7 +39,7 @@ import {
39
39
  } from './PipelineCode';
40
40
 
41
41
  /**
42
- *
42
+ * Identifies a data type or pipeline in Cirro
43
43
  * @export
44
44
  * @interface ProcessDetail
45
45
  */
@@ -57,7 +57,7 @@ export interface ProcessDetail {
57
57
  */
58
58
  name: string;
59
59
  /**
60
- *
60
+ * Description of the process
61
61
  * @type {string}
62
62
  * @memberof ProcessDetail
63
63
  */
@@ -67,7 +67,7 @@ export interface ProcessDetail {
67
67
  * @type {string}
68
68
  * @memberof ProcessDetail
69
69
  */
70
- dataType?: string | null;
70
+ dataType: string;
71
71
  /**
72
72
  *
73
73
  * @type {Executor}
@@ -93,23 +93,23 @@ export interface ProcessDetail {
93
93
  */
94
94
  childProcessIds: Array<string>;
95
95
  /**
96
- * IDs of pipelines that can run this pipeline
96
+ * IDs of processes that can run this pipeline
97
97
  * @type {Array<string>}
98
98
  * @memberof ProcessDetail
99
99
  */
100
100
  parentProcessIds: Array<string>;
101
101
  /**
102
- * Link to pipeline documentation
102
+ * Link to process documentation
103
103
  * @type {string}
104
104
  * @memberof ProcessDetail
105
105
  */
106
- documentationUrl?: string | null;
106
+ documentationUrl?: string;
107
107
  /**
108
108
  * Description of the files to be uploaded (optional)
109
109
  * @type {string}
110
110
  * @memberof ProcessDetail
111
111
  */
112
- fileRequirementsMessage?: string | null;
112
+ fileRequirementsMessage?: string;
113
113
  /**
114
114
  *
115
115
  * @type {PipelineCode}
@@ -123,29 +123,35 @@ export interface ProcessDetail {
123
123
  */
124
124
  owner?: string | null;
125
125
  /**
126
- * Projects that can run this pipeline
126
+ * Projects that can run this process
127
127
  * @type {Array<string>}
128
128
  * @memberof ProcessDetail
129
129
  */
130
130
  linkedProjectIds: Array<string>;
131
131
  /**
132
- * Whether the pipeline is available to all projects in the organization
132
+ * Whether the process is shared with the tenant
133
133
  * @type {boolean}
134
134
  * @memberof ProcessDetail
135
135
  */
136
- isTenantWide?: boolean;
136
+ isTenantWide: boolean;
137
137
  /**
138
138
  * Whether the pipeline is allowed to have multiple dataset sources
139
139
  * @type {boolean}
140
140
  * @memberof ProcessDetail
141
141
  */
142
- allowMultipleSources?: boolean;
142
+ allowMultipleSources: boolean;
143
143
  /**
144
144
  * Whether the pipeline uses the Cirro-provided sample sheet
145
145
  * @type {boolean}
146
146
  * @memberof ProcessDetail
147
147
  */
148
- usesSampleSheet?: boolean;
148
+ usesSampleSheet: boolean;
149
+ /**
150
+ * Whether the process is marked as archived
151
+ * @type {boolean}
152
+ * @memberof ProcessDetail
153
+ */
154
+ isArchived: boolean;
149
155
  /**
150
156
  *
151
157
  * @type {CustomPipelineSettings}
@@ -153,17 +159,23 @@ export interface ProcessDetail {
153
159
  */
154
160
  customSettings?: CustomPipelineSettings | null;
155
161
  /**
156
- * Whether the process is marked for removal
157
- * @type {boolean}
162
+ *
163
+ * @type {Array<FileMappingRule>}
158
164
  * @memberof ProcessDetail
159
165
  */
160
- isArchived?: boolean;
166
+ fileMappingRules?: Array<FileMappingRule> | null;
161
167
  /**
162
- * Describes the files that this dataset type expects.
163
- * @type {Array<FileMappingRule>}
168
+ * When the process was created (does not reflect the pipeline code)
169
+ * @type {Date}
164
170
  * @memberof ProcessDetail
165
171
  */
166
- fileMappingRules?: Array<FileMappingRule> | null;
172
+ createdAt?: Date;
173
+ /**
174
+ * When the process was updated (does not reflect the pipeline code)
175
+ * @type {Date}
176
+ * @memberof ProcessDetail
177
+ */
178
+ updatedAt?: Date;
167
179
  }
168
180
 
169
181
  /**
@@ -174,10 +186,15 @@ export function instanceOfProcessDetail(value: object): boolean {
174
186
  isInstance = isInstance && "id" in value;
175
187
  isInstance = isInstance && "name" in value;
176
188
  isInstance = isInstance && "description" in value;
189
+ isInstance = isInstance && "dataType" in value;
177
190
  isInstance = isInstance && "executor" in value;
178
191
  isInstance = isInstance && "childProcessIds" in value;
179
192
  isInstance = isInstance && "parentProcessIds" in value;
180
193
  isInstance = isInstance && "linkedProjectIds" in value;
194
+ isInstance = isInstance && "isTenantWide" in value;
195
+ isInstance = isInstance && "allowMultipleSources" in value;
196
+ isInstance = isInstance && "usesSampleSheet" in value;
197
+ isInstance = isInstance && "isArchived" in value;
181
198
 
182
199
  return isInstance;
183
200
  }
@@ -195,7 +212,7 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
195
212
  'id': json['id'],
196
213
  'name': json['name'],
197
214
  'description': json['description'],
198
- 'dataType': !exists(json, 'dataType') ? undefined : json['dataType'],
215
+ 'dataType': json['dataType'],
199
216
  'executor': ExecutorFromJSON(json['executor']),
200
217
  'category': !exists(json, 'category') ? undefined : json['category'],
201
218
  'pipelineType': !exists(json, 'pipelineType') ? undefined : json['pipelineType'],
@@ -206,12 +223,14 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
206
223
  'pipelineCode': !exists(json, 'pipelineCode') ? undefined : PipelineCodeFromJSON(json['pipelineCode']),
207
224
  'owner': !exists(json, 'owner') ? undefined : json['owner'],
208
225
  'linkedProjectIds': json['linkedProjectIds'],
209
- 'isTenantWide': !exists(json, 'isTenantWide') ? undefined : json['isTenantWide'],
210
- 'allowMultipleSources': !exists(json, 'allowMultipleSources') ? undefined : json['allowMultipleSources'],
211
- 'usesSampleSheet': !exists(json, 'usesSampleSheet') ? undefined : json['usesSampleSheet'],
226
+ 'isTenantWide': json['isTenantWide'],
227
+ 'allowMultipleSources': json['allowMultipleSources'],
228
+ 'usesSampleSheet': json['usesSampleSheet'],
229
+ 'isArchived': json['isArchived'],
212
230
  'customSettings': !exists(json, 'customSettings') ? undefined : CustomPipelineSettingsFromJSON(json['customSettings']),
213
- 'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
214
231
  'fileMappingRules': !exists(json, 'fileMappingRules') ? undefined : (json['fileMappingRules'] === null ? null : (json['fileMappingRules'] as Array<any>).map(FileMappingRuleFromJSON)),
232
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
233
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
215
234
  };
216
235
  }
217
236
 
@@ -241,9 +260,11 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
241
260
  'isTenantWide': value.isTenantWide,
242
261
  'allowMultipleSources': value.allowMultipleSources,
243
262
  'usesSampleSheet': value.usesSampleSheet,
244
- 'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
245
263
  'isArchived': value.isArchived,
264
+ 'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
246
265
  'fileMappingRules': value.fileMappingRules === undefined ? undefined : (value.fileMappingRules === null ? null : (value.fileMappingRules as Array<any>).map(FileMappingRuleToJSON)),
266
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
267
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
247
268
  };
248
269
  }
249
270
 
@@ -29,6 +29,7 @@ export * from './CreateProjectAccessRequest';
29
29
  export * from './CreateReferenceRequest';
30
30
  export * from './CreateResponse';
31
31
  export * from './CustomPipelineSettings';
32
+ export * from './CustomProcessInput';
32
33
  export * from './CustomerType';
33
34
  export * from './Dashboard';
34
35
  export * from './DashboardRequest';