@migration-planner-ui/api-client 0.0.24 → 0.0.26

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.
@@ -51,7 +51,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'sourceType': json['sourceType'],
52
52
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
53
53
  'createdAt': (new Date(json['createdAt'])),
54
- 'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
54
+ 'snapshots': json['snapshots'] == null ? undefined : (json['snapshots'].map(SnapshotFromJSON)),
55
55
  };
56
56
  }
57
57
  export function AssessmentToJSON(value) {
@@ -31,7 +31,7 @@ export function EventFromJSONTyped(json, ignoreDiscriminator) {
31
31
  }
32
32
  return {
33
33
  'createdAt': (new Date(json['createdAt'])),
34
- 'data': (json['data'].map(EventDataFromJSON)),
34
+ 'data': json['data'] == null ? undefined : (json['data'].map(EventDataFromJSON)),
35
35
  };
36
36
  }
37
37
  export function EventToJSON(value) {
@@ -48,8 +48,8 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'hostsPerCluster': json['hostsPerCluster'],
49
49
  'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
50
50
  'hostPowerStates': json['hostPowerStates'],
51
- 'networks': (json['networks'].map(NetworkFromJSON)),
52
- 'datastores': (json['datastores'].map(DatastoreFromJSON)),
51
+ 'networks': json['networks'] == null ? undefined : (json['networks'].map(NetworkFromJSON)),
52
+ 'datastores': json['datastores'] == null ? undefined : (json['datastores'].map(DatastoreFromJSON)),
53
53
  };
54
54
  }
55
55
  export function InfraToJSON(value) {
@@ -32,7 +32,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  return {
34
34
  'vcenterId': json['vcenter_id'],
35
- 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
35
+ 'clusters': json['clusters'] == null ? undefined : (mapValues(json['clusters'], InventoryDataFromJSON)),
36
36
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
37
37
  };
38
38
  }
@@ -42,7 +42,7 @@ export function InventoryToJSON(value) {
42
42
  }
43
43
  return {
44
44
  'vcenter_id': value['vcenterId'],
45
- 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
45
+ 'clusters': value['clusters'] == null ? undefined : (mapValues(value['clusters'], InventoryDataToJSON)),
46
46
  'vcenter': InventoryDataToJSON(value['vcenter']),
47
47
  };
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -117,7 +117,7 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
117
117
  'sourceType': json['sourceType'],
118
118
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
119
119
  'createdAt': (new Date(json['createdAt'])),
120
- 'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
120
+ 'snapshots': json['snapshots'] == null ? undefined : ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
121
121
  };
122
122
  }
123
123
 
@@ -60,7 +60,7 @@ export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Eve
60
60
  return {
61
61
 
62
62
  'createdAt': (new Date(json['createdAt'])),
63
- 'data': ((json['data'] as Array<any>).map(EventDataFromJSON)),
63
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(EventDataFromJSON)),
64
64
  };
65
65
  }
66
66
 
@@ -131,8 +131,8 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
131
131
  'hostsPerCluster': json['hostsPerCluster'],
132
132
  'vmsPerCluster': json['vmsPerCluster'] == null ? undefined : json['vmsPerCluster'],
133
133
  'hostPowerStates': json['hostPowerStates'],
134
- 'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
135
- 'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
134
+ 'networks': json['networks'] == null ? undefined : ((json['networks'] as Array<any>).map(NetworkFromJSON)),
135
+ 'datastores': json['datastores'] == null ? undefined : ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
136
136
  };
137
137
  }
138
138
 
@@ -65,7 +65,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
65
65
  return {
66
66
 
67
67
  'vcenterId': json['vcenter_id'],
68
- 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
68
+ 'clusters': json['clusters'] == null ? undefined : (mapValues(json['clusters'], InventoryDataFromJSON)),
69
69
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
70
70
  };
71
71
  }
@@ -77,7 +77,7 @@ export function InventoryToJSON(value?: Inventory | null): any {
77
77
  return {
78
78
 
79
79
  'vcenter_id': value['vcenterId'],
80
- 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
80
+ 'clusters': value['clusters'] == null ? undefined : (mapValues(value['clusters'], InventoryDataToJSON)),
81
81
  'vcenter': InventoryDataToJSON(value['vcenter']),
82
82
  };
83
83
  }