@cirrobio/api-client 0.10.0 → 0.10.2

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.
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.10.0 --save
39
+ npm install @cirrobio/api-client@0.10.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DiscussionType } from './DiscussionType';
12
13
  import type { Entity } from './Entity';
13
14
  /**
14
15
  *
@@ -40,6 +41,12 @@ export interface Discussion {
40
41
  * @memberof Discussion
41
42
  */
42
43
  entity: Entity;
44
+ /**
45
+ *
46
+ * @type {DiscussionType}
47
+ * @memberof Discussion
48
+ */
49
+ type: DiscussionType;
43
50
  /**
44
51
  *
45
52
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { DiscussionTypeFromJSON, DiscussionTypeToJSON, } from './DiscussionType';
14
15
  import { EntityFromJSON, EntityToJSON, } from './Entity';
15
16
  /**
16
17
  * Check if a given object implements the Discussion interface.
@@ -21,6 +22,7 @@ export function instanceOfDiscussion(value) {
21
22
  isInstance = isInstance && "name" in value;
22
23
  isInstance = isInstance && "description" in value;
23
24
  isInstance = isInstance && "entity" in value;
25
+ isInstance = isInstance && "type" in value;
24
26
  isInstance = isInstance && "projectId" in value;
25
27
  isInstance = isInstance && "createdBy" in value;
26
28
  isInstance = isInstance && "lastMessageTime" in value;
@@ -40,6 +42,7 @@ export function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'name': json['name'],
41
43
  'description': json['description'],
42
44
  'entity': EntityFromJSON(json['entity']),
45
+ 'type': DiscussionTypeFromJSON(json['type']),
43
46
  'projectId': json['projectId'],
44
47
  'createdBy': json['createdBy'],
45
48
  'lastMessageTime': (new Date(json['lastMessageTime'])),
@@ -59,6 +62,7 @@ export function DiscussionToJSON(value) {
59
62
  'name': value.name,
60
63
  'description': value.description,
61
64
  'entity': EntityToJSON(value.entity),
65
+ 'type': DiscussionTypeToJSON(value.type),
62
66
  'projectId': value.projectId,
63
67
  'createdBy': value.createdBy,
64
68
  'lastMessageTime': (value.lastMessageTime.toISOString()),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DiscussionType } from './DiscussionType';
12
13
  import type { Entity } from './Entity';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface DiscussionInput {
34
35
  * @memberof DiscussionInput
35
36
  */
36
37
  entity: Entity;
38
+ /**
39
+ *
40
+ * @type {DiscussionType}
41
+ * @memberof DiscussionInput
42
+ */
43
+ type: DiscussionType;
37
44
  /**
38
45
  *
39
46
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { DiscussionTypeFromJSON, DiscussionTypeToJSON, } from './DiscussionType';
14
15
  import { EntityFromJSON, EntityToJSON, } from './Entity';
15
16
  /**
16
17
  * Check if a given object implements the DiscussionInput interface.
@@ -20,6 +21,7 @@ export function instanceOfDiscussionInput(value) {
20
21
  isInstance = isInstance && "name" in value;
21
22
  isInstance = isInstance && "description" in value;
22
23
  isInstance = isInstance && "entity" in value;
24
+ isInstance = isInstance && "type" in value;
23
25
  isInstance = isInstance && "projectId" in value;
24
26
  return isInstance;
25
27
  }
@@ -34,6 +36,7 @@ export function DiscussionInputFromJSONTyped(json, ignoreDiscriminator) {
34
36
  'name': json['name'],
35
37
  'description': json['description'],
36
38
  'entity': EntityFromJSON(json['entity']),
39
+ 'type': DiscussionTypeFromJSON(json['type']),
37
40
  'projectId': json['projectId'],
38
41
  };
39
42
  }
@@ -48,6 +51,7 @@ export function DiscussionInputToJSON(value) {
48
51
  'name': value.name,
49
52
  'description': value.description,
50
53
  'entity': EntityToJSON(value.entity),
54
+ 'type': DiscussionTypeToJSON(value.type),
51
55
  'projectId': value.projectId,
52
56
  };
53
57
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum DiscussionType {
18
+ Discussion = "DISCUSSION",
19
+ Notes = "NOTES"
20
+ }
21
+ export declare function DiscussionTypeFromJSON(json: any): DiscussionType;
22
+ export declare function DiscussionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscussionType;
23
+ export declare function DiscussionTypeToJSON(value?: DiscussionType | null): any;
@@ -0,0 +1,32 @@
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var DiscussionType;
20
+ (function (DiscussionType) {
21
+ DiscussionType["Discussion"] = "DISCUSSION";
22
+ DiscussionType["Notes"] = "NOTES";
23
+ })(DiscussionType || (DiscussionType = {}));
24
+ export function DiscussionTypeFromJSON(json) {
25
+ return DiscussionTypeFromJSONTyped(json, false);
26
+ }
27
+ export function DiscussionTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function DiscussionTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -24,6 +24,7 @@ export declare enum EntityType {
24
24
  Notebook = "NOTEBOOK",
25
25
  Sample = "SAMPLE",
26
26
  Share = "SHARE",
27
+ Tag = "TAG",
27
28
  Unknown = "UNKNOWN"
28
29
  }
29
30
  export declare function EntityTypeFromJSON(json: any): EntityType;
@@ -27,6 +27,7 @@ export var EntityType;
27
27
  EntityType["Notebook"] = "NOTEBOOK";
28
28
  EntityType["Sample"] = "SAMPLE";
29
29
  EntityType["Share"] = "SHARE";
30
+ EntityType["Tag"] = "TAG";
30
31
  EntityType["Unknown"] = "UNKNOWN";
31
32
  })(EntityType || (EntityType = {}));
32
33
  export function EntityTypeFromJSON(json) {
@@ -26,7 +26,7 @@ export interface FileNamePattern {
26
26
  * @type {string}
27
27
  * @memberof FileNamePattern
28
28
  */
29
- description: string;
29
+ description?: string | null;
30
30
  /**
31
31
  * File name pattern, formatted as a valid regex, to extract sample name and other metadata.
32
32
  * @type {string}
@@ -11,13 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  /**
15
16
  * Check if a given object implements the FileNamePattern interface.
16
17
  */
17
18
  export function instanceOfFileNamePattern(value) {
18
19
  let isInstance = true;
19
20
  isInstance = isInstance && "exampleName" in value;
20
- isInstance = isInstance && "description" in value;
21
21
  isInstance = isInstance && "sampleMatchingPattern" in value;
22
22
  return isInstance;
23
23
  }
@@ -30,7 +30,7 @@ export function FileNamePatternFromJSONTyped(json, ignoreDiscriminator) {
30
30
  }
31
31
  return {
32
32
  'exampleName': json['exampleName'],
33
- 'description': json['description'],
33
+ 'description': !exists(json, 'description') ? undefined : json['description'],
34
34
  'sampleMatchingPattern': json['sampleMatchingPattern'],
35
35
  };
36
36
  }
@@ -40,6 +40,7 @@ export * from './DatasetDetail';
40
40
  export * from './DatasetViz';
41
41
  export * from './Discussion';
42
42
  export * from './DiscussionInput';
43
+ export * from './DiscussionType';
43
44
  export * from './Entity';
44
45
  export * from './EntityType';
45
46
  export * from './EnvironmentType';
@@ -42,6 +42,7 @@ export * from './DatasetDetail';
42
42
  export * from './DatasetViz';
43
43
  export * from './Discussion';
44
44
  export * from './DiscussionInput';
45
+ export * from './DiscussionType';
45
46
  export * from './Entity';
46
47
  export * from './EntityType';
47
48
  export * from './EnvironmentType';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DiscussionType } from './DiscussionType';
12
13
  import type { Entity } from './Entity';
13
14
  /**
14
15
  *
@@ -40,6 +41,12 @@ export interface Discussion {
40
41
  * @memberof Discussion
41
42
  */
42
43
  entity: Entity;
44
+ /**
45
+ *
46
+ * @type {DiscussionType}
47
+ * @memberof Discussion
48
+ */
49
+ type: DiscussionType;
43
50
  /**
44
51
  *
45
52
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DiscussionToJSON = exports.DiscussionFromJSONTyped = exports.DiscussionFromJSON = exports.instanceOfDiscussion = void 0;
17
+ const DiscussionType_1 = require("./DiscussionType");
17
18
  const Entity_1 = require("./Entity");
18
19
  /**
19
20
  * Check if a given object implements the Discussion interface.
@@ -24,6 +25,7 @@ function instanceOfDiscussion(value) {
24
25
  isInstance = isInstance && "name" in value;
25
26
  isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "entity" in value;
28
+ isInstance = isInstance && "type" in value;
27
29
  isInstance = isInstance && "projectId" in value;
28
30
  isInstance = isInstance && "createdBy" in value;
29
31
  isInstance = isInstance && "lastMessageTime" in value;
@@ -45,6 +47,7 @@ function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'name': json['name'],
46
48
  'description': json['description'],
47
49
  'entity': (0, Entity_1.EntityFromJSON)(json['entity']),
50
+ 'type': (0, DiscussionType_1.DiscussionTypeFromJSON)(json['type']),
48
51
  'projectId': json['projectId'],
49
52
  'createdBy': json['createdBy'],
50
53
  'lastMessageTime': (new Date(json['lastMessageTime'])),
@@ -65,6 +68,7 @@ function DiscussionToJSON(value) {
65
68
  'name': value.name,
66
69
  'description': value.description,
67
70
  'entity': (0, Entity_1.EntityToJSON)(value.entity),
71
+ 'type': (0, DiscussionType_1.DiscussionTypeToJSON)(value.type),
68
72
  'projectId': value.projectId,
69
73
  'createdBy': value.createdBy,
70
74
  'lastMessageTime': (value.lastMessageTime.toISOString()),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DiscussionType } from './DiscussionType';
12
13
  import type { Entity } from './Entity';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface DiscussionInput {
34
35
  * @memberof DiscussionInput
35
36
  */
36
37
  entity: Entity;
38
+ /**
39
+ *
40
+ * @type {DiscussionType}
41
+ * @memberof DiscussionInput
42
+ */
43
+ type: DiscussionType;
37
44
  /**
38
45
  *
39
46
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DiscussionInputToJSON = exports.DiscussionInputFromJSONTyped = exports.DiscussionInputFromJSON = exports.instanceOfDiscussionInput = void 0;
17
+ const DiscussionType_1 = require("./DiscussionType");
17
18
  const Entity_1 = require("./Entity");
18
19
  /**
19
20
  * Check if a given object implements the DiscussionInput interface.
@@ -23,6 +24,7 @@ function instanceOfDiscussionInput(value) {
23
24
  isInstance = isInstance && "name" in value;
24
25
  isInstance = isInstance && "description" in value;
25
26
  isInstance = isInstance && "entity" in value;
27
+ isInstance = isInstance && "type" in value;
26
28
  isInstance = isInstance && "projectId" in value;
27
29
  return isInstance;
28
30
  }
@@ -39,6 +41,7 @@ function DiscussionInputFromJSONTyped(json, ignoreDiscriminator) {
39
41
  'name': json['name'],
40
42
  'description': json['description'],
41
43
  'entity': (0, Entity_1.EntityFromJSON)(json['entity']),
44
+ 'type': (0, DiscussionType_1.DiscussionTypeFromJSON)(json['type']),
42
45
  'projectId': json['projectId'],
43
46
  };
44
47
  }
@@ -54,6 +57,7 @@ function DiscussionInputToJSON(value) {
54
57
  'name': value.name,
55
58
  'description': value.description,
56
59
  'entity': (0, Entity_1.EntityToJSON)(value.entity),
60
+ 'type': (0, DiscussionType_1.DiscussionTypeToJSON)(value.type),
57
61
  'projectId': value.projectId,
58
62
  };
59
63
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum DiscussionType {
18
+ Discussion = "DISCUSSION",
19
+ Notes = "NOTES"
20
+ }
21
+ export declare function DiscussionTypeFromJSON(json: any): DiscussionType;
22
+ export declare function DiscussionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscussionType;
23
+ export declare function DiscussionTypeToJSON(value?: DiscussionType | null): any;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DiscussionTypeToJSON = exports.DiscussionTypeFromJSONTyped = exports.DiscussionTypeFromJSON = exports.DiscussionType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var DiscussionType;
23
+ (function (DiscussionType) {
24
+ DiscussionType["Discussion"] = "DISCUSSION";
25
+ DiscussionType["Notes"] = "NOTES";
26
+ })(DiscussionType = exports.DiscussionType || (exports.DiscussionType = {}));
27
+ function DiscussionTypeFromJSON(json) {
28
+ return DiscussionTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.DiscussionTypeFromJSON = DiscussionTypeFromJSON;
31
+ function DiscussionTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.DiscussionTypeFromJSONTyped = DiscussionTypeFromJSONTyped;
35
+ function DiscussionTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.DiscussionTypeToJSON = DiscussionTypeToJSON;
@@ -24,6 +24,7 @@ export declare enum EntityType {
24
24
  Notebook = "NOTEBOOK",
25
25
  Sample = "SAMPLE",
26
26
  Share = "SHARE",
27
+ Tag = "TAG",
27
28
  Unknown = "UNKNOWN"
28
29
  }
29
30
  export declare function EntityTypeFromJSON(json: any): EntityType;
@@ -30,6 +30,7 @@ var EntityType;
30
30
  EntityType["Notebook"] = "NOTEBOOK";
31
31
  EntityType["Sample"] = "SAMPLE";
32
32
  EntityType["Share"] = "SHARE";
33
+ EntityType["Tag"] = "TAG";
33
34
  EntityType["Unknown"] = "UNKNOWN";
34
35
  })(EntityType = exports.EntityType || (exports.EntityType = {}));
35
36
  function EntityTypeFromJSON(json) {
@@ -26,7 +26,7 @@ export interface FileNamePattern {
26
26
  * @type {string}
27
27
  * @memberof FileNamePattern
28
28
  */
29
- description: string;
29
+ description?: string | null;
30
30
  /**
31
31
  * File name pattern, formatted as a valid regex, to extract sample name and other metadata.
32
32
  * @type {string}
@@ -14,13 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FileNamePatternToJSON = exports.FileNamePatternFromJSONTyped = exports.FileNamePatternFromJSON = exports.instanceOfFileNamePattern = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the FileNamePattern interface.
19
20
  */
20
21
  function instanceOfFileNamePattern(value) {
21
22
  let isInstance = true;
22
23
  isInstance = isInstance && "exampleName" in value;
23
- isInstance = isInstance && "description" in value;
24
24
  isInstance = isInstance && "sampleMatchingPattern" in value;
25
25
  return isInstance;
26
26
  }
@@ -35,7 +35,7 @@ function FileNamePatternFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'exampleName': json['exampleName'],
38
- 'description': json['description'],
38
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
39
39
  'sampleMatchingPattern': json['sampleMatchingPattern'],
40
40
  };
41
41
  }
@@ -40,6 +40,7 @@ export * from './DatasetDetail';
40
40
  export * from './DatasetViz';
41
41
  export * from './Discussion';
42
42
  export * from './DiscussionInput';
43
+ export * from './DiscussionType';
43
44
  export * from './Entity';
44
45
  export * from './EntityType';
45
46
  export * from './EnvironmentType';
@@ -58,6 +58,7 @@ __exportStar(require("./DatasetDetail"), exports);
58
58
  __exportStar(require("./DatasetViz"), exports);
59
59
  __exportStar(require("./Discussion"), exports);
60
60
  __exportStar(require("./DiscussionInput"), exports);
61
+ __exportStar(require("./DiscussionType"), exports);
61
62
  __exportStar(require("./Entity"), exports);
62
63
  __exportStar(require("./EntityType"), exports);
63
64
  __exportStar(require("./EnvironmentType"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {