@cirrobio/api-client 0.0.31-alpha → 0.0.32-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.
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.0.31-alpha --save
39
+ npm install @cirrobio/api-client@0.0.32-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -16,6 +16,12 @@ import type { FileEntry } from './FileEntry';
16
16
  * @interface Reference
17
17
  */
18
18
  export interface Reference {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Reference
23
+ */
24
+ id: string;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -27,7 +33,7 @@ export interface Reference {
27
33
  * @type {string}
28
34
  * @memberof Reference
29
35
  */
30
- referenceType: string;
36
+ type: string;
31
37
  /**
32
38
  *
33
39
  * @type {Array<FileEntry>}
@@ -20,8 +20,9 @@ var FileEntry_1 = require("./FileEntry");
20
20
  */
21
21
  function instanceOfReference(value) {
22
22
  var isInstance = true;
23
+ isInstance = isInstance && "id" in value;
23
24
  isInstance = isInstance && "name" in value;
24
- isInstance = isInstance && "referenceType" in value;
25
+ isInstance = isInstance && "type" in value;
25
26
  isInstance = isInstance && "files" in value;
26
27
  isInstance = isInstance && "createdBy" in value;
27
28
  isInstance = isInstance && "createdAt" in value;
@@ -37,8 +38,9 @@ function ReferenceFromJSONTyped(json, ignoreDiscriminator) {
37
38
  return json;
38
39
  }
39
40
  return {
41
+ 'id': json['id'],
40
42
  'name': json['name'],
41
- 'referenceType': json['referenceType'],
43
+ 'type': json['type'],
42
44
  'files': (json['files'].map(FileEntry_1.FileEntryFromJSON)),
43
45
  'createdBy': json['createdBy'],
44
46
  'createdAt': (new Date(json['createdAt'])),
@@ -53,8 +55,9 @@ function ReferenceToJSON(value) {
53
55
  return null;
54
56
  }
55
57
  return {
58
+ 'id': value.id,
56
59
  'name': value.name,
57
- 'referenceType': value.referenceType,
60
+ 'type': value.type,
58
61
  'files': (value.files.map(FileEntry_1.FileEntryToJSON)),
59
62
  'createdBy': value.createdBy,
60
63
  'createdAt': (value.createdAt.toISOString()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.31-alpha",
3
+ "version": "0.0.32-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -26,6 +26,12 @@ import {
26
26
  * @interface Reference
27
27
  */
28
28
  export interface Reference {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof Reference
33
+ */
34
+ id: string;
29
35
  /**
30
36
  *
31
37
  * @type {string}
@@ -37,7 +43,7 @@ export interface Reference {
37
43
  * @type {string}
38
44
  * @memberof Reference
39
45
  */
40
- referenceType: string;
46
+ type: string;
41
47
  /**
42
48
  *
43
49
  * @type {Array<FileEntry>}
@@ -63,8 +69,9 @@ export interface Reference {
63
69
  */
64
70
  export function instanceOfReference(value: object): boolean {
65
71
  let isInstance = true;
72
+ isInstance = isInstance && "id" in value;
66
73
  isInstance = isInstance && "name" in value;
67
- isInstance = isInstance && "referenceType" in value;
74
+ isInstance = isInstance && "type" in value;
68
75
  isInstance = isInstance && "files" in value;
69
76
  isInstance = isInstance && "createdBy" in value;
70
77
  isInstance = isInstance && "createdAt" in value;
@@ -82,8 +89,9 @@ export function ReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
82
89
  }
83
90
  return {
84
91
 
92
+ 'id': json['id'],
85
93
  'name': json['name'],
86
- 'referenceType': json['referenceType'],
94
+ 'type': json['type'],
87
95
  'files': ((json['files'] as Array<any>).map(FileEntryFromJSON)),
88
96
  'createdBy': json['createdBy'],
89
97
  'createdAt': (new Date(json['createdAt'])),
@@ -99,8 +107,9 @@ export function ReferenceToJSON(value?: Reference | null): any {
99
107
  }
100
108
  return {
101
109
 
110
+ 'id': value.id,
102
111
  'name': value.name,
103
- 'referenceType': value.referenceType,
112
+ 'type': value.type,
104
113
  'files': ((value.files as Array<any>).map(FileEntryToJSON)),
105
114
  'createdBy': value.createdBy,
106
115
  'createdAt': (value.createdAt.toISOString()),