@cirrobio/api-client 0.0.31-alpha → 0.0.33-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 +1 -1
- package/dist/models/Reference.d.ts +13 -1
- package/dist/models/Reference.js +9 -3
- package/package.json +1 -1
- package/src/models/Reference.ts +22 -4
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.
|
|
39
|
+
npm install @cirrobio/api-client@0.0.33-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,13 @@ export interface Reference {
|
|
|
27
33
|
* @type {string}
|
|
28
34
|
* @memberof Reference
|
|
29
35
|
*/
|
|
30
|
-
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Reference
|
|
41
|
+
*/
|
|
42
|
+
type: string;
|
|
31
43
|
/**
|
|
32
44
|
*
|
|
33
45
|
* @type {Array<FileEntry>}
|
package/dist/models/Reference.js
CHANGED
|
@@ -20,8 +20,10 @@ 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 && "
|
|
25
|
+
isInstance = isInstance && "description" in value;
|
|
26
|
+
isInstance = isInstance && "type" in value;
|
|
25
27
|
isInstance = isInstance && "files" in value;
|
|
26
28
|
isInstance = isInstance && "createdBy" in value;
|
|
27
29
|
isInstance = isInstance && "createdAt" in value;
|
|
@@ -37,8 +39,10 @@ function ReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
return json;
|
|
38
40
|
}
|
|
39
41
|
return {
|
|
42
|
+
'id': json['id'],
|
|
40
43
|
'name': json['name'],
|
|
41
|
-
'
|
|
44
|
+
'description': json['description'],
|
|
45
|
+
'type': json['type'],
|
|
42
46
|
'files': (json['files'].map(FileEntry_1.FileEntryFromJSON)),
|
|
43
47
|
'createdBy': json['createdBy'],
|
|
44
48
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -53,8 +57,10 @@ function ReferenceToJSON(value) {
|
|
|
53
57
|
return null;
|
|
54
58
|
}
|
|
55
59
|
return {
|
|
60
|
+
'id': value.id,
|
|
56
61
|
'name': value.name,
|
|
57
|
-
'
|
|
62
|
+
'description': value.description,
|
|
63
|
+
'type': value.type,
|
|
58
64
|
'files': (value.files.map(FileEntry_1.FileEntryToJSON)),
|
|
59
65
|
'createdBy': value.createdBy,
|
|
60
66
|
'createdAt': (value.createdAt.toISOString()),
|
package/package.json
CHANGED
package/src/models/Reference.ts
CHANGED
|
@@ -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,13 @@ export interface Reference {
|
|
|
37
43
|
* @type {string}
|
|
38
44
|
* @memberof Reference
|
|
39
45
|
*/
|
|
40
|
-
|
|
46
|
+
description: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Reference
|
|
51
|
+
*/
|
|
52
|
+
type: string;
|
|
41
53
|
/**
|
|
42
54
|
*
|
|
43
55
|
* @type {Array<FileEntry>}
|
|
@@ -63,8 +75,10 @@ export interface Reference {
|
|
|
63
75
|
*/
|
|
64
76
|
export function instanceOfReference(value: object): boolean {
|
|
65
77
|
let isInstance = true;
|
|
78
|
+
isInstance = isInstance && "id" in value;
|
|
66
79
|
isInstance = isInstance && "name" in value;
|
|
67
|
-
isInstance = isInstance && "
|
|
80
|
+
isInstance = isInstance && "description" in value;
|
|
81
|
+
isInstance = isInstance && "type" in value;
|
|
68
82
|
isInstance = isInstance && "files" in value;
|
|
69
83
|
isInstance = isInstance && "createdBy" in value;
|
|
70
84
|
isInstance = isInstance && "createdAt" in value;
|
|
@@ -82,8 +96,10 @@ export function ReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
82
96
|
}
|
|
83
97
|
return {
|
|
84
98
|
|
|
99
|
+
'id': json['id'],
|
|
85
100
|
'name': json['name'],
|
|
86
|
-
'
|
|
101
|
+
'description': json['description'],
|
|
102
|
+
'type': json['type'],
|
|
87
103
|
'files': ((json['files'] as Array<any>).map(FileEntryFromJSON)),
|
|
88
104
|
'createdBy': json['createdBy'],
|
|
89
105
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -99,8 +115,10 @@ export function ReferenceToJSON(value?: Reference | null): any {
|
|
|
99
115
|
}
|
|
100
116
|
return {
|
|
101
117
|
|
|
118
|
+
'id': value.id,
|
|
102
119
|
'name': value.name,
|
|
103
|
-
'
|
|
120
|
+
'description': value.description,
|
|
121
|
+
'type': value.type,
|
|
104
122
|
'files': ((value.files as Array<any>).map(FileEntryToJSON)),
|
|
105
123
|
'createdBy': value.createdBy,
|
|
106
124
|
'createdAt': (value.createdAt.toISOString()),
|