@mlhub/models-ts-sdk 0.0.2 → 0.0.3
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 +2 -2
- package/dist/models/DiscoveryCriterion.d.ts +1 -1
- package/dist/models/DiscoveryCriterion.js +2 -2
- package/dist/models/ModelMetadata.d.ts +1 -1
- package/dist/models/ModelMetadata.js +2 -2
- package/package.json +1 -1
- package/src/models/DiscoveryCriterion.ts +3 -3
- package/src/models/ModelMetadata.ts +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @mlhub/models-ts-sdk@0.0.
|
|
1
|
+
## @mlhub/models-ts-sdk@0.0.3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -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 @mlhub/models-ts-sdk@0.0.
|
|
39
|
+
npm install @mlhub/models-ts-sdk@0.0.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,7 +24,7 @@ function DiscoveryCriterionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'
|
|
27
|
+
'annotation': !runtime_1.exists(json, 'annotation') ? undefined : json['annotation'],
|
|
28
28
|
'author': !runtime_1.exists(json, 'author') ? undefined : json['author'],
|
|
29
29
|
'bias_evaluation_score': !runtime_1.exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
30
30
|
'edge_optimized': !runtime_1.exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
@@ -72,7 +72,7 @@ function DiscoveryCriterionToJSON(value) {
|
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
74
|
return {
|
|
75
|
-
'
|
|
75
|
+
'annotation': value.annotation,
|
|
76
76
|
'author': value.author,
|
|
77
77
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
78
78
|
'edge_optimized': value.edge_optimized,
|
|
@@ -24,7 +24,7 @@ function ModelMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'
|
|
27
|
+
'annotation': !runtime_1.exists(json, 'annotation') ? undefined : json['annotation'],
|
|
28
28
|
'author': !runtime_1.exists(json, 'author') ? undefined : json['author'],
|
|
29
29
|
'bias_evaluation_score': !runtime_1.exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
30
30
|
'edge_optimized': !runtime_1.exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
@@ -71,7 +71,7 @@ function ModelMetadataToJSON(value) {
|
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
|
-
'
|
|
74
|
+
'annotation': value.annotation,
|
|
75
75
|
'author': value.author,
|
|
76
76
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
77
77
|
'edge_optimized': value.edge_optimized,
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export interface DiscoveryCriterion {
|
|
|
39
39
|
* @type {any}
|
|
40
40
|
* @memberof DiscoveryCriterion
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
annotation?: any | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -269,7 +269,7 @@ export function DiscoveryCriterionFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
269
269
|
}
|
|
270
270
|
return {
|
|
271
271
|
|
|
272
|
-
'
|
|
272
|
+
'annotation': !exists(json, 'annotation') ? undefined : json['annotation'],
|
|
273
273
|
'author': !exists(json, 'author') ? undefined : json['author'],
|
|
274
274
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
275
275
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
@@ -318,7 +318,7 @@ export function DiscoveryCriterionToJSON(value?: DiscoveryCriterion | null): any
|
|
|
318
318
|
}
|
|
319
319
|
return {
|
|
320
320
|
|
|
321
|
-
'
|
|
321
|
+
'annotation': value.annotation,
|
|
322
322
|
'author': value.author,
|
|
323
323
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
324
324
|
'edge_optimized': value.edge_optimized,
|
|
@@ -39,7 +39,7 @@ export interface ModelMetadata {
|
|
|
39
39
|
* @type {any}
|
|
40
40
|
* @memberof ModelMetadata
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
annotation?: any | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -263,7 +263,7 @@ export function ModelMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
263
263
|
}
|
|
264
264
|
return {
|
|
265
265
|
|
|
266
|
-
'
|
|
266
|
+
'annotation': !exists(json, 'annotation') ? undefined : json['annotation'],
|
|
267
267
|
'author': !exists(json, 'author') ? undefined : json['author'],
|
|
268
268
|
'bias_evaluation_score': !exists(json, 'bias_evaluation_score') ? undefined : json['bias_evaluation_score'],
|
|
269
269
|
'edge_optimized': !exists(json, 'edge_optimized') ? undefined : json['edge_optimized'],
|
|
@@ -311,7 +311,7 @@ export function ModelMetadataToJSON(value?: ModelMetadata | null): any {
|
|
|
311
311
|
}
|
|
312
312
|
return {
|
|
313
313
|
|
|
314
|
-
'
|
|
314
|
+
'annotation': value.annotation,
|
|
315
315
|
'author': value.author,
|
|
316
316
|
'bias_evaluation_score': value.bias_evaluation_score,
|
|
317
317
|
'edge_optimized': value.edge_optimized,
|